-- ============================================= -- KING LEGACY SCRIPT - 3 TABS -- ============================================= local Library = loadstring(game:HttpGet("https://raw.githubusercontent.com/xHeptc/Kavo-UI-Library/main/source.lua"))() local Window = Library.CreateLib("King Legacy Script", "DarkTheme") -- ==================== TAB 1: AUTO SEA EVENTS ==================== local SeaTab = Window:NewTab("🌊 Auto Sea Events") local SeaMain = SeaTab:NewSection("Auto Sea Events") local SeaConfig = SeaTab:NewSection("Configurações") getgenv().SeaSettings = { AutoAll = false, KillAura = false, Distance = 2000 } SeaMain:NewToggle("Auto Sea Events", "Farm todos os eventos do mar", false, function(state) getgenv().SeaSettings.AutoAll = state while getgenv().SeaSettings.AutoAll do pcall(function() for _, enemy in pairs(workspace.Enemies:GetChildren()) do if enemy:FindFirstChild("HumanoidRootPart") and enemy:FindFirstChild("Humanoid") and enemy.Humanoid.Health > 0 then local name = enemy.Name:lower() if name:find("sea king") or name:find("hydra") or name:find("kraken") or name:find("ghost ship") or name:find("galleon") or name:find("deep sea") or name:find("abyssal") then local root = game.Players.LocalPlayer.Character:FindFirstChild("HumanoidRootPart") if root then root.CFrame = enemy.HumanoidRootPart.CFrame * CFrame.new(0, 12, 0) end end end end end) task.wait(0.7) end end) SeaMain:NewToggle("Kill Aura Sea Events", "Ataca automaticamente", false, function(state) getgenv().SeaSettings.KillAura = state while getgenv().SeaSettings.KillAura do pcall(function() for _, enemy in pairs(workspace.Enemies:GetChildren()) do local root = game.Players.LocalPlayer.Character:FindFirstChild("HumanoidRootPart") if root and enemy:FindFirstChild("HumanoidRootPart") and (enemy.HumanoidRootPart.Position - root.Position).Magnitude < 50 then -- Skill spam pode ser adicionado aqui end end end) task.wait(0.25) end end) SeaConfig:NewButton("TP para Evento Mais Próximo", "Teleporta imediatamente", function() pcall(function() for _, enemy in pairs(workspace.Enemies:GetChildren()) do local name = enemy.Name:lower() if name:find("sea king") or name:find("hydra") or name:find("kraken") or name:find("ghost") then local root = game.Players.LocalPlayer.Character:FindFirstChild("HumanoidRootPart") if root then root.CFrame = enemy.HumanoidRootPart.CFrame * CFrame.new(0, 25, 0) end break end end end) end) SeaConfig:NewSlider("Distância Máxima", "Alcance de detecção", 5000, 300, 10000, function(v) getgenv().SeaSettings.Distance = v end) -- ==================== TAB 2: AUTO FARM ==================== local FarmTab = Window:NewTab("⚔️ Auto Farm") local FarmSection = FarmTab:NewSection("Auto Farm Mobs") FarmSection:NewToggle("Auto Farm Mobs", "Farm mobs próximos automaticamente", false, function(state) getgenv().AutoFarmMobs = state while getgenv().AutoFarmMobs do pcall(function() for _, enemy in pairs(workspace.Enemies:GetChildren()) do if enemy:FindFirstChild("HumanoidRootPart") and enemy:FindFirstChild("Humanoid") and enemy.Humanoid.Health > 0 then local root = game.Players.LocalPlayer.Character:FindFirstChild("HumanoidRootPart") if root and (enemy.HumanoidRootPart.Position - root.Position).Magnitude < 100 then root.CFrame = enemy.HumanoidRootPart.CFrame * CFrame.new(0, 10, 0) end end end end) task.wait(0.5) end end) FarmSection:NewToggle("Auto Quest", "Faz quests automaticamente", false, function(state) getgenv().AutoQuest = state end) -- ==================== TAB 3: AUTO GET FRUIT ==================== local FruitTab = Window:NewTab("🍎 Auto Get Fruit") local FruitSection = FruitTab:NewSection("Auto Fruit") FruitSection:NewToggle("Auto Collect Fruits", "Pega frutas no chão automaticamente", false, function(state) getgenv().AutoCollectFruit = state while getgenv().AutoCollectFruit do pcall(function() for _, fruit in pairs(workspace:GetChildren()) do if fruit:IsA("Model") and fruit:FindFirstChild("Handle") then local name = fruit.Name:lower() if name:find("fruit") or name:find("gomu") or name:find("mera") or name:find("hie") then local root = game.Players.LocalPlayer.Character:FindFirstChild("HumanoidRootPart") if root then root.CFrame = fruit.Handle.CFrame end end end end end) task.wait(1) end end) FruitSection:NewButton("Teleport to Nearest Fruit", "TP para fruta mais próxima", function() pcall(function() for _, fruit in pairs(workspace:GetChildren()) do if fruit:FindFirstChild("Handle") then local name = fruit.Name:lower() if name:find("fruit") then local root = game.Players.LocalPlayer.Character:FindFirstChild("HumanoidRootPart") if root then root.CFrame = fruit.Handle.CFrame * CFrame.new(0, 5, 0) end break end end end end) end) FruitSection:NewToggle("Auto Eat Fruit", "Come fruta automaticamente", false, function(state) getgenv().AutoEatFruit = state end) print("✅ Script com 3 Tabs carregado com sucesso!")