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

> Trả về array table gồm Luau threads từ actor thread list. Function không nhận arguments. Nó đọc actor list bounds từ ScriptContext, đi qua từng actor state entry, decrypt stored global state thành Luau thread và chỉ bao gồm entries là valid threads.

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

  ## Alias

  * `getactorstates`

  ## Giá trị trả về

  <ResponseField name={"threads"} type={"{thread}"}>
    Array table gồm actor Luau thread values được push dưới dạng Luau threads.
  </ResponseField>

  ## Ví dụ

  List Luau threads from the ScriptContext actor state list.

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