I cant seem to find a way to get accurate falling damage. What ive tried just hurts the person when they climb truss's and is not accurate. Is there a better way?
function Fall(hit)
if Figure.Torso.Velocity.y > 10 then
local dmg = Figure.Torso.Velocity.y-10
if (Humanoid.Health - dmg) <= 10 then
Humanoid.Health = 10
else
Humanoid:TakeDamage(dmg)
end
end
end
Figure["Right Leg"].Touched:connect(Fall)
Figure["Left Leg"].Touched:connect(Fall) |