|
| 29 Apr 2014 06:27 PM |
this may sound like a very basic question but I am making a script that tweens a GUI's size while simultaneously spinning it. I have started it with:
while script.Parent.Parent.Size > Udim2.new(0,0,0,0) --stuff end script.Parent.Parent:TweenSize(UDim2.new(0,0,0,0))
I was wondering if it would work because if I'm not mistaken, the loop will continuously run without end because it never got to the tweening. |
|
|
| Report Abuse |
|
|
|
| 29 Apr 2014 06:28 PM |
| excuse me for my scripting mistake, I meant to put a "do" on the end of that while loop :P |
|
|
| Report Abuse |
|
|
|
| 29 Apr 2014 06:30 PM |
| I thought you were trying to tween it too |
|
|
| Report Abuse |
|
|
| |
|
|
| 29 Apr 2014 06:33 PM |
| the stuff that goes inside the while loop is going to make the gui spin until its size is zero. |
|
|
| Report Abuse |
|
|
L0cky2013
|
  |
| Joined: 30 Jul 2012 |
| Total Posts: 1446 |
|
|
| 29 Apr 2014 06:41 PM |
You need to compare each:
while script.Parent.Parent.Size.X.Scale > 3 and blah do
etc.. |
|
|
| Report Abuse |
|
|