Parameters
Instance
required
A
LocalScript, ModuleScript, or Script.Returns
string
A hex hash of the script’s bytecode.
Example
Errors
Related
getscriptbytecode: read the bytecode this hashes.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Hash a script’s bytecode.
getscripthash(script: LocalScript | ModuleScript | Script) -> string
LocalScript, ModuleScript, or Script.local hash = getscripthash(someScript)
print(hash)
| Message | Condition |
|---|---|
cannot hash a value that is not an Instance | Argument 1 was not an Instance. |
the ClassName of the script to hash could not be read | The instance’s class could not be read. |
only a LocalScript, ModuleScript or Script can be hashed | The instance was not a script class. |
getscriptbytecode: read the bytecode this hashes.