-- use tutorial shovel/wooden shovel for best experience local player = game.Players.LocalPlayer local existingGui = player:FindFirstChild("PlayerGui"):FindFirstChild("DigSellGui") if existingGui then existingGui:Destroy() end local RS = game:GetService("ReplicatedStorage") local NET = RS:WaitForChild("Network") local RF = NET:WaitForChild("RemoteFunctions") local RE = NET:WaitForChild("RemoteEvents") local sd = RF:WaitForChild("StartDigging") local ed = RE:WaitForChild("EndDigging") local ps = RE:WaitForChild("PawnShopInteraction") local gui = Instance.new("ScreenGui") gui.Name = "DigSellGui" gui.ResetOnSpawn = false gui.Parent = player:WaitForChild("PlayerGui") local frame = Instance.new("Frame") frame.Size = UDim2.new(0, 220, 0, 140) frame.Position = UDim2.new(0.5, -110, 0.5, -70) frame.BackgroundColor3 = Color3.fromRGB(40, 40, 40) frame.BorderSizePixel = 0 frame.Parent = gui frame.Active = true frame.Draggable = true local title = Instance.new("TextLabel") title.Size = UDim2.new(1, 0, 0, 30) title.BackgroundTransparency = 1 title.Text = "Auto Dig GUI" title.TextColor3 = Color3.fromRGB(255, 255, 255) title.Font = Enum.Font.SourceSansBold title.TextSize = 20 title.Parent = frame local toggle = Instance.new("TextButton") toggle.Size = UDim2.new(1, -20, 0, 40) toggle.Position = UDim2.new(0, 10, 0, 40) toggle.BackgroundColor3 = Color3.fromRGB(60, 60, 60) toggle.TextColor3 = Color3.fromRGB(255, 255, 255) toggle.Text = "Start Auto Dig" toggle.TextScaled = true toggle.Parent = frame local sellButton = Instance.new("TextButton") sellButton.Size = UDim2.new(1, -20, 0, 40) sellButton.Position = UDim2.new(0, 10, 0, 90) sellButton.BackgroundColor3 = Color3.fromRGB(255, 170, 0) sellButton.Text = "Sell" sellButton.TextScaled = true sellButton.TextColor3 = Color3.fromRGB(0, 0, 0) sellButton.Parent = frame local running = false toggle.MouseButton1Click:Connect(function() running = not running toggle.Text = running and "Stop Auto Dig" or "Start Auto Dig" if running then task.spawn(function() while running do pcall(function() sd:InvokeServer() end) task.wait() pcall(function() ed:FireServer("Succeeded") end) task.wait(0.1) end end) end end) sellButton.MouseButton1Click:Connect(function() pcall(function() ps:FireServer("SellInventory") end) end)