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
filtergcFilters garbage collector objects by type and matching options.
getgcReturns objects currently tracked by the Luau garbage collector.
getgenvReturns the global executor environment table.
getrenvReturns the Roblox environment table.
getscriptglobalsReturns global values visible to scripts in the current context.
gettenvReturns the environment table associated with a thread.
setclipboardCopies text to the system clipboard.
setrbxclipboardCopies text to the Roblox clipboard path when supported.