How could i change this chat message color?

Hi everyone,

I’m trying to figure out on how i could make my automatic message script send messages in a other color than white.

This is my current script:

local function chat(message)

game.StarterGui:SetCore("ChatMakeSystemMessage", {Text = message})

end

local messages = {

"[Server]: If you are reading this have an awesome day!",

"[Server]: Please like and favorite for more updates!",

}

while true do

wait(300)

chat(messages[math.random(1, #messages)])

end
1 Like
game.StarterGui:SetCore( "ChatMakeSystemMessage",  
{ Text = "Test text",
 Color = Color3.new( 1,1,1 ), 
Font = Enum.Font.Arial, FontSize = Enum.FontSize.Size24 
} )
2 Likes

This works! Thank you very much!

2 Likes