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

> Crea un nuevo BindableEvent con Instance.new, guarda su Instance reference en el communication channel list bajo un numeric channel ID y devuelve el ID más la BindableEvent Instance. El channel ID se calcula desde current map size plus one. Si Instance.new("BindableEvent") no deja un object value en el stack, la function lanza "Failed to make a BindableEvent".

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

  ## Retornos

  <ResponseField name={"channelId"} type={"integer"}>
    Numeric channel ID insertado en el communication channel list.
  </ResponseField>

  <ResponseField name={"event"} type={"Instance"}>
    BindableEvent Instance guardada para el channel y devuelta al caller.
  </ResponseField>

  ## Ejemplo

  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>
