isexecutorclosure Synchronous
checkclosureisexploitfunctionisourclosure
Check whether a closure belongs to Kawaii’s execution environment. This can distinguish a function created by your script from a game-owned function during inspection.
Luau
isexecutorclosure(value: Function) -> booleanParameters
| Parameter | Type | Description |
|---|---|---|
value | Function | The function to inspect. Passing a non-function raises an error. |
Returns
booleantrue when the closure is classified as executor-owned.
Example
Luau
local mine = function() return "hello" end
print(isexecutorclosure(mine))