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

# getrunningscripts

> يرجع array table جديدة من unique script Instances مأخوذة من live Lua threads. لا تأخذ function أي arguments. تمشي عبر the live Luau thread list، وتقرأ كل thread node، وتتخطى entries التي لا تحتوي على thread node أو weak thread ref أو LiveLuaRef أو Lua state أو object أو التي تحتوي على expired Script stored reference. لكل thread متبق، تقفل scriptThread->object->Script()، وتزيل التكرار حسب script reference، وتدفع Instance باستخدام Instance cache، وتدرجه في array indexes متتالية تبدأ من 1. لا تفحص function الـ DataModel، ولا تتحقق من ClassName، ولا ترتب result.

<div className="real-function-page">
  ```lua theme={null}
  getrunningscripts(): table
  ```

  ## القيم الراجعة

  <ResponseField name={"scripts"} type={"table"}>
    Array table جديدة من unique script Instance object values المرتبطة بـ live Lua threads.
  </ResponseField>
</div>
