Returns a stable hex hash of a script’s bytecode. Two scripts compiled from the same source hash the same, which makes it a quick way to recognize a known script across servers without comparing the full bytecode.

Parameters

Instance
required
A LocalScript, ModuleScript, or Script.

Returns

string
A hex hash of the script’s bytecode.

Example

Errors