Category

Actors

Execution contexts and actor communication.

Category guide

Overview

Use this overview to understand the category before opening a specific function.
  • See what this group of functions is meant to solve.
  • Compare function names and descriptions in one table.
  • Open a function for syntax, arguments, returns, and examples.

Actors

Available functions

10 functions
FunctionDescription
create_comm_channelCreates a new BindableEvent with Instance.new, stores its Instance reference in the communication channel list under a numeric channel ID, and returns the ID plus the BindableEvent Instance.
get_comm_channelReturns the BindableEvent for a communication channel ID, or nil when no channel exists for that ID.
getactorfromthreadReturns the Actor Instance associated with a Luau thread.
getactorsReturns an array table of live Actor Instances resolved from the ScriptContext actor thread list.
getactorthreadsReturns an array table of Luau threads from the actor thread list.
getcurrentactorReturns the Actor Instance associated with the current Luau thread.
getdeletedactorsReturns 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.
isparallelReturns a boolean from the current Luau thread's ScriptContext DataModel.
run_on_actorRuns Luau source on the thread associated with a target Actor Instance.
run_on_threadRuns Luau source on a specific Luau thread.