脚本

getscriptbytecode

返回脚本实例的字节码。

语法

getscriptbytecode(script: userdata): string

参数

名称类型描述
scriptuserdata要检查的脚本或 ModuleScript 实例。

返回值

名称类型描述
bytecodestring字节码或转储的脚本字符串。

说明

返回脚本实例的字节码。

使用 1 个参数调用: script。参数表会说明哪些值必填,哪些值只用于细化行为。

返回 bytecode (string)。使用返回表区分成功值、nil 结果和可恢复错误。

示例

使用占位值的示例调用。

local result = getscriptbytecode(game)
print(result)