I wrote this script that is making it so it works when you get to the end, the gui is over the trophy, but when you move to the yellow, the gui goes to the middle not to the other end
Here is my current code
local player = game.Players.LocalPlayer
local char = player.Character
local HRP = char:WaitForChild("HumanoidRootPart")
local Finish = game.Workspace.Map.Points.Finish
local Start = game.Workspace.Map.Points.Start
local ts = game:GetService("TweenService")
local HB = game:GetService("RunService")
local ti = TweenInfo.new(0.1, Enum.EasingStyle.Quad, Enum.EasingDirection.In, 0, false, 0)
HB.Heartbeat:Connect(function()
wait()
local Dis = (HRP.Position - Finish.Position).Magnitude
local OtherDis = (Start.Position - Finish.Position).Magnitude
local PercentOf = Dis/OtherDis
local Hi = 1 - PercentOf
local Max = 1.75 * Hi
local tween = ts:Create(script.Parent.Player, ti, {Position = UDim2.new(Max, 0,0.234, 0)})
tween:Play()
end)