Environment
The global tables the game and the executor run in, and the objects the VM keeps alive. Entries: 5.
- filtergcSearches garbage-collected memory with precise filters. Far faster and more targeted than walking getgc by hand, and the standard way to recover a game function or internal table.
any - getgcReturns every function currently tracked by the garbage collector, optionally including tables. Prefer filtergc when you know what you are looking for.
{ any } - getgenvReturns the executor's shared global environment. Values written here are visible to every script you run.
table - getregReturns the Luau registry, the internal table holding every thread and reference the VM keeps alive.
table - getrenvReturns the game's global environment, separate from the executor's. Reading it shows the globals game scripts actually see.
table