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

> Cria um novo BindableEvent com Instance.new, armazena seu Instance reference no communication channel list sob um numeric channel ID e retorna o ID mais a BindableEvent Instance. O channel ID é calculado a partir de current map size plus one. Se Instance.new("BindableEvent") não deixar um object value na stack, a function lança "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 inserido no communication channel list.
  </ResponseField>

  <ResponseField name={"event"} type={"Instance"}>
    BindableEvent Instance armazenada para o channel e retornada ao caller.
  </ResponseField>

  ## Exemplo

  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>
