local Players = game:GetService("Players") local UserInputService = game:GetService("UserInputService") local player = Players.LocalPlayer local TARGET_POS = Vector3.new(382, 706, 28) local isFarming = false local parentGui = type(gethui) == "function" and gethui() or game:GetService("CoreGui") -- Clean up old GUI local oldGui = parentGui:FindFirstChild("SimpleTPFarm") if oldGui then oldGui:Destroy() end local screenGui = Instance.new("ScreenGui") screenGui.Name = "SimpleTPFarm" screenGui.ResetOnSpawn = false screenGui.IgnoreGuiInset = true screenGui.Parent = parentGui local mainFrame = Instance.new("Frame") mainFrame.Size = UDim2.new(0, 200, 0, 80) mainFrame.Position = UDim2.new(0.5, -100, 0.1, 0) mainFrame.BackgroundColor3 = Color3.fromRGB(30, 30, 35) mainFrame.BorderSizePixel = 0 mainFrame.Active = true mainFrame.Parent = screenGui local corner = Instance.new("UICorner") corner.CornerRadius = UDim.new(0, 8) corner.Parent = mainFrame local title = Instance.new("TextLabel") title.Size = UDim2.new(1, 0, 0, 25) title.BackgroundTransparency = 1 title.Text = "Auto-Farm" title.TextColor3 = Color3.fromRGB(200, 200, 200) title.Font = Enum.Font.GothamBold title.TextSize = 12 title.Parent = mainFrame local btn = Instance.new("TextButton") btn.Size = UDim2.new(1, -20, 0, 40) btn.Position = UDim2.new(0, 10, 0, 30) btn.BackgroundColor3 = Color3.fromRGB(200, 50, 50) btn.Text = "FARM: OFF" btn.TextColor3 = Color3.fromRGB(255, 255, 255) btn.TextSize = 14 btn.Font = Enum.Font.GothamBold btn.Parent = mainFrame local btnCorner = Instance.new("UICorner") btnCorner.CornerRadius = UDim.new(0, 6) btnCorner.Parent = btn -- Dragging Logic local dragging local dragInput local dragStart local 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 mainFrame.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) mainFrame.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) -- Farm Logic task.spawn(function() while task.wait(0.1) do if isFarming then local char = player.Character if char and char:FindFirstChild("HumanoidRootPart") then pcall(function() char:PivotTo(CFrame.new(TARGET_POS)) end) end end end end) -- Toggle Logic btn.MouseButton1Click:Connect(function() isFarming = not isFarming if isFarming then btn.Text = "FARM: ON" btn.BackgroundColor3 = Color3.fromRGB(50, 200, 50) else btn.Text = "FARM: OFF" btn.BackgroundColor3 = Color3.fromRGB(200, 50, 50) end end)