AcediaDocumentation

Scripts & bytecode

Script discovery, execution environments, compilation and decompilation.

Use this group to discover scripts, inspect bytecode, and compile or decompile Luau.

  • Discovery returns a snapshot; an object can become unavailable later.
  • decompile reconstructs source from bytecode: control flow is rebuilt from an SSA lift and emitted as a typed AST by our own Decompiler.
  • Comments, whitespace, and stripped local names are not recoverable from bytecode and are not synthesized (you should know this ^^).

Functions

FunctionPurpose
loadstringCompiles Luau source into a callable function.
getscriptsLists client-accessible script containers.
getloadedmodulesLists ModuleScripts recorded as loaded.
getmodulesLists every ModuleScript in the DataModel.
getrunningscriptsLists scripts associated with running non-executor threads.
getactorsLists Actor instances available through the collector.
getscriptbytecodeReads decoded bytecode from a script container.
getscripthashHashes the stored bytecode blob of a script container with SHA-384.
getscriptclosureLoads a script container's bytecode as a callable closure.
getsenvReturns the environment associated with a script's thread.
getmenvReturns the environment of a loaded ModuleScript.
getcallingscriptReturns the script associated with the calling context.
isparallelChecks whether the current script phase is parallel.
requireLoads a module through Acedia's module handling or the engine require path.
getfunctionbytecodeSerializes a Lua function's prototype into bytecode.
getscriptfromthreadFinds the script associated with a thread or its formatted thread string.
gettenvReturns a thread's global environment.
trampoline_callCalls a function on a new carrier thread with selected context options.
decompileRecovers Luau source from a script, Lua function or bytecode string.

On this page