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: what's the equivalent of a for loop in javascript

Previous Thread :: Next Thread 
97neko is not online. 97neko
Joined: 14 Sep 2014
Total Posts: 16159
01 May 2015 10:56 PM
and how do i "index" something in unity. like, make a variable for a text UI
Report Abuse
TimeTicks is not online. TimeTicks
Joined: 27 Apr 2011
Total Posts: 27115
01 May 2015 11:11 PM
Ask this on another forum from the internet, not roblox. Lol.
Report Abuse
LegendaryAccount is not online. LegendaryAccount
Joined: 02 Jun 2010
Total Posts: 13193
01 May 2015 11:15 PM
for (i = 0; i < 5; i++) {

}

5 is how many times it will loop
i++ is the increment
Report Abuse
MrJoeyJoeJoey is not online. MrJoeyJoeJoey
Joined: 20 Aug 2011
Total Posts: 20787
01 May 2015 11:16 PM
He can ask here and I'm perfectly fine with it


for (i = 0; i <= max; i++) { // i++ is adding one do i
console.log(i)

}
Report Abuse
97neko is not online. 97neko
Joined: 14 Sep 2014
Total Posts: 16159
01 May 2015 11:17 PM
So is their a reason this does nothing?

var Title = "When they Scream";

for (i = 0; i < Title.length; i++) {
var test = Title.substring(0, i);
Debug.Log(test);
WaitForSeconds(.2);
}
Report Abuse
MrJoeyJoeJoey is not online. MrJoeyJoeJoey
Joined: 20 Aug 2011
Total Posts: 20787
01 May 2015 11:19 PM
no idea, even ran the code in a code runner and it didnt do anything
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