Syntax
getscriptbytecode(script: userdata): stringArguments
| Name | Type | Description |
|---|---|---|
script | userdata | Script or ModuleScript instance to inspect. |
Returns
| Name | Type | Description |
|---|---|---|
bytecode | string | Bytecode or dumped script string. |
Description
Returns the bytecode for a script instance.
Call it with 1 parameter(s): script. The argument table explains which values are required and which ones only refine the behavior.
It returns bytecode (string). Use the returns table to separate successful values from nil results and recoverable errors.
Example
Example call with placeholder values.
local result = getscriptbytecode(game)
print(result)