getscripthash
Computes a script's bytecode fingerprint.
Syntax
Signature
getscripthash(Script: Instance) -> stringAliases
This function has no aliases.
Parameters
| Parameter | Type | Description |
|---|---|---|
Script | Instance | LocalScript or ModuleScript instance. |
Returns
| Type | Description |
|---|---|
string | 64-character hexadecimal digest of the script bytecode. |
Notes
Raises the same bytecode-unavailable errors as getscriptbytecode.
Example
Luau
local Script = getscripts()[1]
assert(Script, "No captured script available")
local Result = getscripthash(Script)
print(Result)