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 » Scripters
Home Search
 

Re: how do i make a loop continue while a variable is true

Previous Thread :: Next Thread 
Quackshire is online. Quackshire
Joined: 25 Dec 2014
Total Posts: 384
26 Oct 2017 08:25 PM
I want to make a loop continue until a variable is no longer true, how do i do this? I was think while var = true do but that didn't work for me unless i was doing it wrong.
Report Abuse
nofascistsaloudxD is not online. nofascistsaloudxD
Joined: 02 Sep 2015
Total Posts: 408
26 Oct 2017 08:27 PM
repeat
--CODE
until Var == false
Report Abuse
ZappleOfficial is not online. ZappleOfficial
Joined: 18 Sep 2013
Total Posts: 1075
26 Oct 2017 08:28 PM
Insert a BoolValue somewhere.

local value = [boolvalue location]

while value == true do
print'cool'
wait()
end

Change the boolvalue to activate and deactivate.


Report Abuse
D3D9 is not online. D3D9
Joined: 20 Aug 2016
Total Posts: 87
26 Oct 2017 08:32 PM
= will set a variable.
== will check if it is equal to.


Note that difference.


Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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