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

> Mengembalikan array table berisi Luau threads dari actor thread list. Function tidak menerima arguments. Function membaca actor list bounds dari ScriptContext, menelusuri setiap actor state entry, mendekripsi stored global state menjadi Luau thread, dan hanya menyertakan entries yang valid threads.

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

  ## Alias

  * `getactorstates`

  ## Return

  <ResponseField name={"threads"} type={"{thread}"}>
    Array table berisi actor Luau thread values yang di-push sebagai Luau threads.
  </ResponseField>

  ## Contoh

  List Luau threads from the ScriptContext actor state list.

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