setnamecallmethod Synchronous
set_namecall_method
Change the method name attached to the current namecall context. This is useful when forwarding a namecall through a different method name in a controlled hook.
Luau
setnamecallmethod(name: string) -> ()Parameters
| Parameter | Type | Description |
|---|---|---|
name | string | Method name to place in the current namecall context. |
Returns
()No value.
Usage notes
This changes the current namecall context, not a method on an Instance.
Example
Luau
local original = getnamecallmethod()
if original then
setnamecallmethod(original)
end