> ## 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">
      指定した filters に一致する live garbage-collected tables または functions を検索します。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">
      LUA\_ENVIRONINDEX を push して current executor environment table を返します。この function は arguments を取りません。exactly one value を返し、registered alias はありません。repository の call-sites は returned table を使って \_\_siApiCache や saveinstance などの shared executor globals を読み書きします。
    </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">
      \_G と shared の current LUA\_GLOBALSINDEX values を含む new table を返します。この 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>
