-
What do you want to achieve?
so i want to make a custom chat -
What is the issue?
i did the code right but the text service didn’t censored the text .
Code
ChatFirer.OnServerEvent:Connect(function(Player, Content, Category)
if Category == true then
local Success, ErrorMsg = pcall(function()
local Filtered = TextService:FilterStringAsync(Content, Player.UserId)
local Formatted = Filtered:GetChatForUserAsync(Player.UserId)
ChatReceiver:FireAllClients(Formatted, false)
end)
if not Success then
warn("Chat Could Not Process ! Reason - "..ErrorMsg)
end
end
end)