What's new
Heapleak - Scripthub

Get the most out of HeapLeak by creating a free account! Once signed in, you’ll gain full access to restricted content, be able to share your own scripts, and participate in our member-only discussions.

OPENSOURCE get strong for brainrots AUTO FARM

Version / Update: v1.0.0
Download / Script Link
--works on xeno
local Rayfield = loadstring(game:HttpGet('https://sirius.menu/rayfield'))()

local Players = game:GetService("Players")
local VIM = game:GetService("VirtualInputManager")
local RS = game:GetService("RunService")
local Remotes = game:GetService("ReplicatedStorage"):WaitForChild("Remotes")
local LocalPlayer = Players.LocalPlayer

local Window = Rayfield:CreateWindow({
Name = "get strong for brainrots",
LoadingTitle = "alsk._. on disord",
LoadingSubtitle = "alsk._. on disord",
Theme = "Default",
DisableRayfieldPrompts = false,
DisableBuildWarnings = false,
})

local running = { touch = false, collect = false }
local homePos = nil
local rarityFilter = {}
local delays = { touch = 1, collectTp = 0.3, collectLoop = 0.3 }
local BASE = CFrame.new(213.452377, 37, 6.79077148)
local rarities = { "Common","Uncommon","Rare","Epic","Legendary","Mythic","Divine","Secret","OG","Celestial","Ancient" }

local function getRoot()
local c = LocalPlayer.Character
return c and c:FindFirstChild("HumanoidRootPart")
end

local function getHum()
local c = LocalPlayer.Character
return c and c:FindFirstChild("Humanoid")
end

local function tpTo(cf)
local r = getRoot()
if not r then return end
for i = 1, 3 do r.CFrame = cf; RS.Heartbeat:Wait() end
end

local function goHome()
if getRoot() then tpTo(homePos or BASE); task.wait(0.2) end
end

local function getPrompt(model)
local hrp = model:FindFirstChild("HumanoidRootPart")
if hrp then
local att = hrp:FindFirstChild("StealPromptAttachment")
if att then
local p = att:FindFirstChildOfClass("ProximityPrompt")
if p then return p, hrp end
end
end
local p = model:FindFirstChildWhichIsA("ProximityPrompt", true)
local part = model:FindFirstChild("HumanoidRootPart") or model:FindFirstChildWhichIsA("BasePart", true)
if p and part then return p, part end
return nil, nil
end

local function interact(prompt)
pcall(function() prompt.HoldDuration = 0 end)
pcall(function() prompt.MaxActivationDistance = 60 end)
pcall(function() prompt.RequiresLineOfSight = false end)
pcall(function() fireproximityprompt(prompt) end)
pcall(function() VIM:SendKeyEvent(true, Enum.KeyCode.E, false, game) end)
task.wait(0.1)
pcall(function() VIM:SendKeyEvent(false, Enum.KeyCode.E, false, game) end)
end

local function checkRarity(model)
if not next(rarityFilter) then return true end
local r = model:GetAttribute("Rarity")
if not r then
for _, d in ipairs(model:GetDescendants()) do
local v = d:GetAttribute("Rarity")
if v then r = v; break end
end
end
if not r then return true end
return rarityFilter[r] == true
end

local function collectMoney()
local r = getRoot()
if not r then return end
local bases = workspace:FindFirstChild("Bases")
if not bases then return end
for _, plot in ipairs(bases:GetChildren()) do
if plot.Name:find("Plot") then
local slots = plot:FindFirstChild("Slots")
if slots then
for _, slot in ipairs(slots:GetChildren()) do
local col = slot:FindFirstChild("Collect")
if col then
local ti = col:FindFirstChildOfClass("TouchTransmitter")
if ti then
firetouchinterest(col, r, 0)
task.wait(0.02)
firetouchinterest(col, r, 1)
end
end
end
end
end
end
end

local function farmLoop()
while running.collect do
local h = getHum()
if not h or h.Health <= 0 then task.wait(1); continue end
local folder = workspace:FindFirstChild("Brainrots")
if folder then
for _, b in ipairs(folder:GetChildren()) do
if not running.collect then break end
if not b:IsA("Model") then continue end
if not checkRarity(b) then continue end
local prompt, hrp = getPrompt(b)
if prompt and hrp then
tpTo(hrp.CFrame * CFrame.new(0, 2, 4))
task.wait(delays.collectTp)
if not getRoot() then break end
interact(prompt)
task.wait(0.15)
goHome()
task.wait(0.05)
end
end
else
task.wait(1)
end
task.wait(delays.collectLoop)
end
end

local FarmTab = Window:CreateTab("Farm", "shovel")
local BrainrotTab = Window:CreateTab("Brainrot", "package")

-- farm tab

FarmTab:CreateSection("Collect Money")

FarmTab:CreateToggle({
Name = "Auto collect money",
CurrentValue = false,
Flag = "autoTouch",
Callback = function(v)
running.touch = v
if v then
task.spawn(function()
while running.touch do
collectMoney()
task.wait(delays.touch)
end
end)
end
end,
})

FarmTab:CreateSlider({
Name = "Collect delay (sec)",
Range = {0.1, 5},
Increment = 0.1,
Suffix = "s",
CurrentValue = 1,
Flag = "touchDelay",
Callback = function(v) delays.touch = v end,
})

FarmTab:CreateButton({
Name = "Collect once",
Callback = function()
collectMoney()
Rayfield:Notify({ Title = "Done", Content = "Collected all slots!", Duration = 2, Image = "check" })
end,
})

-- brainrot tab

BrainrotTab:CreateSection("Home Position")

BrainrotTab:CreateButton({
Name = "Save Position",
Callback = function()
local r = getRoot()
if r then
homePos = r.CFrame
Rayfield:Notify({
Title = "Saved",
Content = ("X:%.1f Y:%.1f Z:%.1f"):format(r.Position.X, r.Position.Y, r.Position.Z),
Duration = 3,
Image = "check",
})
else
Rayfield:Notify({ Title = "Error", Content = "Character not found!", Duration = 3, Image = "x" })
end
end,
})

BrainrotTab:CreateButton({
Name = "Teleport To Position",
Callback = function()
goHome()
Rayfield:Notify({ Title = "Teleported", Content = "Back to home!", Duration = 2, Image = "home" })
end,
})

BrainrotTab:CreateSection("Rarity Filter")

for _, rarity in ipairs(rarities) do
BrainrotTab:CreateToggle({
Name = rarity,
CurrentValue = false,
Flag = "rarity_" .. rarity,
Callback = function(v)
rarityFilter[rarity] = v or nil
end,
})
end

BrainrotTab:CreateSection("Auto Farm")

BrainrotTab:CreateToggle({
Name = "Auto farm",
CurrentValue = false,
Flag = "autoCollect",
Callback = function(v)
running.collect = v
if v then
if not homePos then
Rayfield:Notify({ Title = "Warning", Content = "Save home position first!", Duration = 4, Image = "alert-triangle" })
end
task.spawn(farmLoop)
end
Rayfield:Notify({
Title = "Auto Farm",
Content = v and "Started!" or "Stopped.",
Duration = 2,
Image = v and "play" or "square",
})
end,
})

BrainrotTab:CreateSlider({
Name = "Teleport Settle Delay (sec)",
Range = {0.1, 2},
Increment = 0.1,
Suffix = "s",
CurrentValue = 0.3,
Flag = "tpDelay",
Callback = function(v) delays.collectTp = v end,
})

BrainrotTab:CreateSlider({
Name = "Loop Cooldown (sec)",
Range = {0.1, 3},
Increment = 0.1,
Suffix = "s",
CurrentValue = 0.3,
Flag = "loopDelay",
Callback = function(v) delays.collectLoop = v end,
})

Rayfield:Notify({
Title = "Get STRONG for Brainrots!",
Content = "Loaded! Thanks for using the script",
Duration = 5,
Image = "heart",
})
[ View More ]
81bdae82-3cba-489e-ab20-68e7531dcac4.webp


my bad for being inactive i got termed off robloxscript has:auto farm brainrotsauto collect money
 
Back
Top