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

> Gibt eine array table von Luau threads aus der actor thread list zurück. Die function nimmt keine arguments. Sie liest die actor list bounds aus ScriptContext, läuft durch jeden actor state entry, entschlüsselt den stored global state zu einem Luau thread und nimmt nur entries auf, die valid threads sind.

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

  ## Aliase

  * `getactorstates`

  ## Rückgaben

  <ResponseField name={"threads"} type={"{thread}"}>
    Array table von actor Luau thread values, die als Luau threads gepusht werden.
  </ResponseField>

  ## Beispiel

  List Luau threads from the ScriptContext actor state list.

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