getactors Synchronous

  • get_actors

List live Actor Instances whose Luau states Kawaii can currently see. This is a starting point for choosing an active Actor before calling run_on_actor.

Syntax
Luau
getactors() -> {Actor}

Parameters

This function takes no arguments.

Returns

{Actor}

An array of live Actors; it can be empty.

Usage notes

Only Actors with an active discoverable state appear. The list can change as the game runs.

Example

Example
Luau
for _, actor in ipairs(getactors()) do
    print(actor:GetFullName())
end
Kawaii documentation