Tonitoni
|
  |
| Joined: 14 Mar 2009 |
| Total Posts: 6429 |
|
|
| 03 Oct 2012 06:45 AM |
| While in ROBLOX studio? I thought some of you might know. |
|
|
| Report Abuse |
|
|
|
| 03 Oct 2012 06:48 AM |
result = 0
for i,v ipairs (game.Workspace:GetChildren()) result = result + 1 print(result) end |
|
|
| Report Abuse |
|
|
|
| 03 Oct 2012 06:49 AM |
result = 0
for i,v ipairs (game.Workspace:GetChildren()) do result = result + 1 print(result) end
--Forgot a 'do' last post. |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 03 Oct 2012 06:56 AM |
WONG!
result = 0
function Check(loc) for i,v in pairs (loc:GetChildren()) do if v:IsA("Part") then result = result + 1 elseif v:IsA("Model") then Check(v) end end |
|
|
| Report Abuse |
|
|
|
| 03 Oct 2012 07:01 AM |
WRONG!
He said parts not models. Don't go down this road with me kid. |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 03 Oct 2012 07:02 AM |
You don't get my script It checks for all parts including parts in models -.- |
|
|
| Report Abuse |
|
|
|
| 03 Oct 2012 07:03 AM |
| You also misspelled "WRONG", unless you were making a racist remark. |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 03 Oct 2012 07:03 AM |
| No, i fail at typing with lights off, i can't really see |
|
|
| Report Abuse |
|
|
|
| 03 Oct 2012 07:06 AM |
| This is off-topic so I shall no longer respond. |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
| |
|