API Reference
Script Library
Inspecting running scripts, their environments, and their bytecode.
getscriptclosure(script: LuaSourceContainer): functionReturns a new closure for a script.
getscripthash(script: LuaSourceContainer): stringReturns a hash of the script bytecode.
getscriptbytecode(script: LuaSourceContainer): stringReturns the compiled bytecode of a script.
decompile(script: LuaSourceContainer): stringReturns a readable reconstruction of a script.
getsenv(script: LuaSourceContainer): tableReturns the environment of a running script.
getscripts(): { LuaSourceContainer }Returns every script known to the client.
getloadedmodules(): { ModuleScript }Returns module scripts that have been required.
getcallingscript(): LuaSourceContainer?Returns the script responsible for the current call.