|
| 22 Feb 2017 02:36 AM |
So basic I have a light which is in rainbow order, when one of the lights gets a certain transparency, then the next one goes.
Here's a example of one of the scripts
script.parent.Transparency = 0
if game.Workspace.h.pick2.Transparency < 0.99 then for i = 0, 1, 0.01 do script.Parent.Transparency = i wait(.1) end end
Why isn't it working? The first light just has this script btw :
for i = 0, 1, 0.01 do script.Parent.Transparency = i wait(.1) end
|
|
|
| Report Abuse |
|
|
Vaqxus
|
  |
| Joined: 18 Dec 2016 |
| Total Posts: 1087 |
|
|
| 22 Feb 2017 03:19 AM |
| this is true 24/7... Workspace.h.pick2.Transparency < 0.99 |
|
|
| Report Abuse |
|
|
|
| 24 Feb 2017 06:55 PM |
Ok got it. So how do I fix it?
|
|
|
| Report Abuse |
|
|
|
| 24 Feb 2017 07:00 PM |
| in a script: local lights = ##################################################################### --replace with lights of rainbow colors for i=1, #lights do for i=0, 1, 0.01 do lights[i].Transparency = i wait() end end |
|
|
| Report Abuse |
|
|
|
| 24 Feb 2017 07:01 PM |
hashtags are a table of lights
{red_light,orange_light,yellow_light}
etc.
|
|
|
| Report Abuse |
|
|