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
 

Re: Does v mean the value

Previous Thread :: Next Thread 
Lapwn is not online. Lapwn
Joined: 03 Jun 2012
Total Posts: 5975
14 Aug 2013 08:35 PM
Im reading all over the wiki and looking at script in free models to learn and this is just a little side question because I dont remember any variables made at the begenning of the script called v.

they did

in pairs _,v (script.Parent:GetChildren()) do
Report Abuse
KnightmareXD is not online. KnightmareXD
Joined: 14 Jul 2009
Total Posts: 11189
14 Aug 2013 08:35 PM
It's a variable. They're making it there.
Report Abuse
ScrewDeath is not online. ScrewDeath
Joined: 03 Jun 2012
Total Posts: 2700
14 Aug 2013 08:36 PM
for i,v in pairs(script.Parent:GetChildren()) do

i would be the index of the value in the table
v would be the actual value
Note: These are just variables and can modified to whatever variable name you want.
Report Abuse
MHebes is not online. MHebes
Joined: 04 Jan 2013
Total Posts: 2278
14 Aug 2013 08:37 PM
It would be

for some_variable_representing_the_index, some_variable_representing_the_value in pairs(some_table) do
end

Those variables are what will be used in the iterations.

~ Oh, I'm sorry, did I break your concentration? ~
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