Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

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

Asked by 5 years ago

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

0
I'm not sure if it'll work, but you could try using Color3.fromRGB(your color here) Theroofypidgeot 21 — 5y
0
Does it print any errors? Knineteen19 307 — 5y
0
Can you refrain from putting "Easy" in your titles User#19524 175 — 5y

1 answer

Log in to vote
0
Answered by
Kullaske 111
5 years ago
Edited 5 years ago

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
Ad

Answer this question