IonizeDocsionize.cc ↗

API Reference

Script Library

Inspecting running scripts, their environments, threads, and bytecode.

12 members

getscriptsReturns a table of every script in the game.getrunningscriptsReturns a table of every script that's currently running.getloadedmodulesReturns a table of every ModuleScript that's loaded in the game.getscriptclosureReturns the main function of a given script.getscripthashReturns a hash of a given script.getscriptbytecodeReturns the bytecode of a given script.decompileReturn pseudocode from the bytecode of 'LuaSourceContainer' with RunContext of 'Client', Legacy with a LocalScript or a ModuleScript.getscriptthreadReturns a thread (or nil) that's derived from an associated script.getscriptfromthreadReturns a script (or nil) that's derived from an associated thread.getthreadidentityReturns the current thread's identity.setthreadidentitySets the current Luau thread identity and the capabilities associated with that identity level.getcallingscriptReturns the Script, LocalScript, or ModuleScript that triggered the current code execution, or nil if none.