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

> Zwraca array table Luau threads z actor thread list. Function nie przyjmuje arguments. Odczytuje actor list bounds z ScriptContext, przechodzi przez każdy actor state entry, odszyfrowuje stored global state do Luau thread i uwzględnia tylko entries będące valid threads.

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

  ## Aliasy

  * `getactorstates`

  ## Zwroty

  <ResponseField name={"threads"} type={"{thread}"}>
    Array table actor Luau thread values wypychanych jako Luau threads.
  </ResponseField>

  ## Przykład

  List Luau threads from the ScriptContext actor state list.

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