Not sure what the problem with this script is but its not working

local function chat(message)
	game.StarterGui:SetCore("ChatMakeSystemMessage", {Text = message, Colour = Colour3.FromRgb(255, 255, 255), Font = Enum.Font.SourceSansBold})
end

local messages = {"Test"}

while true do
	wait(5)
	chat(messages[math.random(1, #messages)])
end

4 comments

0

Remove the "u" in the word "Colour". Color = Color3.fromRGB()

0

Make sure it is a localscript

0

hmmm dosent seem to be working but it fixed a error

0

fromRGB instead of FromRgb?