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