Returns the function currently assigned to a callback member such as a BindableFunction.OnInvoke or a RemoteFunction.OnClientInvoke. Callback members are write-only from Luau, so this is the only way to read back what is bound. Also registered as getcallbackmember.

Parameters

Instance
required
The instance carrying the callback.
string
required
The callback member name.

Returns

function or nil
The bound function, or nil if none is set.

Example

Errors