> ## Documentation Index
> Fetch the complete documentation index at: https://docs.projectreal.gg/llms.txt
> Use this file to discover all available pages before exploring further.

# Environment

> Acceso a entornos de ejecución y objetos de recolección de basura.

<div className="real-category-page">
  Acceso a entornos de ejecución y objetos de recolección de basura.

  ## Funciones disponibles

  <CardGroup cols={2}>
    <Card title="filtergc" href="./filtergc">
      Busca tables o functions live garbage-collected que coincidan con los filters dados. filterType debe ser "table" o "function". options debe ser una table.
    </Card>

    <Card title="getgc" href="./getgc">
      Returns an array table of live Luau garbage-collected objects visible to the API. Functions and userdata-like objects are included by default. Tables are included only when includeTables is true. get\_gc\_objects is an alias.
    </Card>

    <Card title="getgenv" href="./getgenv">
      Devuelve la current executor environment table haciendo push de LUA\_ENVIRONINDEX. La function no toma arguments, devuelve exactly one value y no tiene registered alias. Los call-sites del repository usan la returned table para leer y escribir shared executor globals como \_\_siApiCache y saveinstance.
    </Card>

    <Card title="getrenv" href="./getrenv">
      Returns the Roblox global environment table. The function takes no arguments and returns exactly one value.
    </Card>

    <Card title="getscriptglobals" href="./getscriptglobals">
      Devuelve una new table que contiene los current LUA\_GLOBALSINDEX values para \_G y shared. La function no toma arguments, crea una fresh table, asigna \_G desde LUA\_GLOBALSINDEX.\_G y shared desde LUA\_GLOBALSINDEX.shared, y devuelve exactly one value. No devuelve la full global table, y no hay alias registrado para getscriptglobals.
    </Card>

    <Card title="gettenv" href="./gettenv">
      Returns the environment table stored on a Luau thread. getstateenv is an alias.
    </Card>

    <Card title="setclipboard" href="./setclipboard">
      Writes one value to the Windows system clipboard as text. The value is converted to a string. The function returns no status value, whether the clipboard write succeeds or fails. toclipboard is an alias.
    </Card>

    <Card title="setrbxclipboard" href="./setrbxclipboard">
      Writes a required string to the Windows clipboard using Roblox Studio clipboard data format. The function returns no status value, whether the clipboard write succeeds or fails.
    </Card>
  </CardGroup>
</div>
