local UserInputService = game:GetService("UserInputService") local TweenService = game:GetService("TweenService") local Players = game:GetService("Players") local VirtualInputManager = game:GetService("VirtualInputManager") local RunService = game:GetService("RunService") local Player = Players.LocalPlayer local PlayerGui = Player:WaitForChild("PlayerGui") -- CONFIGURATION local TARGET_POS = Vector3.new(1204.29, 355.53, -3143.72) local tpEnabled = false local tweenEnabled = false local isMinimized = false -- 1. MAIN UI CONTAINER local ScreenGui = Instance.new("ScreenGui") ScreenGui.Name = "by userto666" ScreenGui.ResetOnSpawn = false ScreenGui.Parent = PlayerGui -- 2. MAIN WINDOW local MainFrame = Instance.new("Frame") MainFrame.Size = UDim2.new(0, 200, 0, 190) MainFrame.Position = UDim2.new(0.5, -100, 0.5, -95) MainFrame.BackgroundColor3 = Color3.fromRGB(10, 10, 10) MainFrame.BorderSizePixel = 0 MainFrame.ClipsDescendants = true MainFrame.Active = true -- Vital for dragging MainFrame.Parent = ScreenGui local UICorner = Instance.new("UICorner", MainFrame) UICorner.CornerRadius = UDim.new(0, 12) local UIStroke = Instance.new("UIStroke", MainFrame) UIStroke.Thickness = 3 UIStroke.Color = Color3.fromRGB(50, 50, 50) -- 3. HEADER (DRAG AREA) local Header = Instance.new("TextButton", MainFrame) -- Changed to TextButton for better input capture Header.Name = "Header" Header.Size = UDim2.new(1, 0, 0, 40) Header.BackgroundTransparency = 1 Header.Text = "" -- Transparent button overlay for dragging local TitleText = Instance.new("TextLabel", Header) TitleText.Size = UDim2.new(1, 0, 1, 0) TitleText.Position = UDim2.new(0, 12, 0, 0) TitleText.BackgroundTransparency = 1 TitleText.Text = "INF WIN" TitleText.TextColor3 = Color3.fromRGB(255, 255, 255) TitleText.Font = Enum.Font.LuckiestGuy TitleText.TextSize = 18 TitleText.TextXAlignment = Enum.TextXAlignment.Left -- 4. MINIMIZE BUTTON local MinBtn = Instance.new("TextButton", Header) MinBtn.Size = UDim2.new(0, 25, 0, 25) MinBtn.Position = UDim2.new(1, -35, 0, 7) MinBtn.BackgroundColor3 = Color3.fromRGB(30, 30, 30) MinBtn.Text = "-" MinBtn.Font = Enum.Font.LuckiestGuy MinBtn.TextColor3 = Color3.fromRGB(255, 255, 255) Instance.new("UICorner", MinBtn).CornerRadius = UDim.new(0, 6) -- 5. CONTENT HOLDER local Content = Instance.new("Frame", MainFrame) Content.Size = UDim2.new(1, 0, 1, -40) Content.Position = UDim2.new(0, 0, 0, 40) Content.BackgroundTransparency = 1 local function createToggle(name, pos, text) local btn = Instance.new("TextButton", Content) btn.Name = name btn.Size = UDim2.new(0.9, 0, 0, 45) btn.Position = pos btn.BackgroundColor3 = Color3.fromRGB(25, 25, 25) btn.Text = " " .. text btn.Font = Enum.Font.LuckiestGuy btn.TextColor3 = Color3.fromRGB(200, 200, 200) btn.TextXAlignment = Enum.TextXAlignment.Left btn.TextSize = 14 Instance.new("UICorner", btn) local status = Instance.new("Frame", btn) status.Size = UDim2.new(0, 20, 0, 20) status.Position = UDim2.new(1, -30, 0.5, -10) status.BackgroundColor3 = Color3.fromRGB(60, 20, 20) Instance.new("UICorner", status).CornerRadius = UDim.new(0, 5) return btn, status end local Toggle1, Status1 = createToggle("TPButton", UDim2.new(0.05, 0, 0, 15), "INF WIN") local Toggle2, Status2 = createToggle("TweenButton", UDim2.new(0.05, 0, 0, 70), "SPEED+LVL FARM") -- ========================================== -- IMPROVED DRAG LOGIC -- ========================================== local dragging = false local dragInput, dragStart, startPos local function update(input) local delta = input.Position - dragStart MainFrame.Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y) end Header.InputBegan:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then dragging = true dragStart = input.Position startPos = MainFrame.Position input.Changed:Connect(function() if input.UserInputState == Enum.UserInputState.End then dragging = false end end) end end) Header.InputChanged:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then dragInput = input end end) UserInputService.InputChanged:Connect(function(input) if input == dragInput and dragging then update(input) end end) -- ========================================== -- MINIMIZE & CHEAT LOGIC -- ========================================== MinBtn.MouseButton1Click:Connect(function() isMinimized = not isMinimized Content.Visible = not isMinimized local targetHeight = isMinimized and 40 or 190 TweenService:Create(MainFrame, TweenInfo.new(0.3, Enum.EasingStyle.Quart), {Size = UDim2.new(0, 200, 0, targetHeight)}):Play() MinBtn.Text = isMinimized and "+" or "-" end) Toggle1.MouseButton1Click:Connect(function() tpEnabled = not tpEnabled Status1.BackgroundColor3 = tpEnabled and Color3.fromRGB(0, 255, 120) or Color3.fromRGB(60, 20, 20) end) Toggle2.MouseButton1Click:Connect(function() tweenEnabled = not tweenEnabled Status2.BackgroundColor3 = tweenEnabled and Color3.fromRGB(0, 255, 120) or Color3.fromRGB(60, 20, 20) if tweenEnabled then VirtualInputManager:SendKeyEvent(true, Enum.KeyCode.W, false, game) else VirtualInputManager:SendKeyEvent(false, Enum.KeyCode.W, false, game) end end) -- TP & Tween Loops (same as before) task.spawn(function() while true do if tpEnabled then local char = Player.Character if char and char:FindFirstChild("HumanoidRootPart") then char.HumanoidRootPart.CFrame = CFrame.new(TARGET_POS) end end task.wait(1) end end) task.spawn(function() while true do if tweenEnabled then local char = Player.Character local hrp = char and char:FindFirstChild("HumanoidRootPart") local spawnLocation = Player.RespawnLocation and Player.RespawnLocation.Position or Vector3.new(0, 10, 0) if hrp then hrp.CFrame = CFrame.new(spawnLocation + Vector3.new(0, 3, 0)) local targetCFrame = hrp.CFrame * CFrame.new(0, 0, -1000) local tween = TweenService:Create(hrp, TweenInfo.new(3, Enum.EasingStyle.Linear), {CFrame = targetCFrame}) tween:Play() tween.Completed:Wait() end end task.wait(0.1) end end)