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
checkclosureisourclosure
Example
In a Roblox game, usegetgc() and split the function results into executor-allocated vs Roblox-built.