Yuari
Documentation

getscripthash

FNV-1a hash of the script's bytecode, as a decimal string ("0" when unavailable).

Syntax

getscripthash(script: Instance) -> string

Parameters

ParameterTypeDescription
scriptInstanceThe script value used by the call.

Returns

TypeDescription
stringString

Description

getscripthash is part of the Scripts & decompiling library. Script helpers inspect scripts in the live DataModel and can read bytecode or decompile source.

The call is read-only: it resolves the current value when invoked and does not change the underlying state.

Example

print(getscripthash(getscripts()[1]))

Notes

  • Script bytecode and source are read from the live game.