Environment
The Environment library provides functions for accessing and manipulating the Luau environment, including garbage collection inspection and global environments.
Overview
These functions allow you to:
- Access different global environments
- Inspect the garbage collector
- Filter and find objects in memory
Available Functions
| Function | Description |
|---|---|
filtergc | Filter garbage collected objects |
getallthreads | Get GC-visible Luau threads |
getgc | Get all objects tracked by garbage collector |
getgenv | Get Volt's global environment |
getreg | Get the Luau registry |
getrenv | Get the game's global environment |
gettenv | Get a thread's environment |
Environment Types
Volt Environment (genv)
The global environment where your scripts run. Variables defined here persist across script executions.
Game Environment (renv)
The game's Luau environment containing globals such as game and workspace.
Registry
The Luau registry is a special table used internally by the Luau implementation to store references.