UgOsMiLy
|
  |
| Joined: 15 Sep 2009 |
| Total Posts: 2095 |
|
|
| 28 Oct 2013 11:31 AM |
| If a model has 5 children (parts) how do i make something that counts the children and tells everybody? |
|
|
| Report Abuse |
|
|
|
| 28 Oct 2013 11:44 AM |
function ThinkOfTheChilren(Object) Message = Instance.new("Message", script) Message.Text = Object.Name .. " has " .. #Object:GetChildren() .. " children" Game:GetService("Debris"):AddItem(Message, 3) end
ThinkOfTheChildren(Workspace.Model) |
|
|
| Report Abuse |
|
|
UgOsMiLy
|
  |
| Joined: 15 Sep 2009 |
| Total Posts: 2095 |
|
|
| 28 Oct 2013 11:51 AM |
That is a good idea but i need it in a local thing (example: local amountochildren = .....)
|
|
|
| Report Abuse |
|
|
|
| 28 Oct 2013 11:54 AM |
local amountofchildren = #part:GetChildren()
This is my siggy when I'm at school c: |
|
|
| Report Abuse |
|
|
UgOsMiLy
|
  |
| Joined: 15 Sep 2009 |
| Total Posts: 2095 |
|
| |
|
|
| 28 Oct 2013 01:01 PM |
"Good idea" Its the full script |
|
|
| Report Abuse |
|
|
|
| 28 Oct 2013 02:23 PM |
" 'Good idea' Its the full script "
Hahaha sounds like a Project Manager |
|
|
| Report Abuse |
|
|