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

> Retorna uma nova array table de unique script Instances obtidas de live Lua threads. A function nao recebe arguments. Ela percorre the live Luau thread list, le cada thread node e ignora entries sem thread node, sem weak thread ref, sem LiveLuaRef, sem Lua state, sem object ou com expired Script stored reference. Para cada thread restante, bloqueia scriptThread->object->Script(), deduplica pelo script reference, envia a Instance com Instance cache e a insere em array indexes sequenciais comecando em 1. A function nao escaneia o DataModel, nao verifica ClassName e nao ordena o result.

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

  ## Retornos

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