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 | Searches live garbage-collected tables or functions that match the supplied filters. |
getgc | Returns an array table of live Luau garbage-collected objects visible to the API. |
getgenv | Returns the current executor environment table by pushing LUA_ENVIRONINDEX. |
getrenv | Returns the Roblox global environment table. |
getscriptglobals | Returns a new table containing the current LUA_GLOBALSINDEX values for _G and shared. |
gettenv | Returns the environment table stored on a Luau thread. |
setclipboard | Writes one value to the Windows system clipboard as text. |
setrbxclipboard | Writes a required string to the Windows clipboard using Roblox Studio clipboard data format. |