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

> Returns an array table of Luau threads from the actor thread list. The function takes no arguments. It reads the actor list bounds from ScriptContext, walks each actor state entry, decrypts the stored global state into a Luau thread, and includes only entries that are valid threads.

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

  ## Aliases

  * `getactorstates`

  ## Returns

  <ResponseField name={"threads"} type={"{thread}"}>
    Array table of actor Luau thread values pushed as Luau threads.
  </ResponseField>

  ## Example

  List Luau threads from the ScriptContext actor state list.

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