Skip to main content
Tells you whether a function was created by Seliware, or by Roblox.
Most commonly used to filter the getgc()/filtergc() output down to functions your script has created. The check looks at where the closure was made, not which script it came from originally.
A function pulled from a Roblox script’s environment with getsenv() keeps its Roblox origin, and returns false.
A function produced from that same script with getscriptclosure() returns true instead.

Parameters

Returns

true if func was created by the executor.
false if the Roblox game has created it.

Aliases

  • checkclosure
  • isourclosure

Example

In a Roblox game, use getgc() and split the function results into executor-allocated vs Roblox-built.
Useful for detecting whether a callback has been hooked by another executor script.