Yuari
Documentation
Docs/Actors/create_comm_channel

create_comm_channel

Creates or resolves an inter-actor communication channel.

Syntax

create_comm_channel(name?: string) -> any

Parameters

ParameterTypeDescription
name?stringThe name used for the lookup or new object.

Returns

TypeDescription
anyThe value produced by the call.

Description

create_comm_channel is part of the Actors library. Actor helpers target Roblox's parallel actor scheduler. Code sent to an actor runs in that actor's isolated Luau context rather than the current script thread.

Each call creates or returns a fresh object or value that you can store and pass to other functions.

The aliases get_comm_channel(name?) resolve to the same implementation.

Example

local channel = create_comm_channel("combat")
print(get_comm_channel("combat") == channel)

Notes

  • Aliases: get_comm_channel(name?).
  • Actor calls run in a separate parallel state; data passed into the actor must be representable in Luau.