Text filter not working

So i have a sign, that allows you to change the text on it, and its suppose to filter the text before changing the old text on the sign, but it doesn’t work at all. I can say all kinds of inappropriate words, and it wont censor it. I’ve even tested this on a server with a friend, and the chat service didn’t do anything to censor it.

Event.OnServerEvent:Connect(function(player, TextValue)
	Gui:Destroy()
	de = false
	local serviceChat = game:GetService("Chat")
	
	local filteredText = serviceChat:FilterStringForBroadcast(TextValue, player)
	
	TextGui.TextLabel.Text = TextValue
end)

You’ve made a simple mistake, you need to change
TextGui.TextLabel.Text = TextValue

to
TextGui.TextLabel.Text = filteredText

If this fixed it please say so / Mark Solution :slight_smile:

3 Likes

oops, my bad! I knew that something didn’t feel right. Thanks!

1 Like