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

> Truy cập vào môi trường thời gian chạy và các đối tượng được thu thập rác.

<div className="real-category-page">
  Truy cập vào môi trường thời gian chạy và các đối tượng được thu thập rác.

  ## Hàm có sẵn

  <CardGroup cols={2}>
    <Card title="filtergc" href="./filtergc">
      Tìm live garbage-collected tables hoặc functions khớp với filters đã cung cấp. filterType phải là "table" hoặc "function". options phải là 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">
      Tra ve current executor environment table bang cach pushing LUA\_ENVIRONINDEX. Function khong nhan arguments, tra ve exactly one value, va khong co registered alias. Call-sites trong repository dung returned table de doc va ghi shared executor globals nhu \_\_siApiCache va 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">
      Tra ve new table chua current LUA\_GLOBALSINDEX values cho \_G va shared. Function khong nhan arguments, tao fresh table, gan \_G tu LUA\_GLOBALSINDEX.\_G va shared tu LUA\_GLOBALSINDEX.shared, va tra ve exactly one value. No khong tra ve full global table, va khong co alias duoc dang ky cho 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>
