Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Why does this script not work?

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?

1 answer

✓ Accepted answer

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.