|
| 03 Apr 2017 04:39 AM |
I need it to count how many items there are and if it's over a specific amount then it will teleport them.
R$0 |
|
|
| Report Abuse |
|
|
| 03 Apr 2017 04:46 AM |
in the entire game?
local children = 0
local function count(c) for i, v in next, c:GetChildren() do children = children + 1 count(v) end end
if children > 9000 then print 'its over 9000!' end
capitalist atheist |
|
|
| Report Abuse |
|
|
| 03 Apr 2017 04:47 AM |
whoops you need to call count(game)
capitalist atheist |
|
|
| Report Abuse |
|