Skip to content
Saiko

getscripthash

Returns a SHA384 hash of a script's bytecode, useful for spotting when a game updates its code.

Signature

luau
getscripthash(script: BaseScript): string

Parameters

scriptLocalScript | ModuleScript

The script to hash.

Returns

string

Example

luau
local script = game.Players.LocalPlayer.PlayerScripts:FindFirstChildOfClass("LocalScript")
print(getscripthash(script))