local ScreenGui = Instance.new("ScreenGui") local MainFrame = Instance.new("Frame") local Title = Instance.new("TextLabel") local AutoDigBtn = Instance.new("TextButton") local AutoSellBtn = Instance.new("TextButton") ScreenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui") MainFrame.Name = "MainFrame" MainFrame.Parent = ScreenGui MainFrame.BackgroundColor3 = Color3.fromRGB(45, 45, 45) MainFrame.Position = UDim2.new(0.5, -100, 0.5, -75) MainFrame.Size = UDim2.new(0, 200, 0, 150) MainFrame.Active = true MainFrame.Draggable = true -- Permite mover a janela Title.Parent = MainFrame Title.Size = UDim2.new(1, 0, 0, 30) Title.Text = "Painel de Controle" Title.TextColor3 = Color3.fromRGB(255, 255, 255) Title.BackgroundTransparency = 1 local function styleButton(btn, text, pos) btn.Parent = MainFrame btn.Size = UDim2.new(0.8, 0, 0, 40) btn.Position = pos btn.Text = text .. ": OFF" btn.BackgroundColor3 = Color3.fromRGB(200, 50, 50) btn.TextColor3 = Color3.fromRGB(255, 255, 255) btn.Font = Enum.Font.SourceSansBold btn.TextSize = 18 end styleButton(AutoDigBtn, "AUTO DIG", UDim2.new(0.1, 0, 0.3, 0)) styleButton(AutoSellBtn, "AUTO SELL", UDim2.new(0.1, 0, 0.65, 0)) local digActive = false local sellActive = false AutoDigBtn.MouseButton1Click:Connect(function() digActive = not digActive if digActive then AutoDigBtn.Text = "AUTO DIG: ON" AutoDigBtn.BackgroundColor3 = Color3.fromRGB(50, 200, 50) task.spawn(function() while digActive do game:GetService("ReplicatedStorage"):WaitForChild("DigControl"):FireServer("finish") task.wait(1) end end) else AutoDigBtn.Text = "AUTO DIG: OFF" AutoDigBtn.BackgroundColor3 = Color3.fromRGB(200, 50, 50) end end) AutoSellBtn.MouseButton1Click:Connect(function() sellActive = not sellActive if sellActive then AutoSellBtn.Text = "AUTO SELL: ON" AutoSellBtn.BackgroundColor3 = Color3.fromRGB(50, 200, 50) task.spawn(function() while sellActive do game:GetService("ReplicatedStorage"):WaitForChild("SellItem"):FireServer("ALL") task.wait(1) end end) else AutoSellBtn.Text = "AUTO SELL: OFF" AutoSellBtn.BackgroundColor3 = Color3.fromRGB(200, 50, 50) end end)