Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Random color Script Not working?

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..

1 answer

✓ Accepted answer

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

1 comment

0

Oh, it is work now! Thank you so much!

This discussion is preserved as it was. New answers, comments, and votes are closed.