Hello,
I am having an issue where in this game [🏛️ [UPDATE 2!] White House Roleplay - Roblox] every message is pretty much getting tagged so instructors are getting annoyed. We do have a custom chat, but I am unsure why it’s being heavily filtered as I am pretty sure I am using the correct chat filter. I’m getting constant reports about the chat filter and how every message is getting tagged and I am unsure why.
This is the Filter String function:
function Shared.FilterString(str, userId)
local filtered : TextFilterResult
local succ, err = pcall(function()
filtered = srv.textService:FilterStringAsync(str, userId, Enum.TextFilterContext.PublicChat)
end)
if not succ then
return string.rep("#", #str)
end
return filtered:GetNonChatStringForUserAsync(userId)
end
This is how the chat is being determined in the ChatService module:
local filtered
pcall(function()
filtered = Shared.FilterString(msg, userId)
end)
if not filtered then
return
end
return filtered
If anyone has a clue why it’s doing this, I’d heavily and greatly appreciate it!