Yuari
Documentation

decompile

Decompiles a script instance (or a raw bytecode string) back to Luau source.

Syntax

decompile(scriptOrBytecode: Instance | string) -> string

Parameters

ParameterTypeDescription
scriptOrBytecodeInstance | stringThe script or bytecode value used by the call.

Returns

TypeDescription
stringString

Description

decompile is part of the Scripts & decompiling library. Script helpers inspect scripts in the live DataModel and can read bytecode or decompile source.

The call is read-only: it resolves the current value when invoked and does not change the underlying state.

Example

for _, s in ipairs(getscripts()) do
    local src = decompile(s)
    if src and src:find("RemoteEvent") then
        print(s:GetFullName())
    end
end

Notes

  • Script bytecode and source are read from the live game.