Change chat color of player only in chat window

I am trying to implement the TextChatService in my game instead of relying on the old Chat service. With the old system I changed the colors of the chat of someone in the chat window, but not in their bubble chat. Now I tried a simple script where it changes the color of my chat in the chat window. But a side effect is that it also changes the color in the bubble chat, while i want that to still be black as normal. Is there a way to do this?
Currently using this code

game.TextChatService.OnIncomingMessage = function(message)
	local properties = Instance.new("TextChatMessageProperties")
	
	if message.TextSource then
		if message.TextSource.UserId == 100952125 then
			properties.Text = "<font color='rgb(255, 0,0)'>"..message.Text..'</font>'
		end
	end

	return properties
end

Which results in the bubble chat and chat window text being red, but i want the bubble chat to be black

1 Like

?

Read these sites for help.
Customizing In-Experience Text Chat | Documentation - Roblox Creator Hub
Bubble Chat is now integrated into TextChatService! - Updates / Announcements - Developer Forum | Roblox
ChatWindowConfiguration | Documentation - Roblox Creator Hub

I will look into it. Perhaps i accidentally didn’t read something

currently trying both onbubbleadded and onincomingmessage to change the color of the bubble back to normal.

game.TextChatService.OnIncomingMessage = function(message)
	local properties = Instance.new("TextChatMessageProperties")
	if message.TextSource then
		if message.TextSource.UserId == 100952125 then
			properties.Text = "<font color='rgb(255, 240, 178)'>"..message.Text..'</font>'
		end
	end

	return properties
end

game.TextChatService.OnBubbleAdded = function(message)
	local properties = Instance.new('BubbleChatMessageProperties')
	if message.TextSource then
		if message.TextSource.UserId == 100952125 then
			properties.TextColor3 = Color3.fromRGB(57, 59, 61)
		end
	end

	return properties
end

However the bubbletext color is still not the color i want it to be

EDIT:
I think its because the text was changed into a different color with the richtext. Is there a way to change it back for the bubblechat?