Skip to main content

Arguments

userdata
required
Script object to hash. Supported ClassName values are ModuleScript, LocalScript, CoreScript, and Script with RunContext Client.

Returns

string | nil
Uppercase SHA384 hex digest of the stored bytecode bytes, or nil when no usable embedded bytecode is available.

Example

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