VINDICTA
Actors · Function Unregistered
Bunni.fun
ChocoSploit
Cryptic
Potassium
Seliware
SirHurt
Solara
Velocity
Volcano
Volt
Wave
Xeno

create_comm_channel

Creates a communication channel for transferring data between actor states.

Unregistered
This function is not registered within sUNC, your executor may/may not have this.
function create_comm_channel(): (number, BindableEvent)

Synopsis

How it works

Creates a named communication channel for cross-Actor message passing. Returns a sender/receiver pair that can be used to send data between parallel Luau contexts:
local send, recv = create_comm_channel("my_channel")
-- In Actor A:
send("hello from A")
-- In Actor B:
local msg = recv()  --> "hello from A"
Messages are serialized across the Actor boundary since parallel Luau contexts have isolated lua_State heaps. Only serializable types (strings, numbers, booleans, tables of same) can be sent.

Usage

Create a channel
local comm_id, event = create_comm_channel()
warn(comm_id, event) "cc">-- <number>, BindableEvent

Returns

number A unique communication channel identifier.
BindableEvent A BindableEvent whose .Event signal receives data from the actor.