Falling speed?
#3
[lua]
local c = create("Label")
c.Parent = script.Parent


function round(num, idp)
local mult = 10^(idp or 0)
return math.floor(num * mult + 0.5) / mult
end


while true do
local FallSpeed = round(script.Parent.Velocity.y)
c.Text = "Fall Speed:"..FallSpeed * -1
sleep()
end
[/lua]

Honestly, I copied off the rounding function somewhere. If the value wasn't rounded, the value would be pretty large.
*Large as in many decimal places.
PS: Just insert this in any part.

Also, if you just want the fall speed of an object when the game is paused, all you need to do is click the object, look at its properties, check under velocity, and check its second value.
Reply


Messages In This Thread
Falling speed? - by Blandflakes - 06-17-2011, 12:15 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)