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

> Membuat BindableEvent baru dengan Instance.new, menyimpan Instance reference-nya di communication channel list dengan numeric channel ID, lalu mengembalikan ID dan BindableEvent Instance. Channel ID dihitung dari current map size plus one. Jika Instance.new("BindableEvent") tidak meninggalkan object value di stack, function melempar "Failed to make a BindableEvent".

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

  ## Return

  <ResponseField name={"channelId"} type={"integer"}>
    Numeric channel ID yang dimasukkan ke communication channel list.
  </ResponseField>

  <ResponseField name={"event"} type={"Instance"}>
    BindableEvent Instance yang disimpan untuk channel dan dikembalikan ke caller.
  </ResponseField>

  ## Contoh

  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>
