local player = game.Players.LocalPlayer local ReplicatedStorage = game:GetService("ReplicatedStorage") local RunService = game:GetService("RunService") local UserInputService = game:GetService("UserInputService") local RebirthEvent = ReplicatedStorage:WaitForChild("ConvertDots") local DotsEvent = ReplicatedStorage:WaitForChild("IncrementDots") local CrateEvent = ReplicatedStorage:WaitForChild("BuyCrate") local DrawShapeEvent = ReplicatedStorage:WaitForChild("DrawShape") local autoRebirthEnabled = false local autoDotsEnabled = false local autoSpiralEnabled = false local rebirthConnection = nil local dotsConnection = nil local spiralConnection = nil local SPIRAL_COOLDOWN = 0.4 local screenGui = Instance.new("ScreenGui") screenGui.Name = "AutoFarmGUI" screenGui.ResetOnSpawn = false screenGui.Parent = player:WaitForChild("PlayerGui") local frame = Instance.new("Frame") frame.Size = UDim2.new(0, 270, 0, 320) frame.Position = UDim2.new(0, 10, 0, 10) frame.BackgroundColor3 = Color3.fromRGB(30, 30, 30) frame.BorderSizePixel = 0 frame.Active = true frame.Parent = screenGui -- Hacer GUI arrastrable (mismo código) local dragging = false local dragStart, startPos frame.InputBegan:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then dragging = true dragStart = input.Position startPos = frame.Position end end) UserInputService.InputChanged:Connect(function(input) if dragging and (input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch) then local delta = input.Position - dragStart frame.Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y) end end) frame.InputEnded:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then dragging = false end end) local title = Instance.new("TextLabel") title.Size = UDim2.new(1, -40, 0, 40) title.BackgroundColor3 = Color3.fromRGB(20, 20, 20) title.Text = "Auto Farm" title.TextColor3 = Color3.fromRGB(255, 255, 255) title.TextScaled = true title.Font = Enum.Font.GothamBold title.Parent = frame local closeButton = Instance.new("TextButton") closeButton.Size = UDim2.new(0, 40, 0, 40) closeButton.Position = UDim2.new(1, -40, 0, 0) closeButton.BackgroundColor3 = Color3.fromRGB(200, 50, 50) closeButton.Text = "X" closeButton.TextColor3 = Color3.fromRGB(255, 255, 255) closeButton.TextScaled = true closeButton.Font = Enum.Font.GothamBold closeButton.Parent = frame closeButton.MouseButton1Click:Connect(function() screenGui:Destroy() end) local yOffset = 50 local buttonHeight = 45 local spacing = 10 local rebirthButton = Instance.new("TextButton") rebirthButton.Size = UDim2.new(0.9, 0, 0, buttonHeight) rebirthButton.Position = UDim2.new(0.05, 0, 0, yOffset) rebirthButton.BackgroundColor3 = Color3.fromRGB(200, 50, 50) rebirthButton.Text = "Auto Rebirth: OFF" rebirthButton.TextColor3 = Color3.fromRGB(255, 255, 255) rebirthButton.TextScaled = true rebirthButton.Font = Enum.Font.GothamSemibold rebirthButton.Parent = frame local dotsButton = Instance.new("TextButton") dotsButton.Size = UDim2.new(0.9, 0, 0, buttonHeight) dotsButton.Position = UDim2.new(0.05, 0, 0, yOffset + buttonHeight + spacing) dotsButton.BackgroundColor3 = Color3.fromRGB(50, 200, 50) dotsButton.Text = "Auto Dots: OFF" dotsButton.TextColor3 = Color3.fromRGB(255, 255, 255) dotsButton.TextScaled = true dotsButton.Font = Enum.Font.GothamSemibold dotsButton.Parent = frame local crateButton = Instance.new("TextButton") crateButton.Size = UDim2.new(0.9, 0, 0, buttonHeight) crateButton.Position = UDim2.new(0.05, 0, 0, yOffset + 2*(buttonHeight + spacing)) crateButton.BackgroundColor3 = Color3.fromRGB(100, 100, 255) crateButton.Text = "Open 10 Best Crates" crateButton.TextColor3 = Color3.fromRGB(255, 255, 255) crateButton.TextScaled = true crateButton.Font = Enum.Font.GothamSemibold crateButton.Parent = frame local spiralButton = Instance.new("TextButton") spiralButton.Size = UDim2.new(0.9, 0, 0, buttonHeight) spiralButton.Position = UDim2.new(0.05, 0, 0, yOffset + 3*(buttonHeight + spacing)) spiralButton.BackgroundColor3 = Color3.fromRGB(180, 50, 180) spiralButton.Text = "Spam Spiral: OFF" spiralButton.TextColor3 = Color3.fromRGB(255, 255, 255) spiralButton.TextScaled = true spiralButton.Font = Enum.Font.GothamSemibold spiralButton.Parent = frame local function toggleRebirth() autoRebirthEnabled = not autoRebirthEnabled if autoRebirthEnabled then rebirthButton.Text = "Auto Rebirth: ON" rebirthButton.BackgroundColor3 = Color3.fromRGB(50, 200, 50) rebirthConnection = RunService.Heartbeat:Connect(function() pcall(function() RebirthEvent:FireServer() end) end) else rebirthButton.Text = "Auto Rebirth: OFF" rebirthButton.BackgroundColor3 = Color3.fromRGB(200, 50, 50) if rebirthConnection then rebirthConnection:Disconnect() end end end local function toggleDots() autoDotsEnabled = not autoDotsEnabled if autoDotsEnabled then dotsButton.Text = "Auto Dots: ON" dotsButton.BackgroundColor3 = Color3.fromRGB(50, 200, 50) dotsConnection = RunService.Heartbeat:Connect(function() pcall(function() DotsEvent:FireServer(100000000000000000000000) end) end) else dotsButton.Text = "Auto Dots: OFF" dotsButton.BackgroundColor3 = Color3.fromRGB(50, 200, 50) if dotsConnection then dotsConnection:Disconnect() end end end local function open10Crates() crateButton.Text = "Opening 10 Crates..." for i = 1, 10 do pcall(function() CrateEvent:FireServer("Void Crate") end) task.wait(0.08) end crateButton.Text = "Open 10 Best Crates" end local function toggleSpiral() autoSpiralEnabled = not autoSpiralEnabled if autoSpiralEnabled then spiralButton.Text = "Spam Spiral: ON" spiralButton.BackgroundColor3 = Color3.fromRGB(200, 50, 200) spiralConnection = RunService.Heartbeat:Connect(function() if autoSpiralEnabled then pcall(function() DrawShapeEvent:FireServer( "Spiral", Vector3.new(-87.560485839844, 3, 104.57141113281), Vector3.new(-0.9680802822113, 2.6916618267592e-08, -0.25064039230347) ) end) task.wait(SPIRAL_COOLDOWN) -- Cooldown aquí end end) else spiralButton.Text = "Spam Spiral: OFF" spiralButton.BackgroundColor3 = Color3.fromRGB(180, 50, 180) if spiralConnection then spiralConnection:Disconnect() spiralConnection = nil end end end rebirthButton.MouseButton1Click:Connect(toggleRebirth) dotsButton.MouseButton1Click:Connect(toggleDots) crateButton.MouseButton1Click:Connect(open10Crates) spiralButton.MouseButton1Click:Connect(toggleSpiral)