generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: while loop

Previous Thread :: Next Thread 
froggodude is not online. froggodude
Joined: 22 Sep 2012
Total Posts: 1638
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
froggodude is not online. froggodude
Joined: 22 Sep 2012
Total Posts: 1638
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
JimmyChance is not online. JimmyChance
Joined: 01 Nov 2009
Total Posts: 3681
29 Apr 2014 06:30 PM
I thought you were trying to tween it too
Report Abuse
JimmyChance is not online. JimmyChance
Joined: 01 Nov 2009
Total Posts: 3681
29 Apr 2014 06:30 PM
Loop tween*
Report Abuse
froggodude is not online. froggodude
Joined: 22 Sep 2012
Total Posts: 1638
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 is not online. 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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image