local Rayfield = loadstring(game:HttpGet('https://sirius.menu/rayfield'))() local Window = Rayfield:CreateWindow({ Name = "Rayfield Example Window", Icon = 0, LoadingTitle = "Rayfield Interface Suite", LoadingSubtitle = "by Sirius", ShowText = "Rayfield", Theme = "Default", ToggleUIKeybind = "K", DisableRayfieldPrompts = false, DisableBuildWarnings = false, ConfigurationSaving = { Enabled = true, FolderName = nil, FileName = "Big Hub" }, Discord = { Enabled = false, Invite = "noinvitelink", RememberJoins = true }, KeySystem = false, KeySettings = { Title = "Untitled", Subtitle = "Key System", Note = "No method of obtaining the key is provided", FileName = "Key", SaveKey = true, GrabKeyFromSite = false, Key = {"Hello"} } }) -- Сервисы local Players = game:GetService("Players") -- Локальный игрок local player = Players.LocalPlayer local character = player.Character or player.CharacterAdded:Wait() local humanoidRootPart = character:WaitForChild("HumanoidRootPart") -- Папка с моделями local conveyorFolder = workspace:WaitForChild("ConveyorCharacters") -- Переменные для управления local autoFarmEnabled = false local autoCollectCoinsEnabled = false local selectedTargets = { ["Sniper Noob"] = true, ["Noob"] = true } -- Список всех персов local allTargets = { "Sniper Noob", "Special Forces Noob", "SWAT Noob", "FBI Noob", "Marine Noob", "Soldier Noob", "Police Noob", "Veteran Noob", "President Noob", "Novice Soldier Noob", "Bacon", "Bacon Girl", "Noob" } -- Функция авто сбора монет с проверкой local function startAutoCollectCoins() autoCollectCoinsEnabled = true coroutine.wrap(function() while autoCollectCoinsEnabled do -- Проверяем существует ли папка Coins local coins = workspace:FindFirstChild("Coins") if coins then -- Получаем все монеты в папке local coinChildren = coins:GetChildren() if #coinChildren > 0 then -- Собираем все монеты for _, coin in pairs(coinChildren) do if coin:IsA("Part") or coin:IsA("MeshPart") then coin.CFrame = humanoidRootPart.CFrame + Vector3.new(0, 3, 0) end end end end task.wait(0.1) end end)() end -- Функция поиска выбранной цели local function findSelectedTarget() for _, targetName in ipairs(allTargets) do if selectedTargets[targetName] then local targetModel = conveyorFolder:FindFirstChild(targetName) if targetModel then return targetModel end end end return nil end -- Функция телепортации к цели local function teleportToTarget() local targetModel = findSelectedTarget() if not targetModel then return end local targetPart = targetModel:FindFirstChild("HumanoidRootPart") or targetModel:FindFirstChildWhichIsA("BasePart") if not targetPart then return end humanoidRootPart.CFrame = targetPart.CFrame + Vector3.new(0, 0, 3) return targetModel end -- Функция для автоматического фарма local function startAutoFarm() autoFarmEnabled = true coroutine.wrap(function() while autoFarmEnabled do local targetModel = findSelectedTarget() if targetModel then -- Телепортируемся к цели teleportToTarget() -- Зажимаем E на 1 секунду ИЛИ пока модель не пропадет keypress(0x45) local startTime = tick() while tick() - startTime < 1 and conveyorFolder:FindFirstChild(targetModel.Name) and autoFarmEnabled do task.wait(0.1) end keyrelease(0x45) end task.wait(0.1) end end)() end -- Вкладки local MainTab = Window:CreateTab("Main", 4483362458) -- Секция выбора целей local TargetSelectionSection = MainTab:CreateSection("Target Selection") -- Создаем переключатели для каждого перса local targetToggles = {} for _, targetName in ipairs(allTargets) do targetToggles[targetName] = MainTab:CreateToggle({ Name = targetName, CurrentValue = selectedTargets[targetName] or false, Flag = targetName .. "Toggle", Callback = function(Value) selectedTargets[targetName] = Value end, }) end -- Секция автоматического фарма local AutoFarmSection = MainTab:CreateSection("Auto Farm") -- Кнопка авто фарма local ToggleAutoFarm = MainTab:CreateToggle({ Name = "Auto Farm Selected", CurrentValue = false, Flag = "AutoFarmToggle", Callback = function(Value) autoFarmEnabled = Value if Value then startAutoFarm() end end, }) -- Секция монет local CoinSection = MainTab:CreateSection("Auto Coin Farm") -- Кнопка авто сбора монет local ToggleAutoCollectCoins = MainTab:CreateToggle({ Name = "Auto Collect Coins", CurrentValue = false, Flag = "AutoCollectCoinsToggle", Callback = function(Value) autoCollectCoinsEnabled = Value if Value then startAutoCollectCoins() end end, }) -- Секция информации local InfoSection = MainTab:CreateSection("Information") local StatusLabel = MainTab:CreateLabel("Status: Ready") local CurrentTargetLabel = MainTab:CreateLabel("Current Target: None") local CoinsStatusLabel = MainTab:CreateLabel("Coins: 0") -- Функция для обновления статуса local function updateStatus() while true do -- Обновляем статус целей local targetModel = findSelectedTarget() if targetModel then StatusLabel:Set("Status: Target Found") CurrentTargetLabel:Set("Current Target: " .. targetModel.Name) else StatusLabel:Set("Status: No Targets") CurrentTargetLabel:Set("Current Target: None") end -- Обновляем статус монет local coins = workspace:FindFirstChild("Coins") if coins then local coinCount = #coins:GetChildren() CoinsStatusLabel:Set("Coins: " .. coinCount) else CoinsStatusLabel:Set("Coins: Folder Not Found") end task.wait(1) end end -- Запускаем обновление статуса coroutine.wrap(updateStatus)() -- Уведомление о загрузке Rayfield:Notify({ Title = "Script Loaded", Content = "Auto Farm Noobs has been successfully loaded!", Duration = 6.5, Image = 4483362458, })