Closures
Create, inspect, clone and hook Luau functions.
Available functions
checkcallerChecks whether the current call comes from the executor.clonefunctionClones a Luau closure.getfunctionhashComputes a function's bytecode fingerprint.hookfunctionReplaces a function's behavior.hookmetamethodReplaces a metatable field.iscclosureChecks whether a function is a C closure.isexecutorclosureChecks whether a function belongs to the executor.isfunctionhookedChecks whether a function has an active hook.islclosureChecks whether a function is a Luau closure.isnewcclosureRecognizes wrappers created by newcclosure.loadstringCompiles Luau source without running it.newcclosureWraps a function in a C closure.newlclosureWraps a function in a Luau closure.restorefunctionRemoves an active function hook.