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

> Instance.new로 새 BindableEvent를 만들고, 해당 Instance reference를 numeric channel ID 아래 communication channel list에 저장한 뒤 ID와 BindableEvent Instance를 반환합니다. channel ID는 current map size plus one으로 계산됩니다. Instance.new("BindableEvent")가 stack에 object value를 남기지 않으면 function은 "Failed to make a BindableEvent"를 발생시킵니다.

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

  ## 반환값

  <ResponseField name={"channelId"} type={"integer"}>
    communication channel list에 삽입되는 numeric channel ID입니다.
  </ResponseField>

  <ResponseField name={"event"} type={"Instance"}>
    channel용으로 저장되고 caller에게 반환되는 BindableEvent Instance입니다.
  </ResponseField>

  ## 예제

  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>
