-- Скрипт для Аста Корона FE (Fire Emblem) -- Улучшенная версия с авто-фармом и управлением local player = game.Players.LocalPlayer local character = player.Character or player.CharacterAdded:Wait() local humanoid = character:WaitForChild("Humanoid") local rootPart = character:WaitForChild("HumanoidRootPart") -- Настройки local Settings = { AutoFarm = true, AutoSwing = true, SwingDelay = 0.5, TargetRadius = 30, ShowESP = true } -- Функция для поиска врагов local function findTargets() local targets = {} for _, enemy in ipairs(workspace.Enemies:GetChildren()) do if enemy:FindFirstChild("Humanoid") and enemy.Humanoid.Health > 0 then local distance = (enemy.HumanoidRootPart.Position - rootPart.Position).Magnitude if distance <= Settings.TargetRadius then table.insert(targets, enemy) end end end return targets end -- Функция атаки local function attack(target) if not target then return end local sword = character:FindFirstChild("Sword") or character:FindFirstChild("Katana") if sword and sword:FindFirstChild("Handle") then sword.Handle.CFrame = target.HumanoidRootPart.CFrame sword:Activate() end end -- Функция для ESP local function createESP(enemy) if not Settings.ShowESP then return end local esp = Instance.new("BillboardGui") esp.Name = "ESP" esp.Size = UDim2.new(0, 200, 0, 50) esp.AlwaysOnTop = true local label = Instance.new("TextLabel") label.Size = UDim2.new(1, 0, 1, 0) label.BackgroundTransparency = 1 label.TextColor3 = Color3.new(1, 0, 0) label.Text = enemy.Name label.Font = Enum.Font.GothamBold label.TextSize = 14 label.Parent = esp esp.Parent = enemy.Character or enemy end -- Основной цикл spawn(function() while true do if Settings.AutoFarm then local targets = findTargets() if #targets > 0 then local nearest = targets[1] local minDist = math.huge for _, target in ipairs(targets) do local dist = (target.HumanoidRootPart.Position - rootPart.Position).Magnitude if dist < minDist then minDist = dist nearest = target end end if nearest then attack(nearest) end end end wait(Settings.SwingDelay) end end) -- GUI local screenGui = Instance.new("ScreenGui") screenGui.Parent = player.PlayerGui local frame = Instance.new("Frame") frame.Size = UDim2.new(0, 200, 0, 100) frame.Position = UDim2.new(0, 10, 0, 10) frame.BackgroundColor3 = Color3.new(0.2, 0.2, 0.2) frame.BackgroundTransparency = 0.3 frame.Parent = screenGui local title = Instance.new("TextLabel") title.Size = UDim2.new(1, 0, 0, 30) title.BackgroundTransparency = 1 title.Text = "Аст Корона FE" title.TextColor3 = Color3.new(1, 1, 1) title.Font = Enum.Font.GothamBold title.TextSize = 18 title.Parent = frame local toggleButton = Instance.new("TextButton") toggleButton.Size = UDim2.new(0.8, 0, 0, 30) toggleButton.Position = UDim2.new(0.1, 0, 0.35, 0) toggleButton.BackgroundColor3 = Color3.new(0, 1, 0) toggleButton.Text = "Авто-фарм: ВКЛ" toggleButton.TextColor3 = Color3.new(0, 0, 0) toggleButton.Parent = frame toggleButton.MouseButton1Click:Connect(function() Settings.AutoFarm = not Settings.AutoFarm toggleButton.Text = Settings.AutoFarm and "Авто-фарм: ВКЛ" or "Авто-фарм: ВЫКЛ" toggleButton.BackgroundColor3 = Settings.AutoFarm and Color3.new(0, 1, 0) or Color3.new(1, 0, 0) end) -- Создание ESP для существующих врагов for _, enemy in ipairs(workspace.Enemies:GetChildren()) do createESP(enemy) end workspace.Enemies.ChildAdded:Connect(function(enemy) createESP(enemy) end) print("Скрипт Аст Корона FE загружен!")