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

How to make gui change color? (Easy fix) Need it fixed!

So i made this gui, and i was going to make a button change color like its rainbow, but it didnt work pls help!

while true do 
	script.Parent.Parent.Vip.BackgroundColor3 = Color3.new(153,0,153)
wait(2)
    script.Parent.Parent.Vip.BackgroundColor3 = Color3.new(0,255,0)
wait(2) 	 
end

3 comments

0

I'm not sure if it'll work, but you could try using Color3.fromRGB(your color here)

0

Does it print any errors?

0

Can you refrain from putting "Easy" in your titles

1 answer

In this case you need to use Color3.fromRGB()

while true do 
	script.Parent.Parent.Vip.BackgroundColor3 = Color3.fromRGB(153,0,153)
wait(2)
	script.Parent.Parent.Vip.BackgroundColor3 = Color3.fromRGB(0,255,0)
wait(2)      
end

Though if you want to make a real rainbow effect

while true do
	for i=0, 1, 0.01 do
		Parent.Parent.Vip.BackgroundColor3 = Color3.fromHSV(i,1,1)
		wait()
	end
end

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