local Settings = { JoinTeam = "Pirates"; -- Pirates / Marines Translator = true; -- true / false } local TabAutoFarm = Window:CreateTab("Auto Farm", nil) local Section = Tab:CreateSection("Farm") local plr = game.Players.LocalPlayer local ReplicatedStorage = game.ReplicatedStorage local CommF_ = ReplicatedStorage.Remotes.CommF_ local function EquipWeapon() local char = plr.Character local backpack = plr.Backpack if char:FindFirstChild(_G.SelectedWeapon) then char:FindFirstChild(_G.SelectedWeapon).Parent = char elseif backpack:FindFirstChild(_G.SelectedWeapon) then backpack:FindFirstChild(_G.SelectedWeapon).Parent = char end end local function QuestCheck() local lvl = plr.Data.Level.Value if lvl >= 1 and lvl <= 9 then return {QuestName = "BanditQuest1", Monster = "Bandit", QuestData = 1} elseif lvl >= 10 and lvl <= 14 then return {QuestName = "MonkeyQuest", Monster = "Monkey", QuestData = 1} elseif lvl >= 15 and lvl <= 29 then return {QuestName = "MonkeyQuest", Monster = "Gorilla", QuestData = 2} -- 🔷 Tambahkan level selanjutnya di sini else return nil end end local function BringMobs(monsterName) for _, mob in pairs(workspace.Enemies:GetChildren()) do if mob.Name == monsterName and mob:FindFirstChild("HumanoidRootPart") then mob.HumanoidRootPart.CFrame = plr.Character.HumanoidRootPart.CFrame * CFrame.new(0, 0, -3) mob.HumanoidRootPart.Anchored = true end end end local function AttackMob(monsterName) for _, mob in pairs(workspace.Enemies:GetChildren()) do if mob.Name == monsterName and mob:FindFirstChild("Humanoid") and mob.Humanoid.Health > 0 then plr.Character.HumanoidRootPart.CFrame = mob.HumanoidRootPart.CFrame + Vector3.new(0, 2, 0) BringMobs(monsterName) local tool = plr.Character:FindFirstChildOfClass("Tool") if tool then tool:Activate() end end end end TabAutoFarm:CreateToggle({ Name = "Auto Farm Level", CurrentValue = false, Callback = function(state) _G.AutoFarmLevel = state if state then task.spawn(function() while _G.AutoFarmLevel do pcall(function() local quest = QuestCheck() if quest then CommF_:InvokeServer("StartQuest", quest.QuestName, quest.QuestData) EquipWeapon() AttackMob(quest.Monster) end end) task.wait(0.1) end end) else -- Lepas anchoring mob kalau toggle mati for _, mob in pairs(workspace.Enemies:GetChildren()) do if mob:FindFirstChild("HumanoidRootPart") then mob.HumanoidRootPart.Anchored = false end end end end }) local Section = Tab:CreateSection("Quest") local function GetNearestEnemy() local nearest, dist = nil, math.huge for _,mob in pairs(workspace.Enemies:GetChildren()) do if mob:FindFirstChild("Humanoid") and mob.Humanoid.Health > 0 and mob:FindFirstChild("HumanoidRootPart") then local d = (plr.Character.HumanoidRootPart.Position - mob.HumanoidRootPart.Position).Magnitude if d < dist then nearest = mob dist = d end end end return nearest end TabAutoFarm:CreateToggle({ Name = "Auto Farm Nearest Enemy", CurrentValue = false, Callback = function(state) _G.AutoFarmNearest = state if state then task.spawn(function() while _G.AutoFarmNearest do pcall(function() local mob = GetNearestEnemy() if mob then plr.Character.HumanoidRootPart.CFrame = mob.HumanoidRootPart.CFrame + Vector3.new(0,2,0) local tool = plr.Character:FindFirstChildOfClass("Tool") if tool then tool:Activate() end end end) task.wait(0.1) end end) end end }) local Section = Tab:CreateSection("Chest") SectionChest:CreateToggle({ Name = "Auto Collect Chest", CurrentValue = false, Callback = function(state) _G.AutoCollectChest = state if state then task.spawn(function() while _G.AutoCollectChest do pcall(function() for _, chest in pairs(workspace:GetChildren()) do if chest:IsA("Model") and chest:FindFirstChild("TouchInterest") then if chest:FindFirstChild("Part") then game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = chest.Part.CFrame + Vector3.new(0,2,0) task.wait(0.2) end end end end) task.wait(1) end end) end end }) local TabWeapon = Window:CreateTab("Config", nil) TabAutoFarm:CreateToggle({ Name = "Bring Mob", CurrentValue = true, Callback = function(state) _G.BringMob = state if state then task.spawn(function() while _G.BringMob do for _, mob in pairs(workspace.Enemies:GetChildren()) do if mob:FindFirstChild("HumanoidRootPart") then mob.HumanoidRootPart.CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame * CFrame.new(0,0,-3) mob.HumanoidRootPart.Anchored = true end end task.wait(0.1) end end) else for _, mob in pairs(workspace.Enemies:GetChildren()) do if mob:FindFirstChild("HumanoidRootPart") then mob.HumanoidRootPart.Anchored = false end end end end }) local TabStats = Window:CreateTab("Stats", nil) local Section = Tab:CreateSection("Section Example") -- Ini Stats nya local CommF_ = game.ReplicatedStorage.Remotes.CommF_ -- 🌟 Function helper untuk auto stats local function AutoStats(stat) task.spawn(function() while _G["AutoStats_" .. stat] do pcall(function() CommF_:InvokeServer("AddPoint", stat, 1) end) task.wait(0.5) end end) end -- 🌟 Tab Stats di Rayfield local TabStats = Window:CreateTab("Stats", nil) TabStats:CreateToggle({ Name = "Auto Stats Melee", CurrentValue = false, Callback = function(state) _G.AutoStats_Melee = state if state then AutoStats("Melee") end end }) TabStats:CreateToggle({ Name = "Auto Stats Sword", CurrentValue = false, Callback = function(state) _G.AutoStats_Sword = state if state then AutoStats("Sword") end end }) TabStats:CreateToggle({ Name = "Auto Stats Defense", CurrentValue = false, Callback = function(state) _G.AutoStats_Defense = state if state then AutoStats("Defense") end end }) TabStats:CreateToggle({ Name = "Auto Stats Gun", CurrentValue = false, Callback = function(state) _G.AutoStats_Gun = state if state then AutoStats("Gun") end end }) TabStats:CreateToggle({ Name = "Auto Stats Blox Fruit", CurrentValue = false, Callback = function(state) _G.AutoStats_BloxFruit = state if state then AutoStats("Demon Fruit") end end }) local TabSkills = Window:CreateTab("Skills", nil) local Section = Tab:CreateSection("Section Example") -- Ini Skill Ya local function AutoSkill(key) task.spawn(function() while _G["AutoSkill_"..key] do pcall(function() game.VirtualInputManager:SendKeyEvent(true, key, false, game) task.wait(0.2) game.VirtualInputManager:SendKeyEvent(false, key, false, game) end) task.wait(1) -- delay antar skill end end) end local TabSkills = Window:CreateTab("Skills", nil) TabSkills:CreateToggle({ Name = "Auto Skill Z", CurrentValue = false, Callback = function(state) _G.AutoSkill_Z = state if state then AutoSkill("Z") end end }) TabSkills:CreateToggle({ Name = "Auto Skill X", CurrentValue = false, Callback = function(state) _G.AutoSkill_X = state if state then AutoSkill("X") end end }) TabSkills:CreateToggle({ Name = "Auto Skill C", CurrentValue = false, Callback = function(state) _G.AutoSkill_C = state if state then AutoSkill("C") end end }) TabSkills:CreateToggle({ Name = "Auto Skill V", CurrentValue = false, Callback = function(state) _G.AutoSkill_V = state if state then AutoSkill("V") end end }) local TabMisc = Window:CreateTab("Misc", nil) TabMisc:CreateToggle({ Name = "FPS Boost / Low CPU", CurrentValue = false, Callback = function(state) _G.FPSBoost = state end }) TabMisc:CreateButton({ Name = "Rejoin Server", Callback = function() game:GetService("TeleportService"):Teleport(game.PlaceId, game.Players.LocalPlayer) end }) TabMisc:CreateButton({ Name = "Reset Character", Callback = function() game.Players.LocalPlayer.Character.Humanoid.Health = 0 end }) TabMisc:CreateToggle({ Name = "Anti AFK", CurrentValue = false, Callback = function(state) _G.AntiAFK = state end }) local TabESP = Window:CreateTab("ESP", 4483362458) TabESP:CreateToggle({ Name = "ESP Enemies", CurrentValue = false, Callback = function(state) _G.ESPEnemies = state end }) TabESP:CreateToggle({ Name = "ESP Players", CurrentValue = false, Callback = function(state) _G.ESPPlayers = state end }) TabESP:CreateToggle({ Name = "ESP Chests", CurrentValue = false, Callback = function(state) _G.ESPChests = state end }) TabESP:CreateToggle({ Name = "ESP Fruits", CurrentValue = false, Callback = function(state) _G.ESPFruits = state end }) local TabWeapon = Window:CreateTab("Weapon & Fighting Style", 4483362458) TabWeapon:CreateDropdown({ Name = "Select Weapon", Options = {"Combat", "Dark Step", "Electric", "Water Kung Fu", "Dragon Breath"}, CurrentOption = "Combat", Callback = function(option) _G.SelectedWeapon = option end }) TabWeapon:CreateToggle({ Name = "Auto Haki", CurrentValue = false, Callback = function(state) _G.AutoHaki = state end }) TabWeapon:CreateToggle({ Name = "Auto Observation", CurrentValue = false, Callback = function(state) _G.AutoObservation = state end }) TabWeapon:CreateToggle({ Name = "Auto Enchant", CurrentValue = false, Callback = function(state) _G.AutoEnchant = state end }) TabWeapon:CreateToggle({ Name = "Auto Ken V2", CurrentValue = false, Callback = function(state) _G.AutoKen = state end })