getscripthash
Returns a SHA384 hash of a script's bytecode, useful for spotting when a game updates its code.
Signature
getscripthash(script: BaseScript): stringParameters
scriptLocalScript | ModuleScriptThe script to hash.
Returns
string
Example
local script = game.Players.LocalPlayer.PlayerScripts:FindFirstChildOfClass("LocalScript")
print(getscripthash(script))