Skip to main content
Reads a LocalScript or ModuleScript and gives back its source as readable Luau.
Seliware uses the Medal decompiler. This call yields - the script that called decompile pauses until the source is ready, but the Roblox client keeps running and does not freeze. Most commonly paired with writefile or appendfile to reverse-engineer the game’s logic.

Parameters

Returns

string - the script’s decompiled Luau source.
Decompiled source is rebuilt from bytecode, so it won’t match the original file byte for byte. Dead code (like if false then) is gone, numbers and joined strings are folded into single constants, and local variable names are lost - they come back as v1, v2, and so on.

Example

Decompiled source is rebuilt from bytecode, so it won’t match the original file byte for byte. Dead code (like if false then) is gone, numbers and joined strings are folded into single constants, and local variable names are lost - they come back as v1, v2, and so on.