Chat filter don't work

I’m building a donation game and I’m trying to make a filter to prevent players from saying cursed words on booths but chat fitlters don’t works.

I tried Chat:FilterStringForBroadcast(text, player) but it don’t works.
I tried TextService:FilterStringAsync(text, player.UserId) but it returns an Instance instead of a string.

What should I do to filter text?

1 Like

Are you testing this in Roblox Studio? Because the chat filter does not work in Studio, you need to be in a live server.

1 Like

I’m testing on studio but I need to know which function works.
I don’t want to get banned because people can put curse words on booths.

You have to do this in-game, Roblox Studio doesn’t have filtering. Just do it in your game.

Test in your game, alone.


Also, why wouldn’t someone just play PLS DONATE?

1 Like

Test it using a sequence of numbers that you know will be censored on the in-game chat. Do not use numbers that have an actual meaning however(for example do not test it using a real phone number).

2 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.