local Players = game:GetService("Players") local UserInputService = game:GetService("UserInputService") local player = Players.LocalPlayer local TELEPORT_DELAY = 12 local TARGET_POSITION = Vector3.new(26.43, 3.7 + 1, 593.38) local enabled = false local gui = Instance.new("ScreenGui") gui.Name = "AutoTeleportGui" gui.ResetOnSpawn = false gui.Parent = player:WaitForChild("PlayerGui") local button = Instance.new("TextButton") button.Size = UDim2.new(0, 200, 0, 50) button.Position = UDim2.new(0.5, -100, 0.5, -25) button.BackgroundColor3 = Color3.fromRGB(170, 0, 0) button.TextColor3 = Color3.new(1, 1, 1) button.Text = "AUTO TP: OFF" button.Font = Enum.Font.SourceSansBold button.TextSize = 20 button.Parent = gui local dragging = false local dragStart, startPos button.InputBegan:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseButton1 then dragging = true dragStart = input.Position startPos = button.Position end end) button.InputEnded:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseButton1 then dragging = false end end) UserInputService.InputChanged:Connect(function(input) if dragging and input.UserInputType == Enum.UserInputType.MouseMovement then local delta = input.Position - dragStart button.Position = UDim2.new( startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y ) end end) button.MouseButton1Click:Connect(function() enabled = not enabled if enabled then button.Text = "AUTO TP: ON" button.BackgroundColor3 = Color3.fromRGB(0, 170, 0) else button.Text = "AUTO TP: OFF" button.BackgroundColor3 = Color3.fromRGB(170, 0, 0) end end) task.spawn(function() while true do if enabled then local character = player.Character if character then local hrp = character:FindFirstChild("HumanoidRootPart") if hrp then hrp.CFrame = CFrame.new(TARGET_POSITION) end end end task.wait(TELEPORT_DELAY) end end)