Wave
  • 👋Introduction
  • 🌊Getting Started
  • đŸ’ģFunctions
    • 🎮Console
    • 🌎Environment
    • 📂File System
    • đŸĒHooking
    • đŸ–ąī¸Input
    • 💡Miscellaneous
    • đŸ“ŗNetwork
    • đŸĒžReflection
    • đŸ•šī¸Script
    • 📊Table
    • đŸ“ļSignal
  • 📚Libraries
    • 👨‍🎤Actors
    • đŸ—ƒī¸Cache
    • 👾Crypt
    • 🐞Debug
    • đŸ–ī¸Drawing
    • đŸ–Ĩī¸ImGui
    • 📎WebSocket
  • âœī¸Changelogs
  • 📃Credits
Powered by GitBook
On this page
  • Get Calling Script
  • Get Loaded Modules
  • Get Running Scripts
  • Get Scripts
  • Get Script Bytecode
  • Get Script Closure
  • Get Script Environment
  • Get Script Hash
  1. Functions

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 loaded modules 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 or constants.


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.


PreviousReflectionNextTable

Last updated 5 months ago

đŸ’ģ
đŸ•šī¸