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

> Tworzy nowy BindableEvent przez Instance.new, zapisuje jego Instance reference w communication channel list pod numeric channel ID i zwraca ID oraz BindableEvent Instance. channel ID jest obliczane jako current map size plus one. Jeśli Instance.new("BindableEvent") nie zostawi object value na stack, function rzuca "Failed to make a BindableEvent".

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

  ## Zwroty

  <ResponseField name={"channelId"} type={"integer"}>
    Numeric channel ID wstawione do communication channel list.
  </ResponseField>

  <ResponseField name={"event"} type={"Instance"}>
    BindableEvent Instance zapisane dla channel i zwrócone do caller.
  </ResponseField>

  ## Przykład

  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>
