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
 

What is "i = 0,45,30 do"?

Previous Thread :: Next Thread 
ediee544 is not online. ediee544
Joined: 24 Oct 2008
Total Posts: 2175
18 Jul 2014 03:03 PM
for i = 0,45,30 do
--black magic
end

Report Abuse
phoenix53124 is not online. phoenix53124
Joined: 25 Feb 2009
Total Posts: 4889
18 Jul 2014 03:06 PM
Well...I'm not sure exactly, but I'd imagine it would only run once.

for i= Start#, End#, Interval do

end

for i=1,10,.1 do would go 100 times. 1,1.1,1.2,1.3-9.8,9.9,10
Report Abuse
LegendaryAccount is not online. LegendaryAccount
Joined: 02 Jun 2010
Total Posts: 13193
18 Jul 2014 03:06 PM
I believe 30 is how much it will count by but not 100% sure
Report Abuse
phoenix53124 is not online. phoenix53124
Joined: 25 Feb 2009
Total Posts: 4889
18 Jul 2014 03:06 PM
Well, 90 times
Report Abuse
Falq is not online. Falq
Joined: 31 Dec 2007
Total Posts: 2521
18 Jul 2014 03:39 PM
"for i = 0,45,30 do
--black magic
end
"

Okay, so this is a for loop.

0 is the number it will start at, it will go into 45, and the 3rd thing is how much it will increment by.

If you don't specify, in RBX.Lua its default is 1.
Report Abuse
ediee544 is not online. ediee544
Joined: 24 Oct 2008
Total Posts: 2175
18 Jul 2014 03:45 PM
so i goes from 0 to 45 30 times or what?
Report Abuse
Falq is not online. Falq
Joined: 31 Dec 2007
Total Posts: 2521
18 Jul 2014 03:46 PM
Nah, the first time i is 0.
After running, it is 30.
It goes up by 30.
Report Abuse
IAmTheRolo is online. IAmTheRolo
Joined: 12 Nov 2013
Total Posts: 859
18 Jul 2014 03:48 PM
for i = 0,45,30 do
print("Hello!")
wait()
end

>Hello!
>Hello!
Report Abuse
LegendaryAccount is not online. LegendaryAccount
Joined: 02 Jun 2010
Total Posts: 13193
18 Jul 2014 04:45 PM
for i = 0,45,30 do
print(i)
wait()
end
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