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: Why Win't it work...

Previous Thread :: Next Thread 
RobuxsTixsCoins is not online. RobuxsTixsCoins
Joined: 13 Dec 2015
Total Posts: 92
18 Jun 2016 05:49 PM
number = 0




for NumberCount = 1, 10 do
if number < 5 then

number = number +1
wait(0.05)
elseif number >= 5 then
break
end
end
Report Abuse
Venetrix is not online. Venetrix
Joined: 10 Feb 2012
Total Posts: 402
18 Jun 2016 06:03 PM
Ur script runs through 4 times, then generates the number 5 automatically. Check it out for yourself:

number = 0
randomnumber = math.random(1,10)



for NumberCount = 1, 10 do
if number < 5 then
print ("Hello")
number = number +1
wait(0.05)
elseif number >= 5 then
break
end
end

print("Your number is: "..number)


Report Abuse
RobuxsTixsCoins is not online. RobuxsTixsCoins
Joined: 13 Dec 2015
Total Posts: 92
18 Jun 2016 06:07 PM
thank you
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