target’s prototype currently has a
hookproto hook on it.
Parameters
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.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Test whether a prototype is hooked.
isprotohooked(target: function) -> boolean
target’s prototype currently has a
hookproto hook on it.
true when the prototype is hooked.true.print(isprotohooked(greet)) -- false
hookproto(greet, function() end)
print(isprotohooked(greet)) -- true
| Message | Condition |
|---|---|
argument 1 must be a proto handle or a Luau function | target was not a Luau function or proto handle. |