Returns the raw compiled Luau bytecode of a script as a binary string. This is the input to decompile and the basis for getscripthash. Treat the result as opaque binary, not text. Also registered as dumpstring.

Parameters

Instance
required
A LocalScript, ModuleScript, or Script.

Returns

string
The script’s compiled bytecode.

Example

Errors