I have a notepad containing everything I want to learn about scripting so I can expand my scripting knowledge slowly but surely.
I learned about Remote Events and how I can use them to fire events, but I haven’t really learned about Bindable Events, and Im a bit confused on how they work and what’s the difference between them and Remotes.
I also want to know, in what cases should I use these “difference” events, and why.
BindableEvents are used to communicate with Scripts of the same type as the one called.
For example, if I fire a RemoteEvent from the Client, who receives the Call is the Server, if I do this with the Server, the Client specified who receives the Call is the Client
With the BindableEvent, if I call through the Client just another script of the same type as the one that gave “Fire”, which in this case is the Client, it can receive the Call, if I give Fire through the Client, the Client receives it, if I fire through the server only who receives is the Server.
Better example: Lines with X is why they can’t communicate.
BindableEvent
Client -----X---- Server
Client ----------- Client
Server -----X---- Client
Server ----------- Server Remote Event
Client --------- Server
Client ------X----- Client
Server --------- Client
Server ------X---- Server
RemoteEvent is almost the same thing, you pass parameters and it executes, but remember the Rule, RemoteEvent is of different types and BindableEvent are of equal types only.