I need a way to find out the distance between the character's root part, and the ground directly below. How would I go about doing this?
Vector3.magnitude
local player = game.Players.LocalPlayer local char = player.Character or player.CharacterAdded:Wait() local hrp = char.HumanoidRootPart local mag = (hrp.Position - workspace.Baseplate.Position).magnitude print(math.floor(mag))
local SomeNumber = 0 while wait(.25) do SomeNumber = game.Players.LocalPlayer.HumanoidRootPart.Position.Y print("SomeNumber") end