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

> تنشئ BindableEvent جديدة باستخدام Instance.new، وتخزن Instance reference الخاص بها في communication channel list تحت numeric channel ID، ثم تعيد ID و BindableEvent Instance. يتم حساب channel ID من current map size plus one. إذا لم يترك Instance.new("BindableEvent") قيمة object على stack، ترفع function الخطأ "Failed to make a BindableEvent".

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

  ## القيم الراجعة

  <ResponseField name={"channelId"} type={"integer"}>
    Numeric channel ID يتم إدخاله في communication channel list.
  </ResponseField>

  <ResponseField name={"event"} type={"Instance"}>
    BindableEvent Instance المخزنة للchannel والمعادة إلى caller.
  </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>
