Drooling Zombie damaging through forcefield?

So I have a pet that is a humanoid because I need it to play animations and wear hats etc. I put a forcefield on it to ensure it can’t die, but the roblox free model drooling zombie attacks and kills it. I didn’t take a video of it, but the pet breaks apart and dies sometimes too.

Why is this happening? Video shows the humanoid taking damage in the explorer.

The NPC has a property called AttackMode based on the Tagging System which you use to set what the NPC attacks.
*** EDIT **** ForceFields only protect the Humanoid from damage from TakeDamage. This link includes how to set up the ForceField correctly to protect the Humanoid.

Well I suppose that will stop the zombie from attacking, but the zombie does damage if it brushes up against it as well. How do I stop that damage?

Is the forcefield added before the game runs, or is it scripted into the model?

In the zombie, it has Humanoid.Health -= damage or something like that in the script. Change this to Humanoid:TakeDamage(damage) instead.

1 Like

oh wow i thought it would have been set properly i’ll go change it

I don’t think it finds humanoids using the tagging system, there’s a module called ROBLOX_humanoidslist that loops through everything in the workspace

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.