> ## 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 عبر pushing 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، ولا يوجد alias مسجل لـ 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>
