Open checkparallelOpen createcommchannelOpen getgamestate

Reference

Actors

Find Actors and run code inside their parallel Luau states.

17 functions
FunctionSummary
create_comm_channelcreatecommchannelCreates a communication channel shared between supported game and Actor contexts.
get_comm_channelgetcommchannelLooks up an existing communication channel by ID.
getactorfromthreadNames the Actor that owns the running code.
getactorsget_actorsReturns the Actors currently observed in this game.
getactorstatesget_actor_statesReturns proxies for currently observed Actor states.
getactorthreadsReturns handles for observed Actor-state threads.
getcurrentactorget_current_actorReturns the Actor associated with the current execution context.
getdeletedactorsReturns diagnostic tokens for observed expired Actor contexts.
getgamestateget_game_stateReturns the proxy for the main game’s Luau state.
getluastateget_lua_stateResolves a state proxy from an Actor or script.
isparallelcheckparallelcheck_parallelis_parallelReports whether the current execution context is parallel.
on_actor_addedAn event delivered when a newly observed Actor becomes available.
on_actor_state_createdAn event delivered when a newly observed Actor state becomes available.
run_on_actorrunonactorSubmits Luau source to an eligible Actor’s state.
runonthreadrun_on_threadSubmits source to an eligible observed Actor thread.
state:ExecuteSchedules source through a state proxy.
state:GetActorsLists observed Actors associated with this state proxy.