Skip to main content

参数

userdata
必填
要 hash 的 Script object。受支持的 ClassName 值是 ModuleScript、LocalScript、CoreScript,以及 RunContext Client 的 Script。

返回值

string | nil
stored bytecode bytes 的 uppercase SHA384 hex digest,或没有可用 embedded bytecode 时为 nil。

示例

Hash the bytecode of a supported Roblox script Instance when bytecode is available.