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
| Function | Description |
|---|---|
create_comm_channel | Creates 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_channel | Returns the BindableEvent for a communication channel ID, or nil when no channel exists for that ID. |
getactorfromthread | Returns the Actor Instance associated with a Luau thread. |
getactors | Returns an array table of live Actor Instances resolved from the ScriptContext actor thread list. |
getactorthreads | Returns an array table of Luau threads from the actor thread list. |
getcurrentactor | Returns the Actor Instance associated with the current Luau thread. |
getdeletedactors | Returns 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. |
isparallel | Returns a boolean from the current Luau thread's ScriptContext DataModel. |
run_on_actor | Runs Luau source on the thread associated with a target Actor Instance. |
run_on_thread | Runs Luau source on a specific Luau thread. |