6dawg34
|
  |
| Joined: 31 Aug 2011 |
| Total Posts: 305 |
|
|
| 01 Jan 2013 09:07 PM |
It just keeps switching back and forth like it repetes. function onClicked() tran = script.Parent.Parent.Blocks:GetChildren() tran2 = script.Parent.Parent.Blocks2:GetChildren() val = script.Parent.Value1 for i = 1, #tran do for q = 1, #tran2 do for e = 1,0.5,-.1 do for d = 0.5,1,.1 do if val.Value == 1 then tran2[q].Transparency = e wait(.1) tran[i].Transparency = d wait(.1) val.Value = 2 end if val.Value == 2 then tran2[q].Transparency = d wait(.1) tran[i].Transparency = e wait(.1) val.Value = 1 end end end end end end script.Parent.ClickDetector.MouseClick:connect(onClicked) |
|
|
| Report Abuse |
|
6dawg34
|
  |
| Joined: 31 Aug 2011 |
| Total Posts: 305 |
|
| |