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

# getactorthreads

> Возвращает array table Luau threads из actor thread list. Function не принимает arguments. Она читает actor list bounds из ScriptContext, проходит каждый actor state entry, расшифровывает stored global state в Luau thread и включает только entries, которые являются valid threads.

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

  ## Алиасы

  * `getactorstates`

  ## Возвраты

  <ResponseField name={"threads"} type={"{thread}"}>
    Array table actor Luau thread values, которые push как Luau threads.
  </ResponseField>

  ## Пример

  List Luau threads from the ScriptContext actor state list.

  ```lua theme={null}
  for _, thread in ipairs(getactorthreads()) do
      print(thread)
  end
  ```
</div>
