Chat Filter Sign

I have a sign script that takes the text entered by the player in a GUI and displays it on the sign.

Is it possible to allow players who have chat disabled to still type? Currently, the script only works for players with chat enabled, but I would like to ensure that those without chat can also input text.


local chat = game:GetService("Chat")

script.Parent.Unequipped:Connect(function()
	script.Parent.SignPart.SurfaceGui.TextLabel.Text = ""
end)

script.Parent.UpdateSign.OnServerEvent:Connect(function(player,msg)
	if player.Character:FindFirstChild("Sign") then
		
		local fithered
		local success, errorMessage = pcall(function()
			fithered = chat:FilterStringAsync(msg,player,player)
		end)
		
		script.Parent.SignPart.SurfaceGui.TextLabel.Text = fithered
	end
end)
2 Likes

Inputting text into your GUI has nothing to do with your chat settings. Refer to 5smokin message for how to filter correctly

1 Like

The problem might be because the script cannot filter unless the chat is enabled, so:

I have made a filtering module for uses like this (Signs, Booths, etc)

2 Likes