Parameters
Returns
string - a 96-character hexadecimal string (48 bytes).
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
getscripthash(script: LuaSourceContainer): string
| Parameter | Type | Description |
|---|---|---|
script | LuaSourceContainer | The script to hash. |
string - a 96-character hexadecimal string (48 bytes).
local hash = getscripthash(workspace.Part.LocalScript)
local animate = cloneref(game:GetService("Players")).LocalPlayer.Character.Animate
local hash = getscripthash(animate)
while task.wait(0.5) do
local newHash = getscripthash(animate)
if newHash ~= hash then
print("Script has changed - re-hooking.")
hash = newHash
end
end
getscriptbytecode. Good for polling loops.