> ## Documentation Index
> Fetch the complete documentation index at: https://docsuncv2.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# getactorthreads

```luau theme={null}
getactorthreads(): {thread}
```

Returns a table of all active coroutine threads running inside parallel actor environments.

## Returns

`{thread}` - An array of threads currently executing under actors.

## Example

<CodeGroup>
  ```luau Example 1 theme={null}
  -- Print all actor threads
  for _, t in ipairs(getactorthreads()) do
      print(t)
  end
  ```

  ```luau Example 2 theme={null}
  -- Find if any actor threads are currently suspended
  local suspended = 0
  for _, t in ipairs(getactorthreads()) do
      if coroutine.status(t) == "suspended" then
          suspended = suspended + 1
      end
  end
  print(`Found {suspended} suspended actor threads`)
  ```
</CodeGroup>

<Tip>
  Roblox parallel Luau scripts run on dedicated actor threads. Use this function to inspect their execution state.
</Tip>
