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, 180) -- Diperbesar untuk tombol tambahan frame.Position = UDim2.new(0.5, -110, 0.5, -90) 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 -- Auto Dig Section 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 -- Auto Sell Section local autoSellToggle = Instance.new("TextButton") autoSellToggle.Size = UDim2.new(1, -20, 0, 40) autoSellToggle.Position = UDim2.new(0, 10, 0, 90) autoSellToggle.BackgroundColor3 = Color3.fromRGB(60, 60, 60) autoSellToggle.TextColor3 = Color3.fromRGB(255, 255, 255) autoSellToggle.Text = "Start Auto Sell" autoSellToggle.TextScaled = true autoSellToggle.Parent = frame -- Manual Sell Button local sellButton = Instance.new("TextButton") sellButton.Size = UDim2.new(1, -20, 0, 40) sellButton.Position = UDim2.new(0, 10, 0, 140) sellButton.BackgroundColor3 = Color3.fromRGB(255, 170, 0) sellButton.Text = "Sell Now" sellButton.TextScaled = true sellButton.TextColor3 = Color3.fromRGB(0, 0, 0) sellButton.Parent = frame local running = false local autoSellRunning = false local autoSellConnection = nil -- Fungsi Auto Sell local function startAutoSell() autoSellConnection = game:GetService("RunService").Heartbeat:Connect(function() pcall(function() ps:FireServer("SellInventory") end) end) end local function stopAutoSell() if autoSellConnection then autoSellConnection:Disconnect() autoSellConnection = nil end end -- Toggle Auto Dig toggle.MouseButton1Click:Connect(function() running = not running toggle.Text = running and "Stop Auto Dig" or "Start Auto Dig" toggle.BackgroundColor3 = running and Color3.fromRGB(200, 60, 60) or Color3.fromRGB(60, 60, 60) 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) -- Toggle Auto Sell autoSellToggle.MouseButton1Click:Connect(function() autoSellRunning = not autoSellRunning autoSellToggle.Text = autoSellRunning and "Stop Auto Sell" or "Start Auto Sell" autoSellToggle.BackgroundColor3 = autoSellRunning and Color3.fromRGB(200, 60, 60) or Color3.fromRGB(60, 60, 60) if autoSellRunning then startAutoSell() else stopAutoSell() end end) -- Manual Sell sellButton.MouseButton1Click:Connect(function() pcall(function() ps:FireServer("SellInventory") end) end) -- Cleanup ketika GUI dihancurkan gui.Destroying:Connect(function() if autoSellConnection then autoSellConnection:Disconnect() end end)