How to change chat text colour

Hi!
In my game, when a player purchases an event, the server makes a message in the chat.

I am not sure how I would make the chat a different colour, other than white.

Basically, I am using a remote event from Server Scripts so that they can fire the event to all of the clients to display a chat message in each clients chat window.

Here is the script for each client:

local ChatMessage = game.ReplicatedStorage:WaitForChild("ChatMessage")


local function MessageFunction(playerWhoFired, message)
	game.StarterGui:SetCore("ChatMakeSystemMessage", {Text = "[SERVER] "..playerWhoFired.Name.." "..message})
	
	
end

ChatMessage.OnClientEvent:Connect(MessageFunction)

This works great, I just want to know how to change the colour of the message.

Thanks,
Harry.

Use this format:

game.StarterGui:SetCore( "ChatMakeSystemMessage",  { Text = "[SYSTEM] Your Text Here", Color = Color3.fromRGB( 255,0,0 ), Font = Enum.Font.Arial, FontSize = Enum.FontSize.Size24 } )

Just add the additional parameters. Respectively, color, font, fontsize.

There are additional parameters for this.

New Code:

local ChatMessage = game.ReplicatedStorage:WaitForChild("ChatMessage")


local function MessageFunction(playerWhoFired, message)
	game.StarterGui:SetCore("ChatMakeSystemMessage", {Text = "[SERVER] "..playerWhoFired.Name.." "..message, Color = Color3.fromRGB(139, 0, 0)})
end

ChatMessage.OnClientEvent:Connect(MessageFunction)

   [1]