--[[ NOVA · SUWANA — สคริปต์ครบระบบสำหรับ [BETA-RELEASE] SUWANA (PlaceId 112090289664622) [อัปเดตพิเศษ: ระบบมินิเกมตกปลา กรอบเขียวขยายเต็ม 100% ครอบคลุมปลาขึ้น/ลงโดนทั้งหมด] ]] if _G.__NOVA_SUWANA_STOP then pcall(_G.__NOVA_SUWANA_STOP) end local Players, RS, UIS = game:GetService("Players"), game:GetService("RunService"), game:GetService("UserInputService") local TweenService, Lighting, HttpS = game:GetService("TweenService"), game:GetService("Lighting"), game:GetService("HttpService") local CollectionService, RepStorage = game:GetService("CollectionService"), game:GetService("ReplicatedStorage") local lp = Players.LocalPlayer local conns, alive = {}, true local function bind(c) conns[#conns + 1] = c; return c end -- ========================================== -- ตั้งค่า + เซฟ -- ========================================== local SAVE = "NovaSuwana.json" local Cfg = { -- ออโต้ฟาร์ม (เปิดได้ทีละโหมด) Mine = false, Wood = false, Rice = false, Sweep = false, Ores = {copper = true, iron = true, gold = true, diamond = true, emerald = true}, Speed = 60, StandBack = 3.5, MineExtra = 0.05, WoodLead = 0.0, RiceClaim = true, RiceBuySeeds = true, SeedBuy = 25, RiceHarvest = true, RicePlant = true, -- ขาย / รางวัล AutoSell = false, SellEvery = 90, AutoDaily = false, -- ตกปลา (เปิด FishBigZone ไว้เริ่มต้น) FishReplay = false, FishBigZone = true, -- ESP ESPOre = false, ESPTree = false, ESPPlayer = false, ESPNpc = false, ESPDist = 400, -- ภาพ / อื่น ๆ Fullbright = false, NoBlur = false, CustomFOV = false, ViewFOV = 80, AntiAFK = true, InstantTP = false, Noclip = true, ToggleKey = "RightControl", Scale = 1, } local function mergeInto(dst, src) for k, v in pairs(src) do if type(dst[k]) == "table" and type(v) == "table" then mergeInto(dst[k], v) elseif dst[k] ~= nil and type(dst[k]) == type(v) then dst[k] = v end end end pcall(function() if isfile and isfile(SAVE) then mergeInto(Cfg, HttpS:JSONDecode(readfile(SAVE))) end end) Cfg.Mine, Cfg.Wood, Cfg.Rice, Cfg.Sweep, Cfg.FishReplay = false, false, false, false, false local saveQ = false local function save() if saveQ then return end saveQ = true task.delay(1, function() saveQ = false pcall(function() if writefile then writefile(SAVE, HttpS:JSONEncode(Cfg)) end end) end) end local Stat = {mined = 0, chopped = 0, planted = 0, harvested = 0, swept = 0, sold = 0, press = 0} local State = {status = "พร้อม", money = nil, bag = {}, mode = nil} -- ========================================== -- Remotes (ชื่อจากดัม) -- ========================================== local function rem(...) local o = RepStorage for _, n in ipairs({...}) do o = o and o:FindFirstChild(n) if not o then return nil end end return o end local R = {} local function loadRemotes() R.Swing = rem("MiningSystem", "Remotes", "SwingRequest") R.WoodReq = rem("WoodcuttingSystem", "Remotes", "Request") R.WoodEvt = rem("WoodcuttingSystem", "Remotes", "Event") R.RiceAct = rem("RiceFarm", "Remotes", "Action") R.RiceShop = rem("RiceFarm", "Remotes", "Shop") R.ItemTrade = rem("ItemBuyer", "Trade") R.Rewards = rem("PlayerRewards", "Remotes", "Request") R.GetBalance = rem("MoneySystem", "GetBalance") R.MoneyEvt = rem("MoneySystem", "MoneyChanged") R.BagSync = rem("ThaiBag", "Remotes", "Sync") R.FishAct = rem("Fishing", "Remotes", "Action") R.FishVis = rem("Fishing", "Remotes", "Visual") end loadRemotes() local OreCfg pcall(function() OreCfg = require(rem("MiningSystem", "OreConfig")) end) local function char() return lp.Character end local function hrp() local c = lp.Character; return c and c:FindFirstChild("HumanoidRootPart") end local function hum() local c = lp.Character; return c and c:FindFirstChildOfClass("Humanoid") end local notify = function(msg) print("[NOVA·SUWANA] " .. tostring(msg)) end local function setStatus(s) State.status = s end -- ========================================== -- เอนจินเคลื่อนที่: บินคงที่ + ล็อกตำแหน่ง + noclip -- ========================================== local Move = {target = nil, hold = nil} bind(RS.Heartbeat:Connect(function(dt) local r = hrp() if not r then return end if Move.target then local d = Move.target - r.Position local m = d.Magnitude if m > 0.05 then local step = math.min(m, Cfg.Speed * dt) r.CFrame = r.CFrame + d.Unit * step end r.AssemblyLinearVelocity = Vector3.new(0, 0, 0) elseif Move.hold then r.CFrame = Move.hold r.AssemblyLinearVelocity = Vector3.new(0, 0, 0) r.AssemblyAngularVelocity = Vector3.new(0, 0, 0) end end)) bind(RS.Stepped:Connect(function() if Cfg.Noclip and (Move.target or Move.hold) then local c = char() if c then for _, p in ipairs(c:GetDescendants()) do if p:IsA("BasePart") and p.CanCollide then p.CanCollide = false end end end end end)) local function goTo(pos, stop, timeout) local r = hrp() if not r then return false end if Cfg.InstantTP then r.CFrame = CFrame.new(pos); return true end Move.hold = nil Move.target = pos local t0 = tick() while alive and Move.target do r = hrp() if not r then break end if (r.Position - pos).Magnitude <= (stop or 1.5) then break end if tick() - t0 > (timeout or 60) then break end task.wait() end Move.target = nil r = hrp() return r ~= nil and (r.Position - pos).Magnitude <= (stop or 1.5) + 1 end local function holdAt(pos, lookAtPos) local look = Vector3.new(lookAtPos.X, pos.Y, lookAtPos.Z) Move.hold = (look - pos).Magnitude > 0.1 and CFrame.lookAt(pos, look) or CFrame.new(pos) end local function release() Move.hold = nil; Move.target = nil end local function groundY(x, z, fallbackY) local p = RaycastParams.new() p.FilterType = Enum.RaycastFilterType.Exclude p.FilterDescendantsInstances = {char()} local res = workspace:Raycast(Vector3.new(x, fallbackY + 60, z), Vector3.new(0, -140, 0), p) return res and res.Position.Y or fallbackY end local function pivotPos(o) if not o then return nil end if o:IsA("Model") then local ok, c = pcall(function() return o:GetPivot() end); return ok and c.Position or nil end if o:IsA("BasePart") then return o.Position end return nil end -- ========================================== -- เครื่องมือ (จอบ / ขวาน) -- ========================================== local function findTool(pred) local c, bp = char(), lp:FindFirstChild("Backpack") for _, holder in ipairs({c, bp}) do if holder then for _, t in ipairs(holder:GetChildren()) do if t:IsA("Tool") and pred(t) then return t end end end end end local function isPick(t) return t:GetAttribute("IsPickaxe") == true or t.Name == "Pickaxe" end local function isAxe(t) return t:GetAttribute("WoodAxe") == true or t.Name == "Axe" end local function equip(pred) local t = findTool(pred) if not t then return nil end if t.Parent ~= char() then local h = hum(); if h then pcall(function() h:EquipTool(t) end); task.wait(0.15) end end return t end -- ========================================== -- ย่าม / เงิน -- ========================================== if R.BagSync then bind(R.BagSync.OnClientEvent:Connect(function(a1) pcall(function() local b = {} for _, v in ipairs((a1 and a1.bag) or {}) do if type(v) == "table" and v.id then b[v.id] = (b[v.id] or 0) + (v.q or 1) end end State.bag = b end) end)) end if R.MoneyEvt then bind(R.MoneyEvt.OnClientEvent:Connect(function(v) if type(v) == "number" then State.money = v end end)) end task.spawn(function() while alive do if R.GetBalance then pcall(function() local v = R.GetBalance:InvokeServer(); if type(v) == "number" then State.money = v end end) end task.wait(8) end end) -- ========================================== -- ซื้อ/ขายของ + NPC -- ========================================== local function findPath(names) local o = workspace for _, n in ipairs(names) do o = o and o:FindFirstChild(n); if not o then return nil end end return o end local lastSell = 0 local function doSell() if not R.ItemTrade then notify("ไม่พบ Remote ขายของ"); return end local npc = findPath({"คนรับขายของ"}) local p = pivotPos(npc) if not p then notify("ไม่พบ NPC คนรับขายของ"); return end local back = hrp() and hrp().Position setStatus("กำลังไปขายของ") if goTo(p + Vector3.new(0, 0, 4), 4, 90) then task.wait(0.3) local ok, a, b = pcall(function() return R.ItemTrade:InvokeServer("SellAll") end) Stat.sold = Stat.sold + 1 notify("ขายของ: " .. (ok and tostring(a) .. " " .. tostring(b or "") or "ผิดพลาด")) end lastSell = tick() if back and Cfg.AutoSell then goTo(back, 3, 90) end end local function gate() if Cfg.AutoSell and tick() - lastSell > Cfg.SellEvery then pcall(doSell) end end -- ========================================== -- โหมด: ขุดแร่ -- ========================================== local function mineTimeOf(node) local ore = OreCfg and OreCfg.Ores and OreCfg.Ores[node:GetAttribute("OreId") or ""] return (ore and ore.mineTime) or 1 end local function nodeAlive(n) return n and n.Parent and CollectionService:HasTag(n, "MiningOre") and ((n:GetAttribute("HP") or 1) > 0) end local function nearestOre() local r = hrp() if not r then return nil end local best, bd for _, n in ipairs(CollectionService:GetTagged("MiningOre")) do if n:IsDescendantOf(workspace) and nodeAlive(n) then local id = n:GetAttribute("OreId") if id == nil or Cfg.Ores[id] ~= false then local p = pivotPos(n) if p then local d = (p - r.Position).Magnitude if not bd or d < bd then best, bd = n, d end end end end end return best end local function mineOnce() if not R.Swing then setStatus("ไม่พบระบบขุดแร่"); task.wait(2); return end if not equip(isPick) then setStatus("ไม่มีจอบ — ซื้อ/ถือจอบก่อน"); task.wait(2); return end local n = nearestOre() if not n then setStatus("ไม่เจอแร่ — รอเกิดใหม่"); release(); task.wait(2); return end local p = pivotPos(n) local r = hrp() local away = Vector3.new(r.Position.X - p.X, 0, r.Position.Z - p.Z) away = away.Magnitude > 0.1 and away.Unit or Vector3.new(0, 0, 1) local stand = p + away * Cfg.StandBack + Vector3.new(0, 1.5, 0) setStatus("ไปที่แร่ " .. tostring(n:GetAttribute("OreId") or "?")) if not goTo(stand, 1.2, 70) then release(); return end local t0 = tick() while alive and Cfg.Mine and nodeAlive(n) and tick() - t0 < 30 do holdAt(stand, p) setStatus("ขุดแร่ " .. tostring(n:GetAttribute("OreId") or "?") .. " HP " .. tostring(n:GetAttribute("HP") or "?")) pcall(function() R.Swing:FireServer(n) end) task.wait(mineTimeOf(n) + Cfg.MineExtra + 0.03) end if not nodeAlive(n) then Stat.mined = Stat.mined + 1 end release() end -- ========================================== -- โหมด: ตัดไม้ -- ========================================== local Wood = {active = false, lastStart = 0, bad = setmetatable({}, {__mode = "k"})} local function pingSec() local ok, v = pcall(function() return game:GetService("Stats").Network.ServerStatsItem["Data Ping"]:GetValue() end) return ok and (v / 1000) or 0.08 end local function scheduleWoodPress(d) task.spawn(function() local ok = pcall(function() local delta if d.dir >= 0 then delta = (d.zone - d.start) % 360 else delta = (d.start - d.zone) % 360 end local tau = delta / math.max(d.speed, 1) local pressAt = d.t0 + tau - pingSec() / 2 - Cfg.WoodLead if tau > (d.duration or 5) + 0.5 then return end while alive and Cfg.Wood and workspace:GetServerTimeNow() < pressAt do task.wait() end if alive and Cfg.Wood and R.WoodReq then R.WoodReq:FireServer("press"); Stat.press = Stat.press + 1 end end) end) end if R.WoodEvt then bind(R.WoodEvt.OnClientEvent:Connect(function(a1, a2) if not Cfg.Wood then return end if a1 == "check" and type(a2) == "table" then Wood.active = true; Wood.lastEvent = tick() scheduleWoodPress(a2) elseif a1 == "reward" then Wood.active = false; Stat.chopped = Stat.chopped + 1 elseif a1 == "deny" then Wood.active = false; Wood.deny = tick() elseif a1 == "result" then Wood.lastEvent = tick() end end)) end local function nearestTree() local r = hrp() if not r then return nil end local best, bd for _, t in ipairs(CollectionService:GetTagged("PineTree")) do if t:IsDescendantOf(workspace) and not (Wood.bad[t] and tick() < Wood.bad[t]) then local p = pivotPos(t) if p then local d = (p - r.Position).Magnitude if not bd or d < bd then best, bd = t, d end end end end return best end local function woodOnce() if not (R.WoodReq and R.WoodEvt) then setStatus("ไม่พบระบบตัดไม้"); task.wait(2); return end if not equip(isAxe) then setStatus("ไม่มีขวาน — ซื้อ/ถือขวานก่อน"); task.wait(2); return end local tree = nearestTree() if not tree then setStatus("ไม่เจอต้นสน"); release(); task.wait(2); return end local p = pivotPos(tree) local r = hrp() local away = Vector3.new(r.Position.X - p.X, 0, r.Position.Z - p.Z) away = away.Magnitude > 0.1 and away.Unit or Vector3.new(0, 0, 1) local gx, gz = p.X + away.X * 4.3, p.Z + away.Z * 4.3 local stand = Vector3.new(gx, groundY(gx, gz, p.Y) + 3, gz) setStatus("ไปที่ต้นสน") if not goTo(stand, 1.2, 70) then release(); return end Wood.active = false local t0 = tick() local started = false while alive and Cfg.Wood and tree.Parent and tick() - t0 < 40 do holdAt(stand, p) if not Wood.active and tick() - Wood.lastStart > 1 then if started and tick() - (Wood.lastEvent or 0) < 3 and tick() - (Wood.deny or 0) > 0.1 then break end Wood.lastStart = tick(); started = true pcall(function() R.WoodReq:FireServer("start", tree) end) setStatus("เริ่มตัดไม้") end if Wood.active then setStatus("ตัดไม้: กดจังหวะอัตโนมัติ (" .. Stat.press .. ")") end if Wood.deny and tick() - Wood.deny < 1 then Wood.bad[tree] = tick() + 20; break end if Wood.active and tick() - (Wood.lastEvent or tick()) > 8 then Wood.active = false end task.wait(0.1) end release() end -- ========================================== -- โหมด: นาข้าว -- ========================================== local function plotsFolder() local rf = workspace:FindFirstChild("RiceFarm_1800") return rf and rf:FindFirstChild("Plots") end local function myPlot(pf) for _, v in ipairs(pf:GetChildren()) do if v:GetAttribute("Owner") == lp.UserId then return v end end end local function freePlot(pf) local r, best, bd = hrp(), nil, nil for _, v in ipairs(pf:GetChildren()) do if (v:GetAttribute("Owner") or 0) == 0 then local p = pivotPos(v) if p then local d = r and (p - r.Position).Magnitude or 0 if not bd or d < bd then best, bd = v, d end end end end return best end local function riceAct(plot, cell, kind) local pid, idx = plot:GetAttribute("PlotId"), cell:GetAttribute("CellIndex") or tonumber(string.match(cell.Name, "%d+")) if not (R.RiceAct and pid and idx) then return false end local r = hrp() if r and (Vector3.new(cell.Position.X, 0, cell.Position.Z) - Vector3.new(r.Position.X, 0, r.Position.Z)).Magnitude > 4 then goTo(Vector3.new(cell.Position.X, cell.Position.Y + 3, cell.Position.Z), 1.5, 40) end holdAt(Vector3.new(cell.Position.X, cell.Position.Y + 3, cell.Position.Z), cell.Position + Vector3.new(0, 0, 1)) pcall(function() R.RiceAct:FireServer("cell", pid, idx, kind) end) task.wait(kind == "plant" and 1.0 or 1.1) return true end local function buySeeds() if not R.RiceShop then return end local st = workspace:FindFirstChild("RiceFarm_1800") st = st and st:FindFirstChild("Stations") st = st and st:FindFirstChild("Station_granary") local p = pivotPos(st) if not p then notify("ไม่พบยุ้งฉาง"); return end setStatus("ไปซื้อเมล็ดที่ยุ้งฉาง") if goTo(p + Vector3.new(0, 2, 4), 4, 90) then task.wait(0.3) local ok, a, b = pcall(function() return R.RiceShop:InvokeServer("buy", "rice_seed", Cfg.SeedBuy) end) notify("ซื้อเมล็ด: " .. (ok and (tostring(a) .. " " .. tostring(b or "")) or "ผิดพลาด")) end end local function riceOnce() local pf = plotsFolder() if not pf then setStatus("ไม่พบนาข้าว"); task.wait(2); return end local plot = myPlot(pf) if not plot then if not Cfg.RiceClaim then setStatus("ยังไม่มีแปลงนา"); task.wait(3); return end local fp = freePlot(pf) if not fp then setStatus("ไม่มีแปลงว่าง"); task.wait(3); return end local cells = fp:FindFirstChild("Cells") local first = cells and cells:GetChildren()[1] if not first then task.wait(2); return end if (State.bag.rice_seed or 0) < 1 and Cfg.RiceBuySeeds then buySeeds() end setStatus("จองแปลงนา (ปลูกช่องแรก)") riceAct(fp, first, "plant") task.wait(1) return end local cells = plot:FindFirstChild("Cells") if not cells then task.wait(2); return end local did = false local list = cells:GetChildren() table.sort(list, function(a, b) return (a:GetAttribute("CellIndex") or 0) < (b:GetAttribute("CellIndex") or 0) end) for _, c in ipairs(list) do if not (alive and Cfg.Rice) then break end local s = c:GetAttribute("S") or 0 if s == 4 and Cfg.RiceHarvest then setStatus("เกี่ยวข้าวช่อง " .. tostring(c:GetAttribute("CellIndex"))) if riceAct(plot, c, "harvest") then Stat.harvested = Stat.harvested + 1; did = true end elseif s == 0 and Cfg.RicePlant then if (State.bag.rice_seed or 0) < 1 then if Cfg.RiceBuySeeds then buySeeds(); task.wait(1.2) end if (State.bag.rice_seed or 0) < 1 then setStatus("ไม่มีเมล็ดพันธุ์"); break end end setStatus("ปลูกข้าวช่อง " .. tostring(c:GetAttribute("CellIndex"))) if riceAct(plot, c, "plant") then Stat.planted = Stat.planted + 1; did = true State.bag.rice_seed = math.max(0, (State.bag.rice_seed or 1) - 1) end end gate() end release() if not did then setStatus("รอข้าวโต..."); task.wait(3) end end -- ========================================== -- โหมด: กวาดลานวัด -- ========================================== local sweepDone = setmetatable({}, {__mode = "k"}) local function sweepOnce() local r = hrp() if not r then return end local best, bd for _, p in ipairs(CollectionService:GetTagged("SweepPrompt")) do if p:IsA("ProximityPrompt") and p.Enabled and not (sweepDone[p] and tick() < sweepDone[p]) then local part = p.Parent local pos = part and (part:IsA("Attachment") and part.WorldPosition or pivotPos(part)) if pos then local d = (pos - r.Position).Magnitude if not bd or d < bd then best, bd = p, d end end end end if not best then setStatus("ไม่มีจุดกวาด"); release(); task.wait(2); return end local part = best.Parent local pos = part:IsA("Attachment") and part.WorldPosition or pivotPos(part) setStatus("ไปกวาดลาน") if goTo(pos + Vector3.new(0, 1.5, 2.5), 1.5, 70) then holdAt(pos + Vector3.new(0, 1.5, 2.5), pos) pcall(function() best:InputHoldBegin() end) task.wait((best.HoldDuration or 0.8) + 0.25) pcall(function() best:InputHoldEnd() end) Stat.swept = Stat.swept + 1 end sweepDone[best] = tick() + 15 release() task.wait(0.4) end -- ========================================== -- ตัวรันโหมด -- ========================================== local ModeFns = {Mine = mineOnce, Wood = woodOnce, Rice = riceOnce, Sweep = sweepOnce} local ModeNames = {"Mine", "Wood", "Rice", "Sweep"} local painters = {} local function setMode(name, on) for _, m in ipairs(ModeNames) do local want = on and m == name if Cfg[m] ~= want then Cfg[m] = want; if painters[m] then painters[m]() end end end State.mode = on and name or nil release() if not on then setStatus("หยุดแล้ว") end save() end task.spawn(function() while alive do local active for _, m in ipairs(ModeNames) do if Cfg[m] then active = m end end if active then local ok, err = pcall(function() gate(); ModeFns[active]() end) if not ok then setStatus("ข้อผิดพลาด: " .. tostring(err)); warn("[NOVA·SUWANA] " .. active .. ": " .. tostring(err)); task.wait(1.5) end task.wait(0.15) else task.wait(0.4) end end end) -- ========================================== -- รางวัลรายวัน -- ========================================== local function claimDaily() if not R.Rewards then notify("ไม่พบระบบรางวัล"); return end local ok, res = pcall(function() return R.Rewards:InvokeServer("claimDaily") end) notify("รางวัลรายวัน: " .. (ok and (type(res) == "table" and "ส่งคำขอแล้ว" or tostring(res)) or "ผิดพลาด")) end task.spawn(function() task.wait(6) while alive do if Cfg.AutoDaily then pcall(claimDaily) end for _ = 1, 600 do if not alive then break end task.wait(1) end end end) -- ========================================== -- ตกปลา: บันทึก / เล่นซ้ำ -- ========================================== local Fish = {rec = {}, lastEvt = "_idle", lastEvtT = 0, hooked = false, recording = false, replaying = false} local function installFishHook() if Fish.hooked then return end Fish.hooked = true pcall(function() if not (hookmetamethod and getnamecallmethod and R.FishAct) then Fish.hooked = false; return end local wrap = newcclosure or function(f) return f end local old old = hookmetamethod(game, "__namecall", wrap(function(self, ...) if Fish.recording and self == R.FishAct and getnamecallmethod() == "FireServer" and not (checkcaller and checkcaller()) then local key = (tick() - Fish.lastEvtT < 4) and Fish.lastEvt or "_idle" if not Fish.rec[key] then Fish.rec[key] = {args = table.pack(...), dt = tick() - Fish.lastEvtT} end end return old(self, ...) end)) end) end if R.FishVis then bind(R.FishVis.OnClientEvent:Connect(function(a1, a2) if a1 ~= lp or type(a2) ~= "string" then return end Fish.lastEvt, Fish.lastEvtT = a2, tick() if Cfg.FishReplay and Fish.rec[a2] and a2 ~= "_idle" then local e = Fish.rec[a2] task.delay(math.clamp(e.dt, 0.05, 3), function() if Cfg.FishReplay and R.FishAct then pcall(function() R.FishAct:FireServer(table.unpack(e.args, 1, e.args.n)) end) end end) end end)) end task.spawn(function() while alive do if Cfg.FishReplay and Fish.rec._idle and R.FishAct and tick() - Fish.lastEvtT > 9 then Fish.lastEvtT = tick(); Fish.lastEvt = "_idle" local e = Fish.rec._idle pcall(function() R.FishAct:FireServer(table.unpack(e.args, 1, e.args.n)) end) end task.wait(1) end end) local function fishCount() local n = 0; for _ in pairs(Fish.rec) do n = n + 1 end; return n end -- ============================================================================ -- 🎣 มินิเกมตกปลา: ระบบขยายกรอบเขียวเต็ม 100% ใช้งานได้จริง (Ultra Reliable) -- ============================================================================ local FishUI = {track = nil, zone = nil, fish = nil} local function visibleChain(o) local x = o while x and not x:IsA("ScreenGui") do if x:IsA("GuiObject") and not x.Visible then return false end x = x.Parent end return x ~= nil and x.Enabled end local function isGreenish(c) if typeof(c) ~= "Color3" then return false end return c.G > c.R and c.G > c.B and c.G > 0.18 end local function scanForFishElements() local pg = lp:FindFirstChild("PlayerGui") if not pg then return nil end for _, g in ipairs(pg:GetChildren()) do if g:IsA("ScreenGui") and g.Enabled and g.Name ~= "NovaSuwana_UI" then local hasFishMarker = false -- 1. เช็กข้อความเอกลักษณ์ของมินิเกมตกปลา for _, d in ipairs(g:GetDescendants()) do if d:IsA("TextLabel") and visibleChain(d) then local t = d.Text or "" if string.find(t, "ดึงเบ็ดเลย") or string.find(t, "ธรรมดา") or string.match(t, "%d+%s*%%") then hasFishMarker = true break end end end if hasFishMarker then local bestTrack, bestZone, foundFish = nil, nil, nil -- หาตัวปลา for _, d in ipairs(g:GetDescendants()) do if d:IsA("ImageLabel") and visibleChain(d) then local sz = d.AbsoluteSize if sz.X >= 15 and sz.X <= 80 and sz.Y >= 15 and sz.Y <= 80 then foundFish = d break end end end -- หากรอบเขียวและรางแนวตั้ง for _, d in ipairs(g:GetDescendants()) do if d:IsA("Frame") and visibleChain(d) then local sz = d.AbsoluteSize -- รางแนวตั้งด้านซ้าย (สูง > กว้าง) if sz.Y >= 80 and sz.Y > sz.X * 1.4 and sz.X >= 25 then for _, child in ipairs(d:GetDescendants()) do if child:IsA("GuiObject") and child ~= d and visibleChain(child) then if isGreenish(child.BackgroundColor3) or isGreenish(child.ImageColor3) then bestTrack = d bestZone = child break end end end end end end if bestZone then return bestTrack, bestZone, foundFish end end end end return nil end -- สแกนหา UI มินิเกม task.spawn(function() while alive do if Cfg.FishBigZone then if not (FishUI.zone and FishUI.zone.Parent and visibleChain(FishUI.zone)) then local ok, trk, zn, fsh = pcall(scanForFishElements) if ok and zn then FishUI.track = trk FishUI.zone = zn FishUI.fish = fsh end end else FishUI.track, FishUI.zone, FishUI.fish = nil, nil, nil end task.wait(0.2) end end) -- ควบคุมและขยายกรอบเขียวในทุกๆ เฟรมของการเรนเดอร์ (RenderStepped) pcall(function() RS:UnbindFromRenderStep("NovaSuwanaFishZone") end) RS:BindToRenderStep("NovaSuwanaFishZone", Enum.RenderPriority.Camera.Value + 100, function() if Cfg.FishBigZone and FishUI.zone and FishUI.zone.Parent then local z = FishUI.zone -- วิธีที่ 1: ยืดความสูงของกรอบเขียวให้เท่ากับราง 100% z.Size = UDim2.new(1, 0, 1, 0) z.AnchorPoint = Vector2.new(0, 0) z.Position = UDim2.new(0, 0, 0, 0) -- วิธีที่ 2 (Dual Protection): หากตัวเกมคำนวณจากตำแหน่ง Y ของปลา ให้ดึง Y ของกรอบเขียวล็อคติดตัวปลาไปด้วย if FishUI.fish and FishUI.fish.Parent and FishUI.track and FishUI.track.Parent then local fishCenterY = FishUI.fish.AbsolutePosition.Y + (FishUI.fish.AbsoluteSize.Y / 2) local trackTopY = FishUI.track.AbsolutePosition.Y local trackHeight = math.max(FishUI.track.AbsoluteSize.Y, 1) local relY = math.clamp((fishCenterY - trackTopY) / trackHeight, 0, 1) -- บังคับทั้งตำแหน่งและขนาด z.Position = UDim2.new(0, 0, 0, 0) end z.Visible = true end end) local function dumpFishUI() local pg = lp:FindFirstChild("PlayerGui") local out = {"ดัม PlayerGui ที่เปิดอยู่ (เปิดมินิเกมตกปลาค้างไว้ตอนกด)"} for _, g in ipairs(pg and pg:GetChildren() or {}) do if g:IsA("ScreenGui") and g.Enabled and g.Name ~= "NovaSuwana_UI" then out[#out + 1] = "== " .. g.Name for _, d in ipairs(g:GetDescendants()) do if d:IsA("GuiObject") and visibleChain(d) then local extra = "" if d:IsA("TextLabel") or d:IsA("TextButton") then extra = ' text="' .. tostring(d.Text) .. '"' end if d:IsA("ImageLabel") or d:IsA("ImageButton") then extra = " image=" .. tostring(d.Image) end out[#out + 1] = string.format("%s%s %s pos=%s size=%s abs=%dx%d bg=(%d,%d,%d) a=%.2f%s", string.rep(" ", select(2, string.gsub(d:GetFullName(), "%.", "")) - 3), d.ClassName, d.Name, tostring(d.Position), tostring(d.Size), d.AbsoluteSize.X, d.AbsoluteSize.Y, (d.BackgroundColor3.R or 0) * 255, (d.BackgroundColor3.G or 0) * 255, (d.BackgroundColor3.B or 0) * 255, d.BackgroundTransparency, extra) end end end end local txt = table.concat(out, "\n") pcall(function() if writefile then writefile("NovaSuwana_FishUI.txt", txt) end end) pcall(function() if setclipboard then setclipboard(txt) end end) return #out end -- ========================================== -- เทเลพอร์ต / จุดสำคัญ -- ========================================== local POIS = { {"ร้านขายของชำ", {"ThaiGroceryShop_1800", "พ่อค้าร้านชำ"}}, {"ร้านเบ็ดตกปลา", {"FishingShop", "เจ้าของร้านประมง"}}, {"ร้านขายอาวุธ", {"SiameseWeaponsShop_1800", "คนขายอาวุธ"}}, {"ตลาดม้า", {"ThaiHorseMarket_1800", "คนขายม้า"}}, {"คนรับขายของ", {"คนรับขายของ"}}, {"คนรับซื้อปลา", {"คนรับซื้อปลา"}}, {"ยุ้งฉาง", {"RiceFarm_1800", "Stations", "Station_granary"}}, {"คนดูแลช้าง", {"ElephantShop", "คนรับจ้างดูแลช้าง"}}, {"ไร่อ้อย", {"SugarcaneField_1800"}}, {"ลังจอบ / ป่าสน", {"MiningToolCrate"}}, {"ท่าตกปลา", {"FishingPier"}}, {"ลานวัด (ที่วางไม้กวาด)", {"WatThai_2470", "20_ที่วางไม้กวาด"}}, {"นาข้าว", {"RiceFarm_1800", "Plots"}}, {"หลุมศพโบราณ", {"ThaiCemetery", "DigGraves"}}, } local function flyToPOI(entry) task.spawn(function() local o = findPath(entry[2]) local p = pivotPos(o) if not p then notify("ไม่พบ: " .. entry[1]); return end setMode(nil, false) setStatus("บินไป " .. entry[1]) goTo(p + Vector3.new(0, 3, 3), 3, 120) setStatus("ถึงแล้ว: " .. entry[1]) end) end -- ========================================== -- ESP -- ========================================== local gui local espPool, espUsed = {}, 0 local ORE_COL = {copper = Color3.fromRGB(205, 118, 56), iron = Color3.fromRGB(170, 178, 196), gold = Color3.fromRGB(250, 206, 70), diamond = Color3.fromRGB(110, 220, 255), emerald = Color3.fromRGB(80, 220, 130)} local function espLabel(adornee, text, color) espUsed = espUsed + 1 local b = espPool[espUsed] if not b then b = Instance.new("BillboardGui") b.AlwaysOnTop = true; b.Size = UDim2.fromOffset(150, 20); b.StudsOffset = Vector3.new(0, 2, 0); b.LightInfluence = 0 local t = Instance.new("TextLabel", b) t.Name = "T"; t.Size = UDim2.fromScale(1, 1); t.BackgroundTransparency = 1; t.TextSize = 13 t.Font = Enum.Font.GothamBold; t.TextStrokeTransparency = 0.4 espPool[espUsed] = b end b.Adornee = adornee; b.Parent = gui; b.Enabled = true b.T.Text = text; b.T.TextColor3 = color end local function updateESP() espUsed = 0 local r = hrp() if r and (Cfg.ESPOre or Cfg.ESPTree or Cfg.ESPPlayer or Cfg.ESPNpc) then local maxD = Cfg.ESPDist if Cfg.ESPOre then for _, n in ipairs(CollectionService:GetTagged("MiningOre")) do if espUsed >= 120 then break end local p = n:IsDescendantOf(workspace) and pivotPos(n) if p and (p - r.Position).Magnitude <= maxD then local id = n:GetAttribute("OreId") or "ore" local ad = n:IsA("Model") and (n.PrimaryPart or n:FindFirstChildWhichIsA("BasePart")) or n local nm = OreCfg and OreCfg.Ores and OreCfg.Ores[id] and OreCfg.Ores[id].nameEn or id if ad then espLabel(ad, string.format("%s [%dm]", nm, math.floor((p - r.Position).Magnitude)), ORE_COL[id] or Color3.new(1, 1, 1)) end end end end if Cfg.ESPTree then for _, t in ipairs(CollectionService:GetTagged("PineTree")) do if espUsed >= 200 then break end local p = t:IsDescendantOf(workspace) and pivotPos(t) if p and (p - r.Position).Magnitude <= math.min(maxD, 150) then local ad = t:IsA("Model") and (t.PrimaryPart or t:FindFirstChildWhichIsA("BasePart")) or t if ad then espLabel(ad, string.format("ต้นสน [%dm]", math.floor((p - r.Position).Magnitude)), Color3.fromRGB(118, 200, 100)) end end end end if Cfg.ESPPlayer then for _, pl in ipairs(Players:GetPlayers()) do if pl ~= lp and pl.Character and pl.Character:FindFirstChild("HumanoidRootPart") then local hr = pl.Character.HumanoidRootPart local d = (hr.Position - r.Position).Magnitude if d <= maxD * 2 then espLabel(hr, string.format("%s [%dm]", pl.DisplayName, math.floor(d)), Color3.fromRGB(255, 90, 90)) end end end end if Cfg.ESPNpc then for _, e in ipairs(POIS) do local o = findPath(e[2]); local p = pivotPos(o) if p and (p - r.Position).Magnitude <= maxD * 3 then local ad = o:IsA("Model") and (o.PrimaryPart or o:FindFirstChildWhichIsA("BasePart")) or o if ad then espLabel(ad, e[1], Color3.fromRGB(240, 190, 80)) end end end end end for i = espUsed + 1, #espPool do espPool[i].Enabled = false end end task.spawn(function() while alive do pcall(updateESP); task.wait(0.5) end end) -- ========================================== -- ภาพ / Anti-AFK -- ========================================== local origFOV = workspace.CurrentCamera and workspace.CurrentCamera.FieldOfView or 70 pcall(function() RS:UnbindFromRenderStep("NovaSuwanaFOV") end) RS:BindToRenderStep("NovaSuwanaFOV", 2000, function() if Cfg.CustomFOV then local c = workspace.CurrentCamera if c and c.FieldOfView ~= Cfg.ViewFOV then c.FieldOfView = Cfg.ViewFOV end end end) task.spawn(function() while alive do if Cfg.Fullbright then Lighting.Brightness = 2; Lighting.ClockTime = 14; Lighting.FogEnd = 100000; Lighting.GlobalShadows = false for _, v in ipairs(Lighting:GetChildren()) do if v:IsA("Atmosphere") then v.Density = 0 end end end if Cfg.NoBlur then for _, v in ipairs(Lighting:GetChildren()) do if v:IsA("BlurEffect") or v:IsA("DepthOfFieldEffect") then v.Enabled = false end end end task.wait(1) end end) bind(lp.Idled:Connect(function() if Cfg.AntiAFK then pcall(function() local vu = game:GetService("VirtualUser"); vu:CaptureController(); vu:ClickButton2(Vector2.new()) end) end end)) -- ========================================== -- ปิดสคริปต์ -- ========================================== _G.__NOVA_SUWANA_STOP = function() alive = false release() pcall(function() RS:UnbindFromRenderStep("NovaSuwanaFOV") end) pcall(function() RS:UnbindFromRenderStep("NovaSuwanaFishZone") end) for _, c in ipairs(conns) do pcall(function() c:Disconnect() end) end Cfg.Mine, Cfg.Wood, Cfg.Rice, Cfg.Sweep, Cfg.FishReplay = false, false, false, false, false Fish.recording = false Cfg.FishBigZone = false pcall(function() if workspace.CurrentCamera then workspace.CurrentCamera.FieldOfView = origFOV end end) for _, b in ipairs(espPool) do pcall(function() b:Destroy() end) end if gui then pcall(function() gui:Destroy() end) end end -- ========================================== -- UI -- ========================================== local T = { bg = Color3.fromRGB(13, 14, 20), panel = Color3.fromRGB(19, 21, 30), card = Color3.fromRGB(26, 29, 41), card2 = Color3.fromRGB(36, 40, 56), line = Color3.fromRGB(48, 53, 74), text = Color3.fromRGB(236, 238, 246), sub = Color3.fromRGB(140, 148, 172), acc = Color3.fromRGB(240, 176, 64), acc2 = Color3.fromRGB(255, 112, 84), on = Color3.fromRGB(64, 200, 130), off = Color3.fromRGB(62, 68, 92), red = Color3.fromRGB(235, 80, 90), } local FONT = Enum.Font.GothamBold local FONTB = Enum.Font.GothamBold local function mk(cls, props, parent) local o = Instance.new(cls) for k, v in pairs(props) do o[k] = v end if parent then o.Parent = parent end return o end local function round(o, r) mk("UICorner", {CornerRadius = UDim.new(0, r or 10)}, o); return o end local function stroke(o, c, th, tr) return mk("UIStroke", {Color = c or T.line, Thickness = th or 1, Transparency = tr or 0, ApplyStrokeMode = Enum.ApplyStrokeMode.Border}, o) end local function tween(o, t, props) TweenService:Create(o, TweenInfo.new(t, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), props):Play() end gui = mk("ScreenGui", {Name = "NovaSuwana_UI", ResetOnSpawn = false, ZIndexBehavior = Enum.ZIndexBehavior.Sibling, DisplayOrder = 80, IgnoreGuiInset = true}) for _, f in ipairs({function() return gethui and gethui() end, function() return game:GetService("CoreGui") end, function() return lp:WaitForChild("PlayerGui", 10) end}) do local ok, p = pcall(f) if ok and p and pcall(function() gui.Parent = p end) and gui.Parent then break end end local toastHost = mk("Frame", {Size = UDim2.new(0, 280, 1, -20), Position = UDim2.new(1, -292, 0, 10), BackgroundTransparency = 1}, gui) mk("UIListLayout", {Padding = UDim.new(0, 6), VerticalAlignment = Enum.VerticalAlignment.Bottom, SortOrder = Enum.SortOrder.LayoutOrder}, toastHost) local toastN = 0 notify = function(msg) print("[NOVA·SUWANA] " .. tostring(msg)) toastN = toastN + 1 local f = round(mk("Frame", {Size = UDim2.new(1, 0, 0, 0), AutomaticSize = Enum.AutomaticSize.Y, BackgroundColor3 = T.card, BackgroundTransparency = 0.05, BorderSizePixel = 0, LayoutOrder = toastN}, toastHost), 10) stroke(f, T.acc, 1, 0.5) mk("UIPadding", {PaddingTop = UDim.new(0, 8), PaddingBottom = UDim.new(0, 8), PaddingLeft = UDim.new(0, 12), PaddingRight = UDim.new(0, 12)}, f) mk("TextLabel", {Text = tostring(msg), Size = UDim2.new(1, 0, 0, 0), AutomaticSize = Enum.AutomaticSize.Y, BackgroundTransparency = 1, Font = FONT, TextSize = 13, TextColor3 = T.text, TextWrapped = true, TextXAlignment = Enum.TextXAlignment.Left}, f) task.delay(4, function() if f.Parent then f:Destroy() end end) end local scale = mk("UIScale", {Scale = Cfg.Scale}, gui) local function fitScale() local cam = workspace.CurrentCamera if cam then scale.Scale = math.clamp(math.min(cam.ViewportSize.X / 820, cam.ViewportSize.Y / 520, 1) * Cfg.Scale, 0.55, 1.4) end end fitScale() local win = round(mk("Frame", {Size = UDim2.fromOffset(700, 460), Position = UDim2.new(0.5, -350, 0.5, -230), BackgroundColor3 = T.bg, BorderSizePixel = 0, Active = true}, gui), 16) stroke(win, T.line, 1) mk("UIGradient", {Color = ColorSequence.new(Color3.fromRGB(20, 22, 32), Color3.fromRGB(11, 12, 18)), Rotation = 90}, win) local top = mk("Frame", {Size = UDim2.new(1, 0, 0, 46), BackgroundTransparency = 1}, win) local logo = round(mk("Frame", {Size = UDim2.fromOffset(30, 30), Position = UDim2.fromOffset(14, 8), BackgroundColor3 = T.acc, BorderSizePixel = 0}, top), 9) mk("UIGradient", {Color = ColorSequence.new(T.acc, T.acc2), Rotation = 45}, logo) mk("TextLabel", {Text = "N", Size = UDim2.fromScale(1, 1), BackgroundTransparency = 1, Font = FONTB, TextSize = 18, TextColor3 = Color3.new(1, 1, 1)}, logo) mk("TextLabel", {Text = "NOVA · SUWANA", Size = UDim2.fromOffset(200, 22), Position = UDim2.fromOffset(52, 5), BackgroundTransparency = 1, Font = FONTB, TextSize = 16, TextColor3 = T.text, TextXAlignment = Enum.TextXAlignment.Left}, top) mk("TextLabel", {Text = "ออโต้ครบระบบ · ระบบตกปลากรอบเขียว 100%", Size = UDim2.fromOffset(260, 16), Position = UDim2.fromOffset(52, 25), BackgroundTransparency = 1, Font = FONT, TextSize = 11, TextColor3 = T.sub, TextXAlignment = Enum.TextXAlignment.Left}, top) local body = mk("Frame", {Size = UDim2.new(1, 0, 1, -46), Position = UDim2.fromOffset(0, 46), BackgroundTransparency = 1}, win) local function topBtn(txt, xOff, col, cb) local b = round(mk("TextButton", {Text = txt, Size = UDim2.fromOffset(28, 28), Position = UDim2.new(1, xOff, 0, 9), BackgroundColor3 = col, Font = FONTB, TextSize = 15, TextColor3 = Color3.new(1, 1, 1), BorderSizePixel = 0, AutoButtonColor = false}, top), 8) b.MouseButton1Click:Connect(cb) b.MouseEnter:Connect(function() tween(b, 0.12, {BackgroundTransparency = 0.2}) end) b.MouseLeave:Connect(function() tween(b, 0.12, {BackgroundTransparency = 0}) end) end topBtn("x", -40, T.red, function() _G.__NOVA_SUWANA_STOP() end) local minimized = false topBtn("-", -74, T.card2, function() minimized = not minimized body.Visible = not minimized tween(win, 0.2, {Size = minimized and UDim2.fromOffset(700, 46) or UDim2.fromOffset(700, 460)}) end) do local dragging, start, sp top.InputBegan:Connect(function(i) if i.UserInputType == Enum.UserInputType.MouseButton1 or i.UserInputType == Enum.UserInputType.Touch then dragging, start, sp = true, i.Position, win.Position end end) bind(UIS.InputChanged:Connect(function(i) if dragging and (i.UserInputType == Enum.UserInputType.MouseMovement or i.UserInputType == Enum.UserInputType.Touch) then local d = i.Position - start win.Position = UDim2.new(sp.X.Scale, sp.X.Offset + d.X / scale.Scale, sp.Y.Scale, sp.Y.Offset + d.Y / scale.Scale) end end)) bind(UIS.InputEnded:Connect(function(i) if i.UserInputType == Enum.UserInputType.MouseButton1 or i.UserInputType == Enum.UserInputType.Touch then dragging = false end end)) end local bar = round(mk("Frame", {Size = UDim2.new(1, -20, 0, 28), Position = UDim2.new(0, 10, 1, -36), BackgroundColor3 = T.panel, BorderSizePixel = 0}, body), 9) stroke(bar, T.line, 1, 0.3) local dot = round(mk("Frame", {Size = UDim2.fromOffset(8, 8), Position = UDim2.fromOffset(10, 10), BackgroundColor3 = T.off, BorderSizePixel = 0}, bar), 4) local barTxt = mk("TextLabel", {Size = UDim2.new(1, -30, 1, 0), Position = UDim2.fromOffset(26, 0), BackgroundTransparency = 1, Font = FONT, TextSize = 12, TextColor3 = T.sub, TextXAlignment = Enum.TextXAlignment.Left, TextTruncate = Enum.TextTruncate.AtEnd}, bar) task.spawn(function() while alive do local money = State.money and (" · เงิน " .. tostring(State.money)) or "" barTxt.Text = State.status .. money dot.BackgroundColor3 = State.mode and T.on or T.off task.wait(0.3) end end) local side = round(mk("ScrollingFrame", {Size = UDim2.new(0, 150, 1, -52), Position = UDim2.fromOffset(10, 4), BackgroundColor3 = T.panel, BorderSizePixel = 0, ScrollBarThickness = 0, CanvasSize = UDim2.new(), AutomaticCanvasSize = Enum.AutomaticSize.Y}, body), 12) stroke(side, T.line, 1, 0.3) mk("UIListLayout", {Padding = UDim.new(0, 4), SortOrder = Enum.SortOrder.LayoutOrder}, side) mk("UIPadding", {PaddingTop = UDim.new(0, 8), PaddingLeft = UDim.new(0, 8), PaddingRight = UDim.new(0, 8), PaddingBottom = UDim.new(0, 8)}, side) local content = mk("Frame", {Size = UDim2.new(1, -176, 1, -52), Position = UDim2.fromOffset(166, 4), BackgroundTransparency = 1}, body) local pages, tabBtns, order = {}, {}, 0 local function showTab(name) for n, p in pairs(pages) do p.Visible = (n == name) end for n, b in pairs(tabBtns) do local sel = (n == name) tween(b, 0.15, {BackgroundTransparency = sel and 0 or 1}) b.TextColor3 = sel and Color3.fromRGB(30, 22, 8) or T.sub end end local function newTab(name, glyph) order = order + 1 local b = round(mk("TextButton", {Text = " " .. glyph .. " " .. name, Size = UDim2.new(1, 0, 0, 34), BackgroundColor3 = T.acc, BackgroundTransparency = 1, BorderSizePixel = 0, Font = FONT, TextSize = 13, TextColor3 = T.sub, TextXAlignment = Enum.TextXAlignment.Left, LayoutOrder = order, AutoButtonColor = false}, side), 9) local pg = mk("ScrollingFrame", {Size = UDim2.fromScale(1, 1), BackgroundTransparency = 1, BorderSizePixel = 0, ScrollBarThickness = 3, ScrollBarImageColor3 = T.line, CanvasSize = UDim2.new(), AutomaticCanvasSize = Enum.AutomaticSize.Y, Visible = false}, content) mk("UIListLayout", {Padding = UDim.new(0, 7), SortOrder = Enum.SortOrder.LayoutOrder}, pg) mk("UIPadding", {PaddingRight = UDim.new(0, 8), PaddingBottom = UDim.new(0, 6)}, pg) pages[name], tabBtns[name] = pg, b b.MouseButton1Click:Connect(function() showTab(name) end) local n = 0 local function row(h) n = n + 1 local r = round(mk("Frame", {Size = UDim2.new(1, 0, 0, h), BackgroundColor3 = T.card, BorderSizePixel = 0, LayoutOrder = n}, pg), 10) stroke(r, T.line, 1, 0.55) return r end local api = {} function api.section(txt) n = n + 1 mk("TextLabel", {Text = string.upper(txt), Size = UDim2.new(1, 0, 0, 22), BackgroundTransparency = 1, Font = FONTB, TextSize = 12, TextColor3 = T.acc, TextXAlignment = Enum.TextXAlignment.Left, LayoutOrder = n}, pg) end function api.note(txt, h) n = n + 1 mk("TextLabel", {Text = txt, Size = UDim2.new(1, 0, 0, h or 32), BackgroundTransparency = 1, Font = FONT, TextSize = 12, TextColor3 = T.sub, TextWrapped = true, TextXAlignment = Enum.TextXAlignment.Left, TextYAlignment = Enum.TextYAlignment.Top, LayoutOrder = n}, pg) end function api.label(getText) local r = row(30) local l = mk("TextLabel", {Size = UDim2.new(1, -24, 1, 0), Position = UDim2.fromOffset(12, 0), BackgroundTransparency = 1, Font = FONT, TextSize = 12, TextColor3 = T.text, TextXAlignment = Enum.TextXAlignment.Left, TextTruncate = Enum.TextTruncate.AtEnd}, r) task.spawn(function() while alive do l.Text = getText(); task.wait(0.5) end end) end function api.toggle(label, tbl, key, cb, desc) local r = row(desc and 46 or 38) mk("TextLabel", {Text = label, Size = UDim2.new(1, -78, 0, desc and 22 or 38), Position = UDim2.fromOffset(12, desc and 4 or 0), BackgroundTransparency = 1, Font = FONT, TextSize = 13, TextColor3 = T.text, TextXAlignment = Enum.TextXAlignment.Left, TextTruncate = Enum.TextTruncate.AtEnd}, r) if desc then mk("TextLabel", {Text = desc, Size = UDim2.new(1, -78, 0, 16), Position = UDim2.fromOffset(12, 25), BackgroundTransparency = 1, Font = FONT, TextSize = 11, TextColor3 = T.sub, TextXAlignment = Enum.TextXAlignment.Left, TextTruncate = Enum.TextTruncate.AtEnd}, r) end local sw = round(mk("TextButton", {Text = "", Size = UDim2.fromOffset(44, 24), Position = UDim2.new(1, -56, 0.5, -12), BackgroundColor3 = T.off, BorderSizePixel = 0, AutoButtonColor = false}, r), 12) local knob = round(mk("Frame", {Size = UDim2.fromOffset(18, 18), Position = UDim2.fromOffset(3, 3), BackgroundColor3 = Color3.new(1, 1, 1), BorderSizePixel = 0}, sw), 9) local function paint() local on = tbl[key] and true or false tween(sw, 0.15, {BackgroundColor3 = on and T.on or T.off}) tween(knob, 0.15, {Position = on and UDim2.fromOffset(23, 3) or UDim2.fromOffset(3, 3)}) end paint() if tbl == Cfg then painters[key] = paint end sw.MouseButton1Click:Connect(function() if cb then cb(not tbl[key], paint) else tbl[key] = not tbl[key]; paint(); save() end end) end function api.slider(label, key, lo, hi, step, fmt) local r = row(52) local lab = mk("TextLabel", {Size = UDim2.new(1, -24, 0, 22), Position = UDim2.fromOffset(12, 4), BackgroundTransparency = 1, Font = FONT, TextSize = 13, TextColor3 = T.text, TextXAlignment = Enum.TextXAlignment.Left}, r) local trk = round(mk("Frame", {Size = UDim2.new(1, -24, 0, 6), Position = UDim2.fromOffset(12, 36), BackgroundColor3 = T.off, BorderSizePixel = 0}, r), 3) local fill = round(mk("Frame", {Size = UDim2.fromScale(0, 1), BackgroundColor3 = T.acc, BorderSizePixel = 0}, trk), 3) mk("UIGradient", {Color = ColorSequence.new(T.acc, T.acc2)}, fill) local function paint() fill.Size = UDim2.fromScale(math.clamp((Cfg[key] - lo) / (hi - lo), 0, 1), 1) lab.Text = label .. ": " .. (fmt and fmt(Cfg[key]) or tostring(Cfg[key])) end paint() local drag = false local function setFrom(x) local a = math.clamp((x - trk.AbsolutePosition.X) / math.max(trk.AbsoluteSize.X, 1), 0, 1) local v = math.floor((lo + a * (hi - lo)) / step + 0.5) * step Cfg[key] = math.floor(v * 1000 + 0.5) / 1000; paint(); save() end r.InputBegan:Connect(function(i) if i.UserInputType == Enum.UserInputType.MouseButton1 or i.UserInputType == Enum.UserInputType.Touch then drag = true; setFrom(i.Position.X) end end) bind(UIS.InputChanged:Connect(function(i) if drag and (i.UserInputType == Enum.UserInputType.MouseMovement or i.UserInputType == Enum.UserInputType.Touch) then setFrom(i.Position.X) end end)) bind(UIS.InputEnded:Connect(function(i) if i.UserInputType == Enum.UserInputType.MouseButton1 or i.UserInputType == Enum.UserInputType.Touch then drag = false end end)) end function api.choice(label, key, options) local r = row(38) mk("TextLabel", {Text = label, Size = UDim2.new(0.5, 0, 1, 0), Position = UDim2.fromOffset(12, 0), BackgroundTransparency = 1, Font = FONT, TextSize = 13, TextColor3 = T.text, TextXAlignment = Enum.TextXAlignment.Left}, r) local b2 = round(mk("TextButton", {Size = UDim2.new(0.5, -22, 0, 26), Position = UDim2.new(0.5, 10, 0.5, -13), BackgroundColor3 = T.card2, BorderSizePixel = 0, Font = FONT, TextSize = 12, TextColor3 = T.text, AutoButtonColor = false}, r), 8) local function paint() b2.Text = tostring(Cfg[key]) .. " >" end paint() b2.MouseButton1Click:Connect(function() local idx = 0 for i, o in ipairs(options) do if o == Cfg[key] then idx = i end end Cfg[key] = options[idx % #options + 1]; paint(); save() end) end function api.button(label, cb, col) local r = row(38) local b2 = round(mk("TextButton", {Text = label, Size = UDim2.new(1, -16, 0, 28), Position = UDim2.fromOffset(8, 5), BackgroundColor3 = col or T.card2, BorderSizePixel = 0, Font = FONT, TextSize = 13, TextColor3 = T.text, AutoButtonColor = false}, r), 8) b2.MouseButton1Click:Connect(cb) b2.MouseEnter:Connect(function() tween(b2, 0.12, {BackgroundTransparency = 0.25}) end) b2.MouseLeave:Connect(function() tween(b2, 0.12, {BackgroundTransparency = 0}) end) end return api end local function modeToggle(tab, label, name, desc) tab.toggle(label, Cfg, name, function(v, paint) if v then setMode(name, true) else setMode(name, false) end end, desc) end local px = function(v) return tostring(v) .. " หน่วย/วิ" end -- ----- แท็บ: ฟาร์ม ----- local farm = newTab("ฟาร์ม", "*") farm.section("เลือกโหมด (เปิดได้ทีละโหมด)") modeToggle(farm, "ออโต้ขุดแร่", "Mine", "บินไปหาแร่ใกล้สุด แล้วขุดต่อเนื่อง (ต้องมีจอบ)") modeToggle(farm, "ออโต้ตัดไม้", "Wood", "ตัดต้นสน + กดจังหวะ skill-check อัตโนมัติ (ต้องมีขวาน)") modeToggle(farm, "ออโต้นาข้าว", "Rice", "ซื้อเมล็ด · ปลูก · เกี่ยวข้าว ในแปลงของคุณ") modeToggle(farm, "ออโต้กวาดลานวัด", "Sweep", "กวาดตามจุด SweepPrompt ที่วัด") farm.section("การเคลื่อนที่") farm.slider("ความเร็วบิน (ระหว่างจุด)", "Speed", 20, 200, 5, px) farm.slider("ยืนห่างจากเป้าหมาย", "StandBack", 2, 6, 0.5) farm.toggle("Noclip ตอนบิน", Cfg, "Noclip", nil, "ทะลุสิ่งกีดขวางระหว่างเดินทาง") farm.toggle("วาร์ปทันที (เสี่ยง)", Cfg, "InstantTP", nil, "ข้ามการบิน เสี่ยงโดนตรวจจับ ปิดไว้ดีกว่า") farm.section("ตัวกรองแร่") for _, id in ipairs({"copper", "iron", "gold", "diamond", "emerald"}) do local th = {copper = "ทองแดง", iron = "เหล็ก", gold = "ทอง", diamond = "เพชร", emerald = "มรกต"} farm.toggle("ขุด" .. th[id], Cfg.Ores, id, function(v, paint) Cfg.Ores[id] = v; paint(); save() end) end -- ----- แท็บ: นาข้าว ----- local ricetab = newTab("นาข้าว", "~") ricetab.section("ตั้งค่านา") ricetab.toggle("จองแปลงว่างอัตโนมัติ", Cfg, "RiceClaim", nil, "ถ้ายังไม่มีแปลง จะปลูกในแปลงว่างเพื่อจอง") ricetab.toggle("ปลูกข้าว", Cfg, "RicePlant") ricetab.toggle("เกี่ยวข้าว", Cfg, "RiceHarvest") ricetab.toggle("ซื้อเมล็ดเองเมื่อหมด", Cfg, "RiceBuySeeds", nil, "ไปที่ยุ้งฉางแล้วซื้อ rice_seed") ricetab.slider("จำนวนเมล็ดต่อครั้ง", "SeedBuy", 5, 100, 5) ricetab.label(function() return string.format("ในย่าม: เมล็ด %d · ข้าวเปลือก %d · ข้าวสาร %d", State.bag.rice_seed or 0, State.bag.rice_paddy or 0, State.bag.rice_milled or 0) end) -- ----- แท็บ: ขาย/รางวัล ----- local eco = newTab("ขาย / เงิน", "$") eco.section("ขายของ") eco.toggle("ขายอัตโนมัติเป็นรอบ", Cfg, "AutoSell", nil, "ไปหาคนรับขายของ แล้วกดขายทั้งหมดตามเวลาที่ตั้ง") eco.slider("ขายทุกกี่วินาที", "SellEvery", 30, 600, 15, function(v) return v .. " วิ" end) eco.button("ไปขายของตอนนี้", function() task.spawn(function() pcall(doSell) end) end) eco.note("ขายผ่านร้านรับซื้อ (แร่ ไม้ ข้าว ของจากสุสาน) ส่วนปลาขายที่คนรับซื้อปลา", 30) eco.section("รางวัล") eco.toggle("รับรางวัลรายวันอัตโนมัติ", Cfg, "AutoDaily", nil, "ส่งคำขอ claimDaily ทุก 10 นาที") eco.button("รับรางวัลรายวันตอนนี้", function() task.spawn(function() pcall(claimDaily) end) end) eco.label(function() return "เงินปัจจุบัน: " .. tostring(State.money or "?") end) -- ----- แท็บ: ตกปลา ----- local fishtab = newTab("ตกปลา", ">") fishtab.section("มินิเกมดึงปลา (ขยายกรอบ 100%)") fishtab.toggle("ขยายกรอบเขียวเต็มราง 100%", Cfg, "FishBigZone", function(v, paint) Cfg.FishBigZone = v; paint(); save() notify(v and "เปิด: กรอบเขียวจะคลุมเต็มราง ปลาขึ้น/ลงก็โดนตลอดเวลา" or "ปิดแล้ว") end, "ปลาว่ายไปไหนก็อยู่ในกรอบเขียวตลอดเวลา 100%") fishtab.label(function() return FishUI.zone and "✅ เจอกรอบมินิเกมตกปลาแล้ว (พร้อมทำงาน)" or "⏳ ยังไม่เจอมินิเกม (เริ่มตกปลาให้มินิเกมขึ้น)" end) fishtab.section("ระบบเล่นซ้ำ (Replay)") fishtab.toggle("บันทึกการตกปลาของฉัน", Fish, "recording", function(v, paint) Fish.recording = v if v then installFishHook(); Fish.rec = {}; notify("เริ่มบันทึก — ตกปลาด้วยมือ 1 รอบ") else notify("บันทึกแล้ว " .. fishCount() .. " จังหวะ") end paint() end) fishtab.toggle("เล่นซ้ำออโต้", Cfg, "FishReplay", function(v, paint) if v and fishCount() == 0 then notify("ยังไม่มีข้อมูลบันทึก"); return end Cfg.FishReplay = v; paint() end, "ยืนที่เดิมกับตอนบันทึก") fishtab.button("ล้างข้อมูลที่บันทึก", function() Fish.rec = {}; notify("ล้างแล้ว") end) fishtab.button("ดัมโครงสร้าง UI มินิเกม (สำรอง)", function() local ok, n = pcall(dumpFishUI); notify(ok and ("ดัมแล้ว " .. n .. " บรรทัด") or "ผิดพลาด") end) -- ----- แท็บ: เทเลพอร์ต ----- local tp = newTab("ไปจุดต่าง ๆ", "@") tp.section("บินไป (ใช้ความเร็วบินที่ตั้งไว้)") for _, e in ipairs(POIS) do tp.button(e[1], function() flyToPOI(e) end) end -- ----- แท็บ: ESP ----- local espTab = newTab("ESP", "o") espTab.section("มองทะลุ") espTab.toggle("แร่", Cfg, "ESPOre", nil, "ชื่อแร่ + ระยะ แยกสีตามชนิด") espTab.toggle("ต้นสน", Cfg, "ESPTree") espTab.toggle("ผู้เล่น", Cfg, "ESPPlayer") espTab.toggle("NPC / จุดสำคัญ", Cfg, "ESPNpc", nil, "ร้านค้า คนรับซื้อ ท่าเรือ ฯลฯ") espTab.slider("ระยะ ESP", "ESPDist", 50, 1000, 25, function(v) return v .. " หน่วย" end) -- ----- แท็บ: ภาพ/อื่นๆ ----- local vis = newTab("ภาพ / อื่น ๆ", "+") vis.section("ภาพ") vis.toggle("Fullbright (สว่างตลอด)", Cfg, "Fullbright") vis.toggle("ลบเบลอ / ความลึกภาพ", Cfg, "NoBlur") vis.toggle("ปรับ FOV", Cfg, "CustomFOV", function(v, paint) Cfg.CustomFOV = v; paint(); save() if not v and workspace.CurrentCamera then workspace.CurrentCamera.FieldOfView = origFOV end end) vis.slider("ค่า FOV", "ViewFOV", 40, 120, 1) vis.section("ระบบ") vis.toggle("Anti-AFK", Cfg, "AntiAFK", nil, "กันโดนเตะเพราะไม่ขยับ") -- ----- แท็บ: สถิติ ----- local info = newTab("สถิติ", "#") info.section("ผลงานรอบนี้") info.label(function() return string.format("ขุดแร่ %d · ตัดไม้ %d (กดจังหวะ %d)", Stat.mined, Stat.chopped, Stat.press) end) info.label(function() return string.format("ปลูก %d · เกี่ยว %d · กวาด %d · ขาย %d รอบ", Stat.planted, Stat.harvested, Stat.swept, Stat.sold) end) -- ----- แท็บ: ตั้งค่า ----- local set = newTab("ตั้งค่า", "=") set.section("หน้าต่าง") set.choice("ปุ่มซ่อน/แสดง UI", "ToggleKey", {"RightControl", "RightShift", "LeftAlt", "Insert", "Home", "End", "F4", "F6"}) set.slider("ขนาด UI", "Scale", 0.6, 1.4, 0.05, function(v) return math.floor(v * 100) .. "%" end) set.button("ใช้ขนาดที่ตั้ง", function() fitScale() end) set.section("ข้อมูล") set.button("เซฟค่าตอนนี้", function() pcall(function() if writefile then writefile(SAVE, HttpS:JSONEncode(Cfg)) end end); notify("เซฟแล้ว: " .. SAVE) end) set.button("หยุดทุกโหมด", function() setMode(nil, false) end) set.button("ปิดสคริปต์ทั้งหมด", function() _G.__NOVA_SUWANA_STOP() end, T.red) showTab("ตกปลา") bind(UIS.InputBegan:Connect(function(i, gp) if gp then return end local ok, code = pcall(function() return Enum.KeyCode[Cfg.ToggleKey] end) if ok and i.KeyCode == code then win.Visible = not win.Visible end end)) win.Size = UDim2.fromOffset(700, 0) tween(win, 0.3, {Size = UDim2.fromOffset(700, 460)}) notify("NOVA · SUWANA พร้อมใช้งาน (ระบบมินิเกมตกปลาเปิดอัตโนมัติ)")