isexecutorclosure Synchronous

  • checkclosure
  • isexploitfunction
  • isourclosure

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.

Syntax
Luau
isexecutorclosure(value: Function) -> boolean

Parameters

Function parameters
ParameterTypeDescription
valueFunctionThe function to inspect. Passing a non-function raises an error.

Returns

boolean

true when the closure is classified as executor-owned.

Example

Example
Luau
local mine = function() return "hello" end
print(isexecutorclosure(mine))
Kawaii documentation