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

# getscripts

> يعيد قيم script object الموجودة حاليا في Instance cache. لا تأخذ function أي arguments. تمر عبر cache المخزنة تحت مفتاح Instance cache lightobject وتفحص فقط entries التي تكون قيمتها object. تقرأ حقل ClassName لكل قيمة باستخدام optional string handling. يتم تضمين LocalScript و ModuleScript. يتم تضمين Script فقط عندما تكون قيمة RunContext offset مساوية لـ CLIENT أو PLUGIN. يتم تخطي قيم ClassName الأخرى، و entries بدون string ClassName، و CoreScript. النتيجة هي Luau table متسلسلة. لا تجتاز function الـ DataModel ولا تضمن sorted order.

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

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

  <ResponseField name={"scripts"} type={"{ Instance }"}>
    Sequential table تحتوي على cached LocalScript و ModuleScript و Script object المؤهلة من Instance cache.
  </ResponseField>
</div>
