Well, I tried to make a game with NPC's, it works sofar but if you do more damage than the NPC's MaxHealth the NPC's Health goes into negative and doesn't respawn.
Here's the Code I tried to fix it with:
local hum = script.Parent.Humanoid
hum.Health.Changed:Connect(function(health)
if hum.Health < 0 then
hum.Health = hum.MaxHealth - hum.MaxHealth
end
end)
Thanks in Advance - DindinYT37

2 comments
I tried your code already before, it doesn't work.
Try this instead: =<