Parameters
Instance
required
A script with bytecode to decompile.
Returns
string
The recovered Luau source.
Example
Errors
Related
getscriptbytecode: the bytecode decompilation starts from.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Recover readable Luau source from a script.
decompile(script: LocalScript | ModuleScript | Script) -> string
local source = decompile(someScript)
print(source)
| Message | Condition |
|---|---|
there is no bytecode to decompile | The script carried no bytecode. |
getscriptbytecode: the bytecode decompilation starts from.