Syntax
getdeletedactors(): tableReturns
| Name | Type | Description |
|---|---|---|
threads | table | Array table containing Luau thread values for actor entries whose Actor weak reference is expired. |
Description
Returns an array table of Luau threads from the actor list whose thread data has a Actor reference, reference count is greater than 0, and the associated Actor is an expired weak reference. The function takes no arguments. It does not return Actor Instance values.
Call it without parameters. The function reads the needed context from the current runtime state.
It returns threads (table). Use the returns table to separate successful values from nil results and recoverable errors.
Example
List actor threads whose Actor weak reference is expired.
local deletedActorThreads = getdeletedactors()
for _, thread in ipairs(deletedActorThreads) do
print(thread)
end