vastqud
|
  |
| Joined: 10 Sep 2011 |
| Total Posts: 2464 |
|
|
| 07 Sep 2015 11:08 AM |
function destroy() local humvee = script.Parent for i,v in pairs(humvee)do if v.ClassName == "Part" then v.ChildRemoved:connect(function() print("yey a weld was removed") end) end end end
it doesn't print anything, and no errors in output |
|
|
| Report Abuse |
|
|
lupine
|
  |
| Joined: 24 Jun 2008 |
| Total Posts: 3561 |
|
|
| 07 Sep 2015 11:11 AM |
Do you ever run the function?
destroy() |
|
|
| Report Abuse |
|
|
vastqud
|
  |
| Joined: 10 Sep 2011 |
| Total Posts: 2464 |
|
|
| 07 Sep 2015 11:12 AM |
ohohohoh
I see
sorry its early in the morning for me I wasn't focused ;=; |
|
|
| Report Abuse |
|
|
lordrambo
|
  |
| Joined: 16 Jun 2009 |
| Total Posts: 20628 |
|
|
| 07 Sep 2015 11:12 AM |
those last three ends all need to be shifted in one are you ever making a call to "destroy"? |
|
|
| Report Abuse |
|
|
vastqud
|
  |
| Joined: 10 Sep 2011 |
| Total Posts: 2464 |
|
|
| 07 Sep 2015 11:17 AM |
well I tried making a call to "destroy" in multiple ways
still doesn't work |
|
|
| Report Abuse |
|
|
lupine
|
  |
| Joined: 24 Jun 2008 |
| Total Posts: 3561 |
|
|
| 07 Sep 2015 11:19 AM |
Oh.
change the line for i,v in pairs(humvee) do to for i,v in pairs(humvee:GetChildren()) do
In addition, this isn't necessary, but you can change the line if v.ClassName == "Part" then to if v:IsA("Part") then
|
|
|
| Report Abuse |
|
|
vastqud
|
  |
| Joined: 10 Sep 2011 |
| Total Posts: 2464 |
|
| |
|