Skip to content
Actors & channelsOverviewNew · 0.744

getactorthreads

Provides an inventory of actor-associated threads.

Details#

Returns available threads for the supplied Actor only when they can be represented in the current VM. With no Actor, or without an accessible matching thread, returns an empty table.

Examples#

Example

Luau
local actor = Instance.new("Actor")
print(#getactorthreads(actor)) -- 0 for an Actor without a running VM
actor:Destroy()