while true do
local title = game.StarterGui.Start.Title
title=Color3.new(math.random(),math.random(),math.random())
wait(0.5)
end
These not working? How I can make it to random color on gui screen..
while true do
local title = game.StarterGui.Start.Title
title=Color3.new(math.random(),math.random(),math.random())
wait(0.5)
end
These not working? How I can make it to random color on gui screen..
You have two problems.
The first is that you're making your changes in StarterGui, but StarterGui is not what a player sees. It is simply a holder for GUI objects that will later be cloned into your PlayerGui. The PlayerGui is what you see.
The second is that your title variable equals an object, not a property. In this case, you need to use the BackgroundColor3 property.
Just put a local script inside the GUI object with similar code;
while true do
wait(0.5)
script.Parent.BackgroundColor3 = Color3.new(math.random(),math.random(),math.random())
end
This discussion is preserved as it was. New answers, comments, and votes are closed.
1 comment
Oh, it is work now! Thank you so much!