|
| 03 Apr 2013 07:05 PM |
I want a Gui to gradually grow from black to light grey in color.
Is there a way I can write a script to loop the Gui getting lighter until the designated color?
I just cant get it.. Im sure its simple.. But I just cant get it..
|
|
|
| Report Abuse |
|
|
| |
|
|
| 03 Apr 2013 07:25 PM |
| Post what you have, and I will fix it. |
|
|
| Report Abuse |
|
|
|
| 03 Apr 2013 07:50 PM |
I dont know.. This is my attempt.
for i = 1, until GUI.BackGroundColor3 = (255/255,255/255,255/255) do --until its white GUI.BackgroundColor3 = GUI.BackgroundColor3 * Color3.new(1,1,1) --Make lighter wait(.1) --Time until color changes again end |
|
|
| Report Abuse |
|
|
| |
|
|
| 03 Apr 2013 08:46 PM |
repeat until and math.random are friends.
~One must risk everything to find the truth. Even if the truth isn't what you want it to be, it is better than living a lie.~ |
|
|
| Report Abuse |
|
|
|
| 03 Apr 2013 08:48 PM |
Could you evaluate more on that?
|
|
|
| Report Abuse |
|
|
nate890
|
  |
| Joined: 22 Nov 2008 |
| Total Posts: 21686 |
|
|
| 03 Apr 2013 08:54 PM |
for i = 255, 0, -1 do gui.BackgroundColor3 = Color3.new(i, i, i) wait() end
|
|
|
| Report Abuse |
|
|
|
| 03 Apr 2013 09:01 PM |
Thanks!
Could you explain that? So I can better understand it? |
|
|
| Report Abuse |
|
|
MrChubbs
|
  |
| Joined: 14 Oct 2010 |
| Total Posts: 4969 |
|
|
| 03 Apr 2013 09:02 PM |
| It is a for loop, i equals 255 to 1 with a step of -1 so I startes at 255 and changes by -1 each time it goes through the loop. |
|
|
| Report Abuse |
|
|