-- Services local Players = game:GetService("Players") local RunService = game:GetService("RunService") local UserInputService = game:GetService("UserInputService") local player = Players.LocalPlayer -- ScreenGui local gui = Instance.new("ScreenGui") gui.Name = "AutoTPGui" gui.ResetOnSpawn = false gui.Parent = player:WaitForChild("PlayerGui") -- Frame local frame = Instance.new("Frame") frame.Size = UDim2.fromScale(0.25, 0.2) frame.Position = UDim2.fromScale(0.375, 0.4) frame.BackgroundColor3 = Color3.fromRGB(0, 0, 0) frame.BackgroundTransparency = 0.3 frame.Active = true frame.Parent = gui -- Frame UICorner local frameCorner = Instance.new("UICorner") frameCorner.CornerRadius = UDim.new(0, 12) frameCorner.Parent = frame -- Frame UIStroke local frameStroke = Instance.new("UIStroke") frameStroke.Thickness = 1.5 frameStroke.Color = Color3.fromRGB(255, 255, 0) frameStroke.Parent = frame -- TextButton local button = Instance.new("TextButton") button.Size = UDim2.fromScale(0.8, 0.4) button.Position = UDim2.fromScale(0.1, 0.15) button.BackgroundColor3 = Color3.fromRGB(255, 255, 255) button.TextColor3 = Color3.fromRGB(0, 0, 0) button.TextScaled = true button.Font = Enum.Font.GothamBold button.Text = "Auto TP : OFF" button.Parent = frame -- Button UICorner local buttonCorner = Instance.new("UICorner") buttonCorner.CornerRadius = UDim.new(0, 12) buttonCorner.Parent = button -- TextLabel (Credit) local credit = Instance.new("TextLabel") credit.Size = UDim2.fromScale(1, 0.25) credit.Position = UDim2.fromScale(0, 0.65) credit.BackgroundTransparency = 1 credit.Text = "Made by : Nahwinreals" credit.TextScaled = true credit.Font = Enum.Font.Gotham credit.TextColor3 = Color3.fromRGB(255, 0, 0) credit.Parent = frame -- ===== Rainbow Text ===== task.spawn(function() local hue = 0 while true do hue += 0.002 if hue > 1 then hue = 0 end credit.TextColor3 = Color3.fromHSV(hue, 1, 1) task.wait() end end) -- ===== Draggable Frame ===== local dragging = false local dragStart local startPos frame.InputBegan:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then dragging = true dragStart = input.Position startPos = frame.Position input.Changed:Connect(function() if input.UserInputState == Enum.UserInputState.End then dragging = false end end) end end) UserInputService.InputChanged:Connect(function(input) if dragging and (input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch) then local delta = input.Position - dragStart frame.Position = UDim2.new( startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y ) end end) -- Target CFrame local targetCFrame = CFrame.new( 79.2695389, 21.3986454, -281.767853, 0.99632293, -0.0341820009, -0.0785645172, 0.0328994654, 0.999304593, -0.0175622646, 0.0791101754, 0, 0 ) -- Auto TP Logic local enabled = false local connection local interval = 1 / 30 -- 30 times per second button.MouseButton1Click:Connect(function() enabled = not enabled if enabled then button.Text = "Auto TP : ON" local last = 0 connection = RunService.Heartbeat:Connect(function(dt) last += dt if last >= interval then last = 0 local char = player.Character if char and char:FindFirstChild("HumanoidRootPart") then char.HumanoidRootPart.CFrame = targetCFrame end end end) else button.Text = "Auto TP : OFF" if connection then connection:Disconnect() connection = nil end end end)