Hi, I have been trying to do : when a player dies to an zombie, that zombie heals half the player’s max hp.
Does anyone know how I can do this?
I’ve been trying, but I haven’t been able to
Hi, I have been trying to do : when a player dies to an zombie, that zombie heals half the player’s max hp.
Does anyone know how I can do this?
I’ve been trying, but I haven’t been able to
Do you mean the zombie gains half the player’s max health that died or the player receives it?
zombie.health = zombie.health + player.maxhealth 1/2 anything like this
Your zombie system has a script that damages player right?
Well just do a health check on said damage script.
And if its below 0 or equal to, heal the zombie.
You can also do a humanoid.Died on the player that dies with objectvalues (the same way you’ll do it on real players)
the problem is the zombie dont attack the died player…