JoelC2
|
  |
| Joined: 28 May 2010 |
| Total Posts: 344 |
|
|
| 16 Mar 2012 09:37 PM |
Im really tired and dont have a clue whats wrong
if script.Parent.Humanoid.Health == 0 then script.Parent:remove()
its supposed to removean enemy when its health = 0 |
|
|
| Report Abuse |
|
|
|
| 16 Mar 2012 09:38 PM |
Use a .Died event.
† KMXD † |
|
|
| Report Abuse |
|
|
DXPower
|
  |
| Joined: 21 Oct 2008 |
| Total Posts: 2866 |
|
|
| 16 Mar 2012 09:38 PM |
if script.Parent.Humanoid.Health == 0 then script.Parent:Destroy() --They changed Remove to Destroy end
"Sometimes the questions are complicated and the answers are simple." -Dr. Seuss |
|
|
| Report Abuse |
|
|
Abillityx
|
  |
| Joined: 26 Feb 2011 |
| Total Posts: 3938 |
|
|
| 16 Mar 2012 10:26 PM |
function onPlayerDied() if h.Health = 0 then script.Parent:Destroy() end end
I think that should work. I am only a beginner..... |
|
|
| Report Abuse |
|
|
Quenty
|
  |
| Joined: 03 Sep 2009 |
| Total Posts: 9316 |
|
|
| 16 Mar 2012 10:30 PM |
script.Parent.Humanoid.Died:connect(function() script.Parent:Destroy() end) |
|
|
| Report Abuse |
|
|