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

> actor thread list から Luau threads の array table を返します。この function は arguments を取りません。ScriptContext から actor list bounds を読み取り、各 actor state entry を走査し、stored global state を Luau thread に復号し、valid threads である entries だけを含めます。

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

  ## エイリアス

  * `getactorstates`

  ## 戻り値

  <ResponseField name={"threads"} type={"{thread}"}>
    Luau threads として push される actor Luau thread values の array table。
  </ResponseField>

  ## 例

  List Luau threads from the ScriptContext actor state list.

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