Category
Environment
Access to runtime environments and garbage-collected objects.Category guide
Overview
Use this overview to understand the category before opening a specific function.- See what this group of functions is meant to solve.
- Compare function names and descriptions in one table.
- Open a function for syntax, arguments, returns, and examples.
Environment
Available functions
| Function | Description |
|---|---|
filtergc | Filters garbage collector objects by type and matching options. |
getgc | Returns objects currently tracked by the Luau garbage collector. |
getgenv | Returns the global executor environment table. |
getrenv | Returns the Roblox environment table. |
getscriptglobals | Returns global values visible to scripts in the current context. |
gettenv | Returns the environment table associated with a thread. |
setclipboard | Copies text to the system clipboard. |
setrbxclipboard | Copies text to the Roblox clipboard path when supported. |