chevron_leftchevron_leftchevron_left
    of     2   

WrathOfTheElvhen
#184660011Wednesday, March 02, 2016 11:48 PM GMT

WrathOfTheElvhen: the main difference is that a while loop doesn't always execute, but a repeat loop always will So like, if you want the loop to run at least once, use a repeat loop. Otherwise use a while loop. Although you can really use either one if you want, it's not a big deal.
ThaiStandardSoap
#184660060Wednesday, March 02, 2016 11:49 PM GMT

what's WITH ALL THE HUBBUB SURROUNDING FROZEN YOGURT?
Slydexia
#184660176Wednesday, March 02, 2016 11:51 PM GMT

that's a significant difference if you ask me the gameplay of my project being run on a timer, the repeat loop would definitely cause some issues with it, given the round can end before it can start.
FemaleGuestReturns
#184660664Thursday, March 03, 2016 12:00 AM GMT

did you get the tix from the ot party
WrathOfTheElvhen
#184663063Thursday, March 03, 2016 12:44 AM GMT

@Thaiidk, I'll have to ask my fellow RBXDev members for that answer @Sly Yeah, sometimes it's a big difference, depends on what you're using it for. Other times no difference at all. @Female I got 11 tickets past day tyvm <3
championbuilder
#184683104Thursday, March 03, 2016 12:54 PM GMT

"while 1+1==3 do print("this never runs") end repeat print("this runs once") until 1+1==3" Uhh the while loop wont run because 1+1 is 2, and the repeat loop will crash your game, because 1+1 is 2. It will NOT run once, it will repeat infinitely until the program is closed.
WrathOfTheElvhen
#184703439Thursday, March 03, 2016 10:52 PM GMT

@champion That was my point, lol. The while loop won't run cause it's false. And yeah, I guess the repeat loop will go on forever. Sue me.

chevron_leftchevron_leftchevron_left
    of     2