local Players = game:GetService("Players") local ReplicatedStorage = game:GetService("ReplicatedStorage") local LocalPlayer = Players.LocalPlayer local Character = LocalPlayer.Character or LocalPlayer.CharacterAdded:Wait() local HumanoidRootPart = Character:WaitForChild("HumanoidRootPart") local Humanoid = Character:WaitForChild("Humanoid") local NoChatPrompt = ReplicatedStorage:WaitForChild("NoChatPrompt") local OpenLuckyBlock = ReplicatedStorage:WaitForChild("OpenLuckyBlock") local BrainrotsFolder = workspace:WaitForChild("Brainrots") local LuckyBlocksFolder = workspace:WaitForChild("Map"):WaitForChild("LuckyBlocks") local brainrotsCollected = LocalPlayer:WaitForChild("brainrotsCollected") local TELEPORT_DELAY = 0.3 local COLLECT_DELAY = 0.2 local LUCKY_BLOCK_DELAY = 0.15 local LOOP_DELAY = 2 local OPENS_PER_BLOCK = 3 local totalCollected = 0 local totalLuckyBlocksOpened = 0 local loopCount = 0 _G.STOP_FARMING = false local function createUI() local CoreGui = game:GetService("CoreGui") local ScreenGui = Instance.new("ScreenGui") ScreenGui.Name = "BrainrotFarmerUI" ScreenGui.ResetOnSpawn = false ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling ScreenGui.Parent = CoreGui local MainFrame = Instance.new("Frame") MainFrame.Name = "MainFrame" MainFrame.Size = UDim2.new(0, 220, 0, 90) MainFrame.Position = UDim2.new(1, -230, 1, -100) MainFrame.BackgroundColor3 = Color3.fromRGB(25, 25, 35) MainFrame.BorderSizePixel = 0 MainFrame.Parent = ScreenGui local UICorner = Instance.new("UICorner") UICorner.CornerRadius = UDim.new(0, 12) UICorner.Parent = MainFrame local UIStroke = Instance.new("UIStroke") UIStroke.Color = Color3.fromRGB(138, 43, 226) UIStroke.Thickness = 2 UIStroke.Parent = MainFrame local Gradient = Instance.new("UIGradient") Gradient.Color = ColorSequence.new({ ColorSequenceKeypoint.new(0, Color3.fromRGB(30, 30, 45)), ColorSequenceKeypoint.new(1, Color3.fromRGB(20, 20, 30)) }) Gradient.Rotation = 45 Gradient.Parent = MainFrame local CloseButton = Instance.new("TextButton") CloseButton.Name = "CloseButton" CloseButton.Size = UDim2.new(0, 24, 0, 24) CloseButton.Position = UDim2.new(1, -28, 0, 4) CloseButton.BackgroundColor3 = Color3.fromRGB(255, 60, 60) CloseButton.Text = "X" CloseButton.TextColor3 = Color3.fromRGB(255, 255, 255) CloseButton.TextSize = 14 CloseButton.Font = Enum.Font.GothamBold CloseButton.Parent = MainFrame local CloseCorner = Instance.new("UICorner") CloseCorner.CornerRadius = UDim.new(0, 6) CloseCorner.Parent = CloseButton local Title = Instance.new("TextLabel") Title.Name = "Title" Title.Size = UDim2.new(1, -40, 0, 25) Title.Position = UDim2.new(0, 10, 0, 5) Title.BackgroundTransparency = 1 Title.Text = "🧠 Brainrot Farmer" Title.TextColor3 = Color3.fromRGB(255, 255, 255) Title.TextSize = 16 Title.Font = Enum.Font.GothamBold Title.TextXAlignment = Enum.TextXAlignment.Left Title.Parent = MainFrame local DiscordButton = Instance.new("TextButton") DiscordButton.Name = "DiscordButton" DiscordButton.Size = UDim2.new(1, -20, 0, 32) DiscordButton.Position = UDim2.new(0, 10, 0, 35) DiscordButton.BackgroundColor3 = Color3.fromRGB(88, 101, 242) DiscordButton.Text = "💬 Join Discord" DiscordButton.TextColor3 = Color3.fromRGB(255, 255, 255) DiscordButton.TextSize = 14 DiscordButton.Font = Enum.Font.GothamBold DiscordButton.Parent = MainFrame local DiscordCorner = Instance.new("UICorner") DiscordCorner.CornerRadius = UDim.new(0, 8) DiscordCorner.Parent = DiscordButton local LinkLabel = Instance.new("TextLabel") LinkLabel.Name = "LinkLabel" LinkLabel.Size = UDim2.new(1, -20, 0, 15) LinkLabel.Position = UDim2.new(0, 10, 0, 70) LinkLabel.BackgroundTransparency = 1 LinkLabel.Text = "discord.gg/6KVvbEYaXF" LinkLabel.TextColor3 = Color3.fromRGB(150, 150, 170) LinkLabel.TextSize = 11 LinkLabel.Font = Enum.Font.Gotham LinkLabel.TextXAlignment = Enum.TextXAlignment.Center LinkLabel.Parent = MainFrame CloseButton.MouseButton1Click:Connect(function() ScreenGui:Destroy() end) DiscordButton.MouseButton1Click:Connect(function() setclipboard("https://discord.gg/6KVvbEYaXF") DiscordButton.Text = "✓ Copied!" task.wait(1.5) DiscordButton.Text = "💬 Join Discord" end) DiscordButton.MouseEnter:Connect(function() DiscordButton.BackgroundColor3 = Color3.fromRGB(108, 121, 255) end) DiscordButton.MouseLeave:Connect(function() DiscordButton.BackgroundColor3 = Color3.fromRGB(88, 101, 242) end) CloseButton.MouseEnter:Connect(function() CloseButton.BackgroundColor3 = Color3.fromRGB(255, 100, 100) end) CloseButton.MouseLeave:Connect(function() CloseButton.BackgroundColor3 = Color3.fromRGB(255, 60, 60) end) return ScreenGui end local function isAlreadyCollected(brainrotName) return brainrotsCollected:FindFirstChild(brainrotName) ~= nil end local function getBrainrotDisplayName(brainrotModel) local brainrotsData = ReplicatedStorage:FindFirstChild("brainrots") if brainrotsData then local data = brainrotsData:FindFirstChild(brainrotModel.Name) if data and data:FindFirstChild("name") then return data.name.Value end end return brainrotModel.Name end local function teleportTo(position) if not Character or not Character.Parent then Character = LocalPlayer.Character or LocalPlayer.CharacterAdded:Wait() HumanoidRootPart = Character:WaitForChild("HumanoidRootPart") end if HumanoidRootPart then HumanoidRootPart.CFrame = CFrame.new(position + Vector3.new(0, 3, 0)) end end local function getPosition(obj) if obj:IsA("Model") and obj.PrimaryPart then return obj.PrimaryPart.Position elseif obj:IsA("BasePart") then return obj.Position elseif obj:IsA("Model") then for _, child in ipairs(obj:GetDescendants()) do if child:IsA("BasePart") then return child.Position end end end return nil end local function collectBrainrot(brainrotName) local success, result = pcall(function() return NoChatPrompt:InvokeServer(brainrotName) end) return success and result end local function openLuckyBlock(luckyBlockName) pcall(function() OpenLuckyBlock:FireServer(luckyBlockName) end) end local function farmLuckyBlocks() local luckyBlocks = LuckyBlocksFolder:GetChildren() local opened = 0 for _, luckyBlock in ipairs(luckyBlocks) do if _G.STOP_FARMING then return opened end if luckyBlock:IsA("Model") then local position = getPosition(luckyBlock) if position then teleportTo(position) task.wait(TELEPORT_DELAY) for _ = 1, OPENS_PER_BLOCK do openLuckyBlock(luckyBlock.Name) opened = opened + 1 task.wait(LUCKY_BLOCK_DELAY) end end end end return opened end local function collectNewBrainrots() local collected = 0 local brainrots = BrainrotsFolder:GetChildren() for _, brainrot in ipairs(brainrots) do if _G.STOP_FARMING then return collected end local brainrotName = brainrot.Name if not isAlreadyCollected(brainrotName) then local position = getPosition(brainrot) if position then teleportTo(position) task.wait(TELEPORT_DELAY) local displayName = getBrainrotDisplayName(brainrot) local success = collectBrainrot(displayName) or collectBrainrot(brainrotName) if success then collected = collected + 1 print("✓ NEW BRAINROT: " .. displayName) end task.wait(COLLECT_DELAY) end end end return collected end LocalPlayer.CharacterAdded:Connect(function(char) Character = char HumanoidRootPart = char:WaitForChild("HumanoidRootPart") Humanoid = char:WaitForChild("Humanoid") end) createUI() print("========================================") print(" BRAINROT FARMER v1.0 - NON-STOP") print("========================================") print("Type: _G.STOP_FARMING = true to stop") print("========================================") print("") print("Initial sweep - collecting existing brainrots...") local initial = collectNewBrainrots() totalCollected = totalCollected + initial print("Initial collection: " .. initial .. " brainrots") print("") while not _G.STOP_FARMING do loopCount = loopCount + 1 print("--- Loop #" .. loopCount .. " ---") local opened = farmLuckyBlocks() totalLuckyBlocksOpened = totalLuckyBlocksOpened + opened task.wait(0.5) local newCollected = collectNewBrainrots() totalCollected = totalCollected + newCollected if newCollected > 0 then print("★ Got " .. newCollected .. " new brainrot(s) this loop!") end print("Total: " .. totalCollected .. " collected | " .. totalLuckyBlocksOpened .. " blocks opened") task.wait(LOOP_DELAY) end print("") print("========================================") print(" FARMING STOPPED") print("========================================") print("Total brainrots collected: " .. totalCollected) print("Total lucky blocks opened: " .. totalLuckyBlocksOpened) print("Total loops completed: " .. loopCount) print("========================================")