Volt

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

FunctionDescription
filtergcFilter garbage collected objects
getgcGet all objects tracked by garbage collector
getgenvGet volt's global environment
getregGet the Lua registry
getrenvGet the game's global environment
gettenvGet 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.

On this page