BindableEvent||doc136728

September 20, 2022

BindableEvent

Events can only be transferred at the same end. If you need to transfer information across ends, please use thePackageHandlers

Brief Introduction

Bindable events are used to launch events and register callback functions. A bindable event can be bound to multiple callback functions. For example, the store system is bound to the client initialization completion event, and the leaderboard system is also bound to the client initialization completion event. When the client initialization completion event is launched, the callback functions of the store system and the leaderboard system will be triggered.

Function

BindHandle Bind(function callback )
Bind a callback function that receives multiple group parameters and returns a binding handle
void Emit(tuple …  )
Launch events. You can pass in multiple group parameters