Hello, everyone.
I am currently working on my own chat system, but I cannot figure out how to implement a chat filter to it. If anyone could help, it'd be much appreciated.
Here's a small snippet of code from my chat system:
newMessage.Text = plr.Name ..": ".. msg

3 comments
What have you tried doing for the filtering so far? Roblox has a function for filtering strings, but it requires both the sending player and the receiving player. http://wiki.roblox.com/index.php?title=API:Class/Chat/FilterStringAsync
Yeah, check this out. https://www.roblox.com/games/188814899/Custom-Chat-GUI-Example
I've tried using the ROBLOX chat filter, but when I do, it gives me the "Missing 3rd argument" and I only have the player and the message. I'd much rather use a custom chat filter that scans the message for any words that are bad and blocks them.