Returns whether target’s prototype currently has a hookproto hook on it.

Parameters

function
required
A Luau function, or a proto handle from getproto.

Returns

boolean
true when the prototype is hooked.

Behavior

  • It asks about the prototype, not the closure. Two closures sharing a hooked prototype both report true.

Example

Errors