fwep67
|
  |
| Joined: 21 Nov 2009 |
| Total Posts: 352 |
|
|
| 15 Feb 2016 11:20 AM |
If I had multiple values in a folder how would I make a script that would put all of those values into a table.
~If you read/helped me on my previous question, this is not the same question~
|
|
|
| Report Abuse |
|
|
|
| 15 Feb 2016 11:31 AM |
Take a look at these wiki pages:
http://wiki.roblox.com/index.php?title=Function_dump/Basic_functions&redirect=no#pairs
http://wiki.roblox.com/index.php?title=Function_dump/Table_manipulation#table.insert
It would look something like this:
local tab = {}
for i, v in pairs(folder:GetChildren() do
table.Insert(tab, i, v.Value)
end |
|
|
| Report Abuse |
|
|
fwep67
|
  |
| Joined: 21 Nov 2009 |
| Total Posts: 352 |
|
| |
|
|
| 15 Feb 2016 11:37 AM |
I missed a bracket on this line:
for i, v in pairs(folder:GetChildren()) do
that's the corrected version |
|
|
| Report Abuse |
|
|
|
| 15 Feb 2016 12:19 PM |
| doesn't have to be a pairs loop but ya |
|
|
| Report Abuse |
|
|