Message script Error

I’m not really answering your question here, but I do have something else to say: don’t do this. Custom filtering, even by means of circumventing tags by replacing words, is

  • Not scalable: You need to be able to account for the word itself, context and any other abomination of characters that could potentially allow a user to say a word they aren’t permitted to. This also means replacing inappropriate words with a corresponding good word, unless you feel like butchering a sentence altogether.

  • Not allowed: Custom filtering solutions are not allowed. Filtering a string via Roblox provided services (ChatService and TextService) do more than just filtering. Filter methods also collect logs so that when an in-game report is sent, moderators are able to review text logs of messages sent and act appropriately.

  • Improperly done: Switching inappropriate words with decent words isn’t going to do anything. The chat system already listens to chatted in a different mannerism. You’re collecting a modified chat that is localised to the function you’re connecting.

So what I’m trying to tell you is not to fix this at all and scrap it entirely. Use the proper services to filter text if you need to. You can then replace tags with something like [CENSORED] or whatever.

4 Likes