getfunctionhash
Returns a SHA384 hash of the function's bytecode. Two functions compiled from identical source share a hash, which makes this useful for fingerprinting game functions across sessions.
Signature
getfunctionhash(fn: (...any) -> ...any): stringParameters
fnfunctionA Luau closure to hash.
Returns
string
Example
local function greet()
return "hello"
end
print(getfunctionhash(greet)) --> 96 hex characters
print(getfunctionhash(greet) == getfunctionhash(greet)) --> true