Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Is there a function to tell me how fast I'm falling down?

I'm making another script for my game that'll tell me how fast I'm falling down, in studs per second. Is there any way that I can figure out how fast I'm falling down? I looked on YouTube and on other forums about the speed that a character falls down, but I didn't find any answers. Does anyone know what to use? By the way, I don't have any code to show you because I don't know.

Thanks, Green_Lime2

2 comments

0

Check humanoidState and Y velocity

0

Thank you! You have answered my question!

1 answer

My question was answered by tomekcz. Here is the code I used:

while true do

local character = game.Players.LocalPlayer.Character
local rootpart = character:WaitForChild("HumanoidRootPart")
local playergui = game.Players.LocalPlayer.PlayerGui
local velocity = rootpart.Velocity.Y
local velocityNum = math.floor(velocity*1)/1

	playergui.ScreenGui2.TextLabel.Text = (velocityNum.. " s/s")
	wait()
end

This discussion is preserved as it was. New answers, comments, and votes are closed.