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

> Zwraca nowa array table z unique script Instances pobranymi z live Lua threads. Function nie przyjmuje arguments. Przechodzi przez the live Luau thread list, odczytuje kazdy thread node i pomija entries bez thread node, bez weak thread ref, bez LiveLuaRef, bez Lua state, bez object albo z expired Script stored reference. Dla kazdego pozostalego thread blokuje scriptThread->object->Script(), deduplikuje po script reference, wypycha Instance przez Instance cache i wstawia ja do kolejnych array indexes od 1. Function nie skanuje DataModel, nie sprawdza ClassName i nie sortuje result.

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

  ## Zwroty

  <ResponseField name={"scripts"} type={"table"}>
    Nowa array table z unique script Instance object values powiazanymi z live Lua threads.
  </ResponseField>
</div>
