What is the best way to check a request message from a player and make a filter if it is sent or not?
I tried to check the TextChatService documentation, but I didn’t understand (I don’t speak mainly English and Google apart from not being able to translate the page translates it badly and the translation doesn’t make sense) and even less if there are no code examples.
It would be very helpful if someone could help me! ty
local defaultChannel = game:GetService("TextChatService").RBXGeneral
defaultChannel.ShouldDeliverCallback = function(chatMessage, textSource)
local DontSendMsg = chatMessage.Text == "if this is the text, don't send"
return DontSendMsg
end