Exercise 4.1: Securing your game
In this exercise, we will be making a private message system based on all the knowledge we learned throughout this chapter. We need to know how the client and the server work for this exercise. We also need to know how to communicate between them. Besides this, we need to understand how to protect our RemoteEvents by using server checks. Finally, we need to use our knowledge of text filtering to ensure that private messages get filtered. A GUI is provided with a bit of essential code. However, a lot still has to be done in the LocalScript. Besides that, we need to completely write the server Script ourselves.
You can find the complete and example answer versions of this exercise on the GitHub page here:
Exercise:
In the PrivateMessages LocalScript, inside of the PrivateMessages ScreenGui, complete the following exercises:
- At the bottom of the LocalScript, listen to the
.MouseButton1Down
event on thesendMessageButton
and start the...