> ## 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

> Crée un nouveau BindableEvent avec Instance.new, stocke son Instance reference dans l'communication channel list sous un numeric channel ID, puis renvoie l'ID plus la BindableEvent Instance. Le channel ID est calculé depuis current map size plus one. Si Instance.new("BindableEvent") ne laisse pas de object value sur la stack, la function lance "Failed to make a BindableEvent".

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

  ## Retours

  <ResponseField name={"channelId"} type={"integer"}>
    Numeric channel ID inséré dans l'communication channel list.
  </ResponseField>

  <ResponseField name={"event"} type={"Instance"}>
    BindableEvent Instance stockée pour le channel et renvoyée au caller.
  </ResponseField>

  ## Exemple

  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>
