Basically, I’m making an announcement system for a game I’m working on.
Since I don’t want my game taken down I am trying to put a filtering system in place.
The player types their input/text into the text box and then clicks a textbutton, this then functions a local script which fires a remote event to the script with all of it’s data (the text that the user has inputed)
Then it goes through this script and should filter it and print it but it doesn’t seem to filter. This is my first time doing things with filtering chat so I’m a little confused. I have also read over the guides found on the creator page.
game.ReplicatedStorage.AnnouncementText.OnServerEvent:Connect(function(plr, text)
local textinstance = TextService:FilterStringAsync(text,plr.UserId)
local filtered = textinstance:GetNonChatStringForBroadcastAsync()
print(filtered)
end)