This script takes away 100 health. I want it to take away 50%
script.Parent.Touched:connect(function(Obj) -- When you touch it gets the "Leg" or "Arm"
local Player = game:GetService("Players"):GetPlayerFromCharacter(Obj.Parent)
-- Gets the Instance "Player"
if Player and Player.Character then -- Obv its gonna be there...
local Humanoid = Player.Character:WaitForChild("Humanoid") -- Find the Humanoid
Humanoid:TakeDamage(50) -- Easy damage function.. :)
end
end)

1 comment
http://wiki.roblox.com/index.php?title=Debounce has good info & it probably applies to this situation.