Yuari
Documentation
Docs/Script/decompile

decompile

Decompiles a script through the local decompiler.

Syntax

decompile(script: Instance) -> string

Parameters

ParameterTypeDescription
scriptInstanceThe script value used by the call.

Returns

TypeDescription
stringThe returned string.

Description

decompile is part of the Script library. Script helpers inspect scripts loaded by the client, their bytecode and the Luau threads created for them.

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

Example

print(decompile(getscripts()[1]):sub(1, 100))

Notes

  • Script data reflects the client's live script objects and may change after execution.