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 hexadecimal format SHA-384 hash 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 script instance to hash. |