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 |
|
|
|
| 14 Aug 2013 08:35 PM |
| It's a variable. They're making it there. |
|
|
| Report Abuse |
|
|
|
| 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
|
  |
| 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 |
|
|