getactorthreads Synchronous
get_actor_threads
Get thread proxies associated with active Actor states. Pass one of these proxies to run_on_thread when you need to run source in its represented state.
Luau
getactorthreads() -> {thread}Parameters
This function takes no arguments.
Returns
{thread}An array of thread values allocated in the caller’s VM and associated with Actor states.
Usage notes
These are association proxies, not coroutines to resume with coroutine.resume. The function accepts no arguments.
Example
Luau
local threads = getactorthreads()
if threads[1] then
print("Actor thread proxy:", typeof(threads[1]))
end