How do I fix this?

Im trying to make system messages be able to have different colors

The rich text shows up and doesn’t change the color of the system message:
Screenshot 2025-03-09 163241

I’ve tried changing it from rgb to hex and hardcoding the color

Script that sends the announcments:

local TextChatService = game:GetService("TextChatService")

game.ReplicatedStorage.Events.SendSystemAnnouncment.OnClientEvent:Connect(function(sender, msg, color)
	if color then
		TextChatService.TextChannels.RBXSystem:DisplaySystemMessage('<font color="'.. color ..'">['.. sender ..']: ' .. msg .. ' </font>')
	end
end)

I am not using legacy text chat

You have messed up some strings by not closing the string fully

Which strings were not closed fully?
I can’t really see any issues with the strings

i think color doesnt have a hashtag symbol before it.

change '<font color="'.. color ..'">['
to '<font color="#'.. color ..'">['

1 Like

it works for me your original script

I completely missed that lol

Thanks for helping!

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.