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

> Tạo một BindableEvent mới bằng Instance.new, lưu Instance reference của nó trong communication channel list dưới numeric channel ID, rồi trả về ID cùng BindableEvent Instance. channel ID được tính từ current map size plus one. Nếu Instance.new("BindableEvent") không để lại object value trên stack, function throw "Failed to make a BindableEvent".

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

  ## Giá trị trả về

  <ResponseField name={"channelId"} type={"integer"}>
    Numeric channel ID được chèn vào communication channel list.
  </ResponseField>

  <ResponseField name={"event"} type={"Instance"}>
    BindableEvent Instance được lưu cho channel và trả về caller.
  </ResponseField>

  ## Ví dụ

  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>
