Change altimeter unity

Hello. I recently finished my game but there is something I want to change. I will show an example.

Here, the robloxian climbed a ladder. (Started at the ground (0 stud) finished at the top of the ladder (10 studs). I want to know how can I make the altimeter show 5 and not 10. (Convert the stud altimeter into a meter altimerer).

1 Like

Simple: divide studs by two to get your second unit metres

Yes but how can I dIvide them ?

You can do Vector3.Y / 2 to divide the player’s altitude.

Get the distance from the ground to the player, and divide that number by two in code. If you want an example:

local player = game.Players.LocalPlayer
local hmndrootpart = player:FindFirstChild("HumanoidRootPart")
local playerPos = hmndrootpart.Position.Y - game.Baseplate.Position.Y

print('The position of the player in metres is: ')
print(playerPos / 2)

Apologies for any mistakes, I’m on mobile and coding is a little difficult

Umm it don’t work. My script is this:

local player = game.Players.LocalPlayer

while wait() do

script.Parent.Text = math.ceil(player.Character.Head.Position.Y)