Script
These are all of the functions revolving scripts that Wave supports.
Get Calling Script
<Instance> getcallingscript(<void>)
Gets the script that is calling this function.
Get Loaded Modules
<table> getloadedmodules(<void>)
Returns a
table
with all loadedmodules
currently in game.
Get Running Scripts
<table> getrunningscripts(<void>)
Returns a list of scripts that are running in the environment. Returns
nil
if there are no scripts running.
Get Scripts
<table> getscripts(<void>)
Returns a list of scripts within the global state of the caller.
Get Script Bytecode
<string> getscriptbytecode(<Instance> Script)
Returns the bytecode of the given script. This can be used in a dissassembler.
Get Script Closure
<function> getscriptclosure(<Instance> Script)
Returns the closure from the given script, can be used to gather
upvalues
orconstants
.
Get Script Environment
<table> getsenv(<LocalScript, ModuleScript> Script)
Returns the global environment of the given script.
Get Script Hash
<string> getscripthash(<Instance> Script)
Returns a SHA384 hash of the scripts bytecode. You can use this to detect changes of a script.
Last updated