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

> Доступ к средам выполнения и объектам, собирающим мусор.

<div className="real-category-page">
  Доступ к средам выполнения и объектам, собирающим мусор.

  ## Доступные функции

  <CardGroup cols={2}>
    <Card title="filtergc" href="./filtergc">
      Ищет live garbage-collected tables или functions, совпадающие с переданными filters. filterType должен быть "table" или "function". options должен быть 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">
      Возвращает current executor environment table, помещая LUA\_ENVIRONINDEX. Function не принимает arguments, возвращает exactly one value и не имеет registered alias. Call-sites в repository используют returned table для чтения и записи shared executor globals, таких как \_\_siApiCache и 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">
      Возвращает new table, содержащую current LUA\_GLOBALSINDEX values для \_G и shared. Function не принимает arguments, создает fresh table, назначает \_G из LUA\_GLOBALSINDEX.\_G и shared из LUA\_GLOBALSINDEX.shared, и возвращает exactly one value. Она не возвращает full global table, и для getscriptglobals не зарегистрирован alias.
    </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>
