Question about TextChatService

So I was learning about TextChatService and while programming I had this question.

What’s the difference between this

TextChatService.MessageReceived:Connect(function()
	print("Sushi")
end)

and this?

TextChatService.SendingMessage:Connect(function()
	print("Sushi")
end)

Even if I do this I have the same result…

TextChatService.MessageReceived:Connect(function(msg)
	if msg.Text == "Sushi" then
       print("Sushi")
    end
end)
TextChatService.SendingMessage:Connect(function(msg)
	if msg.Text == "Sushi" then
       print("Sushi")
    end
end)

Their names are self explanatory: MessageReceived runs when the game receives the message sent, and SendingMessage runs when the player sends the message.

1 Like