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

> Devuelve una nueva array table de unique script Instances tomadas de live Lua threads. La function no recibe arguments. Recorre the live Luau thread list, lee cada thread node y omite entries sin thread node, sin weak thread ref, sin LiveLuaRef, sin Lua state, sin object o con expired Script stored reference. Para cada thread restante, bloquea scriptThread->object->Script(), deduplica por script reference, empuja la Instance con Instance cache y la inserta en array indexes secuenciales desde 1. La function no escanea el DataModel, no comprueba ClassName y no ordena el result.

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

  ## Retornos

  <ResponseField name={"scripts"} type={"table"}>
    Nueva array table de unique script Instance object values asociados con live Lua threads.
  </ResponseField>
</div>
