| |
|
|
| 20 Jul 2013 01:00 PM |
| Yes, it's called recursion. |
|
|
| Report Abuse |
|
|
zars15
|
  |
| Joined: 10 Nov 2008 |
| Total Posts: 9999 |
|
|
| 20 Jul 2013 01:01 PM |
Sure it's possible
function lol(obj) for num,obj2 in pairs(obj) if obj2:IsA("Model") then lol(obj2) elseif obj2:IsA("Part") then obj2.BrickColor = BrickColor.random() end end
lol(game.Workspace) |
|
|
| Report Abuse |
|
|
miz656
|
  |
| Joined: 19 Jul 2010 |
| Total Posts: 15336 |
|
|
| 20 Jul 2013 01:31 PM |
function iterate(num) if num > 10 then return end print(num) iterate(num + 1) --call end
|
|
|
| Report Abuse |
|
|