Need help on script (asap)

Hey!

I already have the script but this is in Altitude i dont want in Altitude i want in meter, can anyone fix this?

local Text = script.Parent
wait(1)
local Player = game.Players.LocalPlayer
local Char = Player.Character
game:GetService(“RunService”).Stepped:Connect(function()
Text.Text = "Altitude: "…math.ceil(Char.HumanoidRootPart.Position.Y)
end)

Thanks!

What is meters to you? The roblox engine uses “studs” which Position.Y is the coordinate in Studs of the height the Player is, lets say 500 studs height.

You want to transform that to “meters”? or you just want to change the text from “Altitude” to “Meter:”?:
Text.Text = "Meter: "..tostring(math.ceil(Char.HumanoidRootPart.Position.Y))

1 Like

I want it to transform that to “meters”

Additionally, If you really want, 1 stud = 0.28 meters. However, it’s up to you to use whichever scale ‘feels’ right in your game

If you wanted to just change the text displayed, then use my reply, if you want translate Studs height coordinate (Y) to a representation of meters in your game scale use the scale @Uzixt said.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.