To change the chat color in Roblox, you can use the `TextChatService` and adjust the `TextChatMessageProperties`. Here’s a simple way to do it:
lua
game.TextChatService.OnIncomingMessage = function(message)
local properties = Instance.new(“TextChatMessageProperties”)
if message.TextSource then
if message.TextSource.UserId == 100952125 then
properties.Text = ““..message.Text..’‘
end
end
return properties
end
This script changes the chat color for a specific user, turning their messages red. It’s a quick way to make certain messages stand out.
For bubble chat, you can modify the `OnBubbleAdded` function and set the `TextColor3` property. This lets you change the bubble chat color too:
lua
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
This script adjusts the bubble chat text color for a specific user to dark gray. It’s a simple way to customize your chat appearance.
By using these snippets, you can easily change chat colors in Roblox. This adds a personal touch to your messages and makes them more noticeable. Customize chat colors to make your game more engaging and fun!