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

8 functions
FunctionDescription
filtergcSearches live garbage-collected tables or functions that match the supplied filters.
getgcReturns an array table of live Luau garbage-collected objects visible to the API.
getgenvReturns the current executor environment table by pushing LUA_ENVIRONINDEX.
getrenvReturns the Roblox global environment table.
getscriptglobalsReturns a new table containing the current LUA_GLOBALSINDEX values for _G and shared.
gettenvReturns the environment table stored on a Luau thread.
setclipboardWrites one value to the Windows system clipboard as text.
setrbxclipboardWrites a required string to the Windows clipboard using Roblox Studio clipboard data format.