Understanding the client and server
In the previous chapters, we have repeatedly worked with Scripts and not with LocalScripts. What is the difference between the two and when do you use them? In this section, we will learn the answers to these questions. In addition, we will also learn what clients and servers are. On top of that, we will also look into the effect that LocalScripts have on the rest of the game. Finally, we will see how the changes made in LocalScripts do not replicate on the server.
Once we know this, we will learn how to communicate between the server and the client using RemoteEvents and RemoteFunctions. Because exploiters will try to gain access to the server, we will learn how to secure these RemoteEvents and RemoteFunctions. Besides this, we will learn some additional security tactics we can use to increase the security of our game. Finally, we will learn how to filter text that comes from users.
As previously mentioned, we have...