✓ Accepted answer
Dude. Seriously. Use a Changed function to check if health has been changed, and then if the health is < 5 then set to infinity. Health resets back to 100 whenever they respawn:
game.Players.PlayerAdded:Connect(function(p)
p.CharacterAdded:Connect(function(c)
c:WaitForChild("Humanoid").HealthChanged:Connect(function()
if (c.Humanoid.Health <= 5) then
c.Humanoid.MaxHealth = math.huge;
c.Humanoid.Health = math.huge;
end
end)
end)
end)
Don't bother asking where to put this, I'll leave that up to you. If you researched Events and Signals in the slightest you'd understand what to do.
..honestly, what did you even try? o-o
2 comments
use a spawnpoint and set the force-field to take longer before turning of
thank you ,vortex, but i don't think you've grasped my issue