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)
Filtering works in live servers yes, not in Studio. You’re welcome to perform a search for threads on the DevForum to see developers encountering similar such problems to be told and find that their filter code works as expected when tested in a live session.