I’m making a system where when you talk in team chat or whisper, your bubble is a different color, but I can’t seem to find any documentation about detecting when a message is sent using either of these.
Closest i’ve found is TextChatCommand.Triggered() but it doesn’t seem to fire and i don’t think it’s what i’m looking for.
When using /Whisper or /Team, you are put into a new text channel, just check if the current text channel is RBXTeam or RBXWhisper.
if string.find(message.TextChannel.Name, "Team") then
print("Team Message")
elseif string.find(message.TextChannel.Name, "Whisper") then
print("Whisper Message")
end