06-18-2011, 03:28 PM
(This post was last modified: 06-18-2011, 03:32 PM by 2Drobloxrocker64.)
[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.
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.