seliso
|
  |
| Joined: 30 Jan 2011 |
| Total Posts: 6443 |
|
|
| 12 Jul 2014 11:07 PM |
sp = script.Parent
local music = sp.music local frame = sp.one local dev = sp.dev local firefly = sp.firefly local studio = sp.studio
repeat dev.TextTransparency=dev.TextTransparency-0.1 firefly.TextTransparency=firefly.TextTransparency-0.1 studio.TextTransparency=studio.TextTransparency-0.1 wait(.2) until studio.TextTransparency==0
wait(4) print("hello")
repeat print("2nd stage onward") dev.TextTransparency=dev.TextTransparency+0.1 firefly.TextTransparency=firefly.TextTransparency+0.1 studio.TextTransparency=studio.TextTransparency+0.1 wait(.2) until studio.TextTransparency==1
The problem with is is once it finishes the first repeat until loop it never prints hello or doesn't go on to the 2nd stage.
There are no errors in the output I don't understand what is going on. |
|
|
| Report Abuse |
|
|
seliso
|
  |
| Joined: 30 Jan 2011 |
| Total Posts: 6443 |
|
| |
|
|
| 12 Jul 2014 11:22 PM |
Sometimes lua makes weird rounding errors.
try: until studio.TextTransparency<=0
Alt. of Jetta765214 |
|
|
| Report Abuse |
|
|