getscripthash
Do not decrypt or decompress the bytecode
The hash must be computed on the encrypted, compressed bytecode - not after any modification.
This function should also return nil if the script has no bytecode.
getscripthash returns a SHA-384 hash in hexadecimal format of the raw bytecode for a given Script, LocalScript, or ModuleScript.
This is useful for identifying scripts by their content, especially when checking for known modules or verifying integrity.
Parameters
| Parameter | Description |
|---|---|
script |
The BaseScript or ModuleScript instance to hash. |