I'm trying to change the color of a GUI while subtracting.
The current "BackgroundColor3" is (255, 255, 255)
I'm trying to minus 1, 255 times from the background color to change the color 3 black. I already tried
This assume that "Gui" is already defined
for i = 1, 255 do
wait(0)
Gui.BackgroundColor3 = Gui.BackgroundColor3 - Color3.new(1, 1, 1)
It doesn't work.
Do I use colorsequence or someething?
I don't understand.

8 comments
What is lerp?
What does it do?
I'm trying to turn that color(255, 255, 255) slowly down to (0,0,0) black. Not just instantly lerp it to black
Lerp returns a certain point towards a goal value, and it's not instant if you do a loop like I showed you.
Please teach me how lerp works. Show me examples
In Gui.BackgroundColor3 = original:lerp(goal,i). Why is " i " there?
Can you explain to me how that script works?
http://wiki.roblox.com/?title=Loops http://wiki.roblox.com/?title=Lerp