StartIntroduction
sUNC Reference
Closures
Debug
Drawing
Encoding
Environment
Filesystem
Instances
Metatable
Miscellaneous
Reflection
Scripts
getcallingscriptgetloadedmodulesgetrunningscriptsgetscriptbytecodegetscriptclosuregetscriptfromthreadgetscripthashgetscriptsgetsenv
Signals
WebSocket
Related to sUNC docsOfficial reference
Scriptsgetscriptbytecode
Scripts

getscriptbytecode

Retrieves compiled script bytecode.

Related to sUNC documentation

This page follows the official sUNC reference.

Signature

Luau
function getscriptbytecode(script: BaseScript | ModuleScript): string | nil

Returns

The bytecode string or nil.

PreviousgetrunningscriptsNextgetscriptclosure
On this pagesUNC sourceSignatureReturns