Functions
Closures, hooks, prototypes, and garbage-collector inspection.
Functions
clonefunctionCloned function.
comparefunctionsFunction comparison.
filtergcDefault returns a list; returnOne=true returns one match or nil.
getfunctionbytecodeSerialized Luau function bytecode.
getfunctionhashFunction hash.
getgcUses Lua truthiness; default false.
hookfunctionOriginal callable.
hookmetamethodOriginal callable.
hookprotoRequires a Luau replacement.
iscclosureC closure classification.
isexecutorclosureClosure classification.
isfunctionhookedCurrent hook status.
islclosureLuau closure classification.
isnewcclosureWrapper classification.
isprotohookedProto hook status.
newcclosureThe returned callback can itself yield.
newlclosureRequires a C closure; optional name accepted but unused.
restorefunctionRestores a function.
restoreprotoRestores proto.
trampoline_callProtected result tuple; yielding callback is rejected.