Filtering user text
Most of Roblox’s user base consists of younger players. Obviously, we do not want them to see any inappropriate text. Therefore, a lot of text has to be filtered in our games. Roblox already does a lot of text filtering for us, such as when someone sends a message in our game. However, sometimes we decide to make a system that involves text sent by users that can be displayed to other users. In those scenarios, we need to do the text filtering ourselves. If we do not do this, our game might get taken down by Roblox as it would break the Roblox Community Standards.
Text filtering is usually considered to be very complicated at first. Therefore, we will slowly walk through each step you have to program to filter messages in our game.
To learn how to filter text, we will be using a Roblox game with a premade user interface. Besides this, a partially made server Script listens to the
ReceivedMessage RemoteEvent that the user interface fires...