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)