script.Parent.Touched:connect(function(hit)
local player = hit.Parent:FindFirstChild('Humanoid')
if player then
player.Health = -60
end
end)
Why wont it take only 60 health?
script.Parent.Touched:connect(function(hit)
local player = hit.Parent:FindFirstChild('Humanoid')
if player then
player.Health = -60
end
end)
Why wont it take only 60 health?
You are setting the health to -60, you aren't subtracting 60.
player.Health = player.Health-60
This discussion is preserved as it was. New answers, comments, and votes are closed.