Filtering text not working

I need my script to filter the text given (this is not for a chat system, it’s for a name system)

The issue is that the script will print the original text no matter what, basically, it doesn’t filter the text

I was looking on the developer hub and nothing else has worked (literally, nothing)

local ts = game:GetService("TextService")
local text = "BADWORD"
local filteredtext = ts:FilterStringAsync(text, game.Players.C00Ql.UserId):GetNonChatStringForBroadcastAsync()

the filter is disabled in studio, have you tried testing your game out on the client?
(notice how you can playtest in studio and say whatever you want)

1 Like