I am making a custom chat for my game and I am really confused on text filtering. I have tried it multiple times, but never succeeded. Can someone help me with filtering the text?
If you're trying to make something like an custom Chat or something about 2 Players chatting you should use:
game.Chat:FilterStringAsync(Text, FromPlayer, ToPlayer)
But if you're trying to filter only what the player chatted/wrote then you should use:
game.Chat:FilterStringForBroadcast(Text, FromPlayer) end
Would help to see your script, if you are confused though and want to figure it out yourself the developer wiki has a great page on text filtering: https://developer.roblox.com/articles/Text-and-Chat-Filtering