Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do I use text filtering?

Asked by
1GlF 42
5 years ago

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?

2 answers

Log in to vote
1
Answered by
SurfedZ 36
5 years ago
Edited 5 years ago

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
Ad
Log in to vote
0
Answered by 5 years ago

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

Answer this question