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: repeat values

Previous Thread :: Next Thread 
markjac is not online. markjac
Joined: 18 Jul 2009
Total Posts: 927
19 Sep 2017 02:07 PM
So how would you repeat a script the same amount of a value, for an example if a value is 11 the script will repeat 11 times, if a value is 5 the script will repeat 5 times.
Report Abuse
LaeMVP is online. LaeMVP
Joined: 24 Jun 2013
Total Posts: 4416
19 Sep 2017 02:11 PM
for i = 1,x do
Report Abuse
Brandon5220 is not online. Brandon5220
Joined: 11 Oct 2013
Total Posts: 499
19 Sep 2017 02:14 PM
^


Report Abuse
gohan31865 is not online. gohan31865
Joined: 30 Jan 2011
Total Posts: 895
19 Sep 2017 02:15 PM
what lae said was kinda vague; visit wiki or something

for i=1, maximum, increment do
--code
end

i=1 is the starting number, can be any value
second part is the point at which it stops
third is increment, or the amount it goes up each time

so if i had something like 0.5 for the increment, it'd start at 1, and go up by 0.5 until it reaches the maximum number

the third part is completely optional, leave it blank and it starts by 1's by default


Report Abuse
markjac is not online. markjac
Joined: 18 Jul 2009
Total Posts: 927
19 Sep 2017 02:22 PM
ok, thanks guys for the help.
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