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
 

How would I use a for loop to create things with diff names

Previous Thread :: Next Thread 
yomamadude6 is not online. yomamadude6
Joined: 21 Nov 2009
Total Posts: 2151
24 Nov 2012 08:35 PM
Like if i wanted a bunch of IntValues with name "a","b","c" and so on.
Report Abuse
yomamadude6 is not online. yomamadude6
Joined: 21 Nov 2009
Total Posts: 2151
24 Nov 2012 08:44 PM
bump
Report Abuse
1Topcop is not online. 1Topcop
Joined: 09 Jun 2009
Total Posts: 6635
24 Nov 2012 08:48 PM
Letters = {"A","B","C","D","ETC"}
wrap = 0
wraps = 1
for n,o in pairs(Workspace.IntValueModel:GetChildren())do
wrap = wrap+1 if(wrap>#Letters)then wrap = 1 wraps = wraps+1 end
o.Name = Letters[wrap]..wraps
end
Report Abuse
yomamadude6 is not online. yomamadude6
Joined: 21 Nov 2009
Total Posts: 2151
24 Nov 2012 09:36 PM
Wasn't exactly what I was looking for, but thank you, I got it now.
Report Abuse
nrscsy is not online. nrscsy
Joined: 09 Nov 2012
Total Posts: 465
24 Nov 2012 09:41 PM
For a huge list, simply use tostring() and use a basic numeric succession formula to name the values.
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