Aliases
None.Arguments
any
required
The value used by this operation.
table
The metatable to assign.
Returns
any
The supplied metatable argument, including nil when removing it.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Sets/removes the raw metatable.
debug.setmetatable(value: any, mt: table?): any
local t = {}
debug.setmetatable(t, {__index = {answer = 42}})
print(t.answer)
debug.setmetatable(t, nil)
