local Players = game:GetService("Players") local RunService = game:GetService("RunService") local LocalPlayer = Players.LocalPlayer local PlayerGui = LocalPlayer:WaitForChild("PlayerGui") local FOLLOW_DURATION = 10 local BUTTON_SIZE = UDim2.new(0,120,0,50) local following = false local followUntil = 0 local targetPlayer local highlightBillboard local screenGui = Instance.new("ScreenGui", PlayerGui) screenGui.Name="FollowerToggleGui" screenGui.ResetOnSpawn=false local button = Instance.new("TextButton", screenGui) button.Name="FollowToggle" button.Size=BUTTON_SIZE button.Position=UDim2.new(0,20,0,20) button.BackgroundColor3=Color3.fromRGB(180,0,0) button.TextColor3=Color3.new(1,1,1) button.Font=Enum.Font.GothamBold button.TextSize=18 button.Text="OFF" button.Active=true button.Draggable=true local function setButtonVisual(on) if on then button.Text="ON" button.BackgroundColor3=Color3.fromRGB(0,200,0) else button.Text="OFF" button.BackgroundColor3=Color3.fromRGB(180,0,0) end end button.MouseButton1Click:Connect(function() following = not following setButtonVisual(following) if not following then targetPlayer=nil if highlightBillboard then highlightBillboard:Destroy() highlightBillboard=nil end end end) local function getClosestPlayer() local closest local shortestDistance=math.huge if LocalPlayer.Character and LocalPlayer.Character:FindFirstChild("HumanoidRootPart") then local hrp=LocalPlayer.Character.HumanoidRootPart for _, p in pairs(Players:GetPlayers()) do if p~=LocalPlayer and p.Character and p.Character:FindFirstChild("HumanoidRootPart") then local dist=(p.Character.HumanoidRootPart.Position-hrp.Position).Magnitude if dist