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)
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))
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.