> ## 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

> Acesso a ambientes de tempo de execução e objetos coletados como lixo.

<div className="real-category-page">
  Acesso a ambientes de tempo de execução e objetos coletados como lixo.

  ## Funções disponíveis

  <CardGroup cols={2}>
    <Card title="filtergc" href="./filtergc">
      Procura tables ou functions live garbage-collected que correspondem aos filters fornecidos. filterType deve ser "table" ou "function". options deve ser uma 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">
      Retorna a current executor environment table fazendo push de LUA\_ENVIRONINDEX. A function nao recebe arguments, retorna exactly one value e nao tem registered alias. Call-sites no repository usam a returned table para ler e escrever shared executor globals como \_\_siApiCache e 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">
      Retorna uma new table contendo os current LUA\_GLOBALSINDEX values para \_G e shared. A function nao recebe arguments, cria uma fresh table, atribui \_G a partir de LUA\_GLOBALSINDEX.\_G e shared a partir de LUA\_GLOBALSINDEX.shared, e retorna exactly one value. Ela nao retorna a full global table, e nenhum alias e 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>
