Environment
The Environment library provides functions for accessing and manipulating the Lua 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 |
getgc | Get all objects tracked by garbage collector |
getgenv | Get volt's global environment |
getreg | Get the Lua 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 Lua environment containing Roblox globals like game, workspace, etc.
Registry
The Lua registry is a special table used internally by the Lua implementation to store references.