Scripts
Enumerate scripts and read their bytecode and environments. Entries: 11.
- decompileReturns Luau source reconstructed from the bytecode of a script.
string - getcallingscriptReturns the script responsible for the current call, or nil when the executor itself is calling.
BaseScript? - getloadedmodulesReturns every ModuleScript that has been required so far.
{ ModuleScript } - getrunningscriptsReturns every script currently executing on the client.
{ BaseScript } - getscriptbytecodeReturns the compiled Luau bytecode behind a script.
string - getscriptclosureReturns a fresh closure of a script's body without running it, which lets you inspect its constants and upvalues.
function - getscriptfromthreadMaps a coroutine back to the script that created it.
BaseScript? - getscripthashReturns a SHA384 hash of a script's bytecode, useful for spotting when a game updates its code.
string - getscriptsReturns every script instance the client currently holds, running or not.
{ BaseScript } - getsenvReturns a running script's global environment, exposing its locals and functions for inspection or replacement.
table - requireReturns what a ModuleScript returns, sharing its state with the game. If the game has already run the module, you get the very table the game uses, with every change the game made to it.
any