|
| 12 Mar 2016 10:36 PM |
Hello, can I use :GetChildren() to find the amount of objects there are? If I can, how would I do it? for example:
local a = blah:GetChildren() Then what? Help pls
|
|
|
| Report Abuse |
|
|
|
| 12 Mar 2016 10:38 PM |
GetChildren returns a table, and a # can be placed before a table to get the size of the table:
local a = #blah:GetChildren()
a would be how many objects there are. |
|
|
| Report Abuse |
|
|
|
| 12 Mar 2016 10:39 PM |
Then would "a" be the variable holding the amount of objects there are? Let's say there were 100 objects, if I said print(a), would it print 100?
|
|
|
| Report Abuse |
|
|
| |
|
| |
|