getactors

Gets all active Actors.

Syntax

getactors() -> {Actor}

Returns

TypeDescription
{Actor}Array of active Actors

Description

getactors returns the Actors that are currently active.

Example

local actors = getactors()
print("Total actors:", #actors)

for i, actor in ipairs(actors) do
    print(i, actor:GetFullName())
end

On this page