|
| 04 Nov 2012 01:17 PM |
I'm trying to make it remove the zombie after death of course but it wont remove it, all this does is kill my zombie...
while true do if game.Workspace.Zombie1.Zombie.Health = 0 then game.Workspace.Zombie1:Remove() end if game.Workspace.Zombie2.Zombie.Health = 0 then game.Workspace.Zombie2:Remove() end end
|
|
|
| Report Abuse |
|
|
|
| 04 Nov 2012 01:20 PM |
Workspace.Zombie1.Zombie.Died:wait() Workspace.Zombie2:Destroy() coroutine.resume(coroutine.create(function() Workspace.Zombie2.Zombie.Died:wait() Workspace.Zombie2:Destroy() end)) |
|
|
| Report Abuse |
|
|
|
| 04 Nov 2012 01:23 PM |
| All it's doing is killing my zombie still I want so if some one shoots the zombie and it's dead then it gets destroyed... Thanks for the help though. |
|
|
| Report Abuse |
|
|
|
| 04 Nov 2012 01:25 PM |
This won't kill your zombies, only remove them when they have died.
Chances are the joints of the zombies/the humanoid are not fully made |
|
|
| Report Abuse |
|
|
|
| 04 Nov 2012 01:44 PM |
while true do wait() if game.Workspace.Zombie1.Zombie.Health == 0 then game.Workspace.Zombie1:Remove() end wait() if game.Workspace.Zombie2.Zombie.Health == 0 then game.Workspace.Zombie2:Remove() end end
Does that work? |
|
|
| Report Abuse |
|
|