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?
local success, errormessage = pcall(function()
FilteredText = TextService:FilterStringAsync(Message, MessageInfo.Data.SenderId)
if success then
local success2, errormessage2 = pcall(function()
FilteredString = FilteredText:GetChatForUserAsync(MessageInfo.Data.ReceiverId)
if success2 then
DirectMessage:FireClient(game.Players[ReceiverName], Message, Players:GetNameFromUserIdAsync(MessageInfo.Data.SenderId))
also could anyone tell me wht is wrong in this script? i dont get any errors in the console.