getgenv().KaitunConfig = { Enabled = true, AutoFarm = { Enabled = true, RockTypes = {"Pebble", "Rock", "Boulder"}, Tool = "Auto", Mode = "Up", Highlight = true, Duration = 300, -- Giây, farm rock xong chuyển Monster RotationCount = 5 -- Farm mỗi loại rock 5 lần rồi chuyển loại }, AutoMonsterFarm = { Enabled = true, MonsterTypes = {"Zombie", "EliteZombie"}, Highlight = true, Duration = 300, -- Giây, farm monster xong chuyển Material RotationCount = 5 -- Farm mỗi loại monster 5 lần rồi chuyển loại }, AutoMaterialFarm = { Enabled = false, Materials = {"Tiny Essence", "Small Essence"}, Duration = 300, -- Giây, farm material xong chuyển Rock RotationCount = 5 -- Farm mỗi loại material 5 lần rồi chuyển loại }, AutoSell = { Enabled = true, Ores = {"Stone", "Sand Stone", "Copper"}, Materials = {}, OreQuantity = 1, -- Số lượng ore bán mỗi lần MaterialQuantity = 1, -- Số lượng material bán mỗi lần Interval = 5, -- Bán mỗi 5 giây ByRank = false, Ranks = {"Common"} }, Misc = { FullBright = true, NoFog = true, AutoRemoveLava = true, OreEsp = true }, Rotation = { Enabled = true }, KeepKaitun = true -- Tự động rejoin khi bị kick/disconnect } local function deepMerge(target, source) for k, v in pairs(source) do if type(v) == "table" and type(target[k]) == "table" then deepMerge(target[k], v) else target[k] = v end end return target end -- Load config từ file nếu có (ƯU TIÊN config đã save) if isfile and isfile("KaitunConfig.json") then local success, fileConfig = pcall(function() return game:GetService("HttpService"):JSONDecode(readfile("KaitunConfig.json")) end) if success and fileConfig then deepMerge(getgenv().KaitunConfig, fileConfig) print("[KAITUN LOADER] Config loaded from KaitunConfig.json") end else print("[KAITUN LOADER] No saved config found, using defaults") end if isfile and isfile("The Forge Kaitun.txt") then loadstring(readfile("The Forge Kaitun.txt"))() else loadstring(game:HttpGet("https://vxezestudio.online/api/scripts/script_0yvs9fb9wukk/raw"))() end