of     1   

trainbobo139
#36317670Sunday, October 31, 2010 10:28 PM GMT

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)
trainbobo139
#36318149Sunday, October 31, 2010 10:36 PM GMT

No views even?
llmutell
#36318444Sunday, October 31, 2010 10:41 PM GMT

Whats the output? With connections I often find I have to state the entire path, not just a variable.
trainbobo139
#36318806Sunday, October 31, 2010 10:48 PM GMT

There are no errors, it works, its just inaccurate... I want to find a way that will work best.
Fungalmungal
#36319630Sunday, October 31, 2010 11:04 PM GMT

What exactly do you want it to do?
trainbobo139
#36319655Sunday, October 31, 2010 11:04 PM GMT

When you fall you get damaged.
Fungalmungal
#36321267Sunday, October 31, 2010 11:40 PM GMT

function Fall(hit) if Figure.Torso.Velocity.y < -10 then local dmg = -Figure.Torso.Velocity.y-10 Humanoid:TakeDamage(dmg) end end

    of     1