Skip to main content

Aliases

  • getcallbackmember

Arguments

Instance
required
Instance object whose callback property should be inspected. Invalid Instance values raise an argument error.
string
required
Property name to resolve with Roblox property metadata. Only LUA_CALLBACK properties can return a function.

Returns

function | nil
Lua function stored by the callback property, or nil when the function cannot resolve a readable function.

Example

Read the callback function stored in a callback property such as BindableFunction.OnInvoke.