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 a == 1 do question

Previous Thread :: Next Thread 
Kirbykid02 is not online. Kirbykid02
Joined: 18 May 2009
Total Posts: 2671
09 Jul 2011 10:43 PM
function startgame()
while a == 1 do
functionn()
functin()
end
end

--So will the function end if a = 0?
Report Abuse
Kirbykid02 is not online. Kirbykid02
Joined: 18 May 2009
Total Posts: 2671
09 Jul 2011 10:46 PM
Bump..
Report Abuse
cool12309 is not online. cool12309
Joined: 21 Sep 2008
Total Posts: 1442
09 Jul 2011 10:47 PM
No need to bump 3 minutes after the OP...

Plus, yes. But, as soon as a == 1, it will stop running the scripts below it(unless it's already in a loop) and run the while statement.

I think.
Report Abuse
AgentFirefox is not online. AgentFirefox
Top 100 Poster
Joined: 20 Jun 2008
Total Posts: 22404
09 Jul 2011 10:48 PM
Your while loop will stop looping. The functionn and functin functions will still run if a changes to 0 before the script reaches the 'while a==1 do' line.
Report Abuse
Kirbykid02 is not online. Kirbykid02
Joined: 18 May 2009
Total Posts: 2671
09 Jul 2011 10:49 PM
So how do I reloop (if thats even a word) the while a == 1 after a = 0?
Report Abuse
AgentFirefox is not online. AgentFirefox
Top 100 Poster
Joined: 20 Jun 2008
Total Posts: 22404
09 Jul 2011 10:50 PM
Just add a 'while wait() do' line above your 'while a == 1 do' line. And of course the corresponding end.
Report Abuse
Kirbykid02 is not online. Kirbykid02
Joined: 18 May 2009
Total Posts: 2671
09 Jul 2011 10:52 PM
Can you answer my other thread now? About the only 1 person seeing a billboard gui?
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