isexecutorclosure
Returns true when the function was created by the executor rather than by the game.
Signature
isexecutorclosure(fn: (...any) -> ...any): booleanParameters
fnfunctionThe function to test.
Returns
boolean
Example
print(isexecutorclosure(print)) --> false
print(isexecutorclosure(function() end)) --> true (this script came from the executor)