> ## Documentation Index
> Fetch the complete documentation index at: https://docs.projectreal.gg/llms.txt
> Use this file to discover all available pages before exploring further.

# create_comm_channel

> Создает новый BindableEvent через Instance.new, сохраняет его Instance reference во communication channel list под numeric channel ID и возвращает ID вместе с BindableEvent Instance. channel ID вычисляется как current map size plus one. Если Instance.new("BindableEvent") не оставляет object value на stack, function выбрасывает "Failed to make a BindableEvent".

<div className="real-function-page">
  ```lua theme={null}
  create_comm_channel(): integer | Instance
  ```

  ## Возвраты

  <ResponseField name={"channelId"} type={"integer"}>
    Numeric channel ID, вставленный во communication channel list.
  </ResponseField>

  <ResponseField name={"event"} type={"Instance"}>
    BindableEvent Instance, сохраненный для channel и возвращенный caller.
  </ResponseField>

  ## Пример

  Create a BindableEvent communication channel and keep the returned channel ID for later lookup.

  ```lua theme={null}
  local channelId, event = create_comm_channel()

  print(channelId)
  print(event)
  ```
</div>
