--Made by Jeysea
local event = game:GetService('ReplicatedStorage'):WaitForChild('Chatted')
local TextService = game:GetService('TextService')
event.OnServerEvent:connect(function(player, nameColor, message, messageColor)
local TextService = game:GetService("TextService")
local filteredTextResult = TextService:FilterStringAsync(player, player.Id)
local filteredText = ""
local success, errorMessage = pcall(function()
filteredTextResult = TextService:FilterStringAsync(message, player.Id)
end)
if not success then
-- Put code here to handle filter failure
end
event:FireAllClients(player, nameColor, message, messageColor)
end)
How do I fix this code? This is getting me on confusion and I really can't find a way to fix this...

2 comments
Wow... Why did you had to write it...? Thank you so much and for the helps... Didn't know someone would help me this much... God bless you man...
Did you have a question? That's why I had to write it. If i'm able to help. I want it to be a good answer.I am a visual learner and I know how I am when I need help. So may as well show people what to do and have them learn from it :). But you're welcome! Plus doing examples like this; I learn too! so it's a win win!