Skip to content
Saiko

decompile

Returns Luau source reconstructed from the bytecode of a script.

Signature

luau
decompile(script: LuaSourceContainer): string

Parameters

scriptLuaSourceContainer

The Script, LocalScript or ModuleScript to decompile.

Returns

string

Note

Example

luau
local module = game:GetService("ReplicatedStorage").Config

local source = decompile(module)
print(type(source), #source > 0) --> string true