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.

Syntax
Luau
setnamecallmethod(name: string) -> ()

Parameters

Function parameters
ParameterTypeDescription
namestringMethod 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

Example
Luau
local original = getnamecallmethod()
if original then
    setnamecallmethod(original)
end
Kawaii documentation