First, you may want to add something to your game like a health regen pad so it doesn't infinitely give health, otherwise they're "godded".
Here's a script that may work if they step on a regen pad:
local db = false
script.Parent.Touched:connect(function(part)
if part.Parent and part.Parent:FindFirstChild'Humanoid' and not db then
db = true
local health = part.Parent.Humanoid.Health
if health >= 80 then
health = 100
else
health = 80
end
wait(1)
db = false
end
end)
The db variable is debounce so it doesn't give them too much health by just standing on the pad.
2 comments
if mean automatic regeneration. Thanks anyway. :)
*i not if