Gui altitude slider help

So im working on a slider which shows the altitude of the player at any time and it looks like this.
image
I’ve tried a lot of different methods and code but I can’t seem to get it to work. Here’s the most recent code i’ve tried using:

	for i,v in pairs(script.Parent.Numbers.NumberFrame:GetChildren()) do

		local Result1 = 0.5 + (Altitude/800)

		local Result2 = nil
		local Result3 = nil

		if Result1 > 1 or Result1 < 1 then

			Result2 = Result1 - math.floor(Result1 - 0.5)
			Result3 = 1 - Result2

		else

			Result3 = 1 - Result1

		end

		v.Position = UDim2.new(v.Position.X.Scale,0,Result3,0)
		
	end

Does anyone know any ways to make this work? Also dont worry about the numbers changing when the value gets too high. Currently I just need help with the position of the text. Also sorry if this seems a bit unclear. I didn’t really know how to word it