getdeletedactors Synchronous

  • get_deleted_actors

List live thread references whose associated Actor owner has been deleted. This is a diagnostic view of leftover Actor execution state, useful when checking whether old threads are still retained.

Syntax
Luau
getdeletedactors() -> {thread}

Parameters

This function takes no arguments.

Returns

{thread}

An array of thread values, including caller-VM proxies for threads found in another Actor state.

Usage notes

These are thread references, not deleted Actor Instances. The function accepts no arguments.

Example

Example
Luau
local deletedThreads = getdeletedactors()
print("Retained Actor threads:", #deletedThreads)
if deletedThreads[1] then print(typeof(deletedThreads[1])) end
Kawaii documentation