Team Chat/Whisper Chat Bubble Color

I was wondering how I could make it so if a player is speaking is whisper chat, their chat bubble TextColor is a certain color, and if they are speaking in team chat, their chat bubble TextColor is another color. However, the colors would be default if the player is speaking in global chat.

Any tips on how I could do this? I’m not too familiar with the ROBLOX Chat System.


I believe you can look at this? I think you may need to configure around with the CoreScripts a bit

If you’re using the new chat, then setting chat bubbles to specific colors for specific players is not a feature yet, you can only change it for all players at once.

If you’re using the old chat, I have a somewhat digestible tutorial:

Run your game in Studio and use the Explorer to grab the default Chat scripts:


You’re going to want the Client chat scripts specifically, as they are the ones related to creating chat bubbles.

Chat bubbles are created in the BubbleChat script, for example when this:OnPlayerChatMessage is ran.

I haven’t made a system to change the chat color based on what channel they use, but I’m pretty sure in the OnNewMessage.OnClientEvent function, messageData is a table that contains the chat channel they use. You can’t really find a Roblox Developer link to what messageData contains, so you can just print the table yourself and try and go through and pick out what you need, example:

Here’s come code that we use in the CreateChatLineRender function for our game, where we change a chat bubble to black with golden-ish text:

			bubbleText.TextColor3 = Color3.fromRGB(255, 255, 185)
		bubbleText.TextStrokeColor3 = Color3.fromRGB(0,0,0)
		bubbleText.TextStrokeTransparency = 1
		chatBubbleRender.ImageColor3 = Color3.fromRGB(0,0,0)
		chatBubbleRender.ChatBubbleTail.ImageColor3 = Color3.fromRGB(0,0,0)

I hope this helps a little. The old chat system is a bit archaic and hard to work with for stuff like this.

This helps a lot, thank you. However, the old chat doesn’t work too well anymore (cutting off messages, bugs with it), and I currently use the new chat bubble system in my game. I’ll try to experiment with this and see if it can be applied to the new system.