I am experiencing problems with filtering a custom chat using TextService. I don’t think i need help with it, but I want to be sure that I don’t get terminated if I publish the game and make it private.
Is it okay if the chat is not filtered in a private game?
I prefer to filter chat and don’t mess with it- anything can happen and ROBLOX is very strict with privacy and safety for children- IMO don’t mess with it even though it’s a private game.
Okay thanks.
local FilteredText
local FilteredString
local success, errormessage = pcall(function()
FilteredText = TextService:FilterStringAsync(Message, MessageInfo.Data.SenderId)
end)
if success then
local success2, errormessage2 = pcall(function()
FilteredString = FilteredText:GetChatForUserAsync(MessageInfo.Data.ReceiverId)
end)
if success2 then
DirectMessage:FireClient(game.Players[ReceiverName], Message, Players:GetNameFromUserIdAsync(MessageInfo.Data.SenderId))
print("success")
else
warn(errormessage2)
end
else
warn(errormessage)
end
also could anyone tell me wht is wrong in this script? i dont get any errors in the console.