ReferenceActors

create_comm_channel

Creates a communication channel shared between supported game and Actor contexts.

Syntax

create_comm_channel() -> (number, BindableEvent)

Also available as

createcommchannel

Returns

TypeDescription
numberChannel ID.
BindableEventChannel event object.

Description

The numeric ID lets another context obtain a reference to the same BindableEvent with get_comm_channel. Connect to its Event and send values with Fire. Channels belong to the current game session; IDs must not be persisted for reuse after reconnecting.

Example

local id, channel = create_comm_channel()
channel.Event:Connect(function(value) print(value) end)
local same = get_comm_channel(id)
same:Fire("hello")

These are Game executor contracts. Check build requirements and session lifetimes before using them.