Using RemoteEvents and RemoteFunctions
In the previous sections of this chapter, we learned a lot about the client and the server. We also mentioned that sometimes the client and the server have to work together to achieve something. For instance, if a user wants to join a team, they have to use a Team Changer. In this Team Changer, they have to click on the button for the team they want to join.
The code for this team button is programmed on the client. However, the actual team change happens on the server. After all, we want the team change to be visible for all the players, not just one.
In the upcoming sections, we will make this system into reality. We will be using both the client and the server. We will learn how to use RemoteEvents and RemoteFunctions to communicate between the client and the server.