local Rayfield = loadstring(game:HttpGet('https://raw.githubusercontent.com/UI-Interface/CustomFIeld/main/RayField.lua'))() local Window = Rayfield:CreateWindow({ Name = "The Mexican Border Autofarm", LoadingTitle = "The Mexican Border Autofarm", LoadingSubtitle = "by diddler the fiddler", ConfigurationSaving = { Enabled = true, FolderName = nil, FileName = "Arrayfield" }, Discord = { Enabled = false, Invite = "sirius", RememberJoins = true }, KeySystem = false, KeySettings = { Title = "Arrayfield", Subtitle = "Key System", Note = "Join the discord (discord.gg/sirius)", FileName = "SiriusKey", SaveKey = false, GrabKeyFromSite = false, Key = "Hello" } }) local Tab = Window:CreateTab("Autofarm", 4483362458) local Section = Tab:CreateSection("Siigma ligma",false) local VirtualInputManager = game:GetService("VirtualInputManager") local TweenService = game:GetService("TweenService") local Players = game:GetService("Players") local player = Players.LocalPlayer local FarmOn = false local Clicktrashboom = nil local jumpehstuck = nil local teleporttosht = nil local Trashbugnosameplace = {} local trashCooldowns = {} local notificationLibrary = loadstring(game:HttpGet("https://raw.githubusercontent.com/laagginq/ui-libraries/main/xaxas-notification/src.lua"))() local notifications = notificationLibrary.new({ NotificationLifetime = 10, NotificationPosition = "Middle", TextFont = Enum.Font.Code, TextColor = Color3.fromRGB(255, 255, 255), TextSize = 15, TextStrokeTransparency = 0, TextStrokeColor = Color3.fromRGB(0, 0, 0) }) notifications:BuildNotificationUI() function hasBroom() if not player.Character then return false end local backpack = player:FindFirstChild("Backpack") local character = player.Character if backpack then for _, item in ipairs(backpack:GetChildren()) do if item.Name == "Broom" and item:IsA("Tool") then return true, item end end end for _, item in ipairs(character:GetChildren()) do if item.Name == "Broom" and item:IsA("Tool") then return true, item end end return false, nil end function equipBroom() local hasIt, broomItem = hasBroom() if not hasIt then return false end if not broomItem.Parent:IsA("Backpack") then player.Character.Humanoid:EquipTool(broomItem) end return true end function canVisitTrash(trashPart) if not trashPart then return false end local now = tick() local trashId = tostring(trashPart) if trashCooldowns[trashId] then if now - trashCooldowns[trashId] < 10 then return false else trashCooldowns[trashId] = nil end end return true end function markTrashVisited(trashPart) if trashPart then local trashId = tostring(trashPart) trashCooldowns[trashId] = tick() end end local Toggle = Tab:CreateToggle({ Name = "Toggle Farm", Info = "Collect trash equip broom and ez monayy", CurrentValue = false, Flag = "Toggle1", Callback = function(Value) FarmOn = Value if Value then local hasIt = hasBroom() if not hasIt then notifications:Notify("Hello Go buy a broom and retoggle to work") FarmOn = false Toggle:Set(false) return end if not equipBroom() then notifications:Notify("Failed to equip broom!") FarmOn = false Toggle:Set(false) return end startFarm() else stopFarm() end end, }) function startFarm() local character = player.Character or player.CharacterAdded:Wait() local root = character:WaitForChild("HumanoidRootPart") trashCooldowns = {} Clicktrashboom = task.spawn(function() while FarmOn and task.wait(0.05) do if not equipBroom() then notifications:Notify("Broom missing! Re-equip broom and retoggle") stopFarm() Toggle:Set(false) break end local mouse = player:GetMouse() VirtualInputManager:SendMouseButtonEvent(mouse.X, mouse.Y, 0, true, game, 0) VirtualInputManager:SendMouseButtonEvent(mouse.X, mouse.Y, 0, false, game, 0) end end) jumpehstuck = task.spawn(function() while FarmOn and task.wait(1) do if not equipBroom() then notifications:Notify("Broom missing! Re-equip broom and retoggle") stopFarm() Toggle:Set(false) break end VirtualInputManager:SendKeyEvent(true, Enum.KeyCode.Space, false, nil) task.wait(0.05) VirtualInputManager:SendKeyEvent(false, Enum.KeyCode.Space, false, nil) end end) teleporttosht = task.spawn(function() while FarmOn do if not equipBroom() then notifications:Notify("Broom missing! Re-equip broom and retoggle") stopFarm() Toggle:Set(false) break end local trash = workspace.Trash:GetChildren() local availableTrash = {} for _, target in ipairs(trash) do if target and target:IsA("BasePart") and canVisitTrash(target) then table.insert(availableTrash, target) end end if #availableTrash == 0 then notifications:Notify("Waiting for trash to respawn...") task.wait(2) trashCooldowns = {} continue end for _, target in ipairs(availableTrash) do if not FarmOn then break end if not equipBroom() then notifications:Notify("Broom missing! Re-equip broom and retoggle") stopFarm() Toggle:Set(false) break end local tween = TweenService:Create(root, TweenInfo.new(1), {CFrame = target.CFrame}) tween:Play() tween.Completed:Wait() markTrashVisited(target) if not FarmOn then break end end if FarmOn then task.wait(0.5) end end end) end function stopFarm() FarmOn = false if Clicktrashboom then task.cancel(Clicktrashboom) Clicktrashboom = nil end if jumpehstuck then task.cancel(jumpehstuck) jumpehstuck = nil end if teleporttosht then task.cancel(teleporttosht) teleporttosht = nil end trashCooldowns = {} end task.spawn(function() while task.wait(5) do local now = tick() local toRemove = {} for trashId, visitTime in pairs(trashCooldowns) do if now - visitTime >= 10 then table.insert(toRemove, trashId) end end for _, trashId in ipairs(toRemove) do trashCooldowns[trashId] = nil end end end)