-- ===================================================== -- УПРАВЛЯЕМЫЙ АВТОФАРМ С GUI (Старт/Стоп, статус, задержка) -- ЗАДЕРЖКА МЕЖДУ ЦИКЛАМИ = 25 СЕКУНД -- ===================================================== -- ============ НАСТРОЙКИ ============ local DELAY_BETWEEN_POINTS = 0.5 -- секунд между телепортами local DELAY_BETWEEN_CYCLES = 25 -- <--- ИЗМЕНЕНО НА 25 СЕКУНД local CREATE_PLATFORMS = true local PLATFORM_SIZE = Vector3.new(12, 1, 12) local PLATFORM_COLOR = "Bright green" -- ============ КООРДИНАТЫ ============ local waypoints = { Vector3.new(-81.7, 44.8, 1369.0), Vector3.new(-95.9, 51.9, 2137.0), Vector3.new(-85.2, 50.1, 2908.4), Vector3.new(-82.0, 64.3, 3680.5), Vector3.new(-81.7, 46.0, 4450.2), Vector3.new(-58.0, 68.5, 5221.1), Vector3.new(-65.8, 47.8, 5985.4), Vector3.new(-64.1, 73.4, 6761.5), Vector3.new(-88.4, 77.8, 7517.7), Vector3.new(-33.3, 48.7, 8300.1), Vector3.new(-58.2, -361.9, 9490.1) } -- ========================================================== -- ОСТАЛЬНАЯ ЧАСТЬ (GUI, логика, кнопки, респавн) - без изменений -- ========================================================== local player = game.Players.LocalPlayer local character = player.Character or player.CharacterAdded:Wait() local hrp = character:WaitForChild("HumanoidRootPart") local running = false local currentIndex = 0 local loopCoroutine = nil local platforms = {} local function createAllPlatforms() for _, obj in ipairs(workspace:GetChildren()) do if obj.Name == "AutoPlatform" then obj:Destroy() end end platforms = {} if CREATE_PLATFORMS then for i, pos in ipairs(waypoints) do local part = Instance.new("Part") part.Size = PLATFORM_SIZE part.Position = pos part.Anchored = true part.CanCollide = true part.BrickColor = BrickColor.new(PLATFORM_COLOR) part.Material = Enum.Material.Plastic part.Name = "AutoPlatform" part.Parent = workspace table.insert(platforms, part) end print("[AutoFarm] Платформы созданы.") end end -- GUI local gui = Instance.new("ScreenGui") gui.Name = "AutoFarmGUI" gui.Parent = player:WaitForChild("PlayerGui") local frame = Instance.new("Frame") frame.Size = UDim2.new(0, 260, 0, 180) frame.Position = UDim2.new(0.02, 0, 0.02, 0) frame.BackgroundColor3 = Color3.fromRGB(20, 20, 30) frame.BackgroundTransparency = 0.15 frame.BorderSizePixel = 0 frame.Parent = gui local corner = Instance.new("UICorner") corner.CornerRadius = UDim.new(0, 10) corner.Parent = frame local title = Instance.new("TextLabel") title.Size = UDim2.new(1, 0, 0, 30) title.Position = UDim2.new(0, 0, 0, 0) title.BackgroundColor3 = Color3.fromRGB(40, 40, 60) title.BackgroundTransparency = 0.3 title.BorderSizePixel = 0 title.Text = "🚀 Автофарм (BABFT)" title.TextColor3 = Color3.fromRGB(255, 255, 255) title.TextScaled = true title.Font = Enum.Font.GothamBold title.Parent = frame local titleCorner = Instance.new("UICorner") titleCorner.CornerRadius = UDim.new(0, 10) titleCorner.Parent = title local statusLabel = Instance.new("TextLabel") statusLabel.Size = UDim2.new(1, -10, 0, 25) statusLabel.Position = UDim2.new(0, 5, 0, 35) statusLabel.BackgroundTransparency = 1 statusLabel.Text = "Статус: Остановлен" statusLabel.TextColor3 = Color3.fromRGB(200, 200, 200) statusLabel.TextScaled = true statusLabel.Font = Enum.Font.Gotham statusLabel.Parent = frame local pointLabel = Instance.new("TextLabel") pointLabel.Size = UDim2.new(1, -10, 0, 25) pointLabel.Position = UDim2.new(0, 5, 0, 65) pointLabel.BackgroundTransparency = 1 pointLabel.Text = "Точка: -" pointLabel.TextColor3 = Color3.fromRGB(180, 220, 255) pointLabel.TextScaled = true pointLabel.Font = Enum.Font.Gotham pointLabel.Parent = frame local coordLabel = Instance.new("TextLabel") coordLabel.Size = UDim2.new(1, -10, 0, 25) coordLabel.Position = UDim2.new(0, 5, 0, 92) coordLabel.BackgroundTransparency = 1 coordLabel.Text = "X: - | Y: - | Z: -" coordLabel.TextColor3 = Color3.fromRGB(200, 200, 200) coordLabel.TextScaled = true coordLabel.Font = Enum.Font.Gotham coordLabel.Parent = frame local startBtn = Instance.new("TextButton") startBtn.Size = UDim2.new(0, 100, 0, 35) startBtn.Position = UDim2.new(0.05, 0, 0, 125) startBtn.BackgroundColor3 = Color3.fromRGB(0, 150, 0) startBtn.Text = "▶ Старт" startBtn.TextColor3 = Color3.fromRGB(255, 255, 255) startBtn.TextScaled = true startBtn.Font = Enum.Font.GothamBold startBtn.BorderSizePixel = 0 startBtn.Parent = frame local startCorner = Instance.new("UICorner") startCorner.CornerRadius = UDim.new(0, 8) startCorner.Parent = startBtn local stopBtn = Instance.new("TextButton") stopBtn.Size = UDim2.new(0, 100, 0, 35) stopBtn.Position = UDim2.new(0.5, 10, 0, 125) stopBtn.BackgroundColor3 = Color3.fromRGB(180, 0, 0) stopBtn.Text = "⏹ Стоп" stopBtn.TextColor3 = Color3.fromRGB(255, 255, 255) stopBtn.TextScaled = true stopBtn.Font = Enum.Font.GothamBold stopBtn.BorderSizePixel = 0 stopBtn.Parent = frame local stopCorner = Instance.new("UICorner") stopCorner.CornerRadius = UDim.new(0, 8) stopCorner.Parent = stopBtn local function updateUI(status, pointIndex, coord) statusLabel.Text = "Статус: " .. status if pointIndex and pointIndex > 0 and pointIndex <= #waypoints then pointLabel.Text = "Точка: " .. pointIndex .. " / " .. #waypoints coordLabel.Text = string.format("X: %.1f | Y: %.1f | Z: %.1f", coord.X, coord.Y, coord.Z) else pointLabel.Text = "Точка: -" coordLabel.Text = "X: - | Y: - | Z: -" end end local function startLoop() if running then return end running = true currentIndex = 0 updateUI("Работает...", 0, nil) print("[AutoFarm] Запущен.") loopCoroutine = coroutine.create(function() while running do for i, pos in ipairs(waypoints) do if not running then break end currentIndex = i updateUI("Работает...", i, pos) if hrp and hrp.Parent then hrp.CFrame = CFrame.new(pos + Vector3.new(0, 3, 0)) else print("[AutoFarm] Персонаж не найден, жду...") player.CharacterAdded:Wait() character = player.Character hrp = character:WaitForChild("HumanoidRootPart") end task.wait(DELAY_BETWEEN_POINTS) end if running then updateUI("Цикл завершён, пауза 25 сек...", #waypoints, waypoints[#waypoints]) print("[AutoFarm] Цикл завершён, жду " .. DELAY_BETWEEN_CYCLES .. " сек...") task.wait(DELAY_BETWEEN_CYCLES) end end updateUI("Остановлен", 0, nil) print("[AutoFarm] Остановлен.") end) coroutine.resume(loopCoroutine) end local function stopLoop() if not running then return end running = false print("[AutoFarm] Остановка по запросу...") updateUI("Остановлен", 0, nil) end startBtn.MouseButton1Click:Connect(startLoop) stopBtn.MouseButton1Click:Connect(stopLoop) player.CharacterAdded:Connect(function(newChar) character = newChar hrp = character:WaitForChild("HumanoidRootPart") print("[AutoFarm] Персонаж пересоздан.") if running then stopLoop() task.wait(0.5) startLoop() end end) createAllPlatforms() updateUI("Остановлен", 0, nil) print("[AutoFarm] Скрипт загружен. Нажми 'Старт' для начала. Задержка между циклами = 25 сек.")