--!strict local Services = { ReplicatedStorage = game:GetService("ReplicatedStorage"), RunService = game:GetService("RunService"), Players = game:GetService("Players"), UserInputService = game:GetService("UserInputService"), HttpService = game:GetService("HttpService"), } local LocalPlayer = Services.Players.LocalPlayer math.randomseed(os.clock() * 1e6) local function fetchEnv() if getgenv then local ok, env = pcall(getgenv) if ok and env then return env end end if getfenv then local ok, env = pcall(getfenv) if ok and env then return env end end return _G end local _envRef = fetchEnv() local _prevCore = _envRef.Vokthos or _envRef.Core or _G.Vokthos or shared.Vokthos local _carryState = nil if type(_prevCore) == "table" then if _prevCore.State and _prevCore.State.GetAll then local ok, data = pcall(_prevCore.State.GetAll) if ok and type(data) == "table" then _carryState = data end end if _prevCore.Dispose and _prevCore.Dispose.run then pcall(_prevCore.Dispose.run) end end do local ui = nil if gethui then local ok, r = pcall(gethui) if ok then ui = r end end ui = ui or game:GetService("CoreGui") for _, obj in ipairs(ui:GetChildren()) do if obj:IsA("ScreenGui") and (obj.Name:find("Rayfield") or obj.Name:find("rayfield")) then pcall(function() obj:Destroy() end) end end end local okRF, Rayfield = pcall(function() return loadstring(game:HttpGet("https://sirius.menu/gen2"))() end) if not okRF or not Rayfield then warn("[Vokthos] No se pudo cargar Rayfield Gen2: " .. tostring(Rayfield)) return end local function getExecutorEnv() if getgenv then local ok, env = pcall(getgenv) if ok and env then return env end end if getfenv then local ok, env = pcall(getfenv) if ok and env then return env end end return _G end local function protectGui(gui) if not gui then return end pcall(function() if syn and syn.protect_gui then syn.protect_gui(gui) elseif protect_gui then protect_gui(gui) end end) end local function buildCore() local Vokthos = {} local reapplyModules local State = { _data = {} } function State.Get(k, d) local v = State._data[k] if v == nil then return d end return v end function State.Set(k, v) State._data[k] = v end local function deepCopy(v, seen) if type(v) ~= "table" then return v end seen = seen or {} if seen[v] then return seen[v] end local c = {} seen[v] = c for k, val in pairs(v) do c[deepCopy(k, seen)] = deepCopy(val, seen) end return c end function State.GetAll() return deepCopy(State._data) end function State.LoadFromTable(t) local aliases = { ["player_god_mode_enabled"] = "player_godmode_enabled", ["player_no_sit_enabled"] = "player_nosit_enabled", ["player_jump_power_enabled"] = "player_jumppower_enabled", ["tools_tp_tool_enabled"] = "tools_tptool_enabled", ["tools_command_bar_enabled"] = "tools_commandbar_enabled", } for old, new in pairs(aliases) do if t[old] ~= nil and t[new] == nil then t[new] = t[old] end t[old] = nil end for k, v in pairs(t) do State._data[k] = deepCopy(v) end end if _carryState then State.LoadFromTable(_carryState) end local Utils = {} function Utils.getChar() return LocalPlayer and LocalPlayer.Character or nil end function Utils.getHumanoid(c) c = c or Utils.getChar() if not c then return nil end return c:FindFirstChildOfClass("Humanoid") or c:FindFirstChild("Humanoid") end function Utils.getRoot(c) c = c or Utils.getChar() if not c then return nil end return c:FindFirstChild("HumanoidRootPart") or c.PrimaryPart end function Utils.getHead(c) c = c or Utils.getChar() if not c then return nil end return c:FindFirstChild("Head") end function Utils.isAlive(p) local c = p and p.Character local h = c and Utils.getHumanoid(c) return h ~= nil and h.Health > 0 end function Utils.randomString(n) local set = "abcdefghijklmnopqrstuvwxyz0123456789" local out = {} for _ = 1, (n or 8) do local i = math.random(1, #set) out[#out + 1] = set:sub(i, i) end return table.concat(out) end function Utils.breakVelocity(part) if not part then return end pcall(function() part.AssemblyLinearVelocity = Vector3.zero end) pcall(function() part.AssemblyAngularVelocity = Vector3.zero end) end local SharedTicker = { _subs = {}, _conn = nil } local function tickStep(dt) for _, fn in pairs(SharedTicker._subs) do local ok, err = pcall(fn, dt) if not ok then warn("[SharedTicker]", err) end end end function SharedTicker.subscribe(a, b) local key, fn if b == nil then key, fn = a, a else key, fn = a, b end SharedTicker._subs[key] = fn if not SharedTicker._conn then SharedTicker._conn = Services.RunService.Heartbeat:Connect(tickStep) end end function SharedTicker.unsubscribe(a) SharedTicker._subs[a] = nil if next(SharedTicker._subs) == nil and SharedTicker._conn then SharedTicker._conn:Disconnect() SharedTicker._conn = nil end end SharedTicker.Subscribe = SharedTicker.subscribe SharedTicker.Unsubscribe = SharedTicker.unsubscribe local Window = Rayfield:CreateWindow({ name = "Vokthos NXx Hub", subtitle = "Gen2 Edition", sidebarLayout = true, theme = "Amethyst", configuration = { autoSave = false, autoLoad = false, fileName = "Vokthos", }, }) local Notifications = {} local function pushNotif(kind, title, msg) print(string.format("[%s] %s: %s", kind, tostring(title), tostring(msg))) if State.Get("ui_notifications", true) == false then return end Window:Notify({ title = tostring(title), content = tostring(msg), duration = tonumber(State.Get("ui_notificationDuration", 3)) or 3, }) end local function notif(kind) return function(title, msg) pushNotif(kind, title, msg) end end Notifications.Success = notif("OK") Notifications.Info = notif("INFO") Notifications.Warn = notif("WARN") Notifications.Warning = notif("WARN") Notifications.Error = notif("ERR") local CommandSystem = { _cmds = {}, _aliases = {} } function CommandSystem.Register(name, fn, aliases) CommandSystem._cmds[name] = fn for _, a in ipairs(aliases or {}) do CommandSystem._aliases[a] = name end end function CommandSystem.Execute(text) text = text:gsub("^;", "") local parts = {} for w in text:gmatch("%S+") do parts[#parts + 1] = w end local name = parts[1] if not name then return end name = CommandSystem._aliases[name] or name local fn = CommandSystem._cmds[name] if fn then table.remove(parts, 1) local ok, err = pcall(fn, parts) if not ok then Notifications.Error("Commands", tostring(err)) end else Notifications.Warn("Commands", "Desconocido: " .. name) end end function CommandSystem.GetSuggestions(prefix) local out = {} for name in pairs(CommandSystem._cmds) do if name:sub(1, #prefix) == prefix then out[#out + 1] = name end end table.sort(out) return out end CommandSystem.Register("speed", function(args) local v = tonumber(args[1]) or 16 local h = Utils.getHumanoid(Utils.getChar()) if h then h.WalkSpeed = v end Notifications.Success("Commands", "speed = " .. v) end) CommandSystem.Register("jumppower", function(args) local v = tonumber(args[1]) or 50 local h = Utils.getHumanoid(Utils.getChar()) if h then h.JumpPower = v end Notifications.Success("Commands", "jumppower = " .. v) end) CommandSystem.Register("gravity", function(args) local v = tonumber(args[1]) or 196.2 workspace.Gravity = v Notifications.Success("Commands", "gravity = " .. v) end) CommandSystem.Register("ws", function(args) local v = tonumber(args[1]) or 16 local h = Utils.getHumanoid(Utils.getChar()) if h then h.WalkSpeed = v end end, { "walkspeed" }) local function exposeCompat() _G.Vokthos = Vokthos _G.Core = Vokthos shared.Vokthos = Vokthos shared.Core = Vokthos shared.Utils = Utils shared.State = State shared.SharedTicker = SharedTicker shared.Notifications = Notifications shared.protectGui = protectGui local env = getExecutorEnv() env.Vokthos = Vokthos env.Core = Vokthos end local ModuleRegistry = { Modules = {}, Categories = {} } function ModuleRegistry.Register(category, moduleDef) if type(moduleDef) ~= "table" then return end moduleDef.category = category moduleDef.name = moduleDef.name or "Unnamed" moduleDef.id = moduleDef.id or (category .. "." .. moduleDef.name:lower():gsub("%s+", "_")) if ModuleRegistry.Modules[moduleDef.id] then return ModuleRegistry.Modules[moduleDef.id] end if not moduleDef.build then moduleDef.build = moduleDef.draw or moduleDef.renderIris end moduleDef.connections = moduleDef.connections or {} if moduleDef.enabled == nil then moduleDef.enabled = false end ModuleRegistry.Categories[category] = ModuleRegistry.Categories[category] or {} table.insert(ModuleRegistry.Categories[category], moduleDef) ModuleRegistry.Modules[moduleDef.id] = moduleDef if moduleDef.onEnable and not moduleDef._wrapped then local _origEnable = moduleDef.onEnable local _origDisable = moduleDef.onDisable moduleDef.onEnable = function(...) local res = _origEnable(...) moduleDef._vokActive = true return res end if _origDisable then moduleDef.onDisable = function(...) if not moduleDef._vokActive then return end moduleDef._vokActive = false return _origDisable(...) end end moduleDef._wrapped = true end return moduleDef end function ModuleRegistry.GetByCategory(c) return ModuleRegistry.Categories[c] or {} end function ModuleRegistry.RegisterFromResult(filename, result) if type(result) ~= "table" then return end local function tryRegister(def, fallbackName) if type(def) ~= "table" then return false end def.name = def.name or fallbackName if def.name and (def.build or def.draw or def.renderIris) then ModuleRegistry.Register(def.category or filename, def) return true end return false end if result.name and (result.build or result.draw or result.renderIris) then if tryRegister(result, filename) then return end end local registered = false for k, v in pairs(result) do if type(v) == "table" and (v.build or v.draw or v.renderIris or v.name) then if tryRegister(v, k) then registered = true end end end if registered then return end if result.Enable or result.Disable or result.Toggle then local key = filename .. "_enabled" local wrapper = { name = filename, category = filename, enabled = false, build = function(tab) local on = State.Get(key) if on == nil then on = false; State.Set(key, false) end tab:CreateToggle({ name = "Enabled", flag = filename .. "_wrapper_enabled", value = on, callback = function(new) State.Set(key, new) if new then if result.Enable then pcall(function() result:Enable() end) end else if result.Disable then pcall(function() result:Disable() end) end end end, }) if result.build then pcall(result.build, tab) end end, } ModuleRegistry.Register(filename, wrapper) end end reapplyModules = function() for _, m in pairs(ModuleRegistry.Modules) do if type(m) == "table" and m.onEnable then local want if m.stateKey then want = State.Get(m.stateKey) elseif m.category == "player" or m.category == "tools" or m.category == "world" or m.category == "movement" then want = State.Get(m.category .. "_" .. m.name:lower():gsub("%s+", "") .. "_enabled") else want = m.enabled end if want then if not m._reapplyActive then local ok, res = pcall(m.onEnable) m._reapplyActive = ok and (res ~= false) end else if m._reapplyActive and m.onDisable then pcall(m.onDisable) end m._reapplyActive = false end end end end ModuleRegistry.Reapply = reapplyModules local ModuleLoader = { Loaded = {}, Errors = {} } function ModuleLoader.Register(name, result) if result ~= nil then ModuleLoader.Loaded[name] = result ModuleRegistry.RegisterFromResult(name, result) end end local Dispose = { _stack = {} } function Dispose.add(fn) if type(fn) == "function" then table.insert(Dispose._stack, fn) end end local function disconnectAll(t) if type(t) ~= "table" then return end for _, c in pairs(t) do if typeof(c) == "RBXScriptConnection" then pcall(function() c:Disconnect() end) end end end function Dispose.run() for i = #Dispose._stack, 1, -1 do pcall(Dispose._stack[i]) end Dispose._stack = {} for _, m in pairs(ModuleRegistry.Modules) do if type(m) == "table" then if m.onDisable then pcall(m.onDisable) end disconnectAll(m.connections) disconnectAll(m._conns) end end pcall(function() for key in pairs(SharedTicker._subs) do SharedTicker._subs[key] = nil end if SharedTicker._conn then SharedTicker._conn:Disconnect() SharedTicker._conn = nil end end) pcall(function() if Rayfield and Rayfield.Destroy then Rayfield:Destroy() elseif Window and Window.Destroy then Window:Destroy() elseif Window and Window.Hide then Window:Hide() end end) local env = getExecutorEnv() if env then env.Vokthos = nil; env.Core = nil end _G.Vokthos = nil _G.Core = nil shared.Vokthos = nil shared.Core = nil shared.Utils = nil shared.State = nil shared.SharedTicker = nil shared.Notifications = nil shared.protectGui = nil end Vokthos = { _version = "2.2.0", Services = Services, Utils = Utils, State = State, Notifications = Notifications, Commands = CommandSystem, Modules = ModuleRegistry, ModuleLoader = ModuleLoader, Window = Window, SharedTicker = SharedTicker, protectGui = protectGui, Dispose = Dispose, } exposeCompat() return Vokthos end local Vokthos = buildCore() local Core = Vokthos if not Vokthos.Modules then Vokthos.Modules = {} end if Vokthos.ModuleLoader and Vokthos.ModuleLoader.Loaded then Vokthos.Modules.Loaded = Vokthos.ModuleLoader.Loaded elseif not Vokthos.Modules.Loaded then Vokthos.Modules.Loaded = {} end -- NAx Hub-scope: port fiel NA v2.5.4 compartido por movement+combat. -- Vive en Vokthos.NAx (NO global) para no chocar con _G/getgenv. do local _LP = game:GetService("Players").LocalPlayer local _WS = game:GetService("Workspace") local _RS = game:GetService("RunService") local _PS = game:GetService("Players") local NAx = {} NAx.LocalPlayer = _LP NAx._conns = NAx._conns or {} function NAx.connect(id, conn) if NAx._conns[id] then pcall(function() NAx._conns[id]:Disconnect() end) end NAx._conns[id] = conn return conn end function NAx.disconnect(id) if NAx._conns[id] then pcall(function() NAx._conns[id]:Disconnect() end) end NAx._conns[id] = nil end function NAx.notify(text) pcall(function() local N = Core and Core.Notifications if N and N.Info then N.Info("NA Port", tostring(text)) end end) print("[NAx] " .. tostring(text)) end function NAx.getChar() return NAx.LocalPlayer and NAx.LocalPlayer.Character or nil end function NAx.getRoot(c) c = c or NAx.getChar() if not c then return nil end return c:FindFirstChild("HumanoidRootPart") or c.PrimaryPart or c:FindFirstChildWhichIsA("BasePart") end function NAx.getHum(c) c = c or NAx.getChar() if not c then return nil end return c:FindFirstChildOfClass("Humanoid") or c:FindFirstChildWhichIsA("Humanoid") end function NAx.getHead(c) c = c or NAx.getChar() if not c then return nil end return c:FindFirstChild("Head") end function NAx.isNPC(model) if not model or not model:IsA("Model") then return false end if _PS:GetPlayerFromCharacter(model) then return false end return model:FindFirstChildOfClass("Humanoid") ~= nil end function NAx.getPlr(query) query = tostring(query or ""):lower():match("^%s*(.-)%s*$") local out = {} if query == "" or query == "me" or query == "self" then table.insert(out, NAx.LocalPlayer); return out elseif query == "all" then for _, p in ipairs(_PS:GetPlayers()) do table.insert(out, p) end return out elseif query == "others" then for _, p in ipairs(_PS:GetPlayers()) do if p ~= NAx.LocalPlayer then table.insert(out, p) end end return out elseif query == "nearest" or query == "closest" or query == "random" then local list = {} for _, p in ipairs(_PS:GetPlayers()) do if p ~= NAx.LocalPlayer then table.insert(list, p) end end if #list == 0 then return out end if query == "random" then table.insert(out, list[math.random(1, #list)]) return out end local myRoot = NAx.getRoot() local best, bestD for _, p in ipairs(list) do local r = NAx.getRoot(p.Character) if r and myRoot then local d = (r.Position - myRoot.Position).Magnitude if not bestD or d < bestD then best, bestD = p, d end end end if best then table.insert(out, best) end return out end local wantNPC, filter = false, query if query:sub(1, 4) == "npc:" then wantNPC = true; filter = query:sub(5) elseif query == "npc" or query == "npcs" then wantNPC = true; filter = "" end if wantNPC then for _, m in ipairs(_WS:GetChildren()) do if m:IsA("Model") and NAx.isNPC(m) then if filter == "" or m.Name:lower():find(filter, 1, true) then table.insert(out, m) end end end return out end for _, p in ipairs(_PS:GetPlayers()) do local okN, nm = pcall(function() return p.Name end) local okD, dn = pcall(function() return p.DisplayName end) nm = (okN and nm) or "" dn = (okD and dn) or "" if nm:lower():find(query, 1, true) or dn:lower():find(query, 1, true) then table.insert(out, p) end end return out end Vokthos.NAx = NAx local gE = (getgenv and (function() local ok, e = pcall(getgenv) if ok then return e end end)()) or _G if gE then gE.Vokthos = Vokthos end -- FlingMgr fiel part-003 (se completa aqui para que movement lo use antes que combat) NAx.FlingMgr = { FlingOldPos = nil, lFlingOldPos = nil, cFlingOldPos = nil } NAx.FlingMgr.FlingVelocity = Vector3.new(9e7, 9e8, 9e7) NAx.FlingMgr.FlingAngularVelocity = Vector3.new(9e8, 9e8, 9e8) NAx.FlingMgr.MoverFlingVelocity = Vector3.new(9e8, 9e8, 9e8) function NAx.FlingMgr.IsFiniteNumber(v) return type(v) == "number" and v == v and v ~= math.huge and v ~= -math.huge end function NAx.FlingMgr.IsFiniteVector(v) return typeof(v) == "Vector3" and NAx.FlingMgr.IsFiniteNumber(v.X) and NAx.FlingMgr.IsFiniteNumber(v.Y) and NAx.FlingMgr.IsFiniteNumber(v.Z) end function NAx.FlingMgr.SetFlingVelocity(part) if not part then return end pcall(function() part.AssemblyLinearVelocity = NAx.FlingMgr.FlingVelocity end) pcall(function() part.AssemblyAngularVelocity = NAx.FlingMgr.FlingAngularVelocity end) pcall(function() part.Velocity = NAx.FlingMgr.FlingVelocity end) pcall(function() part.RotVelocity = NAx.FlingMgr.FlingAngularVelocity end) end function NAx.FlingMgr.ClearPartVelocity(part) if not part then return end local zero = Vector3.new(0, 0, 0) pcall(function() part.AssemblyLinearVelocity = zero end) pcall(function() part.AssemblyAngularVelocity = zero end) pcall(function() part.Velocity = zero end) pcall(function() part.RotVelocity = zero end) end function NAx.FlingMgr.GetPartVelocity(part) local best, bestSq = Vector3.new(0, 0, 0), 0 if not part then return best, 0 end local ok, av = pcall(function() return part.AssemblyLinearVelocity end) if ok and NAx.FlingMgr.IsFiniteVector(av) then best = av; bestSq = av:Dot(av) end local ok2, lv = pcall(function() return part.Velocity end) if ok2 and NAx.FlingMgr.IsFiniteVector(lv) then local sq = lv:Dot(lv) if sq > bestSq then best = lv; bestSq = sq end end return best, math.sqrt(bestSq) end function NAx.ParseFlingSpeed(value) local speed = tonumber(value) if not NAx.FlingMgr.IsFiniteNumber(speed) or speed <= 0 then speed = 10000 end return math.clamp(speed, 1, 1000000000) end end -- ═══════════════════════════════════════════════════════════════ -- SHIM + Motor Spoof NA part-029 (verbatim, namespaced en NAx.Spoof*). -- SHIM adaptado al Hub: notificaciones por Core.Notifications -- (NAx.notify), servicios resueltos una vez, sin globals NAStuff/NAmanage. -- Patrón perezoso: Spoof.refresh() arranca el scheduler solo con spoof -- activo y lo apaga cuando no queda ninguno (0 conexiones inactivo). -- ═══════════════════════════════════════════════════════════════ do local NAx = Vokthos and Vokthos.NAx if not NAx then warn("[Vokthos] Spoof motor: Vokthos.NAx no disponible") else local RunServiceS = game:GetService("RunService") local function getChar() return NAx.getChar() end local function getRoot(c) c = c or getChar() return c and (c:FindFirstChild("HumanoidRootPart") or c.PrimaryPart) end local function getHum(c) c = c or getChar() return c and c:FindFirstChildOfClass("Humanoid") end local function DoNotif(text) NAx.notify(text) end local SpoofState = { Started = false, RenderName = "NA_SpoofScheduler_Render", Connections = {}, CharacterTransform = { Enabled = false, Offset = Vector3.new(0, 0, 0), Rotation = CFrame.new(), LocalCFrame = nil, SpoofedCFrame = nil, }, Velocity = { Enabled = false, Linear = Vector3.new(0, 0, 0), Angular = Vector3.new(0, 0, 0), MaskLinear = Vector3.new(0, 0, 0), MaskAngular = Vector3.new(0, 0, 0), }, PartTransform = { Enabled = false, Root = nil, Offset = Vector3.new(0, 0, 0), Rotation = CFrame.new(), LocalCFrame = nil, SpoofedCFrame = nil, }, Pose = { Enabled = false, Character = nil, Motors = {} }, HumanoidMasks = {}, HumanoidOriginal = setmetatable({}, { __mode = "k" }), } local M = {} M.HumanoidAllowed = { WalkSpeed = "number", JumpPower = "number", JumpHeight = "number", HipHeight = "number", MaxSlopeAngle = "number", AutoRotate = "boolean", PlatformStand = "boolean", Sit = "boolean", UseJumpPower = "boolean", } M.UG_cframeNear = function(a, b, distance, angleTolerance) if typeof(a) ~= "CFrame" or typeof(b) ~= "CFrame" then return false end if (a.Position - b.Position).Magnitude > (distance or 0.05) then return false end local relative = a:ToObjectSpace(b) local _, angle = relative:ToAxisAngle() return math.abs(angle) <= (angleTolerance or math.rad(0.5)) end M.Spoof_parseNumbers = function(...) local out = {} for i = 1, select("#", ...) do local value = select(i, ...) for token in tostring(value or ""):gmatch("[^,%s]+") do local numberValue = tonumber(token) if numberValue then table.insert(out, numberValue) end end end return out end M.Spoof_parseBoolean = function(value) if type(value) == "boolean" then return value end local text = tostring(value or ""):lower() if text == "true" or text == "1" or text == "yes" or text == "on" then return true end if text == "false" or text == "0" or text == "no" or text == "off" then return false end return nil end M.Spoof_serverCFrame = function(localCFrame, offset, rotation) return (localCFrame * rotation) + offset end M.Spoof_capturePose = function(state) local char = getChar() state.Pose.Character = char table.clear(state.Pose.Motors) if not char then return end for _, obj in ipairs(char:GetDescendants()) do if obj:IsA("Motor6D") then state.Pose.Motors[obj] = obj.Transform end end end M.Spoof_parseHumanoidValue = function(property, value) local kind = M.HumanoidAllowed[property] if kind == "number" then return tonumber(value) end if kind == "boolean" then return M.Spoof_parseBoolean(value) end return nil end M.Spoof_rememberHumanoidOriginal = function(state, hum, property) if not hum then return end local bucket = state.HumanoidOriginal[hum] if not bucket then bucket = {} state.HumanoidOriginal[hum] = bucket end if bucket[property] == nil then -- checkcaller: el hook __index de Evasion ignora las lecturas -- de guion propio, asi se captura el valor REAL y no la mascara local ok, value = pcall(function() return hum[property] end) if ok then bucket[property] = value end end end M.Spoof_setHumanoidProperty = function(hum, property, value) if not hum or value == nil then return end pcall(function() hum[property] = value end) end M.Spoof_restoreHumanoidProperty = function(state, property) for hum, bucket in pairs(state.HumanoidOriginal) do if hum and hum.Parent and bucket[property] ~= nil then M.Spoof_setHumanoidProperty(hum, property, bucket[property]) end bucket[property] = nil end state.HumanoidMasks[property] = nil end M.Spoof_restoreAllHumanoid = function(state) for hum, bucket in pairs(state.HumanoidOriginal) do if hum and hum.Parent then for property, value in pairs(bucket) do M.Spoof_setHumanoidProperty(hum, property, value) end end end table.clear(state.HumanoidMasks) state.HumanoidOriginal = setmetatable({}, { __mode = "k" }) end M.Spoof_restoreTransforms = function(state) local root = getRoot(getChar()) if root and typeof(state.CharacterTransform.LocalCFrame) == "CFrame" then pcall(function() root.CFrame = state.CharacterTransform.LocalCFrame end) end local partState = state.PartTransform if partState.Root and partState.Root.Parent and typeof(partState.LocalCFrame) == "CFrame" then pcall(function() partState.Root.CFrame = partState.LocalCFrame end) end end M.Spoof_restoreVelocity = function(state) local root = getRoot(getChar()) if root and state.Velocity.Enabled then pcall(function() root.AssemblyLinearVelocity = state.Velocity.Linear root.AssemblyAngularVelocity = state.Velocity.Angular end) end end M.Spoof_stop = function(message) local state = SpoofState M.Spoof_restoreTransforms(state) M.Spoof_restoreVelocity(state) M.Spoof_restoreAllHumanoid(state) for key, connection in pairs(state.Connections) do if connection then pcall(function() connection:Disconnect() end) end state.Connections[key] = nil end if RunServiceS.UnbindFromRenderStep then pcall(RunServiceS.UnbindFromRenderStep, RunServiceS, state.RenderName) end state.CharacterTransform.Enabled = false state.CharacterTransform.SpoofedCFrame = nil state.Velocity.Enabled = false state.PartTransform.Enabled = false state.PartTransform.Root = nil state.PartTransform.SpoofedCFrame = nil state.Pose.Enabled = false table.clear(state.Pose.Motors) state.Started = false if message then DoNotif(message) end end M.Spoof_start = function() local state = SpoofState if state.Started then return true end local runService = RunServiceS if not runService then return false end state.Started = true local preSignal = runService.PreSimulation or runService.Stepped state.Connections.PreSimulation = preSignal:Connect(function() local root = getRoot(getChar()) local hum = getHum(getChar()) if root and state.Velocity.Enabled then pcall(function() root.AssemblyLinearVelocity = state.Velocity.Linear root.AssemblyAngularVelocity = state.Velocity.Angular end) end if hum then for property, entry in pairs(state.HumanoidMasks) do M.Spoof_rememberHumanoidOriginal(state, hum, property) M.Spoof_setHumanoidProperty(hum, property, entry.Real) end end end) state.Connections.Heartbeat = runService.Heartbeat:Connect(function() local char = getChar() local root = getRoot(char) if root and state.Velocity.Enabled then local okLinear, linear = pcall(function() return root.AssemblyLinearVelocity end) local okAngular, angular = pcall(function() return root.AssemblyAngularVelocity end) if okLinear then state.Velocity.Linear = linear end if okAngular then state.Velocity.Angular = angular end end if root and state.CharacterTransform.Enabled then local observed = root.CFrame if not M.UG_cframeNear(observed, state.CharacterTransform.SpoofedCFrame, 0.08) then state.CharacterTransform.LocalCFrame = observed end local base = state.CharacterTransform.LocalCFrame or observed local spoofed = M.Spoof_serverCFrame(base, state.CharacterTransform.Offset, state.CharacterTransform.Rotation) state.CharacterTransform.SpoofedCFrame = spoofed root.CFrame = spoofed end local partState = state.PartTransform if partState.Enabled and partState.Root and partState.Root.Parent then local observed = partState.Root.CFrame if not M.UG_cframeNear(observed, partState.SpoofedCFrame, 0.08) then partState.LocalCFrame = observed end local base = partState.LocalCFrame or observed local spoofed = M.Spoof_serverCFrame(base, partState.Offset, partState.Rotation) partState.SpoofedCFrame = spoofed partState.Root.CFrame = spoofed end if root and state.Velocity.Enabled then pcall(function() root.AssemblyLinearVelocity = state.Velocity.MaskLinear root.AssemblyAngularVelocity = state.Velocity.MaskAngular end) end local hum = getHum(char) if hum then for property, entry in pairs(state.HumanoidMasks) do M.Spoof_rememberHumanoidOriginal(state, hum, property) M.Spoof_setHumanoidProperty(hum, property, entry.Mask) end end end) if runService.UnbindFromRenderStep then pcall(runService.UnbindFromRenderStep, runService, state.RenderName) end pcall(function() runService:BindToRenderStep(state.RenderName, Enum.RenderPriority.First.Value, function() local char = getChar() local root = getRoot(char) if root and state.CharacterTransform.Enabled and typeof(state.CharacterTransform.LocalCFrame) == "CFrame" then root.CFrame = state.CharacterTransform.LocalCFrame end local partState = state.PartTransform if partState.Enabled and partState.Root and partState.Root.Parent and typeof(partState.LocalCFrame) == "CFrame" then partState.Root.CFrame = partState.LocalCFrame end if root and state.Velocity.Enabled then pcall(function() root.AssemblyLinearVelocity = state.Velocity.Linear root.AssemblyAngularVelocity = state.Velocity.Angular end) end local hum = getHum(char) if hum then for property, entry in pairs(state.HumanoidMasks) do M.Spoof_rememberHumanoidOriginal(state, hum, property) M.Spoof_setHumanoidProperty(hum, property, entry.Real) end end if state.Pose.Enabled then if char ~= state.Pose.Character then M.Spoof_capturePose(state) end for motor, transform in pairs(state.Pose.Motors) do if motor and motor.Parent then motor.Transform = transform else state.Pose.Motors[motor] = nil end end end end) end) return true end M.Spoof_transformFromNumbers = function(values) local x = values[1] or 0 local y = values[2] or 0 local z = values[3] or 0 local pitch = math.rad(values[4] or 0) local yaw = math.rad(values[5] or 0) local roll = math.rad(values[6] or 0) return Vector3.new(x, y, z), CFrame.Angles(pitch, yaw, roll) end -- ═══ SpoofManager: scheduler perezoso (0 conexiones inactivo) ═══ local Spoof = { _on = {} } Spoof.State = SpoofState Spoof.Mgr = M function Spoof.refresh() local any = next(Spoof._on) ~= nil if any and not SpoofState.Started then if not M.Spoof_start() then DoNotif("No se pudo arrancar el scheduler de spoof") end elseif not any and SpoofState.Started then M.Spoof_stop() end end function Spoof.stop(message) M.Spoof_stop(message) Spoof._on = {} end function Spoof.walk(real, mask) real = tonumber(real) if not real then return false end local hum = getHum(getChar()) if not hum then DoNotif("Humanoid no disponible") return false end M.Spoof_rememberHumanoidOriginal(SpoofState, hum, "WalkSpeed") local bucket = SpoofState.HumanoidOriginal[hum] local maskV = tonumber(mask) or ((bucket and bucket.WalkSpeed) or hum.WalkSpeed) SpoofState.HumanoidMasks.WalkSpeed = { Real = real, Mask = maskV } Spoof._on.walk = true Spoof.refresh() return true end function Spoof.unwalk() M.Spoof_restoreHumanoidProperty(SpoofState, "WalkSpeed") Spoof._on.walk = nil Spoof.refresh() end function Spoof.velocity(maskLinear, maskAngular) local root = getRoot(getChar()) -- captura la velocidad real solo la primera vez: si ya esta activo, -- Linear/Angular trackean la simulacion real (evita capturar la mascara) if root and not SpoofState.Velocity.Enabled then local okL, lv = pcall(function() return root.AssemblyLinearVelocity end) local okA, av = pcall(function() return root.AssemblyAngularVelocity end) if okL then SpoofState.Velocity.Linear = lv end if okA then SpoofState.Velocity.Angular = av end end SpoofState.Velocity.MaskLinear = maskLinear or Vector3.zero SpoofState.Velocity.MaskAngular = maskAngular or Vector3.zero SpoofState.Velocity.Enabled = true Spoof._on.velocity = true Spoof.refresh() end function Spoof.unvelocity() M.Spoof_restoreVelocity(SpoofState) SpoofState.Velocity.Enabled = false Spoof._on.velocity = nil Spoof.refresh() end function Spoof.transform(offset, rotation) local root = getRoot(getChar()) if not root then DoNotif("Character root no disponible") return false end local st = SpoofState.CharacterTransform st.Offset = offset or Vector3.zero st.Rotation = rotation or CFrame.new() st.LocalCFrame = root.CFrame st.SpoofedCFrame = nil st.Enabled = true Spoof._on.transform = true Spoof.refresh() return true end function Spoof.part(assemblyRoot, offset, rotation) if not (assemblyRoot and assemblyRoot.Parent) then return false end local st = SpoofState.PartTransform st.Root = assemblyRoot st.Offset = offset or Vector3.zero st.Rotation = rotation or CFrame.new() st.LocalCFrame = assemblyRoot.CFrame st.SpoofedCFrame = nil st.Enabled = true Spoof._on.part = true Spoof.refresh() return true end function Spoof.unpart() local st = SpoofState.PartTransform if st.Root and st.Root.Parent and typeof(st.LocalCFrame) == "CFrame" then pcall(function() st.Root.CFrame = st.LocalCFrame end) end st.Enabled = false st.Root = nil st.LocalCFrame = nil st.SpoofedCFrame = nil Spoof._on.part = nil Spoof.refresh() end function Spoof.pose() M.Spoof_capturePose(SpoofState) SpoofState.Pose.Enabled = true Spoof._on.pose = true Spoof.refresh() end function Spoof.unpose() SpoofState.Pose.Enabled = false table.clear(SpoofState.Pose.Motors) Spoof._on.pose = nil Spoof.refresh() end function Spoof.hum(property, real, mask) property = tostring(property or "") if not M.HumanoidAllowed[property] then DoNotif("Propiedad de Humanoid no soportada") return false end local realV = M.Spoof_parseHumanoidValue(property, real) local maskV = M.Spoof_parseHumanoidValue(property, mask) if realV == nil or maskV == nil then DoNotif("Valores invalidos para " .. property) return false end local hum = getHum(getChar()) if not hum then DoNotif("Humanoid no disponible") return false end M.Spoof_rememberHumanoidOriginal(SpoofState, hum, property) SpoofState.HumanoidMasks[property] = { Real = realV, Mask = maskV } Spoof._on.hum = true Spoof.refresh() return true end function Spoof.unhum(property) property = tostring(property or "all"):lower() if property == "" or property == "all" then M.Spoof_restoreAllHumanoid(SpoofState) Spoof._on.hum = nil Spoof.refresh() return end for k in pairs(M.HumanoidAllowed) do if k:lower() == property then property = k break end end if not M.HumanoidAllowed[property] then DoNotif("Propiedad de Humanoid no soportada") return end M.Spoof_restoreHumanoidProperty(SpoofState, property) if next(SpoofState.HumanoidMasks) == nil then Spoof._on.hum = nil end Spoof.refresh() end function Spoof.off(kind) if kind == "walk" then Spoof.unwalk() elseif kind == "velocity" then Spoof.unvelocity() elseif kind == "transform" then local st = SpoofState.CharacterTransform local root = getRoot(getChar()) if root and typeof(st.LocalCFrame) == "CFrame" then pcall(function() root.CFrame = st.LocalCFrame end) end st.Enabled = false st.SpoofedCFrame = nil Spoof._on.transform = nil Spoof.refresh() elseif kind == "part" then Spoof.unpart() elseif kind == "pose" then Spoof.unpose() elseif kind == "hum" then Spoof.unhum("all") end end function Spoof.sleep(part) if type(sethiddenproperty) == "function" and part then pcall(sethiddenproperty, part, "NetworkIsSleeping", true) end end function Spoof.status() local hum = {} for property in pairs(SpoofState.HumanoidMasks) do table.insert(hum, property) end table.sort(hum) return ("transform=%s | velocity=%s | part=%s | pose=%s | hum=%s | scheduler=%s"):format( tostring(SpoofState.CharacterTransform.Enabled), tostring(SpoofState.Velocity.Enabled), tostring(SpoofState.PartTransform.Enabled), tostring(SpoofState.Pose.Enabled), #hum > 0 and table.concat(hum, ",") or "none", tostring(SpoofState.Started) ) end -- publicación: una sola fuente de estado (NAx compartido) NAx.SpoofState = SpoofState NAx.SpoofMgr = M NAx.Spoof = Spoof Vokthos.Spoof = Spoof -- todo spoof activo se restaura al descargar el hub if Vokthos.Dispose and Vokthos.Dispose.add then Vokthos.Dispose.add(function() Spoof.stop() end) end end end local function loadModule(name, code) local chunk, err = loadstring(code, "module:" .. name) if not chunk then warn("[Vokthos] Load error " .. name .. ": " .. tostring(err)) return nil end local success, result = pcall(chunk) if not success then warn("[Vokthos] Exec error " .. name .. ": " .. tostring(result)) return nil end if Vokthos and Vokthos.ModuleLoader and Vokthos.ModuleLoader.Register then Vokthos.ModuleLoader.Register(name, result) end return result end Vokthos.Modules.Loaded.hub = loadModule("hub", [==[ local G = (getgenv and getgenv()) or _G if G.VokthosHub then return G.VokthosHub end local function missing(t, f, fb) if type(f) == t then return f end return fb end local _getrawmetatable = missing("function", getrawmetatable) local _setreadonly = missing("function", setreadonly) local _newcclosure = missing("function", newcclosure, function(f) return f end) local _rawGetNCM = getnamecallmethod local _getnamecallmethod = missing("function", getnamecallmethod, function() return "" end) local _checkcaller = missing("function", checkcaller, function() return false end) local hasNC = (_getrawmetatable ~= nil and _setreadonly ~= nil and _rawGetNCM ~= nil) local Hub = {} Hub.hasNC = hasNC Hub._installed = false Hub._mt = nil Hub._ncClosure = nil Hub._idxClosure = nil Hub._trueBaseNC = nil Hub._trueBaseIDX = nil Hub._gen = 0 Hub._depth = 0 Hub._ncHandlers = {} Hub._idxHandlers = {} Hub._ncSorted = {} Hub._idxSorted = {} Hub._canary = nil Hub._canaryRun = false Hub.tamperCount = 0 local function rebuildNC() local a = {} for _, h in pairs(Hub._ncHandlers) do a[#a + 1] = h end table.sort(a, function(x, y) return x.priority > y.priority end) Hub._ncSorted = a end local function rebuildIDX() local a = {} for _, h in pairs(Hub._idxHandlers) do a[#a + 1] = h end table.sort(a, function(x, y) return x.priority > y.priority end) Hub._idxSorted = a end local function runNamecall(self, method, args) local swallow = false local list = Hub._ncSorted for i = 1, #list do local res = list[i].fn(self, method, args) if type(res) == "table" then if res.args then args = res.args end if res.swallow then swallow = true break end end end return swallow, args end local function runIndex(self, key) local list = Hub._idxSorted for i = 1, #list do local res = list[i].fn(self, key) if type(res) == "table" and res.handled then return true, res.value end end return false end local function makeNC(myBase, mygen) return _newcclosure(function(self, ...) if Hub._depth > 0 or mygen ~= Hub._gen then return myBase(self, ...) end if #Hub._ncSorted == 0 then return myBase(self, ...) end local n = select("#", ...) local args = { ... } if not _checkcaller() then Hub._depth += 1 local ok, swallow, na = pcall(runNamecall, self, _getnamecallmethod(), args) Hub._depth -= 1 if ok then if na then args = na end if swallow then return nil end end end return myBase(self, table.unpack(args, 1, math.max(n, #args))) end) end local function makeIDX(myBase, mygen) return _newcclosure(function(self, key) if Hub._depth > 0 or mygen ~= Hub._gen then return myBase(self, key) end if #Hub._idxSorted == 0 then return myBase(self, key) end if not _checkcaller() then Hub._depth += 1 local ok, handled, val = pcall(runIndex, self, key) Hub._depth -= 1 if ok and handled then return val end end return myBase(self, key) end) end function Hub.install(rebase) if not hasNC then return false end if Hub._installed and not rebase then return true end local ok = pcall(function() local mt = _getrawmetatable(game) if not mt then error("no metatable") end Hub._mt = mt _setreadonly(mt, false) local baseNC, baseIDX = mt.__namecall, mt.__index if Hub._trueBaseNC == nil then Hub._trueBaseNC = baseNC end if Hub._trueBaseIDX == nil then Hub._trueBaseIDX = baseIDX end Hub._curBaseNC, Hub._curBaseIDX = baseNC, baseIDX Hub._gen += 1 local mygen = Hub._gen local nc, idx = makeNC(baseNC, mygen), makeIDX(baseIDX, mygen) mt.__namecall, mt.__index = nc, idx Hub._ncClosure, Hub._idxClosure = nc, idx _setreadonly(mt, true) end) Hub._installed = ok return ok end function Hub.uninstall() Hub.stopCanary() if not hasNC then Hub._installed = false return end pcall(function() local mt = _getrawmetatable(game) if not mt then return end _setreadonly(mt, false) if mt.__namecall == Hub._ncClosure and Hub._curBaseNC then mt.__namecall = Hub._curBaseNC end if mt.__index == Hub._idxClosure and Hub._curBaseIDX then mt.__index = Hub._curBaseIDX end _setreadonly(mt, true) end) Hub._installed = false Hub._ncClosure, Hub._idxClosure = nil, nil Hub._ncHandlers, Hub._idxHandlers = {}, {} rebuildNC(); rebuildIDX() end local function hasHandlers() return next(Hub._ncHandlers) ~= nil or next(Hub._idxHandlers) ~= nil end Hub.hasHandlers = hasHandlers -- restaura el base SIN tocar handlers ni canary (a diferencia de Hub.uninstall) function Hub.maybeUninstall() if hasHandlers() or not Hub._installed then return end pcall(function() local mt = _getrawmetatable(game) if not mt then return end _setreadonly(mt, false) if mt.__namecall == Hub._ncClosure and Hub._curBaseNC then mt.__namecall = Hub._curBaseNC end if mt.__index == Hub._idxClosure and Hub._curBaseIDX then mt.__index = Hub._curBaseIDX end _setreadonly(mt, true) end) Hub._installed = false Hub._ncClosure, Hub._idxClosure = nil, nil end function Hub.registerNamecall(n, fn, p) Hub._ncHandlers[n] = { fn = fn, priority = p or 0 } rebuildNC() return Hub.install() end function Hub.unregisterNamecall(n) Hub._ncHandlers[n] = nil rebuildNC() Hub.maybeUninstall() end function Hub.registerIndex(n, fn, p) Hub._idxHandlers[n] = { fn = fn, priority = p or 0 } rebuildIDX() return Hub.install() end function Hub.unregisterIndex(n) Hub._idxHandlers[n] = nil rebuildIDX() Hub.maybeUninstall() end function Hub.checkTamper() if not (hasNC and Hub._installed) then return false end local ok, mt = pcall(_getrawmetatable, game) if not ok or not mt then return false end return (mt.__namecall ~= Hub._ncClosure) or (mt.__index ~= Hub._idxClosure) end function Hub.startCanary(onTamper) if Hub._canary or not hasNC then return end Hub._canaryRun = true Hub._canary = task.spawn(function() while Hub._canaryRun do task.wait(1) if hasHandlers() then if not Hub._installed then Hub.install(true) elseif Hub.checkTamper() then Hub._installed = false Hub.install(true) Hub.tamperCount += 1 if onTamper then pcall(onTamper, Hub.tamperCount) end end elseif Hub._installed then Hub.maybeUninstall() end end end) end function Hub.stopCanary() Hub._canaryRun = false if Hub._canary then pcall(task.cancel, Hub._canary) Hub._canary = nil end end G.VokthosHub = Hub return Hub ]==]) Vokthos.Modules.Loaded.movement = loadModule("movement", [==[ local Movement = {} local Players = game:GetService("Players") local UserInputService = game:GetService("UserInputService") local RunService = game:GetService("RunService") local Workspace = game:GetService("Workspace") local LocalPlayer = Players.LocalPlayer local Utils = shared.Utils or _G.Vokthos.Utils local SharedTicker = shared.SharedTicker or _G.Vokthos.SharedTicker local protectGui = shared.protectGui or function() end local State = shared.State or (_G.Vokthos and _G.Vokthos.State) or { Get = function(k, d) return d end, Set = function() end } -- NAx Hub-scope con cache perezosa (movement carga antes que el bloque Hub/NAx si se reordena) local _naxCache = nil local function NAxHub() if _naxCache then return _naxCache end local v = _G.Vokthos or (shared and shared.Vokthos) local nx = v and v.NAx or nil if nx then _naxCache = nx end return nx end local touch = { up = false, down = false, gui = nil } local function getParentUi() if gethui then local ok, ui = pcall(gethui) if ok and ui then return ui end end return game:GetService("CoreGui") end local function ensureTouchControls() if not UserInputService.TouchEnabled or touch.gui then return end local sg = Instance.new("ScreenGui") sg.Name = "VokthosFlyControls_" .. tostring(math.random(100000, 999999)) sg.ResetOnSpawn = false sg.ZIndexBehavior = Enum.ZIndexBehavior.Sibling sg.Parent = getParentUi() protectGui(sg) touch.gui = sg local function makeBtn(label, y, key) local b = Instance.new("TextButton") b.Size = UDim2.fromOffset(52, 52) b.Position = UDim2.new(1, -66, 0, y) b.Text = label b.TextSize = 22 b.Font = Enum.Font.GothamBold b.TextColor3 = Color3.new(1, 1, 1) b.BackgroundColor3 = Color3.fromRGB(30, 30, 45) b.BackgroundTransparency = 0.25 b.BorderSizePixel = 0 b.Parent = sg local c = Instance.new("UICorner") c.CornerRadius = UDim.new(0, 12) c.Parent = b b.InputBegan:Connect(function(inp) if inp.UserInputType == Enum.UserInputType.Touch or inp.UserInputType == Enum.UserInputType.MouseButton1 then touch[key] = true end end) b.InputEnded:Connect(function(inp) if inp.UserInputType == Enum.UserInputType.Touch or inp.UserInputType == Enum.UserInputType.MouseButton1 then touch[key] = false end end) end makeBtn("^", 150, "up") makeBtn("v", 210, "down") end local function releaseTouchControls() if Movement.Fly._active or Movement.CFrameFly._active or Movement.FlyCar._active then return end if touch.gui then touch.gui:Destroy() touch.gui = nil end end local cachedControls -- Fly en móvil: con PlatformStand el botón de salto nativo queda muerto, -- así que lo usamos como pulso de ascenso de 0.15 s. local jumpPulse = 0 local _jumpPulseConn = UserInputService.JumpRequest:Connect(function() if Movement.Fly._active or Movement.CFrameFly._active or Movement.FlyCar._active then jumpPulse = os.clock() end end) local function getControls() if cachedControls then return cachedControls end local ok, controls = pcall(function() local ps = LocalPlayer:FindFirstChild("PlayerScripts") or LocalPlayer:WaitForChild("PlayerScripts", 5) if not ps then return nil end local pm = ps:FindFirstChild("PlayerModule") or ps:WaitForChild("PlayerModule", 5) return pm and require(pm):GetControls() or nil end) if ok and controls then cachedControls = controls end return controls end local function getMoveInput() local camera = Workspace.CurrentCamera if not camera then return Vector3.zero end local dir = Vector3.zero if UserInputService.TouchEnabled then local controls = getControls() if controls then local v = controls:GetMoveVector() if v.Magnitude > 0 then dir = camera.CFrame:VectorToWorldSpace(Vector3.new(v.X, 0, v.Z)) end end end if dir.Magnitude == 0 then local char = Utils.getChar() local hum = char and Utils.getHumanoid(char) if hum and hum.MoveDirection.Magnitude > 0 then dir = hum.MoveDirection else if UserInputService:IsKeyDown(Enum.KeyCode.W) then dir = dir + camera.CFrame.LookVector end if UserInputService:IsKeyDown(Enum.KeyCode.S) then dir = dir - camera.CFrame.LookVector end if UserInputService:IsKeyDown(Enum.KeyCode.A) then dir = dir - camera.CFrame.RightVector end if UserInputService:IsKeyDown(Enum.KeyCode.D) then dir = dir + camera.CFrame.RightVector end end end if UserInputService:IsKeyDown(Enum.KeyCode.Space) or touch.up or (os.clock() - jumpPulse < 0.15) then dir = dir + Vector3.new(0, 1, 0) end if UserInputService:IsKeyDown(Enum.KeyCode.LeftShift) or touch.down then dir = dir - Vector3.new(0, 1, 0) end return dir end local function guard(module) module._conns = module._conns or {} end local function track(module, event, callback) module._conns = module._conns or {} local conn = event:Connect(callback) table.insert(module._conns, conn) return conn end local function cleanup(module) if module._conns then for _, conn in ipairs(module._conns) do if typeof(conn) == "RBXScriptConnection" then pcall(function() conn:Disconnect() end) end end module._conns = {} end end Movement.Speed = { name = "Speed", stateKey = "movement_speed_enabled", speed = State.Get("speed_value", 100), enabled = false, _tickFn = nil, _originalSpeed = nil, _conns = nil, _slider = nil, _toggle = nil } function Movement.Speed.onEnable() if Movement.Speed.enabled then return true end guard(Movement.Speed) local function applySpeed() local hum = Utils.getHumanoid(Utils.getChar()) if hum then hum.WalkSpeed = Movement.Speed.speed end end Movement.Speed._applySpeed = applySpeed local currentHum = Utils.getHumanoid(Utils.getChar()) if currentHum then Movement.Speed._originalSpeed = currentHum.WalkSpeed end track(Movement.Speed, LocalPlayer.CharacterAdded, function() task.wait(0.5) applySpeed() end) Movement.Speed.enabled = true task.defer(applySpeed) return true end function Movement.Speed.onDisable() local hum = Utils.getHumanoid(Utils.getChar()) if hum and Movement.Speed._originalSpeed then hum.WalkSpeed = Movement.Speed._originalSpeed end Movement.Speed._originalSpeed = nil Movement.Speed._applySpeed = nil cleanup(Movement.Speed) Movement.Speed.enabled = false return true end function Movement.Speed.build(tab) Movement.Speed._slider = tab:CreateSlider({ name = "Speed", flag = "speed_value", range = { 0, 500 }, increment = 1, value = Movement.Speed.speed, callback = function(v) Movement.Speed.speed = v; State.Set("speed_value", v); if Movement.Speed.enabled and Movement.Speed._applySpeed then Movement.Speed._applySpeed() end end, }) tab:CreateButton({ name = "Reset", callback = function() Movement.Speed.speed = 16; State.Set("speed_value", 16) if Movement.Speed._slider then Movement.Speed._slider:Set(16, true) end end, }) tab:CreateDivider() Movement.Speed._toggle = tab:CreateToggle({ name = "Enabled", flag = "speed_enabled", value = Movement.Speed.enabled, callback = function(on) State.Set("movement_speed_enabled", on) if on then Movement.Speed.onEnable() else Movement.Speed.onDisable() end end, }) end Movement.Noclip = { name = "Noclip", stateKey = "movement_noclip_enabled", enabled = false, _tickFn = nil, _originals = setmetatable({}, {__mode = "k"}), _conns = nil, _toggle = nil } function Movement.Noclip.onEnable() if Movement.Noclip._tickFn then return true end guard(Movement.Noclip) local function setCollision(character, state) if not character then return end for _, part in ipairs(character:GetDescendants()) do if part:IsA("BasePart") and part.Name ~= "HumanoidRootPart" then if state == false and Movement.Noclip._originals[part] == nil then Movement.Noclip._originals[part] = part.CanCollide end part.CanCollide = state end end end local function applyNoclip() setCollision(Utils.getChar(), false) end if LocalPlayer.Character then task.defer(applyNoclip) end track(Movement.Noclip, LocalPlayer.CharacterAdded, function() task.wait(0.5) applyNoclip() end) Movement.Noclip._tickFn = function() local char = Utils.getChar() if not char then return end for _, part in ipairs(char:GetDescendants()) do if part:IsA("BasePart") and part.Name ~= "HumanoidRootPart" and part.CanCollide then if Movement.Noclip._originals[part] == nil then Movement.Noclip._originals[part] = part.CanCollide end part.CanCollide = false end end end SharedTicker.subscribe("Noclip", Movement.Noclip._tickFn) Movement.Noclip.enabled = true task.defer(applyNoclip) return true end function Movement.Noclip.onDisable() if Movement.Noclip._tickFn then SharedTicker.unsubscribe("Noclip") Movement.Noclip._tickFn = nil end for part, original in pairs(Movement.Noclip._originals) do if part and part.Parent then part.CanCollide = original end end Movement.Noclip._originals = setmetatable({}, {__mode = "k"}) cleanup(Movement.Noclip) Movement.Noclip.enabled = false return true end function Movement.Noclip.build(tab) Movement.Noclip._toggle = tab:CreateToggle({ name = "Enabled", flag = "noclip_enabled", value = Movement.Noclip.enabled, callback = function(on) State.Set("movement_noclip_enabled", on) if on then Movement.Noclip.onEnable() else Movement.Noclip.onDisable() end end, }) end Movement.Fly = { name = "Fly", stateKey = "movement_fly_enabled", enabled = false, flySpeed = State.Get("fly_value", 100), stealth = false, _prevWalk = nil, _active = false, _renderConn = nil, _linearVelocity = nil, _alignOrientation = nil, _attachment = nil, _conns = nil, _slider = nil, _toggle = nil } function Movement.Fly.applyHumanoidState(hum, active) if not hum then return end if active then Movement.Fly._usedStealth = Movement.Fly.stealth if Movement.Fly._usedStealth then Movement.Fly._prevWalk = hum.WalkSpeed hum.WalkSpeed = 0 pcall(function() hum:ChangeState(Enum.HumanoidStateType.Physics) end) else hum.PlatformStand = true end else if Movement.Fly._usedStealth then hum.WalkSpeed = Movement.Fly._prevWalk or 16 pcall(function() hum:ChangeState(Enum.HumanoidStateType.Running) end) Movement.Fly._prevWalk = nil else hum.PlatformStand = false end Movement.Fly._usedStealth = nil end end function Movement.Fly.setupFly() if Movement.Fly._active then return true end local char = Utils.getChar() if not char then return false end local humanoid = Utils.getHumanoid(char) local rootPart = char:FindFirstChild("HumanoidRootPart") if not humanoid or not rootPart then return false end Movement.Fly._attachment = Instance.new("Attachment") Movement.Fly._attachment.Parent = rootPart Movement.Fly._linearVelocity = Instance.new("LinearVelocity") Movement.Fly._linearVelocity.Attachment0 = Movement.Fly._attachment Movement.Fly._linearVelocity.MaxForce = math.huge Movement.Fly._linearVelocity.VectorVelocity = Vector3.zero Movement.Fly._linearVelocity.RelativeTo = Enum.ActuatorRelativeTo.World Movement.Fly._linearVelocity.Parent = rootPart Movement.Fly._alignOrientation = Instance.new("AlignOrientation") Movement.Fly._alignOrientation.Mode = Enum.OrientationAlignmentMode.OneAttachment Movement.Fly._alignOrientation.Attachment0 = Movement.Fly._attachment Movement.Fly._alignOrientation.MaxTorque = math.huge Movement.Fly._alignOrientation.Responsiveness = 50 Movement.Fly._alignOrientation.Parent = rootPart Movement.Fly._active = true Movement.Fly.applyHumanoidState(humanoid, true) ensureTouchControls() if Movement.Fly._renderConn then Movement.Fly._renderConn:Disconnect() end Movement.Fly._renderConn = RunService.RenderStepped:Connect(function() if not Movement.Fly._active then return end local currentChar = Utils.getChar() if not currentChar then return end local currentRoot = currentChar:FindFirstChild("HumanoidRootPart") if not currentRoot or not Utils.getHumanoid(currentChar) then return end local camera = Workspace.CurrentCamera if not camera then return end local moveDirection = getMoveInput() if moveDirection.Magnitude > 0 then moveDirection = moveDirection.Unit end Movement.Fly._linearVelocity.VectorVelocity = moveDirection * Movement.Fly.flySpeed Movement.Fly._alignOrientation.CFrame = CFrame.new(currentRoot.Position, currentRoot.Position + camera.CFrame.LookVector) end) return true end function Movement.Fly.cleanupFly() Movement.Fly._active = false if Movement.Fly._renderConn then Movement.Fly._renderConn:Disconnect(); Movement.Fly._renderConn = nil end if Movement.Fly._linearVelocity then Movement.Fly._linearVelocity:Destroy(); Movement.Fly._linearVelocity = nil end if Movement.Fly._alignOrientation then Movement.Fly._alignOrientation:Destroy(); Movement.Fly._alignOrientation = nil end if Movement.Fly._attachment then Movement.Fly._attachment:Destroy(); Movement.Fly._attachment = nil end local char = Utils.getChar() if char then local humanoid = Utils.getHumanoid(char) if humanoid then Movement.Fly.applyHumanoidState(humanoid, false) end end end function Movement.Fly.onEnable() guard(Movement.Fly) if not Movement.Fly._charConn then Movement.Fly._charConn = track(Movement.Fly, LocalPlayer.CharacterAdded, function() task.wait(0.5) if State.Get("movement_fly_enabled") then Movement.Fly.cleanupFly(); Movement.Fly.setupFly() end end) end if Movement.Fly._active then return true end if not Movement.Fly.setupFly() then return false end Movement.Fly.enabled = true return true end function Movement.Fly.onDisable() Movement.Fly.cleanupFly() cleanup(Movement.Fly) Movement.Fly._charConn = nil Movement.Fly.enabled = false releaseTouchControls() return true end function Movement.Fly.build(tab) Movement.Fly._slider = tab:CreateSlider({ name = "Fly Speed", flag = "fly_value", range = { 0, 500 }, increment = 1, value = Movement.Fly.flySpeed, callback = function(v) Movement.Fly.flySpeed = v; State.Set("fly_value", v) end, }) tab:CreateButton({ name = "Reset", callback = function() Movement.Fly.flySpeed = 100; State.Set("fly_value", 100) if Movement.Fly._slider then Movement.Fly._slider:Set(100, true) end end, }) tab:CreateDivider() Movement.Fly._toggle = tab:CreateToggle({ name = "Enabled", flag = "fly_enabled", value = Movement.Fly.enabled, callback = function(on) State.Set("movement_fly_enabled", on) if on then Movement.Fly.onEnable() else Movement.Fly.onDisable() end end, }) tab:CreateToggle({ name = "Stealth (sin PlatformStand)", flag = "fly_stealth", value = Movement.Fly.stealth, callback = function(on) Movement.Fly.stealth = on State.Set("fly_stealth", on) if Movement.Fly._active then local char = Utils.getChar() local hum = char and Utils.getHumanoid(char) if hum then Movement.Fly.applyHumanoidState(hum, false) -- revierte modo previo Movement.Fly.applyHumanoidState(hum, true) -- aplica modo nuevo end end end, }) end Movement.CFrameFly = { name = "CFrame Fly", stateKey = "movement_cframefly_enabled", enabled = false, flySpeed = State.Get("cframefly_value", 100), _active = false, _tickFn = nil, _charConn = nil, _conns = nil, _slider = nil, _toggle = nil } function Movement.CFrameFly.onEnable() guard(Movement.CFrameFly) if not Movement.CFrameFly._charConn then Movement.CFrameFly._charConn = track(Movement.CFrameFly, LocalPlayer.CharacterAdded, function() task.wait(0.5) if State.Get("movement_cframefly_enabled") then if Movement.CFrameFly._tickFn then SharedTicker.unsubscribe("CFrameFly") Movement.CFrameFly._tickFn = nil Movement.CFrameFly._active = false end task.wait(0.1) Movement.CFrameFly.onEnable() end end) end if Movement.CFrameFly._tickFn then return true end local char = Utils.getChar() if not char then return false end local humanoid = Utils.getHumanoid(char) if not humanoid or not char:FindFirstChild("HumanoidRootPart") then return false end Movement.CFrameFly._active = true Movement.CFrameFly._prevWalk = humanoid.WalkSpeed -- BUG-022: record WalkSpeed previo humanoid.WalkSpeed = 0 humanoid:ChangeState(Enum.HumanoidStateType.Physics) ensureTouchControls() Movement.CFrameFly._tickFn = function(dt) if not Movement.CFrameFly._active then return end local currentChar = Utils.getChar() if not currentChar then return end local currentRoot = currentChar:FindFirstChild("HumanoidRootPart") local currentHumanoid = Utils.getHumanoid(currentChar) if not currentRoot or not currentHumanoid then return end local moveDirection = getMoveInput() if moveDirection.Magnitude > 0 then currentRoot.CFrame = currentRoot.CFrame + moveDirection.Unit * Movement.CFrameFly.flySpeed * (dt or 1/60) end if currentHumanoid.WalkSpeed ~= 0 then currentHumanoid.WalkSpeed = 0 end end SharedTicker.subscribe("CFrameFly", Movement.CFrameFly._tickFn) Movement.CFrameFly.enabled = true return true end function Movement.CFrameFly.onDisable() if Movement.CFrameFly._tickFn then SharedTicker.unsubscribe("CFrameFly") Movement.CFrameFly._tickFn = nil end Movement.CFrameFly._active = false local char = Utils.getChar() if char then local humanoid = Utils.getHumanoid(char) if humanoid then humanoid.WalkSpeed = Movement.CFrameFly._prevWalk or 16 -- BUG-022: restaurar valor real del usuario Movement.CFrameFly._prevWalk = nil humanoid.Sit = false humanoid:ChangeState(Enum.HumanoidStateType.Running) end end if Movement.CFrameFly._charConn then Movement.CFrameFly._charConn:Disconnect(); Movement.CFrameFly._charConn = nil end cleanup(Movement.CFrameFly) Movement.CFrameFly.enabled = false releaseTouchControls() return true end function Movement.CFrameFly.build(tab) Movement.CFrameFly._slider = tab:CreateSlider({ name = "Fly Speed", flag = "cframefly_value", range = { 0, 500 }, increment = 1, value = Movement.CFrameFly.flySpeed, callback = function(v) Movement.CFrameFly.flySpeed = v; State.Set("cframefly_value", v) end, }) tab:CreateButton({ name = "Reset", callback = function() Movement.CFrameFly.flySpeed = 100; State.Set("cframefly_value", 100) if Movement.CFrameFly._slider then Movement.CFrameFly._slider:Set(100, true) end end, }) tab:CreateDivider() Movement.CFrameFly._toggle = tab:CreateToggle({ name = "Enabled", flag = "cframefly_enabled", value = Movement.CFrameFly.enabled, callback = function(on) State.Set("movement_cframefly_enabled", on) if on then Movement.CFrameFly.onEnable() else Movement.CFrameFly.onDisable() end end, }) end Movement.InfiniteJump = { name = "Infinite Jump", stateKey = "movement_infinitejump_enabled", enabled = false, _jumpConn = nil, _conns = nil, _toggle = nil } function Movement.InfiniteJump.onEnable() if Movement.InfiniteJump._jumpConn then return true end guard(Movement.InfiniteJump) Movement.InfiniteJump._jumpConn = UserInputService.JumpRequest:Connect(function() if not Movement.InfiniteJump.enabled then return end local humanoid = Utils.getHumanoid(Utils.getChar()) if humanoid then humanoid:ChangeState(Enum.HumanoidStateType.Jumping) end end) Movement.InfiniteJump.enabled = true return true end function Movement.InfiniteJump.onDisable() if Movement.InfiniteJump._jumpConn then Movement.InfiniteJump._jumpConn:Disconnect() Movement.InfiniteJump._jumpConn = nil end cleanup(Movement.InfiniteJump) Movement.InfiniteJump.enabled = false return true end function Movement.InfiniteJump.build(tab) Movement.InfiniteJump._toggle = tab:CreateToggle({ name = "Enabled", flag = "infinitejump_enabled", value = Movement.InfiniteJump.enabled, callback = function(on) State.Set("movement_infinitejump_enabled", on) if on then Movement.InfiniteJump.onEnable() else Movement.InfiniteJump.onDisable() end end, }) end Movement.AntiAFK = { name = "Anti AFK", stateKey = "movement_antiafk_enabled", enabled = false, _afkConn = nil, _conns = nil, _toggle = nil } function Movement.AntiAFK.onEnable() if Movement.AntiAFK._afkConn then return true end guard(Movement.AntiAFK) local connApi = getconnections or get_signal_cons if type(connApi) == "function" then for _, c in ipairs(connApi(LocalPlayer.Idled) or {}) do pcall(function() c:Disable() end) pcall(function() c:Disconnect() end) end end Movement.AntiAFK.enabled = true local VIM = nil pcall(function() VIM = game:GetService("VirtualInputManager") end) local VirtualUser = nil pcall(function() VirtualUser = game:GetService("VirtualUser") end) Movement.AntiAFK._afkConn = LocalPlayer.Idled:Connect(function() if not Movement.AntiAFK.enabled then return end if VIM then pcall(function() VIM:SendMouseButtonEvent(0, 0, 0, true, game, 0) VIM:SendMouseButtonEvent(0, 0, 0, false, game, 0) end) elseif VirtualUser then pcall(function() VirtualUser:CaptureController() VirtualUser:ClickButton2(Vector2.new()) end) end end) return true end function Movement.AntiAFK.onDisable() if Movement.AntiAFK._afkConn then Movement.AntiAFK._afkConn:Disconnect() Movement.AntiAFK._afkConn = nil end cleanup(Movement.AntiAFK) Movement.AntiAFK.enabled = false return true end function Movement.AntiAFK.build(tab) Movement.AntiAFK._toggle = tab:CreateToggle({ name = "Enabled", flag = "antiafk_enabled", value = Movement.AntiAFK.enabled, callback = function(on) State.Set("movement_antiafk_enabled", on) if on then Movement.AntiAFK.onEnable() else Movement.AntiAFK.onDisable() end end, }) end Movement.Spin = { name = "Spin", stateKey = "movement_spin_enabled", enabled = false, spinSpeed = State.Get("spin_value", 35), _active = false, _angularVelocity = nil, _attachment = nil, _conns = nil, _slider = nil, _toggle = nil, _charConn = nil, _autoRotate = nil } function Movement.Spin.setupSpin() if Movement.Spin._active then return true end local char = Utils.getChar() if not char then return false end local humanoid = Utils.getHumanoid(char) local rootPart = char:FindFirstChild("HumanoidRootPart") if not humanoid or not rootPart then return false end Movement.Spin._autoRotate = humanoid.AutoRotate humanoid.AutoRotate = false -- deja de pelear con el giro -- BodyAngularVelocity: su MaxTorque SÍ es Vector3 -> se puede limitar a Y Movement.Spin._angularVelocity = Instance.new("BodyAngularVelocity") Movement.Spin._angularVelocity.AngularVelocity = Vector3.new(0, Movement.Spin.spinSpeed, 0) Movement.Spin._angularVelocity.MaxTorque = Vector3.new(0, math.huge, 0) -- SOLO eje Y Movement.Spin._angularVelocity.P = 1250 Movement.Spin._angularVelocity.Parent = rootPart Movement.Spin._active = true return true end function Movement.Spin.cleanupSpin() Movement.Spin._active = false local char = Utils.getChar() local hum = char and Utils.getHumanoid(char) if hum and Movement.Spin._autoRotate ~= nil then hum.AutoRotate = Movement.Spin._autoRotate end Movement.Spin._autoRotate = nil if Movement.Spin._angularVelocity then Movement.Spin._angularVelocity:Destroy(); Movement.Spin._angularVelocity = nil end if Movement.Spin._attachment then Movement.Spin._attachment:Destroy(); Movement.Spin._attachment = nil end end function Movement.Spin.onEnable() guard(Movement.Spin) if not Movement.Spin._charConn then Movement.Spin._charConn = track(Movement.Spin, LocalPlayer.CharacterAdded, function() task.wait(0.5) if State.Get("movement_spin_enabled") then Movement.Spin.cleanupSpin(); Movement.Spin.setupSpin() end end) end if Movement.Spin._active then return true end if not Movement.Spin.setupSpin() then return false end Movement.Spin.enabled = true return true end function Movement.Spin.onDisable() Movement.Spin.cleanupSpin() cleanup(Movement.Spin) Movement.Spin._charConn = nil Movement.Spin.enabled = false return true end function Movement.Spin.build(tab) Movement.Spin._slider = tab:CreateSlider({ name = "Spin Speed", flag = "spin_value", range = { 0, 1000 }, increment = 1, value = Movement.Spin.spinSpeed, callback = function(v) Movement.Spin.spinSpeed = v State.Set("spin_value", v) if Movement.Spin._active and Movement.Spin._angularVelocity then Movement.Spin._angularVelocity.AngularVelocity = Vector3.new(0, v, 0) end end, }) tab:CreateButton({ name = "Reset", callback = function() Movement.Spin.spinSpeed = 35; State.Set("spin_value", 35) if Movement.Spin._slider then Movement.Spin._slider:Set(35, true) end if Movement.Spin._active and Movement.Spin._angularVelocity then Movement.Spin._angularVelocity.AngularVelocity = Vector3.new(0, 35, 0) end end, }) tab:CreateDivider() Movement.Spin._toggle = tab:CreateToggle({ name = "Enabled", flag = "spin_enabled", value = Movement.Spin.enabled, callback = function(on) State.Set("movement_spin_enabled", on) if on then Movement.Spin.onEnable() else Movement.Spin.onDisable() end end, }) end Movement.FlyCar = { name = "Fly Car", stateKey = "movement_flycar_enabled", enabled = false, flySpeed = State.Get("flycar_value", 100), _active = false, _vehicle = nil, _primaryPart = nil, _alignOrientation = nil, _attachment = nil, _renderConn = nil, _conns = nil, _slider = nil, _toggle = nil, _charConn = nil } function Movement.FlyCar.getVehicle() local char = Utils.getChar() if not char then return nil end local humanoid = Utils.getHumanoid(char) if not humanoid or not humanoid.SeatPart then return nil end return humanoid.SeatPart:FindFirstAncestorWhichIsA("Model") end function Movement.FlyCar.setupFlyCar() if Movement.FlyCar._active then return true end local vehicle = Movement.FlyCar.getVehicle() if not vehicle then return false end local primaryPart = vehicle.PrimaryPart or vehicle:FindFirstChildWhichIsA("BasePart") if not primaryPart then return false end Movement.FlyCar._vehicle = vehicle Movement.FlyCar._primaryPart = primaryPart Movement.FlyCar._attachment = Instance.new("Attachment") Movement.FlyCar._attachment.Name = "FlyCarAttachment" Movement.FlyCar._attachment.Parent = primaryPart Movement.FlyCar._alignOrientation = Instance.new("AlignOrientation") Movement.FlyCar._alignOrientation.Name = "FlyCarAlign" Movement.FlyCar._alignOrientation.Mode = Enum.OrientationAlignmentMode.OneAttachment Movement.FlyCar._alignOrientation.Attachment0 = Movement.FlyCar._attachment Movement.FlyCar._alignOrientation.MaxTorque = math.huge Movement.FlyCar._alignOrientation.Responsiveness = 50 Movement.FlyCar._alignOrientation.Parent = primaryPart Movement.FlyCar._active = true ensureTouchControls() if Movement.FlyCar._renderConn then Movement.FlyCar._renderConn:Disconnect() end Movement.FlyCar._renderConn = RunService.RenderStepped:Connect(function() if not Movement.FlyCar._active or not Movement.FlyCar._primaryPart then return end local moveDirection = getMoveInput() if moveDirection.Magnitude > 0 then Movement.FlyCar._primaryPart.AssemblyLinearVelocity = moveDirection.Unit * Movement.FlyCar.flySpeed Movement.FlyCar._alignOrientation.CFrame = CFrame.new(Movement.FlyCar._primaryPart.Position, Movement.FlyCar._primaryPart.Position + moveDirection) else Movement.FlyCar._primaryPart.AssemblyLinearVelocity = Vector3.zero end end) return true end function Movement.FlyCar.cleanupFlyCar() Movement.FlyCar._active = false if Movement.FlyCar._renderConn then Movement.FlyCar._renderConn:Disconnect(); Movement.FlyCar._renderConn = nil end if Movement.FlyCar._alignOrientation then Movement.FlyCar._alignOrientation:Destroy(); Movement.FlyCar._alignOrientation = nil end if Movement.FlyCar._attachment then Movement.FlyCar._attachment:Destroy(); Movement.FlyCar._attachment = nil end if Movement.FlyCar._primaryPart and Movement.FlyCar._primaryPart.Parent then pcall(function() Movement.FlyCar._primaryPart.AssemblyLinearVelocity = Vector3.zero end) end Movement.FlyCar._vehicle = nil Movement.FlyCar._primaryPart = nil end function Movement.FlyCar.onEnable() guard(Movement.FlyCar) if not Movement.FlyCar._charConn then Movement.FlyCar._charConn = track(Movement.FlyCar, LocalPlayer.CharacterAdded, function() task.wait(0.5) if State.Get("movement_flycar_enabled") then Movement.FlyCar.cleanupFlyCar(); Movement.FlyCar.setupFlyCar() end end) end if Movement.FlyCar._active then return true end if not Movement.FlyCar.setupFlyCar() then return false end Movement.FlyCar.enabled = true return true end function Movement.FlyCar.onDisable() Movement.FlyCar.cleanupFlyCar() cleanup(Movement.FlyCar) Movement.FlyCar._charConn = nil Movement.FlyCar.enabled = false releaseTouchControls() return true end function Movement.FlyCar.build(tab) Movement.FlyCar._slider = tab:CreateSlider({ name = "Fly Speed", flag = "flycar_value", range = { 0, 500 }, increment = 1, value = Movement.FlyCar.flySpeed, callback = function(v) Movement.FlyCar.flySpeed = v; State.Set("flycar_value", v) end, }) tab:CreateButton({ name = "Reset", callback = function() Movement.FlyCar.flySpeed = 100; State.Set("flycar_value", 100) if Movement.FlyCar._slider then Movement.FlyCar._slider:Set(100, true) end end, }) tab:CreateDivider() Movement.FlyCar._toggle = tab:CreateToggle({ name = "Enabled", flag = "flycar_enabled", value = Movement.FlyCar.enabled, callback = function(on) State.Set("movement_flycar_enabled", on) if on then Movement.FlyCar.onEnable() else Movement.FlyCar.onDisable() end end, }) end Movement.WalkFling = { name = "Walk Fling", stateKey = "movement_walkfling_enabled", enabled = false, flingPower = State.Get("walkfling_value", 10000), _active = false, _conns = nil, _slider = nil, _toggle = nil, _phaseState = nil, _origCollide = nil, _charId = nil } function Movement.WalkFling.ParseFlingSpeed(value) local speed = tonumber(value) if speed == nil or speed ~= speed or speed == math.huge or speed == -math.huge or speed <= 0 then speed = 10000 end if speed < 1 then speed = 1 end if speed > 1000000000 then speed = 1000000000 end return speed end function Movement.WalkFling.Burst(root, speed, st) if not (root and root.Parent) then return st end speed = Movement.WalkFling.ParseFlingSpeed(speed) st = st or { phase = 0, movel = 0.1, saved = nil } local okV, v = pcall(function() return root.AssemblyLinearVelocity end) if not okV or typeof(v) ~= "Vector3" then local okV2, v2 = pcall(function() return root.Velocity end) v = (okV2 and typeof(v2) == "Vector3") and v2 or Vector3.zero end -- NaN/inf en velocidad (mapas con fisica rota) -> resetea a zero para no propagar if v.X ~= v.X or v.Y ~= v.Y or v.Z ~= v.Z then v = Vector3.zero end if math.abs(v.X) == math.huge or math.abs(v.Y) == math.huge or math.abs(v.Z) == math.huge then v = Vector3.zero end -- clamp pre-multiplicacion: v(<=1e5) * speed(<=1e9) puede dar inf -> inf rompe fisica local function clampV(x) if x ~= x then return 0 end if x > 1000 then return 1000 end if x < -1000 then return -1000 end return x end local vc = Vector3.new(clampV(v.X), clampV(v.Y), clampV(v.Z)) local ph = st.phase or 0 local movel = st.movel or 0.1 if movel ~= movel or movel == math.huge or movel == -math.huge then movel = 0.1 st.movel = 0.1 end if ph == 0 then st.saved = vc pcall(function() root.AssemblyLinearVelocity = vc * speed + Vector3.new(0, speed, 0) end) pcall(function() root.Velocity = vc * speed + Vector3.new(0, speed, 0) end) pcall(function() if sethiddenproperty then sethiddenproperty(root, "NetworkIsSleeping", true) end end) st.phase = 1 elseif ph == 1 then local s = st.saved or vc if root.Parent then pcall(function() root.AssemblyLinearVelocity = s end) pcall(function() root.Velocity = s end) end st.phase = 2 else local s2 = st.saved or vc if root.Parent then pcall(function() root.AssemblyLinearVelocity = s2 + Vector3.new(0, movel, 0) end) pcall(function() root.Velocity = s2 + Vector3.new(0, movel, 0) end) st.movel = movel * -1 end st.phase = 0 end return st end function Movement.WalkFling.onEnable() if Movement.WalkFling._active then return true end guard(Movement.WalkFling) -- Fuente unica: NAx.ParseFlingSpeed del Hub; fallback local si el Hub aun no cargo NAx local nx = NAxHub() if nx and nx.ParseFlingSpeed then Movement.WalkFling.flingPower = nx.ParseFlingSpeed(Movement.WalkFling.flingPower) else Movement.WalkFling.flingPower = Movement.WalkFling.ParseFlingSpeed(Movement.WalkFling.flingPower) end Movement.WalkFling._active = true Movement.WalkFling.enabled = true Movement.WalkFling._phaseState = { phase = 0, movel = 0.1, saved = nil } Movement.WalkFling._origCollide = nil Movement.WalkFling._charId = nil track(Movement.WalkFling, RunService.Heartbeat, function() if not Movement.WalkFling._active then return end local char = Utils.getChar() local root = char and char:FindFirstChild("HumanoidRootPart") local hum = char and Utils.getHumanoid(char) if not (root and hum and root.Parent) then return end if hum.Health <= 0 then return end local okId, cid = pcall(function() return char:GetDebugId() end) if not okId then cid = tostring(char:GetFullName()) end if Movement.WalkFling._charId ~= cid then Movement.WalkFling._charId = cid Movement.WalkFling._phaseState = { phase = 0, movel = 0.1, saved = nil } Movement.WalkFling._origCollide = root.CanCollide end if Movement.WalkFling._origCollide == nil then Movement.WalkFling._origCollide = root.CanCollide end pcall(function() root.CanCollide = false end) local okState, curState = pcall(function() return hum:GetState() end) if okState and Movement.WalkFling._phaseState.phase == 0 and curState ~= Enum.HumanoidStateType.Physics then pcall(function() hum:ChangeState(Enum.HumanoidStateType.Physics) end) end -- Delega al WalkBurst fiel NAx si esta disponible; si no, Burst local endurecido local nx2 = NAxHub() if nx2 and nx2.WalkBurst then Movement.WalkFling._phaseState = nx2.WalkBurst(root, Movement.WalkFling.flingPower, Movement.WalkFling._phaseState) else Movement.WalkFling._phaseState = Movement.WalkFling.Burst(root, Movement.WalkFling.flingPower, Movement.WalkFling._phaseState) end end) track(Movement.WalkFling, LocalPlayer.CharacterAdded, function() task.wait(0.5) Movement.WalkFling._charId = nil Movement.WalkFling._origCollide = nil Movement.WalkFling._phaseState = { phase = 0, movel = 0.1, saved = nil } end) return true end function Movement.WalkFling.onDisable() Movement.WalkFling._active = false local char = Utils.getChar() local root = char and char:FindFirstChild("HumanoidRootPart") local hum = char and Utils.getHumanoid(char) if root and root.Parent then pcall(function() root.AssemblyLinearVelocity = Vector3.zero end) pcall(function() root.AssemblyAngularVelocity = Vector3.zero end) pcall(function() root.Velocity = Vector3.zero end) pcall(function() root.RotVelocity = Vector3.zero end) if Movement.WalkFling._origCollide ~= nil then pcall(function() root.CanCollide = Movement.WalkFling._origCollide end) else pcall(function() root.CanCollide = false end) end end if hum and hum.Health > 0 then pcall(function() hum:ChangeState(Enum.HumanoidStateType.Running) end) end Movement.WalkFling._phaseState = nil Movement.WalkFling._origCollide = nil Movement.WalkFling._charId = nil cleanup(Movement.WalkFling) Movement.WalkFling.enabled = false return true end function Movement.WalkFling.build(tab) Movement.WalkFling._slider = tab:CreateSlider({ name = "Fling Power", flag = "walkfling_value", range = { 1, 100000 }, increment = 100, value = math.clamp(Movement.WalkFling.flingPower or 10000, 1, 100000), callback = function(v) Movement.WalkFling.flingPower = Movement.WalkFling.ParseFlingSpeed(v); State.Set("walkfling_value", Movement.WalkFling.flingPower) end, }) tab:CreateButton({ name = "Reset", callback = function() Movement.WalkFling.flingPower = 10000; State.Set("walkfling_value", 10000) if Movement.WalkFling._slider then Movement.WalkFling._slider:Set(10000, true) end end, }) tab:CreateDivider() Movement.WalkFling._toggle = tab:CreateToggle({ name = "Enabled", flag = "walkfling_enabled", value = Movement.WalkFling.enabled, callback = function(on) State.Set("movement_walkfling_enabled", on) if on then Movement.WalkFling.onEnable() else Movement.WalkFling.onDisable() end end, }) end do local Dispose = _G.Vokthos and _G.Vokthos.Dispose if Dispose and Dispose.add then Dispose.add(function() if _jumpPulseConn then _jumpPulseConn:Disconnect(); _jumpPulseConn = nil end end) end end return Movement ]==]) Vokthos.Modules.Loaded.combat = loadModule("combat", [==[ local Players = game:GetService("Players") local RunService = game:GetService("RunService") local Workspace = game:GetService("Workspace") local UserInputService = game:GetService("UserInputService") local GuiService = game:GetService("GuiService") local LocalPlayer = Players.LocalPlayer local Camera = Workspace.CurrentCamera local RunService_Heartbeat = RunService.Heartbeat local RunService_RenderStepped = RunService.RenderStepped local RunService_Stepped = RunService.Stepped local function getEnv() if getgenv then local ok, env = pcall(getgenv) if ok and env then return env end end if getfenv then local ok, env = pcall(getfenv) if ok and env then return env end end return _G end local env = getEnv() local Core = env.Core if not Core then Core = { State = {}, Modules = {}, Utils = {} } env.Core = Core end local _topConns = {} local function _track(conn) table.insert(_topConns, conn) return conn end local EXECUTOR_FUNCS = { mousemoverel = env.mousemoverel, mouse1click = env.mouse1click, mouse1press = env.mouse1press, mouse1release = env.mouse1release, newcclosure = env.newcclosure, getrawmetatable = env.getrawmetatable, setreadonly = env.setreadonly, getnamecallmethod = env.getnamecallmethod, hookfunction = env.hookfunction, getgc = env.getgc, getconnections = env.getconnections, fireproximityprompt = env.fireproximityprompt, checkcaller = env.checkcaller, } local function refreshCamera() if Workspace.CurrentCamera then Camera = Workspace.CurrentCamera end return Camera end local function getCharacter(player) return player and player.Character end local function getHumanoid(character) return character and character:FindFirstChildOfClass("Humanoid") end local function getRootPart(character) return character and (character:FindFirstChild("HumanoidRootPart") or character.PrimaryPart) end local function getHead(character) return character and character:FindFirstChild("Head") end local function getHealth(humanoid) return humanoid and humanoid.Health or 0 end local function getTeam(player) return player and player.Team end local function getDistance(a, b) return (a - b).Magnitude end local function isPlayerAlive(player) local char = getCharacter(player) if not char then return false end local humanoid = getHumanoid(char) if not humanoid then return false end return getHealth(humanoid) > 0 end local function isTeammate(player) if not player then return false end local lt = getTeam(LocalPlayer) local pt = getTeam(player) if not lt or not pt then return false end return lt == pt end -- NAx: usa el port Hub-scope (Vokthos.NAx). Este bloque (defs de abajo) se adjunta -- a la tabla compartida: una sola fuente de estado, sin choques con Movement. local function NAxHub() local v = (env and (env.Vokthos or env.Core)) or (_G and (_G.Vokthos or _G.Core)) or (shared and (shared.Vokthos or shared.Core)) return v and v.NAx or nil end local NAx = NAxHub() if not NAx then warn("[Vokthos] combat: Vokthos.NAx no resuelto; tabla local sin helpers del port") NAx = {} end -- fallback: FlingMgr debe existir aunque falle la resolucion, o las defs de abajo -- indexarian nil y tumbarian el chunk entero (peor que el propio aviso). NAx.FlingMgr = NAx.FlingMgr or {} NAx.LocalPlayer = LocalPlayer -- nunca pisar el _conns compartido (mataria conexiones ajenas sin desconectar) NAx._conns = NAx._conns or {} function NAx.FlingMgr.GetPlayerCharacter(plr) if not plr or typeof(plr) ~= "Instance" then return nil end if plr:IsA("Model") then if plr.Parent and plr:IsDescendantOf(Workspace) then return plr end return nil end if not plr:IsA("Player") then return nil end local char = plr.Character if char and char.Parent and char:IsDescendantOf(Workspace) then return char end return char end function NAx.FlingMgr.IsTargetActive(target) if typeof(target) ~= "Instance" then return false end if target:IsA("Player") then return target.Parent == Players end if target:IsA("Model") then return target.Parent ~= nil and target:IsDescendantOf(Workspace) end return false end -- ParseFlingSpeed: fuente unica top-level (identica), no redefinir aqui. NAx._skidBusy = false function NAx.SkidFling(TargetPlayer) if NAx._skidBusy then return end local LocalUserId = tonumber(NAx.LocalPlayer.UserId) if TargetPlayer == NAx.LocalPlayer then return end if typeof(TargetPlayer) == "Instance" and TargetPlayer:IsA("Player") and tonumber(TargetPlayer.UserId) == LocalUserId then return end NAx._skidBusy = true task.spawn(function() pcall(function() local Character = NAx.FlingMgr.GetPlayerCharacter(NAx.LocalPlayer) or NAx.LocalPlayer.Character local Humanoid = NAx.getHum(Character) local RootPart = Humanoid and Humanoid.RootPart or NAx.getRoot(Character) local TChar = NAx.FlingMgr.GetPlayerCharacter(TargetPlayer) if not (Character and Humanoid and RootPart and TChar) then return end local THumanoid = NAx.getHum(TChar) local TRootPart = THumanoid and THumanoid.RootPart or NAx.getRoot(TChar) local THead = NAx.getHead(TChar) local Acc = TChar:FindFirstChildOfClass("Accessory") local Handle = Acc and Acc:FindFirstChild("Handle") NAx._skidArgs = { Character = Character, Humanoid = Humanoid, RootPart = RootPart, TChar = TChar, THumanoid = THumanoid, TRootPart = TRootPart, THead = THead, Handle = Handle, TargetPlayer = TargetPlayer } end) NAx.SkidRun() NAx._skidBusy = false end) end function NAx.SkidRun() local A = NAx._skidArgs NAx._skidArgs = nil if not A then return end pcall(function() local Character, Humanoid, RootPart = A.Character, A.Humanoid, A.RootPart local TChar, THumanoid, TRootPart, THead, Handle = A.TChar, A.THumanoid, A.TRootPart, A.THead, A.Handle local TargetPlayer = A.TargetPlayer if not (Character.Parent and Humanoid.Parent and RootPart.Parent and TChar.Parent) then return end local function targetLost(BasePart) local cur = NAx.FlingMgr.GetPlayerCharacter(TargetPlayer) return not cur or cur ~= TChar or not BasePart:IsDescendantOf(cur) end local flingPart = Instance.new("Part") flingPart.Anchored = false flingPart.CanCollide = false flingPart.Transparency = 1 flingPart.Size = Vector3.new(1, 1, 1) flingPart.CFrame = RootPart.CFrame flingPart.Parent = Workspace local weld = Instance.new("WeldConstraint") weld.Part0 = flingPart weld.Part1 = RootPart weld.Parent = flingPart local _, rootSpeed = NAx.FlingMgr.GetPartVelocity(RootPart) if not NAx.FlingMgr.cFlingOldPos or rootSpeed < 50 then NAx.FlingMgr.cFlingOldPos = RootPart.CFrame end pcall(function() local cam = Workspace.CurrentCamera if THead then cam.CameraSubject = THead elseif Handle then cam.CameraSubject = Handle elseif THumanoid then cam.CameraSubject = THumanoid end end) if not TChar:FindFirstChildWhichIsA("BasePart") then flingPart:Destroy() return end local function FPos(BasePart, Pos, Ang) local cf = CFrame.new(BasePart.Position) * Pos * Ang flingPart.CFrame = cf Character:PivotTo(cf) NAx.FlingMgr.SetFlingVelocity(flingPart) end local function SFBase(BasePart) local TimeToWait, Time, Angle = 2, tick(), 0 repeat if not (RootPart.Parent and THumanoid and THumanoid.Parent) then break end local _, baseSpeed = NAx.FlingMgr.GetPartVelocity(BasePart) if baseSpeed < 50 then Angle = Angle + 100 FPos(BasePart, CFrame.new(0,1.5,0) + THumanoid.MoveDirection * baseSpeed/1.25, CFrame.Angles(math.rad(Angle),0,0)) task.wait() FPos(BasePart, CFrame.new(0,-1.5,0) + THumanoid.MoveDirection * baseSpeed/1.25, CFrame.Angles(math.rad(Angle),0,0)) task.wait() else local _, trs = NAx.FlingMgr.GetPartVelocity(TRootPart) FPos(BasePart, CFrame.new(0,1.5,THumanoid.WalkSpeed), CFrame.Angles(math.rad(90),0,0)) task.wait() FPos(BasePart, CFrame.new(0,-1.5,-THumanoid.WalkSpeed), CFrame.Angles(0,0,0)) task.wait() FPos(BasePart, CFrame.new(0,1.5,trs/1.25), CFrame.Angles(math.rad(90),0,0)) task.wait() FPos(BasePart, CFrame.new(0,-1.5,-trs/1.25), CFrame.Angles(0,0,0)) task.wait() end until targetLost(BasePart) or not NAx.FlingMgr.IsTargetActive(TargetPlayer) or Humanoid.Health <= 0 or tick() > Time + TimeToWait end local OrgH = Workspace.FallenPartsDestroyHeight pcall(function() Workspace.FallenPartsDestroyHeight = 0/0 end) local BV = Instance.new("BodyVelocity") BV.Parent = flingPart pcall(function() BV.Velocity = NAx.FlingMgr.MoverFlingVelocity end) BV.MaxForce = Vector3.new(1/0, 1/0, 1/0) Humanoid:SetStateEnabled(Enum.HumanoidStateType.Seated, false) if TRootPart and THead then if (TRootPart.CFrame.p - THead.CFrame.p).Magnitude > 5 then SFBase(THead) else SFBase(TRootPart) end elseif TRootPart then SFBase(TRootPart) elseif THead then SFBase(THead) elseif Handle then SFBase(Handle) end pcall(function() BV:Destroy() end) pcall(function() flingPart:Destroy() end) Humanoid:SetStateEnabled(Enum.HumanoidStateType.Seated, true) pcall(function() Workspace.CurrentCamera.CameraSubject = Humanoid end) if NAx.FlingMgr.cFlingOldPos then local back = NAx.FlingMgr.cFlingOldPos local guard = 0 repeat pcall(function() RootPart.CFrame = back * CFrame.new(0, .5, 0) Character:PivotTo(back * CFrame.new(0, .5, 0)) Humanoid:ChangeState("GettingUp") for _, x in ipairs(Character:GetChildren()) do if x:IsA("BasePart") then NAx.FlingMgr.ClearPartVelocity(x) end end end) task.wait() guard = guard + 1 until ((RootPart.Position - back.p).Magnitude < 25) or guard > 120 end pcall(function() Workspace.FallenPartsDestroyHeight = OrgH end) end) end function NAx.DoFling(query) if not query or query == "" then NAx.notify("Player name required") return end for _, t in ipairs(NAx.getPlr(query)) do if t ~= NAx.LocalPlayer and NAx.FlingMgr.IsTargetActive(t) and NAx.FlingMgr.GetPlayerCharacter(t) then pcall(NAx.SkidFling, t) return end end NAx.notify("No match: " .. tostring(query)) end -- part-011 fiel: WalkFlingBurst SIN :Wait() (maquina de fases, no bloquea Heartbeat) NAx._wf = { on = false, speed = 10000, st = nil } function NAx.WalkBurst(root, speed, st) if not (root and root.Parent) then return st end speed = NAx.ParseFlingSpeed(speed) st = st or { phase = 0, movel = 0.1, saved = nil } local ok, v = pcall(function() return root.Velocity end) if not ok or typeof(v) ~= "Vector3" then v = select(1, NAx.FlingMgr.GetPartVelocity(root)) end if typeof(v) ~= "Vector3" then v = Vector3.zero end local ph = st.phase or 0 if ph == 0 then st.saved = v pcall(function() root.Velocity = v * speed + Vector3.new(0, speed, 0) end) st.phase = 1 elseif ph == 1 then local s = st.saved or v if root.Parent then pcall(function() root.Velocity = s end) end st.phase = 2 else local s2 = st.saved or v local mv = st.movel or 0.1 if root.Parent then pcall(function() root.Velocity = s2 + Vector3.new(0, mv, 0) end) st.movel = mv * -1 end st.phase = 0 end return st end function NAx.WalkOn(speed) NAx._wf.speed = NAx.ParseFlingSpeed(speed) if NAx._wf.on then NAx.notify("Walkfling speed: " .. tostring(NAx._wf.speed)) return end NAx._wf.on = true NAx._wf.st = { phase = 0, movel = 0.1, saved = nil } NAx.connect("nax_walk", RunService.Heartbeat:Connect(function() if not NAx._wf.on then return end local r = NAx.getRoot(NAx.getChar()) if r then NAx._wf.st = NAx.WalkBurst(r, NAx._wf.speed, NAx._wf.st) end end)) NAx.notify("Walkfling enabled") end function NAx.WalkOff() NAx._wf.on = false NAx.disconnect("nax_walk") NAx.notify("Walkfling disabled") end -- part-009 fiel: clickfling por mouse.Target (sin GUI propia) NAx._clickOn = false function NAx.ClickOn() NAx._clickOn = true local ok, mouse = pcall(function() return NAx.LocalPlayer:GetMouse() end) if not ok or not mouse then NAx.notify("Mouse no disponible") return end NAx.disconnect("nax_click") NAx.connect("nax_click", mouse.Button1Down:Connect(function() if not NAx._clickOn then return end local target = mouse.Target if not target then return end local model = target:FindFirstAncestorOfClass("Model") local plr = model and Players:GetPlayerFromCharacter(model) if plr and plr ~= NAx.LocalPlayer then NAx.DoFling(plr.Name) elseif model and NAx.isNPC(model) then NAx.DoFling("npc:" .. model.Name) end end)) NAx.notify("ClickFling enabled") end function NAx.ClickOff() NAx._clickOn = false NAx.disconnect("nax_click") NAx.notify("ClickFling disabled") end -- part-012 fiel: antifling PreSimulation con cuota 256 + signal por parte NAx._af = { tracked = {}, orig = {}, sig = {} } function NAx.AF_apply(p) if not (p and p.Parent and p:IsA("BasePart")) then return end if NAx._af.tracked[p] then return end NAx._af.tracked[p] = true if NAx._af.orig[p] == nil then local ok, v = pcall(function() return p.CanCollide end) NAx._af.orig[p] = (ok and v) or false end if not NAx._af.sig[p] then local ok, s = pcall(function() return p:GetPropertyChangedSignal("CanCollide") end) if ok and s then NAx._af.sig[p] = s:Connect(function() if NAx._af.tracked[p] and p.Parent and p.CanCollide ~= false then pcall(function() p.CanCollide = false end) end end) end end pcall(function() p.CanCollide = false end) end function NAx.AF_seed(char) if not char then return end local ok, desc = pcall(function() return char:GetDescendants() end) if ok and desc then for _, d in ipairs(desc) do if d:IsA("BasePart") then NAx.AF_apply(d) end end end end function NAx.AF_on() for _, pl in ipairs(Players:GetPlayers()) do if pl ~= NAx.LocalPlayer then if pl.Character then NAx.AF_seed(pl.Character) end NAx.disconnect("nax_af_" .. pl.UserId) end end NAx.disconnect("nax_af_loop") NAx.connect("nax_af_loop", (RunService.PreSimulation or RunService.Stepped):Connect(function() local quota = 256 for p in pairs(NAx._af.tracked) do if quota <= 0 then break end if typeof(p) == "Instance" and p:IsA("BasePart") and p.Parent then if p.CanCollide ~= false then pcall(function() p.CanCollide = false end) end else NAx._af.tracked[p] = nil end quota = quota - 1 end end)) NAx.notify("Antifling enabled") end function NAx.AF_off() NAx.disconnect("nax_af_loop") for p in pairs(NAx._af.tracked) do if typeof(p) == "Instance" and p:IsA("BasePart") and p.Parent then local v = NAx._af.orig[p] if v == nil then v = true end pcall(function() p.CanCollide = v end) end end for _, c in pairs(NAx._af.sig) do pcall(function() c:Disconnect() end) end NAx._af = { tracked = {}, orig = {}, sig = {} } NAx.notify("Antifling disabled") end -- part-014 loop: reusa SkidFling con guard anti-solape NAx._loop = { on = false, id = 0 } function NAx.LoopOn(query) NAx._loop.id = NAx._loop.id + 1 local id = NAx._loop.id NAx._loop.on = true NAx._loop.query = query task.spawn(function() while NAx._loop.on and NAx._loop.id == id do for _, t in ipairs(NAx.getPlr(query)) do if not NAx._loop.on or NAx._loop.id ~= id then break end if t ~= NAx.LocalPlayer and NAx.FlingMgr.IsTargetActive(t) then pcall(NAx.SkidFling, t) break end end task.wait(0.5) end end) NAx.notify("Loopfling: " .. tostring(query)) end function NAx.LoopOff() NAx._loop.on = false NAx._loop.id = NAx._loop.id + 1 NAx.notify("Loopfling off") end function NAx.onDisable() -- solo apaga lo que este realmente activo (sin notificaciones falsas al descargar) if NAx._loop and NAx._loop.on then pcall(NAx.LoopOff) end if NAx._wf and NAx._wf.on then pcall(NAx.WalkOff) end if NAx._clickOn then pcall(NAx.ClickOff) end if NAx._af and (next(NAx._af.tracked) ~= nil or next(NAx._af.sig) ~= nil) then pcall(NAx.AF_off) end end -- part-029: delegado al motor Spoof completo (NAx.Spoof, Hub-scope). -- Una sola fuente de estado: el scheduler "esencial" paralelo se elimino. function NAx.SpoofWalkOn(real, mask) local S = NAx.Spoof if not S then NAx.notify("Motor Spoof no disponible") return end if not S.walk(real, mask) then return end NAx.notify("spoofwalk " .. tostring(real) .. "/" .. tostring(mask)) end function NAx.SpoofWalkOff() local S = NAx.Spoof if not S then return end S.unwalk() end local rawRaycast = Workspace.Raycast local losParams = RaycastParams.new() losParams.FilterType = Enum.RaycastFilterType.Exclude local losCache = setmetatable({}, { __mode = "k" }) local losFrame = 0 local losFilter = {} local function applyLosFilter() local cam = refreshCamera() local ch = getCharacter(LocalPlayer) if ch then losFilter[1] = ch losFilter[2] = cam else losFilter[1] = cam losFilter[2] = nil end losParams.FilterDescendantsInstances = losFilter return cam end local function hasLOS(char, part) local e = losCache[part] if e and e.frame > losFrame - 3 then return e.ok end local cam = applyLosFilter() if not cam then return false end local origin = cam.CFrame.Position local res = rawRaycast(Workspace, origin, part.Position - origin, losParams) local ok = res == nil or res.Instance:IsDescendantOf(char) losCache[part] = { ok = ok, frame = losFrame } return ok end local function isVisible(part) if not part then return false end local cam = applyLosFilter() if not cam then return false end local origin = cam.CFrame.Position local res = rawRaycast(Workspace, origin, part.Position - origin, losParams) return res == nil or res.Instance == part end local function getClosestTargetGeneric(state, includeVisibility) losFrame = losFrame + 1 local cam = refreshCamera() if not cam then return nil end local closestPlayer = nil local closestDistance = state.maxDistance or 1000 local localChar = getCharacter(LocalPlayer) local localRoot = getRootPart(localChar) if not localRoot then return nil end for _, player in ipairs(Players:GetPlayers()) do if player == LocalPlayer then continue end if state.ignoreTeam and isTeammate(player) then continue end if state.ignoreDead and not isPlayerAlive(player) then continue end local char = getCharacter(player) if not char then continue end local targetPart = state.targetPart == "Head" and getHead(char) or getRootPart(char) if not targetPart then continue end local distance = getDistance(localRoot.Position, targetPart.Position) if distance > closestDistance then continue end if includeVisibility and state.visibilityCheck then if not hasLOS(char, targetPart) then continue end end closestPlayer = player closestDistance = distance end return closestPlayer end local frameId = 0 local targetCache = setmetatable({}, { __mode = "k" }) local function getTargetCached(state, includeVisibility) local e = targetCache[state] if e and e.frame == frameId then return e.target end local target = getClosestTargetGeneric(state, includeVisibility) targetCache[state] = { frame = frameId, target = target } return target end _track(Players.PlayerRemoving:Connect(function() table.clear(losCache) end)) local aimPos, aimSmooth = nil, nil local camTouches = {} local lastMouseMove = 0 local function isDragging() return next(camTouches) ~= nil or (os.clock() - lastMouseMove) < 0.12 end if UserInputService.TouchEnabled then _track(UserInputService.TouchStarted:Connect(function(input, gp) if input.UserInputType ~= Enum.UserInputType.Touch or gp then return end local cam = refreshCamera() if cam and input.Position.X > cam.ViewportSize.X * 0.5 then camTouches[input] = true end end)) _track(UserInputService.TouchEnded:Connect(function(input) camTouches[input] = nil end)) _track(LocalPlayer.CharacterAdded:Connect(function() table.clear(camTouches) end)) end _track(UserInputService.InputChanged:Connect(function(input, gp) if input.UserInputType == Enum.UserInputType.MouseMovement and not gp then lastMouseMove = os.clock() end end)) local Aimbot = { name = "Aimbot", stateKey = "combat_aimbot_enabled", enabled = false, smoothness = 0.5, maxDistance = 1000, targetPart = "Head", ignoreTeam = true, ignoreDead = true, visibilityCheck = false, useMouse = true } local function camTick() local cam = refreshCamera() if not cam or not aimPos or isDragging() then return end local target = CFrame.new(cam.CFrame.Position, aimPos) if aimSmooth and aimSmooth > 0 then cam.CFrame = cam.CFrame:Lerp(target, aimSmooth) else cam.CFrame = target end end local function aimTick() frameId = frameId + 1 aimPos, aimSmooth = nil, nil if not Aimbot.enabled then return end local target = getTargetCached(Aimbot, true) if not target then return end local char = getCharacter(target) if not char then return end local targetPart = Aimbot.targetPart == "Head" and getHead(char) or getRootPart(char) if not targetPart then return end local targetPos = targetPart.Position local cam = refreshCamera() if not cam then return end local screenPos, onScreen = cam:WorldToViewportPoint(targetPos) if not onScreen then return end if Aimbot.useMouse and EXECUTOR_FUNCS.mousemoverel then local currentPos = UserInputService:GetMouseLocation() - GuiService:GetGuiInset() local delta = (Vector2.new(screenPos.X, screenPos.Y) - currentPos) * Aimbot.smoothness pcall(EXECUTOR_FUNCS.mousemoverel, delta.X, delta.Y) else aimPos, aimSmooth = targetPos, Aimbot.smoothness end end local _renderBound = pcall(function() pcall(RunService.UnbindFromRenderStep, RunService, "CombatTarget") pcall(RunService.UnbindFromRenderStep, RunService, "CombatAim") RunService:BindToRenderStep("CombatTarget", Enum.RenderPriority.Camera.Value - 1, aimTick) RunService:BindToRenderStep("CombatAim", Enum.RenderPriority.Camera.Value + 1, camTick) end) if not _renderBound then _track(RunService.RenderStepped:Connect(function() aimTick() camTick() end)) end function Aimbot.initState() Core.State.aimbot = Core.State.aimbot or Core.State.Get("aimbot") or {} Core.State.Set("aimbot", Core.State.aimbot) Core.State.aimbot.enabled = Core.State.aimbot.enabled or false Core.State.aimbot.smoothness = Core.State.aimbot.smoothness or 0.5 Core.State.aimbot.maxDistance = Core.State.aimbot.maxDistance or 1000 Core.State.aimbot.targetPart = Core.State.aimbot.targetPart or "Head" Core.State.aimbot.ignoreTeam = Core.State.aimbot.ignoreTeam ~= false Core.State.aimbot.ignoreDead = Core.State.aimbot.ignoreDead ~= false Core.State.aimbot.visibilityCheck = Core.State.aimbot.visibilityCheck or false if Core.State.aimbot.useMouse == nil then Core.State.aimbot.useMouse = not UserInputService.TouchEnabled end end function Aimbot.syncState() Aimbot.enabled = Core.State.aimbot.enabled Aimbot.smoothness = Core.State.aimbot.smoothness Aimbot.maxDistance = Core.State.aimbot.maxDistance Aimbot.targetPart = Core.State.aimbot.targetPart Aimbot.ignoreTeam = Core.State.aimbot.ignoreTeam Aimbot.ignoreDead = Core.State.aimbot.ignoreDead Aimbot.visibilityCheck = Core.State.aimbot.visibilityCheck Aimbot.useMouse = Core.State.aimbot.useMouse end function Aimbot.onEnable() Aimbot.enabled = true return true end function Aimbot.onDisable() Aimbot.enabled = false aimPos, aimSmooth = nil, nil return true end function Aimbot.build(tab) tab:CreateToggle({ name = "Enable Aimbot", flag = "aimbot_enabled", value = Core.State.aimbot.enabled, callback = function(on) Core.State.Set("combat_aimbot_enabled", on) Core.State.aimbot.enabled = on Aimbot.syncState() if Aimbot.enabled then Aimbot.onEnable() else Aimbot.onDisable() end end, }) tab:CreateSlider({ name = "Smoothness", flag = "aimbot_smoothness", range = { 0, 1 }, increment = 0.01, value = Core.State.aimbot.smoothness, callback = function(v) Core.State.aimbot.smoothness = v; Aimbot.syncState() end, }) tab:CreateSlider({ name = "Max Distance", flag = "aimbot_maxdistance", range = { 100, 5000 }, increment = 10, value = Core.State.aimbot.maxDistance, callback = function(v) Core.State.aimbot.maxDistance = v; Aimbot.syncState() end, }) tab:CreateDropdown({ name = "Target Part", flag = "aimbot_targetpart", options = { "Head", "Torso" }, value = Core.State.aimbot.targetPart, callback = function(opt) Core.State.aimbot.targetPart = opt; Aimbot.syncState() end, }) tab:CreateToggle({ name = "Ignore Teammates", flag = "aimbot_ignoreteam", value = Core.State.aimbot.ignoreTeam, callback = function(v) Core.State.aimbot.ignoreTeam = v; Aimbot.syncState() end, }) tab:CreateToggle({ name = "Ignore Dead Players", flag = "aimbot_ignoredead", value = Core.State.aimbot.ignoreDead, callback = function(v) Core.State.aimbot.ignoreDead = v; Aimbot.syncState() end, }) tab:CreateToggle({ name = "Visibility Check", flag = "aimbot_visibility", value = Core.State.aimbot.visibilityCheck, callback = function(v) Core.State.aimbot.visibilityCheck = v; Aimbot.syncState() end, }) tab:CreateToggle({ name = "Use Mouse Movement", flag = "aimbot_usemouse", value = Core.State.aimbot.useMouse, callback = function(v) Core.State.aimbot.useMouse = v; Aimbot.syncState() end, }) end local SilentAim = { name = "Silent Aim", stateKey = "combat_silentaim_enabled", enabled = false, _hookActive = false, _insideHook = false, _original_namecall = nil, maxDistance = 1000, targetPart = "Head", ignoreTeam = true, ignoreDead = true, visibilityCheck = false, hitChance = 100 } function SilentAim.initState() Core.State.silentAim = Core.State.silentAim or Core.State.Get("silentAim") or {} Core.State.Set("silentAim", Core.State.silentAim) Core.State.silentAim.enabled = Core.State.silentAim.enabled or false Core.State.silentAim.maxDistance = Core.State.silentAim.maxDistance or 1000 Core.State.silentAim.targetPart = Core.State.silentAim.targetPart or "Head" Core.State.silentAim.ignoreTeam = Core.State.silentAim.ignoreTeam ~= false Core.State.silentAim.ignoreDead = Core.State.silentAim.ignoreDead ~= false Core.State.silentAim.visibilityCheck = Core.State.silentAim.visibilityCheck or false if Core.State.silentAim.hitChance == nil then Core.State.silentAim.hitChance = 100 end end function SilentAim.syncState() SilentAim.enabled = Core.State.silentAim.enabled SilentAim.maxDistance = Core.State.silentAim.maxDistance SilentAim.targetPart = Core.State.silentAim.targetPart SilentAim.ignoreTeam = Core.State.silentAim.ignoreTeam SilentAim.ignoreDead = Core.State.silentAim.ignoreDead SilentAim.visibilityCheck = Core.State.silentAim.visibilityCheck SilentAim.hitChance = Core.State.silentAim.hitChance end local function silentHandler(self, method, args) if not SilentAim.enabled or self ~= Workspace then return end local dirIdx if method == "Raycast" then dirIdx = 2 elseif method == "Spherecast" then dirIdx = 3 end if dirIdx then local origin, dir = args[1], args[dirIdx] if typeof(origin) ~= "Vector3" or typeof(dir) ~= "Vector3" then return end if SilentAim.hitChance < 100 and math.random(1, 100) > SilentAim.hitChance then return end local target = getTargetCached(SilentAim, true) if not target then return end local char = getCharacter(target) if not char then return end local part = SilentAim.targetPart == "Head" and getHead(char) or getRootPart(char) if not part then return end local delta = part.Position - origin if delta.Magnitude < 1e-4 then return end local dirMag = dir.Magnitude if dirMag == 0 then dirMag = 1000 end local na = table.clone(args) na[dirIdx] = delta.Unit * dirMag return { args = na } end if method == "FindPartOnRay" or method == "FindPartOnRayWithIgnoreList" or method == "FindPartOnRayWithWhitelist" then local ray = args[1] if typeof(ray) ~= "Ray" then return end if SilentAim.hitChance < 100 and math.random(1, 100) > SilentAim.hitChance then return end local target = getTargetCached(SilentAim, true) if not target then return end local char = getCharacter(target) if not char then return end local part = SilentAim.targetPart == "Head" and getHead(char) or getRootPart(char) if not part then return end local na = table.clone(args) na[1] = Ray.new(ray.Origin, part.Position - ray.Origin) return { args = na } end end function SilentAim._fallbackHook() local F = EXECUTOR_FUNCS if not (F.getrawmetatable and F.setreadonly and F.newcclosure and F.getnamecallmethod) then return false end local ok = pcall(function() local mt = F.getrawmetatable(game) F.setreadonly(mt, false) local base = mt.__namecall SilentAim._original_namecall = base mt.__namecall = F.newcclosure(function(self, ...) if not (F.checkcaller and F.checkcaller()) then local n = select("#", ...) local args = { ... } local res = silentHandler(self, F.getnamecallmethod(), args) if res and res.args then return base(self, table.unpack(res.args, 1, math.max(n, #res.args))) end end local args = { ... } return base(self, table.unpack(args, 1, select("#", ...))) end) F.setreadonly(mt, true) end) SilentAim._hookActive = ok return ok end function SilentAim.setupHook() if SilentAim._hookActive then return true end local hub = (getgenv and getgenv() or _G).VokthosHub if hub and hub.hasNC then hub.registerNamecall("silentaim.ray", silentHandler, 50) if hub._installed then SilentAim._hookViaHub = true SilentAim._hookActive = true return true end hub.unregisterNamecall("silentaim.ray") -- BUG-001b: no dejar handler huérfano antes de caer al fallback end return SilentAim._fallbackHook() end function SilentAim.removeHook() if not SilentAim._hookActive then return end if SilentAim._hookViaHub then local hub = (getgenv and getgenv() or _G).VokthosHub if hub then hub.unregisterNamecall("silentaim.ray") end SilentAim._hookViaHub = false else local F = EXECUTOR_FUNCS if SilentAim._original_namecall and F.getrawmetatable and F.setreadonly then pcall(function() local mt = F.getrawmetatable(game) F.setreadonly(mt, false) if mt.__namecall ~= SilentAim._original_namecall then mt.__namecall = SilentAim._original_namecall end F.setreadonly(mt, true) end) SilentAim._original_namecall = nil end end SilentAim._hookActive = false end function SilentAim.onEnable() if not SilentAim._hookActive then SilentAim.setupHook() end end function SilentAim.onDisable() SilentAim.removeHook() end function SilentAim.build(tab) tab:CreateToggle({ name = "Enable Silent Aim", flag = "silentaim_enabled", value = Core.State.silentAim.enabled, callback = function(on) Core.State.Set("combat_silentaim_enabled", on) Core.State.silentAim.enabled = on SilentAim.syncState() if SilentAim.enabled then SilentAim.onEnable() else SilentAim.onDisable() end end, }) tab:CreateSlider({ name = "Max Distance", flag = "silentaim_maxdistance", range = { 100, 5000 }, increment = 10, value = Core.State.silentAim.maxDistance, callback = function(v) Core.State.silentAim.maxDistance = v; SilentAim.syncState() end, }) tab:CreateSlider({ name = "Hit Chance %", flag = "silentaim_hitchance", range = { 0, 100 }, increment = 1, value = Core.State.silentAim.hitChance, callback = function(v) Core.State.silentAim.hitChance = v; SilentAim.syncState() end, }) tab:CreateToggle({ name = "Ignore Teammates", flag = "silentaim_ignoreteam", value = Core.State.silentAim.ignoreTeam, callback = function(v) Core.State.silentAim.ignoreTeam = v; SilentAim.syncState() end, }) tab:CreateToggle({ name = "Ignore Dead Players", flag = "silentaim_ignoredead", value = Core.State.silentAim.ignoreDead, callback = function(v) Core.State.silentAim.ignoreDead = v; SilentAim.syncState() end, }) tab:CreateToggle({ name = "Visibility Check", flag = "silentaim_visibility", value = Core.State.silentAim.visibilityCheck, callback = function(v) Core.State.silentAim.visibilityCheck = v; SilentAim.syncState() end, }) end local Hitbox = { name = "Hitbox", stateKey = "combat_hitbox_enabled", enabled = false, _conn = nil, originalSizes = {}, expansionSize = 2.5, maxDistance = 500, targetPart = "HumanoidRootPart", ignoreTeam = true } function Hitbox.initState() Core.State.hitbox = Core.State.hitbox or Core.State.Get("hitbox") or {} Core.State.Set("hitbox", Core.State.hitbox) Core.State.hitbox.enabled = Core.State.hitbox.enabled or false Core.State.hitbox.expansionSize = Core.State.hitbox.expansionSize or 10 Core.State.hitbox.maxDistance = Core.State.hitbox.maxDistance or 500 Core.State.hitbox.targetPart = Core.State.hitbox.targetPart or "HumanoidRootPart" Core.State.hitbox.ignoreTeam = Core.State.hitbox.ignoreTeam ~= false end function Hitbox.syncState() Hitbox.enabled = Core.State.hitbox.enabled Hitbox.expansionSize = Core.State.hitbox.expansionSize Hitbox.maxDistance = Core.State.hitbox.maxDistance Hitbox.targetPart = Core.State.hitbox.targetPart Hitbox.ignoreTeam = Core.State.hitbox.ignoreTeam end function Hitbox.restorePart(data) local part = data.part if part and part.Parent then part.Size = data.size part.CanCollide = data.canCollide part.Transparency = data.transparency end end function Hitbox.expandHitbox(character) if not character then return end local targetPart = Hitbox.targetPart == "Head" and getHead(character) or getRootPart(character) if not targetPart then return end local player = Players:GetPlayerFromCharacter(character) if not player then return end local data = Hitbox.originalSizes[player.UserId] if data then if data.part == targetPart then local want = data.size * Hitbox.expansionSize if targetPart.Size ~= want then targetPart.Size = want end if targetPart.Transparency ~= 0.7 then targetPart.Transparency = 0.7 end return end Hitbox.restorePart(data) Hitbox.originalSizes[player.UserId] = nil end Hitbox.originalSizes[player.UserId] = { part = targetPart, size = targetPart.Size, canCollide = targetPart.CanCollide, transparency = targetPart.Transparency } targetPart.Size = targetPart.Size * Hitbox.expansionSize targetPart.Transparency = 0.7 -- CanCollide: no lo toques (HRP ya es false por defecto) end function Hitbox.restoreHitbox(character) if not character then return end local player = Players:GetPlayerFromCharacter(character) if not player then return end local data = Hitbox.originalSizes[player.UserId] if not data then return end Hitbox.restorePart(data) Hitbox.originalSizes[player.UserId] = nil end function Hitbox.onEnable() if Hitbox._conn then return end Hitbox._conn = RunService.Heartbeat:Connect(function() if not Hitbox.enabled then return end local now = os.clock() if now - (Hitbox._lastScan or 0) < 0.05 then return end Hitbox._lastScan = now local localRoot = getRootPart(getCharacter(LocalPlayer)) if not localRoot then return end for _, player in ipairs(Players:GetPlayers()) do if player == LocalPlayer then continue end if Hitbox.ignoreTeam and isTeammate(player) then continue end local char = getCharacter(player) if not char then continue end local root = getRootPart(char) if not root then continue end if getDistance(localRoot.Position, root.Position) <= Hitbox.maxDistance then Hitbox.expandHitbox(char) else Hitbox.restoreHitbox(char) end end end) end function Hitbox.onDisable() if Hitbox._conn then Hitbox._conn:Disconnect(); Hitbox._conn = nil end for _, data in pairs(Hitbox.originalSizes) do Hitbox.restorePart(data) end Hitbox.originalSizes = {} end function Hitbox.build(tab) tab:CreateToggle({ name = "Enable Hitbox Expander", flag = "hitbox_enabled", value = Core.State.hitbox.enabled, callback = function(on) Core.State.Set("combat_hitbox_enabled", on) Core.State.hitbox.enabled = on Hitbox.syncState() if Hitbox.enabled then Hitbox.onEnable() else Hitbox.onDisable() end end, }) tab:CreateSlider({ name = "Expansion Size", flag = "hitbox_expansion", range = { 1, 50 }, increment = 0.1, value = Core.State.hitbox.expansionSize, callback = function(v) Core.State.hitbox.expansionSize = v; Hitbox.syncState() end, }) tab:CreateSlider({ name = "Max Distance", flag = "hitbox_maxdistance", range = { 100, 2000 }, increment = 10, value = Core.State.hitbox.maxDistance, callback = function(v) Core.State.hitbox.maxDistance = v; Hitbox.syncState() end, }) tab:CreateToggle({ name = "Ignore Teammates", flag = "hitbox_ignoreteam", value = Core.State.hitbox.ignoreTeam, callback = function(v) Core.State.hitbox.ignoreTeam = v; Hitbox.syncState() end, }) end _track(Players.PlayerRemoving:Connect(function(plr) local data = Hitbox.originalSizes[plr.UserId] if data then Hitbox.restorePart(data); Hitbox.originalSizes[plr.UserId] = nil end end)) local Reach = { name = "Reach", stateKey = "combat_reach_enabled", enabled = false, _conn = nil, _originalGripPos = setmetatable({}, { __mode = "k" }), reachDistance = 20, applyToAllTools = true } function Reach.initState() Core.State.reach = Core.State.reach or Core.State.Get("reach") or {} Core.State.Set("reach", Core.State.reach) Core.State.reach.enabled = Core.State.reach.enabled or false Core.State.reach.reachDistance = Core.State.reach.reachDistance or 20 Core.State.reach.applyToAllTools = Core.State.reach.applyToAllTools ~= false end function Reach.syncState() Reach.enabled = Core.State.reach.enabled Reach.reachDistance = Core.State.reach.reachDistance Reach.applyToAllTools = Core.State.reach.applyToAllTools end function Reach.modifyTool(tool) if not tool or not tool:IsA("Tool") then return end if Reach._originalGripPos[tool] then local want = Vector3.new(0, 0, -Reach.reachDistance) if tool.GripPos ~= want then tool.GripPos = want end return end Reach._originalGripPos[tool] = tool.GripPos tool.GripPos = Vector3.new(0, 0, -Reach.reachDistance) end function Reach.restoreTool(tool) if not tool then return end local originalPos = Reach._originalGripPos[tool] if not originalPos then return end tool.GripPos = originalPos Reach._originalGripPos[tool] = nil end function Reach.onEnable() if Reach._conn then return end Reach._conn = RunService.Heartbeat:Connect(function() if not Reach.enabled then return end local now = os.clock() if now - (Reach._lastScan or 0) < 0.05 then return end Reach._lastScan = now local char = getCharacter(LocalPlayer) if not char then return end if Reach.applyToAllTools then for _, obj in ipairs(char:GetChildren()) do if obj:IsA("Tool") then Reach.modifyTool(obj) end end local backpack = LocalPlayer:FindFirstChildOfClass("Backpack") if backpack then for _, obj in ipairs(backpack:GetChildren()) do if obj:IsA("Tool") then Reach.modifyTool(obj) end end end else for _, obj in ipairs(char:GetChildren()) do if obj:IsA("Tool") then Reach.modifyTool(obj); break end end end end) end function Reach.onDisable() if Reach._conn then Reach._conn:Disconnect(); Reach._conn = nil end for tool, _ in pairs(Reach._originalGripPos) do if tool then Reach.restoreTool(tool) end end Reach._originalGripPos = setmetatable({}, { __mode = "k" }) end function Reach.build(tab) tab:CreateToggle({ name = "Enable Reach", flag = "reach_enabled", value = Core.State.reach.enabled, callback = function(on) Core.State.Set("combat_reach_enabled", on) Core.State.reach.enabled = on Reach.syncState() if Reach.enabled then Reach.onEnable() else Reach.onDisable() end end, }) tab:CreateSlider({ name = "Reach Distance", flag = "reach_distance", range = { 1, 100 }, increment = 0.5, value = Core.State.reach.reachDistance, callback = function(v) Core.State.reach.reachDistance = v; Reach.syncState() end, }) tab:CreateToggle({ name = "Apply to All Tools", flag = "reach_applyall", value = Core.State.reach.applyToAllTools, callback = function(v) Core.State.reach.applyToAllTools = v; Reach.syncState() end, }) end -- Nameless True Fling (método repo ltseverydayyou/Nameless-Admin, archivo "namelesss"): -- clone 0.01³ anclado parented al target + AlignPosition rígida arrastrando al target + RotVelocity ±20k alternante por Heartbeat/RenderStepped local Fling = { name = "Fling", stateKey = "combat_fling_enabled", enabled = false, _conn = nil, power = 1000, direction = "Random", targetPlayer = nil, _naDuration = 0.5, _naRotSpeed = 20000, _naState = nil } local function gp(parent, name, classname) if typeof(parent) == "Instance" then for _, v in ipairs(parent:GetChildren()) do if v.Name == name and v:IsA(classname) then return v end end end return nil end -- setupNAFling: prep del rig por character (equivale a los flingpart0/1 + att0/1 del método NA) function Fling.setupNAFling(char) Fling.teardownNAFling() if not char then return false end local st = { conns = {} } local function trackConn(c) if c then table.insert(st.conns, c) end return c end local root0 = gp(char, "HumanoidRootPart", "BasePart") if not root0 then return false end root0.Archivable = true st.part0 = root0 st.att0 = Instance.new("Attachment") st.att0.Name = "att0_flingsrc" st.att0.Parent = root0 trackConn(root0:GetPropertyChangedSignal("Parent"):Connect(function() if not (root0 and root0.Parent) then st.part0 = nil; st.dead = true end end)) trackConn(st.att0:GetPropertyChangedSignal("Parent"):Connect(function() if not (st.att0 and st.att0.Parent) then st.att0 = nil; st.dead = true end end)) Fling._naState = st return true end function Fling.teardownNAFling() local st = Fling._naState if Fling._bursts then local copy = {} for _, b in ipairs(Fling._bursts) do copy[#copy + 1] = b end Fling._bursts = {} for _, b in ipairs(copy) do if b and b.stop then pcall(b.stop) end end end Fling._burstGen = nil Fling._naGen = (Fling._naGen or 0) + 1 if not st then return end for _, c in ipairs(st.conns) do pcall(function() c:Disconnect() end) end if st.flingpart then pcall(function() st.flingpart:Destroy() end) end if st.att0 then pcall(function() st.att0:Destroy() end) end Fling._naState = nil end -- resolver del target para naFlingOnce: usa el target del dropdown de Fling si existe, si no el closest local function naResolveTarget() if Fling.targetPlayer and Fling.targetPlayer ~= "" then local p = Fling.getTargetPlayer and Fling.getTargetPlayer() if p then return getCharacter(p) end end local t = getClosestTargetGeneric({ maxDistance = 200, ignoreTeam = true, ignoreDead = true }, false) return t and getCharacter(t) or nil end -- naFlingOnce(targetChar, duration): golpe NA contra el char EXPLICITO. -- targetChar puede ser Model (Character) o Vector3 legacy (solo fallback). -- naResolveTarget queda SOLO como fallback de compat, no como via principal. local function flingpart0_stopRot(st) if st and st.part0 and st.part0.Parent then st.part0.AssemblyAngularVelocity = Vector3.zero end end function Fling.naFlingOnce(targetChar, duration) local st = Fling._naState if not (st and st.part0 and st.part0.Parent and st.att0 and not st.dead) then return false end if typeof(targetChar) == "Vector3" then -- compat legacy: caller viejo paso .Position; resolvemos char mas cercano a ese punto local best, bestD = nil, math.huge for _, p in ipairs(Players:GetPlayers()) do if p ~= LocalPlayer then local c = getCharacter(p) local h = c and gp(c, "HumanoidRootPart", "BasePart") if h and h.Parent then local okD, d = pcall(function() return (h.Position - targetChar).Magnitude end) if okD and d < bestD then best, bestD = c, d end end end end targetChar = best or naResolveTarget() elseif typeof(targetChar) == "Instance" then -- acepta Player / Part / Model y normaliza a Character (Model con HRP) if targetChar:IsA("Player") then targetChar = getCharacter(targetChar) elseif targetChar:IsA("BasePart") then local m = targetChar:FindFirstAncestorOfClass("Model") if m and gp(m, "HumanoidRootPart", "BasePart") then targetChar = m end end if not (targetChar and gp(targetChar, "HumanoidRootPart", "BasePart")) then targetChar = naResolveTarget() end else targetChar = naResolveTarget() end local targetHRP = targetChar and gp(targetChar, "HumanoidRootPart", "BasePart") if not targetHRP then return false end if not (targetHRP.Parent and st.part0 and st.part0.Parent and st.att0 and st.att0.Parent) then return false end duration = tonumber(duration) or Fling._naDuration or 0.5 if duration ~= duration or duration <= 0 then duration = 0.5 end if duration > 5 then duration = 5 end local spd = tonumber(Fling._naRotSpeed) or 20000 if spd ~= spd or spd <= 0 then spd = 20000 end local rotVelocity = Vector3.new(spd, spd, spd) -- NA default ±20000 -- guarda para que stop() de un golpe viejo no mate al nuevo Fling._naGen = (Fling._naGen or 0) + 1 local myGen = Fling._naGen local flingpart local okClone, res = pcall(function() return st.part0:Clone() end) if not okClone or not res then return false end flingpart = res pcall(function() flingpart.Transparency = 1 flingpart.Size = Vector3.new(0.01, 0.01, 0.01) flingpart.CanCollide = false flingpart.Name = "flingpart_" .. st.part0.Name flingpart.Anchored = true flingpart.AssemblyLinearVelocity = Vector3.zero flingpart.AssemblyAngularVelocity = Vector3.zero end) local okParent = pcall(function() flingpart.Parent = targetHRP end) if not okParent or flingpart.Parent ~= targetHRP then pcall(function() flingpart:Destroy() end) return false end -- att1: attachment del target que colgamos de nuestro clone local att1 = Instance.new("Attachment") att1.Name = "att1_flingtgt" local okA1 = pcall(function() att1.Parent = flingpart end) if not okA1 then pcall(function() flingpart:Destroy() end) return false end local ap = Instance.new("AlignPosition") ap.Name = "AlignPosNAFling" ap.ApplyAtCenterOfMass = false ap.MaxForce = math.huge ap.MaxVelocity = math.huge ap.ReactionForceEnabled = false ap.Responsiveness = 200 ap.RigidityEnabled = true ap.Attachment0 = st.att0 ap.Attachment1 = att1 local okAP = pcall(function() ap.Parent = flingpart end) if not okAP then pcall(function() att1:Destroy() end) pcall(function() flingpart:Destroy() end) return false end local con1, con2 local done = false local function stop() if done then return end -- solo el golpe vigente frena la rotacion compartida if Fling._naGen ~= myGen then done = true if con1 then pcall(function() con1:Disconnect() end) end if con2 then pcall(function() con2:Disconnect() end) end pcall(function() ap:Destroy() end) pcall(function() flingpart:Destroy() end) return end done = true -- fling invisible (opt-in): libera la mascara de velocidad del golpe if Fling._spoofFling and Fling._naGen == myGen then local nxSpoof = NAxHub and NAxHub() nxSpoof = nxSpoof and nxSpoof.Spoof if nxSpoof then nxSpoof.off("velocity") end end if con1 then pcall(function() con1:Disconnect() end) end if con2 then pcall(function() con2:Disconnect() end) end pcall(function() flingpart0_stopRot(st) end) pcall(function() ap:Destroy() end) pcall(function() flingpart:Destroy() end) end local rsteppedRotVel = -rotVelocity -- contra-rotacion real (-20000); antes daba (-1,-1,-1) Fling._bursts = Fling._bursts or {} local burst = { gen = myGen } burst.stop = stop table.insert(Fling._bursts, burst) local function forgetBurst() for i, b in ipairs(Fling._bursts) do if b == burst then table.remove(Fling._bursts, i) break end end if Fling._burstGen == myGen then Fling._burstGen = nil end end local rawStop = stop stop = function(...) forgetBurst() return rawStop(...) end burst.stop = stop con1 = RunService_Heartbeat:Connect(function() local ok = pcall(function() if targetHRP.Parent and flingpart.Parent and st.part0 and st.part0.Parent and st.att0 and st.att0.Parent then st.part0.AssemblyAngularVelocity = rotVelocity flingpart.Position = targetHRP.Position -- ancla al HRP REAL del target, no a pos stale return true end return false end) if not ok then stop() end -- si el pcall interno devolvio false (rig muerto), stop if ok then local alive = (targetHRP.Parent and flingpart.Parent and st.part0 and st.part0.Parent) if not alive then stop() end end end) con2 = RunService_RenderStepped:Connect(function() local ok = pcall(function() if targetHRP.Parent and flingpart.Parent and st.part0 and st.part0.Parent and st.att0 and st.att0.Parent then st.part0.AssemblyAngularVelocity = rsteppedRotVel -- rotación contraria; neto no-cero en server return true end return false end) if not ok then stop() end if ok then local alive2 = (targetHRP.Parent and flingpart.Parent and st.part0 and st.part0.Parent) if not alive2 then stop() end end end) Fling._burstGen = myGen -- fling invisible (opt-in): enmascara velocidad local; el server ve 0,0,0 if Fling._spoofFling then local nxSpoof = NAxHub and NAxHub() nxSpoof = nxSpoof and nxSpoof.Spoof if nxSpoof then nxSpoof.velocity(Vector3.zero, Vector3.zero) end end task.delay(duration, stop) return true end function Fling.initState() Core.State.fling = Core.State.fling or Core.State.Get("fling") or {} Core.State.Set("fling", Core.State.fling) Core.State.fling.enabled = Core.State.fling.enabled or false Core.State.fling.power = Core.State.fling.power or 1000 Core.State.fling.direction = Core.State.fling.direction or "Random" Core.State.fling.targetPlayer = Core.State.fling.targetPlayer or nil end function Fling.syncState() Fling.enabled = Core.State.fling.enabled Fling.power = Core.State.fling.power Fling.direction = Core.State.fling.direction Fling.targetPlayer = Core.State.fling.targetPlayer end function Fling.getTargetPlayer() if Fling.targetPlayer then local query = Fling.targetPlayer:lower() for _, player in ipairs(Players:GetPlayers()) do if player.Name:lower():find(query, 1, true) then return player end end end return nil end function Fling.flingPlayer(player) -- via Nameless: pasa el CHAR explicito (no .Position) para no re-resolver mal if not player then return end local char = getCharacter(player) if not char then return end if not (Fling._naState and not Fling._naState.dead) then Fling.setupNAFling(getCharacter(LocalPlayer)) end Fling.naFlingOnce(char, nil) end function Fling.tpFling(player) if not player then return end local char = getCharacter(player) if not char then return end local hrp = getRootPart(char) if not (hrp and hrp.Parent) then return end local myChar = getCharacter(LocalPlayer) local myRoot = getRootPart(myChar) if myRoot and myRoot.Parent then -- TP con pcall + espera a que el rig se re-estabilice (si muere, no flingea al aire) local okTP = pcall(function() myRoot.CFrame = hrp.CFrame * CFrame.new(0, 0, 3) end) if okTP then task.wait(0.05) myChar = getCharacter(LocalPlayer) if not (myChar and getRootPart(myChar)) then return end Fling.teardownNAFling() if not Fling.setupNAFling(myChar) then return end end end Fling.naFlingOnce(char, nil) end function Fling.doFling() local target = Fling.getTargetPlayer() if not target then target = getClosestTargetGeneric({ maxDistance = 50, ignoreTeam = false, ignoreDead = false }, false) end if not target then return end local char = getCharacter(target) if not char then return end -- Nameless fling: asegurar rig y ejecutar golpe NA contra el CHAR del target if not (Fling._naState and not Fling._naState.dead) then Fling.setupNAFling(getCharacter(LocalPlayer)) end Fling.naFlingOnce(char, nil) end function Fling.onEnable() if Fling._conn then return end Fling._conn = UserInputService.InputBegan:Connect(function(input, gp) if gp then return end if input.KeyCode == Enum.KeyCode.F then Fling.doFling() end end) -- pre-crear el rig NA al habilitar para que el primer F no lata pcall(function() Fling.setupNAFling(getCharacter(LocalPlayer)) end) end function Fling.onDisable() if Fling._conn then Fling._conn:Disconnect(); Fling._conn = nil end Fling.teardownNAFling() end function Fling.build(tab) tab:CreateToggle({ name = "Enable Fling", flag = "fling_enabled", value = Core.State.fling.enabled, callback = function(on) Core.State.Set("combat_fling_enabled", on) Core.State.fling.enabled = on Fling.syncState() if Fling.enabled then Fling.onEnable() else Fling.onDisable() end end, }) tab:CreateSlider({ name = "Fling Power", flag = "fling_power", range = { 100, 10000 }, increment = 100, value = Core.State.fling.power, callback = function(v) Core.State.fling.power = v; Fling.syncState() end, }) tab:CreateDropdown({ name = "Direction", flag = "fling_direction", options = { "Up", "Forward", "Random" }, value = Core.State.fling.direction, callback = function(opt) Core.State.fling.direction = opt; Fling.syncState() end, }) tab:CreateButton({ name = "Fling Now (F)", callback = function() Fling.doFling() end, }) tab:CreateButton({ name = "Fling Instantaneo (velocidad)", callback = function() Fling.InstantBurst() end, }) -- ============ Selector de jugadores para Fling (UI) ============ tab:CreateDivider() pcall(function() tab:CreateSection({ name = "Fling Player" }) end) Fling._selectedPlayer = Fling._selectedPlayer or nil Fling._playerList = Fling._playerList or {} local function safeNotify(kind, title, msg) pcall(function() local N = Core.Notifications if N then if kind == "ok" and N.Success then N.Success(title, msg) elseif kind == "warn" and N.Warn then N.Warn(title, msg) elseif N.Info then N.Info(title, msg) end end end) end Fling.refreshPlayerList = function(dd) local list = {} for _, p in ipairs(Players:GetPlayers()) do if p ~= LocalPlayer then table.insert(list, p.Name) end end table.sort(list) Fling._playerList = list local opts = (#list > 0) and list or { "--" } if dd and dd.Refresh then pcall(function() dd:Refresh(opts) end) end return list end Fling.getSelectedPlayer = function() local name = Fling._selectedPlayer if not name or name == "" or name == "--" then return nil end for _, p in ipairs(Players:GetPlayers()) do if p.Name == name then return p end end return nil end local function requireSel() local p = Fling.getSelectedPlayer() if not p then safeNotify("warn", "Fling", "Selecciona un jugador primero") return nil end return p end local initial = Fling.refreshPlayerList(nil) local ddFling ddFling = tab:CreateDropdown({ name = "Jugador", flag = "fling_selected_player", options = (#initial > 0) and initial or { "--" }, value = Fling._selectedPlayer, callback = function(opt) if type(opt) == "table" then opt = opt[1] or opt.value end Fling._selectedPlayer = opt end, }) tab:CreateButton({ name = "Refresh Lista", callback = function() local l = Fling.refreshPlayerList(ddFling) safeNotify("ok", "Fling", "Lista actualizada (" .. #l .. ")") end, }) tab:CreateToggle({ name = "Fling Invisible (spoof velocity)", flag = "fling_spoof_invisible", value = Fling._spoofFling == true, callback = function(on) Fling._spoofFling = on and true or false -- al apagar con ningun burst activo, suelta la mascara de una vez if not on and #(Fling._bursts or {}) == 0 then local nxSpoof = NAxHub and NAxHub() nxSpoof = nxSpoof and nxSpoof.Spoof if nxSpoof then nxSpoof.off("velocity") end end end, }) tab:CreateButton({ name = "Fling Normal", callback = function() local p = requireSel(); if not p then return end Fling.flingPlayer(p) safeNotify("ok", "Fling", "Fling -> " .. p.Name) end, }) tab:CreateButton({ name = "Fling con TP", callback = function() local p = requireSel(); if not p then return end Fling.tpFling(p) safeNotify("ok", "Fling", "TP+Fling -> " .. p.Name) end, }) tab:CreateButton({ name = "Loop Fling al Seleccionado", callback = function() local p = requireSel(); if not p then return end local LF = Core.Modules and Core.Modules.LoopFling if not LF then safeNotify("warn", "Fling", "LoopFling no cargado") return end Core.State.loopFling.targetPlayer = p.Name LF.syncState() if not LF.enabled then Core.State.Set("combat_loopfling_enabled", true) Core.State.loopFling.enabled = true LF.syncState() LF.onEnable() end safeNotify("ok", "Fling", "LoopFling -> " .. p.Name) end, }) tab:CreateButton({ name = "Detener Loop Fling", callback = function() local LF = Core.Modules and Core.Modules.LoopFling if LF and LF.enabled then Core.State.Set("combat_loopfling_enabled", false) Core.State.loopFling.enabled = false LF.syncState() LF.onDisable() safeNotify("ok", "Fling", "LoopFling detenido") end end, }) _track(Players.PlayerAdded:Connect(function() task.wait(0.3) Fling.refreshPlayerList(ddFling) end)) _track(Players.PlayerRemoving:Connect(function(p) if Fling._selectedPlayer == p.Name then Fling._selectedPlayer = nil end task.defer(function() Fling.refreshPlayerList(ddFling) end) end)) end Fling.FlingVelocity = Vector3.new(9e7, 9e8, 9e7) Fling.FlingAngularVelocity = Vector3.new(9e8, 9e8, 9e8) function Fling.SetFlingVelocity(part) if not (part and part.Parent) then return end pcall(function() part.AssemblyLinearVelocity = Fling.FlingVelocity end) pcall(function() part.AssemblyAngularVelocity = Fling.FlingAngularVelocity end) pcall(function() part.Velocity = Fling.FlingVelocity end) pcall(function() part.RotVelocity = Fling.FlingAngularVelocity end) end function Fling.InstantBurst() local char = getCharacter(LocalPlayer) local root = getRootPart(char) if not root then return false end pcall(function() if sethiddenproperty then sethiddenproperty(root, "NetworkIsSleeping", true) end end) Fling.SetFlingVelocity(root) return true end local AntiFling = { name = "Anti Fling", stateKey = "combat_antifling_enabled", enabled = false } function AntiFling.initState() Core.State.antiFling = Core.State.antiFling or Core.State.Get("antiFling") or {} Core.State.Set("antiFling", Core.State.antiFling) Core.State.antiFling.enabled = Core.State.antiFling.enabled or false end function AntiFling.syncState() AntiFling.enabled = Core.State.antiFling.enabled end AntiFling._conn = nil AntiFling._playerConns = {} AntiFling._orig = setmetatable({}, { __mode = "k" }) AntiFling._sig = setmetatable({}, { __mode = "k" }) local function antiApplyPart(p) if not (p and p.Parent and p:IsA("BasePart")) then return end local okC, cc = pcall(function() return p.CanCollide end) if not okC then return end if AntiFling._orig[p] == nil then AntiFling._orig[p] = cc end if cc then pcall(function() p.CanCollide = false end) end if not AntiFling._sig[p] then local okS, sig = pcall(function() return p:GetPropertyChangedSignal("CanCollide") end) if not okS or not sig then return end AntiFling._sig[p] = sig:Connect(function() if AntiFling.enabled and p.Parent and p.CanCollide then pcall(function() p.CanCollide = false end) end end) end end local function antiApplyChar(c) if not c then return end local ok, desc = pcall(function() return c:GetDescendants() end) if not ok or not desc then return end for _, d in ipairs(desc) do if d:IsA("BasePart") then antiApplyPart(d) end end end function AntiFling.watchPlayer(plr) if plr == LocalPlayer then return end if AntiFling._playerConns[plr] then return end local list = {} list[1] = plr.CharacterAdded:Connect(function(c) task.wait(0.2) if AntiFling.enabled then antiApplyChar(c) end end) -- limpia tablas weak + seleccion si el jugador sale (evita sig/original huerfanos) list[2] = plr.AncestryChanged:Connect(function() if not plr.Parent then for _, c in ipairs(list) do pcall(function() c:Disconnect() end) end AntiFling._playerConns[plr] = nil end end) AntiFling._playerConns[plr] = list if plr.Character and AntiFling.enabled then antiApplyChar(plr.Character) end end function AntiFling.onEnable() if AntiFling._conn then return end if AntiFling._leaveConn then pcall(function() AntiFling._leaveConn:Disconnect() end) end AntiFling.enabled = true for _, plr in ipairs(Players:GetPlayers()) do AntiFling.watchPlayer(plr) end AntiFling._joinConn = Players.PlayerAdded:Connect(function(plr) AntiFling.watchPlayer(plr) end) AntiFling._leaveConn = Players.PlayerRemoving:Connect(function(plr) local list = AntiFling._playerConns[plr] if list then for _, c in ipairs(list) do pcall(function() c:Disconnect() end) end end AntiFling._playerConns[plr] = nil end) AntiFling._lastScan = 0 AntiFling._conn = RunService.Stepped:Connect(function() if not AntiFling.enabled then return end -- throttle 0.05s: GetDescendants cada Stepped sin pausa es lag puro local now = os.clock() if now - (AntiFling._lastScan or 0) < 0.05 then return end AntiFling._lastScan = now local n = 0 for _, plr in ipairs(Players:GetPlayers()) do if plr ~= LocalPlayer and plr.Character then local ok, desc = pcall(function() return plr.Character:GetDescendants() end) if ok and desc then for _, d in ipairs(desc) do if d:IsA("BasePart") then local okC, cc = pcall(function() return d.CanCollide end) if okC and cc then antiApplyPart(d) n = n + 1 if n >= 256 then return end end end end end end end end) end function AntiFling.onDisable() AntiFling.enabled = false if AntiFling._conn then AntiFling._conn:Disconnect() AntiFling._conn = nil end if AntiFling._joinConn then AntiFling._joinConn:Disconnect() AntiFling._joinConn = nil end if AntiFling._leaveConn then AntiFling._leaveConn:Disconnect() AntiFling._leaveConn = nil end for _, list in pairs(AntiFling._playerConns) do for _, c in ipairs(list) do pcall(function() c:Disconnect() end) end end AntiFling._playerConns = {} for _, sig in pairs(AntiFling._sig) do pcall(function() sig:Disconnect() end) end AntiFling._sig = setmetatable({}, { __mode = "k" }) for p, v in pairs(AntiFling._orig) do if p and p.Parent then pcall(function() p.CanCollide = v end) end end AntiFling._orig = setmetatable({}, { __mode = "k" }) end function AntiFling.build(tab) tab:CreateToggle({ name = "Enable Anti Fling", flag = "antifling_enabled", value = Core.State.antiFling.enabled, callback = function(on) Core.State.Set("combat_antifling_enabled", on) Core.State.antiFling.enabled = on AntiFling.syncState() if on then AntiFling.onEnable() else AntiFling.onDisable() end end, }) end local TouchFling = { name = "Touch Fling", stateKey = "combat_touchfling_enabled" } function TouchFling.initState() Core.State.touchFling = Core.State.touchFling or Core.State.Get("touchFling") or {} Core.State.Set("touchFling", Core.State.touchFling) Core.State.touchFling.enabled = Core.State.touchFling.enabled or false end function TouchFling.syncState() TouchFling.enabled = Core.State.touchFling.enabled end TouchFling.enabled = false TouchFling._conn = nil function TouchFling.onEnable() if TouchFling._conn then return end TouchFling.enabled = true TouchFling._last = 0 -- 10 direcciones (6 ejes + 4 diagonales) x 3 origenes, throttled 0.1s local dirs = { Vector3.new(1,0,0), Vector3.new(-1,0,0), Vector3.new(0,1,0) } dirs[4] = Vector3.new(0,-1,0) dirs[5] = Vector3.new(0,0,1) dirs[6] = Vector3.new(0,0,-1) dirs[7] = Vector3.new(1,1,0).Unit dirs[8] = Vector3.new(-1,1,0).Unit dirs[9] = Vector3.new(0,1,1).Unit dirs[10] = Vector3.new(0,1,-1).Unit TouchFling._conn = RunService.Heartbeat:Connect(function() if not TouchFling.enabled then return end local now = os.clock() if now - (TouchFling._last or 0) < 0.1 then return end TouchFling._last = now local char = getCharacter(LocalPlayer) local root = getRootPart(char) if not (root and root.Parent) then return end local params = RaycastParams.new() params.FilterType = Enum.RaycastFilterType.Exclude params.FilterDescendantsInstances = { char } local origins = { root.Position, root.Position + Vector3.new(0, 2, 0), root.Position - Vector3.new(0, 2, 0) } for oi = 1, 3 do for i = 1, #dirs do local hit = nil pcall(function() hit = Workspace:Raycast(origins[oi], dirs[i] * 6, params) end) if hit and hit.Instance then local m = hit.Instance:FindFirstAncestorOfClass("Model") local plr = m and Players:GetPlayerFromCharacter(m) if plr and plr ~= LocalPlayer then Fling.SetFlingVelocity(root) return end end end end end) end function TouchFling.onDisable() TouchFling.enabled = false if TouchFling._conn then TouchFling._conn:Disconnect() TouchFling._conn = nil end end function TouchFling.build(tab) tab:CreateToggle({ name = "Enable Touch Fling", flag = "touchfling_enabled", value = Core.State.touchFling.enabled, callback = function(on) Core.State.Set("combat_touchfling_enabled", on) Core.State.touchFling.enabled = on TouchFling.syncState() if on then TouchFling.onEnable() else TouchFling.onDisable() end end, }) end local ClickFling = { name = "Click Fling", stateKey = "combat_clickfling_enabled" } function ClickFling.initState() Core.State.clickFling = Core.State.clickFling or Core.State.Get("clickFling") or {} Core.State.Set("clickFling", Core.State.clickFling) Core.State.clickFling.enabled = Core.State.clickFling.enabled or false end function ClickFling.syncState() ClickFling.enabled = Core.State.clickFling.enabled end ClickFling.enabled = false ClickFling._conn = nil function ClickFling.onEnable() if ClickFling._conn then return end ClickFling.enabled = true ClickFling._conn = UserInputService.InputBegan:Connect(function(input, gpe) if gpe or not ClickFling.enabled then return end local t = input.UserInputType if t ~= Enum.UserInputType.MouseButton1 and t ~= Enum.UserInputType.Touch then return end local cam = refreshCamera() if not cam then return end local okPos, mouse = pcall(function() return UserInputService:GetMouseLocation() - GuiService:GetGuiInset() end) if not okPos then mouse = cam.ViewportSize / 2 end if t == Enum.UserInputType.Touch then mouse = cam.ViewportSize / 2 end local ray = cam:ViewportPointToRay(mouse.X, mouse.Y) local params = RaycastParams.new() params.FilterType = Enum.RaycastFilterType.Exclude local char = getCharacter(LocalPlayer) params.FilterDescendantsInstances = char and { char } or {} local hit = nil pcall(function() hit = Workspace:Raycast(ray.Origin, ray.Direction * 1000, params) end) if hit and hit.Instance then local m = hit.Instance:FindFirstAncestorOfClass("Model") local plr = m and Players:GetPlayerFromCharacter(m) if plr then Fling.flingPlayer(plr) return end end Fling.InstantBurst() end) end function ClickFling.onDisable() ClickFling.enabled = false if ClickFling._conn then ClickFling._conn:Disconnect() ClickFling._conn = nil end end function ClickFling.build(tab) tab:CreateToggle({ name = "Enable Click Fling", flag = "clickfling_enabled", value = Core.State.clickFling.enabled, callback = function(on) Core.State.Set("combat_clickfling_enabled", on) Core.State.clickFling.enabled = on ClickFling.syncState() if on then ClickFling.onEnable() else ClickFling.onDisable() end end, }) tab:CreateButton({ name = "Fling Instantaneo", callback = function() Fling.InstantBurst() end, }) end local LoopFling = { name = "Loop Fling", stateKey = "combat_loopfling_enabled", enabled = false, _conn = nil, power = 500, interval = 0.1, targetPlayer = nil, _acc = 0 } function LoopFling.initState() Core.State.loopFling = Core.State.loopFling or Core.State.Get("loopFling") or {} Core.State.Set("loopFling", Core.State.loopFling) Core.State.loopFling.enabled = Core.State.loopFling.enabled or false Core.State.loopFling.power = Core.State.loopFling.power or 500 Core.State.loopFling.interval = Core.State.loopFling.interval or 0.1 Core.State.loopFling.targetPlayer = Core.State.loopFling.targetPlayer or nil end function LoopFling.syncState() LoopFling.enabled = Core.State.loopFling.enabled LoopFling.power = Core.State.loopFling.power LoopFling.interval = Core.State.loopFling.interval LoopFling.targetPlayer = Core.State.loopFling.targetPlayer end function LoopFling.getTargetPlayer() if LoopFling.targetPlayer then local query = LoopFling.targetPlayer:lower() for _, player in ipairs(Players:GetPlayers()) do if player.Name:lower():find(query, 1, true) then return player end end end return nil end function LoopFling.tick(dt) LoopFling._acc = LoopFling._acc + dt if LoopFling._acc < LoopFling.interval then return end LoopFling._acc = 0 local target = LoopFling.getTargetPlayer() or getClosestTargetGeneric({ maxDistance = 100, ignoreTeam = false, ignoreDead = false }, false) if not target then return end local char = getCharacter(target) if not char then return end -- via Nameless: pasa el CHAR (no .Position) para no re-resolver al dropdown de Fling if not (Fling._naState and not Fling._naState.dead) then Fling.setupNAFling(getCharacter(LocalPlayer)) end Fling.naFlingOnce(char, LoopFling.interval) end function LoopFling.onEnable() if LoopFling._conn then return end LoopFling._acc = 0 pcall(function() Fling.setupNAFling(getCharacter(LocalPlayer)) end) LoopFling._conn = RunService.Heartbeat:Connect(LoopFling.tick) end function LoopFling.onDisable() if LoopFling._conn then LoopFling._conn:Disconnect(); LoopFling._conn = nil end Fling.teardownNAFling() end function LoopFling.build(tab) tab:CreateToggle({ name = "Enable Loop Fling", flag = "loopfling_enabled", value = Core.State.loopFling.enabled, callback = function(on) Core.State.Set("combat_loopfling_enabled", on) Core.State.loopFling.enabled = on LoopFling.syncState() if LoopFling.enabled then LoopFling.onEnable() else LoopFling.onDisable() end end, }) tab:CreateSlider({ name = "Fling Power", flag = "loopfling_power", range = { 100, 5000 }, increment = 10, value = Core.State.loopFling.power, callback = function(v) Core.State.loopFling.power = v; LoopFling.syncState() end, }) tab:CreateSlider({ name = "Interval", flag = "loopfling_interval", range = { 0.01, 1 }, increment = 0.01, value = Core.State.loopFling.interval, callback = function(v) Core.State.loopFling.interval = v; LoopFling.syncState() end, }) local names = {} for _, p in ipairs(Players:GetPlayers()) do if p ~= LocalPlayer then table.insert(names, p.Name) end end local dd dd = tab:CreateDropdown({ name = "Target Player", flag = "loopfling_target", options = names, value = Core.State.loopFling.targetPlayer, callback = function(opt) Core.State.loopFling.targetPlayer = opt; LoopFling.syncState() end, }) _track(Players.PlayerAdded:Connect(function(p) if dd and dd.Refresh then pcall(function() dd:Refresh({ p.Name }) end) end end)) _track(Players.PlayerRemoving:Connect(function(p) if dd and dd.Refresh then pcall(function() dd:Refresh(nil) end) end if Core.State.loopFling.targetPlayer == p.Name then Core.State.loopFling.targetPlayer = nil end end)) end local Triggerbot = { name = "Triggerbot", stateKey = "combat_triggerbot_enabled", enabled = false, _conn = nil, _lastClick = 0, delay = 0.05, maxDistance = 1000, targetPart = "Head", ignoreTeam = true, visibilityCheck = true, method = "Auto" } local VIM pcall(function() VIM = game:GetService("VirtualInputManager") end) local function crosshairPos() local cam = refreshCamera() if not cam then return Vector2.zero end if UserInputService.TouchEnabled then return cam.ViewportSize / 2 end return UserInputService:GetMouseLocation() - GuiService:GetGuiInset() end local function doClick(method) if method == "Tool" then local char = getCharacter(LocalPlayer) local tool = char and char:FindFirstChildOfClass("Tool") if tool then pcall(function() tool:Activate() end) end return end if method == "Mouse" then if EXECUTOR_FUNCS.mouse1click then pcall(EXECUTOR_FUNCS.mouse1click) end return end if UserInputService.TouchEnabled then if EXECUTOR_FUNCS.mouse1click then pcall(EXECUTOR_FUNCS.mouse1click) else local char = getCharacter(LocalPlayer) local tool = char and char:FindFirstChildOfClass("Tool") if tool then pcall(function() tool:Activate() end) end end return end if VIM then local cam = refreshCamera() local vp = cam and cam.ViewportSize or Vector2.new(1920, 1080) local x, y = math.floor(vp.X / 2), math.floor(vp.Y / 2) pcall(function() VIM:SendMouseButtonEvent(x, y, 0, true, game, 1) VIM:SendMouseButtonEvent(x, y, 0, false, game, 1) end) elseif EXECUTOR_FUNCS.mouse1click then pcall(EXECUTOR_FUNCS.mouse1click) end end function Triggerbot.initState() Core.State.triggerbot = Core.State.triggerbot or Core.State.Get("triggerbot") or {} Core.State.Set("triggerbot", Core.State.triggerbot) Core.State.triggerbot.enabled = Core.State.triggerbot.enabled or false if Core.State.triggerbot.delay == nil then Core.State.triggerbot.delay = 0.05 end Core.State.triggerbot.maxDistance = Core.State.triggerbot.maxDistance or 1000 Core.State.triggerbot.targetPart = Core.State.triggerbot.targetPart or "Head" Core.State.triggerbot.ignoreTeam = Core.State.triggerbot.ignoreTeam ~= false Core.State.triggerbot.visibilityCheck = Core.State.triggerbot.visibilityCheck ~= false Core.State.triggerbot.method = Core.State.triggerbot.method or "Auto" end function Triggerbot.syncState() Triggerbot.enabled = Core.State.triggerbot.enabled Triggerbot.delay = Core.State.triggerbot.delay Triggerbot.maxDistance = Core.State.triggerbot.maxDistance Triggerbot.targetPart = Core.State.triggerbot.targetPart Triggerbot.ignoreTeam = Core.State.triggerbot.ignoreTeam Triggerbot.visibilityCheck = Core.State.triggerbot.visibilityCheck Triggerbot.method = Core.State.triggerbot.method end function Triggerbot.onEnable() if Triggerbot._conn then return end Triggerbot._conn = RunService.RenderStepped:Connect(function() if not Triggerbot.enabled then return end local cam = refreshCamera() if not cam then return end local target = getTargetCached(Triggerbot, true) if not target then return end local char = getCharacter(target) if not char then return end local targetPart = Triggerbot.targetPart == "Head" and getHead(char) or getRootPart(char) if not targetPart then return end local screenPos, onScreen = cam:WorldToViewportPoint(targetPart.Position) if not onScreen then return end if (Vector2.new(screenPos.X, screenPos.Y) - crosshairPos()).Magnitude <= 20 then local now = os.clock() if now - Triggerbot._lastClick >= math.max(Triggerbot.delay, 0.02) then Triggerbot._lastClick = now doClick(Triggerbot.method) end end end) end function Triggerbot.onDisable() if Triggerbot._conn then Triggerbot._conn:Disconnect(); Triggerbot._conn = nil end end function Triggerbot.build(tab) tab:CreateToggle({ name = "Enable Triggerbot", flag = "triggerbot_enabled", value = Core.State.triggerbot.enabled, callback = function(on) Core.State.Set("combat_triggerbot_enabled", on) Core.State.triggerbot.enabled = on Triggerbot.syncState() if Triggerbot.enabled then Triggerbot.onEnable() else Triggerbot.onDisable() end end, }) tab:CreateSlider({ name = "Click Delay", flag = "triggerbot_delay", range = { 0, 0.5 }, increment = 0.001, value = Core.State.triggerbot.delay, callback = function(v) Core.State.triggerbot.delay = v; Triggerbot.syncState() end, }) tab:CreateDropdown({ name = "Click Method", flag = "triggerbot_method", options = { "Auto", "Tool", "Mouse" }, value = Core.State.triggerbot.method, callback = function(opt) Core.State.triggerbot.method = opt; Triggerbot.syncState() end, }) tab:CreateSlider({ name = "Max Distance", flag = "triggerbot_maxdistance", range = { 100, 5000 }, increment = 10, value = Core.State.triggerbot.maxDistance, callback = function(v) Core.State.triggerbot.maxDistance = v; Triggerbot.syncState() end, }) tab:CreateToggle({ name = "Ignore Teammates", flag = "triggerbot_ignoreteam", value = Core.State.triggerbot.ignoreTeam, callback = function(v) Core.State.triggerbot.ignoreTeam = v; Triggerbot.syncState() end, }) tab:CreateToggle({ name = "Visibility Check", flag = "triggerbot_visibility", value = Core.State.triggerbot.visibilityCheck, callback = function(v) Core.State.triggerbot.visibilityCheck = v; Triggerbot.syncState() end, }) end function InitializeCombatModules() Aimbot.initState() SilentAim.initState() Hitbox.initState() Reach.initState() Fling.initState() AntiFling.initState() TouchFling.initState() ClickFling.initState() LoopFling.initState() Triggerbot.initState() Aimbot.syncState() SilentAim.syncState() Hitbox.syncState() Reach.syncState() Fling.syncState() AntiFling.syncState() TouchFling.syncState() ClickFling.syncState() LoopFling.syncState() Triggerbot.syncState() Core.Modules.Aimbot = Aimbot Core.Modules.SilentAim = SilentAim Core.Modules.Hitbox = Hitbox Core.Modules.Reach = Reach Core.Modules.Fling = Fling Core.Modules.AntiFling = AntiFling Core.Modules.TouchFling = TouchFling Core.Modules.ClickFling = ClickFling Core.Modules.LoopFling = LoopFling Core.Modules.Triggerbot = Triggerbot -- Publica el port NAx en el registry (combat carga despues del bloque Hub, por eso aqui) do local _nax = NAxHub() if _nax then Core.Modules.NAx = _nax end end local function restoreCombatState(module, key, stateTable) if Core.State.Get(key) and not stateTable.enabled then stateTable.enabled = true module.syncState() if module.onEnable then local ok, res = pcall(module.onEnable) if ok then module._reapplyActive = (res ~= false) module._vokActive = true end end end end restoreCombatState(Aimbot, "combat_aimbot_enabled", Core.State.aimbot) restoreCombatState(SilentAim, "combat_silentaim_enabled", Core.State.silentAim) restoreCombatState(Hitbox, "combat_hitbox_enabled", Core.State.hitbox) restoreCombatState(Reach, "combat_reach_enabled", Core.State.reach) restoreCombatState(Fling, "combat_fling_enabled", Core.State.fling) restoreCombatState(AntiFling, "combat_antifling_enabled", Core.State.antiFling) restoreCombatState(TouchFling, "combat_touchfling_enabled", Core.State.touchFling) restoreCombatState(ClickFling, "combat_clickfling_enabled", Core.State.clickFling) restoreCombatState(LoopFling, "combat_loopfling_enabled", Core.State.loopFling) restoreCombatState(Triggerbot, "combat_triggerbot_enabled", Core.State.triggerbot) -- Comandos de chat solidos (sin wrappers NA): usan Core.Commands si existe pcall(function() local CM = Core.Commands if CM and CM.Register then CM.Register("walkfling", function(args) local M = Core.Modules and (Core.Modules.WalkFling or Core.Modules["movement.walk_fling"]) if not M and Core.Modules and Core.Modules.Modules then M = Core.Modules.Modules["movement.walk_fling"] end -- WalkFling vive en modulo movement; fallback: busca en Loaded if not M then local mv = Core.Modules and Core.Modules.Loaded and Core.Modules.Loaded.movement if mv then M = mv.WalkFling end end if M then if args and args[1] and M.ParseFlingSpeed then M.flingPower = M.ParseFlingSpeed(args[1]) end Core.State.Set("movement_walkfling_enabled", true) M.onEnable() else Fling.InstantBurst() end end, { "wfling", "wf" }) CM.Register("unwalkfling", function() local M = Core.Modules and (Core.Modules.WalkFling or Core.Modules["movement.walk_fling"]) if not M and Core.Modules and Core.Modules.Modules then M = Core.Modules.Modules["movement.walk_fling"] end if not M then local mv = Core.Modules and Core.Modules.Loaded and Core.Modules.Loaded.movement if mv then M = mv.WalkFling end end if M then Core.State.Set("movement_walkfling_enabled", false) M.onDisable() end end, { "unwfling" }) CM.Register("fling", function(args) local q = args and args[1] if q then for _, p in ipairs(Players:GetPlayers()) do if p.Name:lower():find(q:lower(), 1, true) then Fling.flingPlayer(p) return end end end Fling.doFling() end) CM.Register("antifling", function(args) local on = not (args and args[1] == "off") Core.State.Set("combat_antifling_enabled", on) Core.State.antiFling.enabled = on AntiFling.syncState() if on then AntiFling.onEnable() else AntiFling.onDisable() end end) -- Comandos extra que delegan al port NAx (nombres separados p/ no pisar los de Vokthos) local NX = Core.Modules and Core.Modules.NAx if NX then CM.Register("naskidfling", function(args) if not (args and args[1]) then return end NX.DoFling(args[1]) end, { "naskid" }) CM.Register("loopfling", function(args) if not (args and args[1]) then return end NX.LoopOn(args[1]) end, { "naloopfling" }) CM.Register("unloopfling", function() NX.LoopOff() end, { "unloopfling" }) CM.Register("clickfling", function(args) local on = not (args and args[1] == "off") if on then NX.ClickOn() else NX.ClickOff() end end) CM.Register("spoofwalk", function(args) local real = args and tonumber(args[1]) local mask = args and tonumber(args[2]) if real then NX.SpoofWalkOn(real, mask) else NX.SpoofWalkOff() end end, { "swalk" }) CM.Register("unspoofwalk", function() NX.SpoofWalkOff() end, { "unswalk" }) -- ═══ Motor Spoof completo (NA part-029) vía NX.Spoof ═══ local SP = NX.Spoof local SPM = NX.SpoofMgr if SP and SPM then local function spNums(a) return SPM.Spoof_parseNumbers( a and a[1] or nil, a and a[2] or nil, a and a[3] or nil, a and a[4] or nil, a and a[5] or nil, a and a[6] or nil ) end CM.Register("spooftransform", function(args) local v = spNums(args) if #v < 3 then NX.notify("Uso: spooftransform x y z [pitch yaw roll]") return end local off3, rot = SPM.Spoof_transformFromNumbers(v) if SP.transform(off3, rot) then NX.notify("Character transform spoof activo") end end, { "stf" }) CM.Register("unspooftransform", function() SP.off("transform") NX.notify("Character transform spoof off") end, { "unstf" }) CM.Register("spoofvelocity", function(args) local v = spNums(args) SP.velocity(Vector3.new(v[1] or 0, v[2] or 0, v[3] or 0), Vector3.new(v[4] or 0, v[5] or 0, v[6] or 0)) NX.notify("Velocity spoof activo") end, { "svel" }) CM.Register("unspoofvelocity", function() SP.off("velocity") NX.notify("Velocity spoof off") end, { "unsvel" }) CM.Register("spoofpart", function(args) local v = spNums(args) if #v < 3 then NX.notify("Uso: spoofpart x y z [pitch yaw roll]") return end local okM, mouse = pcall(function() return LocalPlayer:GetMouse() end) local target = okM and mouse and mouse.Target if not (target and target:IsA("BasePart")) then NX.notify("Apunta a un part/vehiculo sin anclar primero") return end local ch = NAx.getChar() if ch and target:IsDescendantOf(ch) then NX.notify("El objetivo no puede ser tu personaje") return end local asm = target.AssemblyRootPart or target if asm.Anchored then NX.notify("El ensamblaje objetivo esta anclado") return end local off3, rot = SPM.Spoof_transformFromNumbers(v) if SP.part(asm, off3, rot) then NX.notify("Part/vehicle transform spoof activo") end end, { "spart", "spoofvehicle" }) CM.Register("unspoofpart", function() SP.off("part") NX.notify("Part/vehicle spoof off") end, { "unspart", "unspoofvehicle" }) CM.Register("posesplit", function() SP.pose() NX.notify("Local pose split activo") end, { "spose" }) CM.Register("unposesplit", function() SP.off("pose") NX.notify("Local pose split off") end, { "unspose" }) CM.Register("humspoof", function(args) if not SP.hum(args and args[1], args and args[2], args and args[3]) then return end NX.notify(tostring(args and args[1]) .. " masking activo") end, { "shum" }) CM.Register("unhumspoof", function(args) SP.unhum(args and args[1] or "all") NX.notify("Humanoid masks: " .. tostring(args and args[1] or "all")) end, { "unshum" }) CM.Register("spoofstatus", function() NX.notify(SP.status()) end, { "sstatus" }) CM.Register("unloadspoofs", function() SP.stop("Spoof state restaurado") end, { "unspoofall" }) end end end end) end InitializeCombatModules() if Core.Dispose and Core.Dispose.add then Core.Dispose.add(function() if _renderBound and RunService.UnbindFromRenderStep then pcall(function() RunService:UnbindFromRenderStep("CombatTarget") end) pcall(function() RunService:UnbindFromRenderStep("CombatAim") end) end for _, c in ipairs(_topConns) do pcall(function() c:Disconnect() end) end _topConns = {} end) end return { Aimbot = Aimbot, SilentAim = SilentAim, Hitbox = Hitbox, Reach = Reach, Fling = Fling, AntiFling = AntiFling, TouchFling = TouchFling, ClickFling = ClickFling, LoopFling = LoopFling, Triggerbot = Triggerbot, } ]==]) Vokthos.Modules.Loaded.evasion = loadModule("evasion", [==[ local G = (getgenv and getgenv()) or _G local hub = G.VokthosHub if not hub then warn("[Evasion] hub ausente"); return {} end local Players = game:GetService("Players") local LocalPlayer = Players.LocalPlayer local Evasion = {} Evasion.name = "Evasion" Evasion.antiKick = true Evasion.spoofEnabled = true Evasion.fakeSpeed = 16 Evasion.fakeJump = 50 Evasion.fakeHip = 2 Evasion.fakeSlope = 89 Evasion._localHum = nil Evasion._charConn = nil Evasion._hookViaHub = false Evasion._hookFallback = false Evasion._baseNC = nil Evasion._baseIDX = nil Evasion.BlockedRemotes = { exact = {}, partial = {} } Evasion._hasBlocked = false Evasion._hasPartial = false Evasion._cache = {} Evasion._cacheSize = 0 Evasion._cacheVer = 0 local function refreshFlags() Evasion._hasPartial = next(Evasion.BlockedRemotes.partial) ~= nil Evasion._hasBlocked = Evasion._hasPartial or (next(Evasion.BlockedRemotes.exact) ~= nil) end local function blocked(name) if Evasion.BlockedRemotes.exact[name] then return true end if not Evasion._hasPartial then return false end local e = Evasion._cache[name] if e and e.v == Evasion._cacheVer then return e.hit end local hit = false for pat in pairs(Evasion.BlockedRemotes.partial) do if string.find(name, pat, 1, true) then hit = true break end end if e == nil then Evasion._cacheSize += 1 if Evasion._cacheSize > 512 then Evasion._cache = {} Evasion._cacheSize = 1 end end Evasion._cache[name] = { hit = hit, v = Evasion._cacheVer } return hit end function Evasion.blockRemote(name, mode) mode = mode or "exact" local t = Evasion.BlockedRemotes[mode] if not t or t[name] then return end t[name] = true Evasion._cacheVer += 1 Evasion._cache = {} Evasion._cacheSize = 0 refreshFlags() if Evasion.syncHooks then Evasion.syncHooks() end end function Evasion.unblockRemote(name, mode) mode = mode or "exact" local t = Evasion.BlockedRemotes[mode] if not t or not t[name] then return end t[name] = nil Evasion._cacheVer += 1 Evasion._cache = {} Evasion._cacheSize = 0 refreshFlags() if Evasion.syncHooks then Evasion.syncHooks() end end local function bindHum(char) if not char then Evasion._localHum = nil; Evasion.syncHooks(); return end Evasion._localHum = char:FindFirstChildOfClass("Humanoid") or char:WaitForChild("Humanoid", 5) if Evasion.syncHooks then Evasion.syncHooks() end end Evasion._charConn = LocalPlayer.CharacterAdded:Connect(function(c) Evasion._localHum = nil task.wait(0.1) bindHum(c) end) if LocalPlayer.Character then task.spawn(bindHum, LocalPlayer.Character) end local function evasionNamecallHandler(self, method, args) if method == "Kick" then if Evasion.antiKick and self == LocalPlayer then return { swallow = true } end return end if (method == "FireServer" or method == "InvokeServer") and Evasion._hasBlocked then if typeof(self) == "Instance" then local nm = self.Name if nm and blocked(nm) then return { swallow = true } end end end end local function spoofIndexHandler(self, key) if not Evasion.spoofEnabled or self ~= Evasion._localHum then return end -- motor NA activo (NAx.Spoof): devuelve la mascara del motor para que -- los LocalScripts lean el mismo valor que el server observa (fuente unica). -- Ojo: solo si el motor tiene enmascarada esa propiedad; si no, usa fake*. local _vgT = G.Vokthos or _G.Vokthos or (shared and shared.Vokthos) local NAxT = _vgT and _vgT.NAx local stT = NAxT and NAxT.SpoofState local entry = stT and stT.HumanoidMasks[key] if entry then return { handled = true, value = entry.Mask } end if key == "WalkSpeed" then return { handled = true, value = Evasion.fakeSpeed } end if key == "JumpPower" then return { handled = true, value = Evasion.fakeJump } end if key == "HipHeight" then return { handled = true, value = Evasion.fakeHip } end if key == "MaxSlopeAngle" then return { handled = true, value = Evasion.fakeSlope } end if key == "JumpHeight" and Evasion._localHum.UseJumpPower == false then local g = workspace.Gravity return { handled = true, value = (g and g > 0) and (Evasion.fakeJump * Evasion.fakeJump) / (2 * g) or 7.2 } end end local function wantsNC() return Evasion.antiKick or Evasion._hasBlocked end local function wantsIDX() return Evasion.spoofEnabled and Evasion._localHum ~= nil end local function installFallback() if Evasion._hookFallback then return true end if not (getrawmetatable and setreadonly and getnamecallmethod) then return false end local ncc = newcclosure or function(f) return f end local ck = checkcaller or function() return false end local ok = pcall(function() local mt = getrawmetatable(game) setreadonly(mt, false) local baseNC, baseIDX = mt.__namecall, mt.__index Evasion._baseNC, Evasion._baseIDX = baseNC, baseIDX Evasion._wrappedNC = ncc(function(self, ...) if not ck() then local res = evasionNamecallHandler(self, getnamecallmethod(), { ... }) if res and res.swallow then return nil end end return baseNC(self, ...) end) Evasion._wrappedIDX = ncc(function(self, key) if not ck() then local r = spoofIndexHandler(self, key) if r and r.handled then return r.value end end return baseIDX(self, key) end) mt.__namecall, mt.__index = Evasion._wrappedNC, Evasion._wrappedIDX setreadonly(mt, true) end) Evasion._hookFallback = ok return ok end local function removeFallback() if not Evasion._hookFallback then return end pcall(function() local mt = getrawmetatable and getrawmetatable(game) if mt then setreadonly(mt, false) if mt.__namecall == Evasion._wrappedNC then mt.__namecall = Evasion._baseNC end if mt.__index == Evasion._wrappedIDX then mt.__index = Evasion._baseIDX end setreadonly(mt, true) end end) Evasion._hookFallback = false Evasion._wrappedNC, Evasion._wrappedIDX = nil, nil end function Evasion.syncHooks() local useHub = hub and hub.hasNC and hub.registerNamecall and hub.registerIndex if useHub then if wantsNC() then hub.registerNamecall("evasion", evasionNamecallHandler, 100) elseif hub.unregisterNamecall then hub.unregisterNamecall("evasion") end if wantsIDX() then hub.registerIndex("evasion.spoof", spoofIndexHandler, 60) elseif hub.unregisterIndex then hub.unregisterIndex("evasion.spoof") end Evasion._hookViaHub = wantsNC() or wantsIDX() else if wantsNC() or wantsIDX() then installFallback() else removeFallback() end end end Evasion.syncHooks() function Evasion.build(tab) tab:CreateToggle({ name = "Anti Kick", flag = "evasion_antikick", value = Evasion.antiKick, callback = function(v) Evasion.antiKick = v; Evasion.syncHooks() end }) tab:CreateToggle({ name = "Spoof WalkSpeed / JumpPower", flag = "evasion_spoof", value = Evasion.spoofEnabled, callback = function(v) Evasion.spoofEnabled = v; Evasion.syncHooks() end }) tab:CreateSlider({ name = "Fake WalkSpeed", flag = "evasion_fakespeed", range = { 16, 100 }, increment = 1, value = Evasion.fakeSpeed, callback = function(v) Evasion.fakeSpeed = v end }) tab:CreateSlider({ name = "Fake JumpPower", flag = "evasion_fakejump", range = { 50, 500 }, increment = 1, value = Evasion.fakeJump, callback = function(v) Evasion.fakeJump = v end }) tab:CreateDivider() tab:CreateInput({ name = "Block Remote (exact)", placeholder = "RemoteName", callback = function(t) if t and t ~= "" then Evasion.blockRemote(t, "exact") end end }) tab:CreateInput({ name = "Block Remote (partial)", placeholder = "substring", callback = function(t) if t and t ~= "" then Evasion.blockRemote(t, "partial") end end }) end if G.Vokthos and G.Vokthos.Dispose and G.Vokthos.Dispose.add then G.Vokthos.Dispose.add(function() if Evasion._charConn then pcall(function() Evasion._charConn:Disconnect() end) Evasion._charConn = nil end if hub.unregisterNamecall then pcall(hub.unregisterNamecall, "evasion") end if hub.unregisterIndex then pcall(hub.unregisterIndex, "evasion.spoof") end if Evasion._hookFallback then removeFallback() end end) end G.VokthosEvasion = Evasion return Evasion ]==]) Vokthos.Modules.Loaded.player = loadModule("player", [==[ local Vokthos = _G.Vokthos if not Vokthos then error("[Player] Vokthos not loaded") end local Core = Vokthos local State = Core.State local Utils = Core.Utils local Modules = Core.Modules local Player = {} local LocalPlayer = game:GetService("Players").LocalPlayer local function getHumanoid(char) if not char then return nil end local hum = char:FindFirstChildOfClass("Humanoid") if hum then return hum end local s, r = pcall(function() return char:WaitForChild("Humanoid", 2) end) return s and r or nil end local moduleConnections = {} local function trackConnection(module, key, conn) if not moduleConnections[module] then moduleConnections[module] = {} end if moduleConnections[module][key] then moduleConnections[module][key]:Disconnect() end moduleConnections[module][key] = conn return conn end local function cleanupModuleConnections(module) if not moduleConnections[module] then return end for _, conn in pairs(moduleConnections[module]) do if conn and typeof(conn) == "RBXScriptConnection" then conn:Disconnect() end end moduleConnections[module] = {} end local function buildToggle(tab, label, stateKey, onToggle) local current = State.Get(stateKey) if current == nil then current = false State.Set(stateKey, false) end tab:CreateToggle({ name = label, flag = stateKey, value = current, callback = function(new) State.Set(stateKey, new) if onToggle then onToggle(new) end end, }) end local GodMode = { name = "God Mode", category = "player", stateKey = "player_godmode_enabled", enabled = false, _maxHealth = 100 } function GodMode.onEnable() cleanupModuleConnections(GodMode) local function setupGodMode() local char = LocalPlayer.Character if not char then return end local hum = getHumanoid(char) if not hum then return end GodMode._maxHealth = hum.MaxHealth hum.Health = GodMode._maxHealth trackConnection(GodMode, "healthChanged", hum.HealthChanged:Connect(function() if not State.Get("player_godmode_enabled") then return end if hum.Health < GodMode._maxHealth then hum.Health = GodMode._maxHealth end end)) trackConnection(GodMode, "maxHealthChanged", hum:GetPropertyChangedSignal("MaxHealth"):Connect(function() if not State.Get("player_godmode_enabled") then return end GodMode._maxHealth = hum.MaxHealth hum.Health = GodMode._maxHealth end)) end setupGodMode() trackConnection(GodMode, "charAdded", LocalPlayer.CharacterAdded:Connect(function() task.wait(0.1) if State.Get("player_godmode_enabled") then setupGodMode() end end)) end function GodMode.onDisable() cleanupModuleConnections(GodMode) local hum = getHumanoid(LocalPlayer.Character) if hum then hum.Health = hum.MaxHealth end end function GodMode.build(tab) buildToggle(tab, "Enabled", "player_godmode_enabled", function(newState) if newState then GodMode.onEnable() else GodMode.onDisable() end end) end Player.GodMode = GodMode local Invisible = { name = "Invisible", category = "player", stateKey = "player_invisible_enabled", enabled = false, _originalTransparency = setmetatable({}, {__mode = "k"}) } function Invisible.onEnable() cleanupModuleConnections(Invisible) Invisible._originalTransparency = setmetatable({}, {__mode = "k"}) local function applyInvisibility(char) if not char then return end for _, obj in ipairs(char:GetDescendants()) do if obj:IsA("BasePart") or obj:IsA("Decal") or obj:IsA("Texture") then Invisible._originalTransparency[obj] = obj.Transparency obj.Transparency = 1 end end end local function hookDescendant(char) if not char then return end trackConnection(Invisible, "descendantAdded", char.DescendantAdded:Connect(function(desc) if not State.Get("player_invisible_enabled") then return end task.wait() if desc:IsA("BasePart") or desc:IsA("Decal") or desc:IsA("Texture") then Invisible._originalTransparency[desc] = desc.Transparency desc.Transparency = 1 end end)) end applyInvisibility(LocalPlayer.Character) hookDescendant(LocalPlayer.Character) trackConnection(Invisible, "charAdded", LocalPlayer.CharacterAdded:Connect(function(newChar) task.wait(0.1) if State.Get("player_invisible_enabled") then applyInvisibility(newChar) hookDescendant(newChar) end end)) end function Invisible.onDisable() cleanupModuleConnections(Invisible) for obj, originalTrans in pairs(Invisible._originalTransparency) do if obj and typeof(obj) == "Instance" and obj.Parent then obj.Transparency = originalTrans end end Invisible._originalTransparency = setmetatable({}, {__mode = "k"}) end function Invisible.build(tab) buildToggle(tab, "Enabled", "player_invisible_enabled", function(newState) if newState then Invisible.onEnable() else Invisible.onDisable() end end) end Player.Invisible = Invisible local NoSit = { name = "No Sit", category = "player", stateKey = "player_nosit_enabled", enabled = false } function NoSit.onEnable() cleanupModuleConnections(NoSit) local function setupNoSit(char) if not char then return end local hum = getHumanoid(char) if not hum then return end trackConnection(NoSit, "seated", hum.Seated:Connect(function(isSeated) if isSeated and State.Get("player_nosit_enabled") then hum.Sit = false hum.PlatformStand = false task.wait() if hum.RootPart then hum.RootPart.AssemblyLinearVelocity = Vector3.new(0, 10, 0) end end end)) trackConnection(NoSit, "sitChanged", hum:GetPropertyChangedSignal("Sit"):Connect(function() if State.Get("player_nosit_enabled") and hum.Sit then hum.Sit = false hum.PlatformStand = false end end)) end setupNoSit(LocalPlayer.Character) trackConnection(NoSit, "charAdded", LocalPlayer.CharacterAdded:Connect(function(newChar) task.wait(0.1) if State.Get("player_nosit_enabled") then setupNoSit(newChar) end end)) end function NoSit.onDisable() cleanupModuleConnections(NoSit) end function NoSit.build(tab) buildToggle(tab, "Enabled", "player_nosit_enabled", function(newState) if newState then NoSit.onEnable() else NoSit.onDisable() end end) end Player.NoSit = NoSit local JumpPower = { name = "Jump Power", category = "player", stateKey = "player_jumppower_enabled", enabled = false, _defaultPower = nil, _currentPower = 150 } function JumpPower.onEnable() cleanupModuleConnections(JumpPower) local function setupJumpPower(char) if not char then return end local hum = getHumanoid(char) if not hum then return end if JumpPower._defaultPower == nil then JumpPower._defaultPower = hum.JumpPower end hum.JumpPower = State.Get("player_jumppower_value") or JumpPower._currentPower trackConnection(JumpPower, "powerChanged", hum:GetPropertyChangedSignal("JumpPower"):Connect(function() if not State.Get("player_jumppower_enabled") then return end local desired = State.Get("player_jumppower_value") or JumpPower._currentPower if hum.JumpPower ~= desired then hum.JumpPower = desired end end)) end setupJumpPower(LocalPlayer.Character) trackConnection(JumpPower, "charAdded", LocalPlayer.CharacterAdded:Connect(function(newChar) task.wait(0.1) if State.Get("player_jumppower_enabled") then setupJumpPower(newChar) end end)) end function JumpPower.onDisable() cleanupModuleConnections(JumpPower) local hum = getHumanoid(LocalPlayer.Character) if hum and JumpPower._defaultPower ~= nil then hum.JumpPower = JumpPower._defaultPower end end function JumpPower.build(tab) buildToggle(tab, "Enabled", "player_jumppower_enabled", function(newState) if newState then JumpPower.onEnable() else JumpPower.onDisable() end end) local currentVal = State.Get("player_jumppower_value") or JumpPower._currentPower tab:CreateSlider({ name = "Power", flag = "player_jumppower_value", range = { 50, 500 }, increment = 1, value = currentVal, callback = function(newVal) State.Set("player_jumppower_value", newVal) JumpPower._currentPower = newVal if State.Get("player_jumppower_enabled") then local hum = getHumanoid(LocalPlayer.Character) if hum then hum.JumpPower = newVal end end end, }) end Player.JumpPower = JumpPower local Reset = { name = "Reset Character", category = "player" } function Reset.onEnable() local hum = getHumanoid(LocalPlayer.Character) if hum then hum.Health = 0; return end local char = LocalPlayer.Character if char then local head = char:FindFirstChild("Head") if head and head:IsA("BasePart") then head:Destroy() end end end function Reset.build(tab) tab:CreateButton({ name = "Reset Character", callback = function() Reset.onEnable() end }) end Player.Reset = Reset local Respawn = { name = "Respawn", category = "player" } function Respawn.onEnable() local hum = getHumanoid(LocalPlayer.Character) if hum then hum.Health = 0; return end local ok = pcall(function() LocalPlayer:LoadCharacter() end) if not ok then warn("[Player] Respawn failed") end end function Respawn.build(tab) tab:CreateButton({ name = "Respawn", callback = function() Respawn.onEnable() end }) end Player.Respawn = Respawn function Player.Init() if not Modules then warn("[Player] Core.Modules not available"); return end game:GetService("Players").PlayerRemoving:Connect(function(player) if player == LocalPlayer then for moduleName, _ in pairs(moduleConnections) do cleanupModuleConnections(moduleName) end end end) Modules.Register("player", GodMode) Modules.Register("player", Invisible) Modules.Register("player", NoSit) Modules.Register("player", JumpPower) Modules.Register("player", Reset) Modules.Register("player", Respawn) end Player.Init() return Player ]==]) Vokthos.Modules.Loaded.visuals = loadModule("visuals", [==[ local IESP = { name = "Visuals", stateKey = "visuals_enabled" } local Services = { Players = game:GetService("Players"), RunService = game:GetService("RunService"), Workspace = game:GetService("Workspace"), UserInputService = game:GetService("UserInputService"), } local LocalPlayer = Services.Players.LocalPlayer local State = _G.Vokthos and _G.Vokthos.State or { Get = function(k, d) return d end, Set = function() end } local Config = { Enabled = false, TeamCheck = true, MaxDistance = 1000, BoxEnabled = true, BoxColor = Color3.fromRGB(255, 255, 255), BoxOutline = true, BoxOutlineColor = Color3.fromRGB(0, 0, 0), BoxThickness = 1, TracerEnabled = true, TracerColor = Color3.fromRGB(255, 255, 255), TracerThickness = 1, TracerOrigin = "Bottom", TracerTransparency = 0.5, NameEnabled = true, NameColor = Color3.fromRGB(255, 255, 255), NameSize = 14, NameFont = (Drawing and Drawing.Fonts and Drawing.Fonts.UI) or 0, HealthBarEnabled = true, HealthBarColor = Color3.fromRGB(0, 255, 0), HealthBarOutline = true, HeadDotEnabled = false, HeadDotColor = Color3.fromRGB(255, 255, 255), HeadDotSize = 4, FadeDistance = 500, MinTransparency = 0.3, } do local saved = State.Get("visuals_config") if type(saved) == "table" then for k, v in pairs(saved) do Config[k] = v end end State.Set("visuals_config", Config) end local DrawingNew = Drawing and Drawing.new local function SafeDrawing(t, props) if not DrawingNew then return nil end local s, obj = pcall(DrawingNew, t) if not s or not obj then warn("[IESP] Drawing API no disponible"); return nil end if props then for k, v in pairs(props) do pcall(function() obj[k] = v end) end end return obj end local function getCamera() return Services.Workspace.CurrentCamera end local function IsTeammate(player) if not Config.TeamCheck then return false end if not LocalPlayer.Team then return false end return player.Team == LocalPlayer.Team end local function WorldToScreen(pos) local cam = getCamera() if not cam then return Vector2.zero, false, 0 end local screenPos, onScreen = cam:WorldToViewportPoint(pos) return Vector2.new(screenPos.X, screenPos.Y), onScreen, screenPos.Z end local function GetRoot(character) return character and (character:FindFirstChild("HumanoidRootPart") or character:FindFirstChild("Torso")) end local function GetHead(character) return character and character:FindFirstChild("Head") end local function GetHumanoid(character) return character and character:FindFirstChildOfClass("Humanoid") end local function CalculateTransparency(distance) if distance > Config.FadeDistance then return Config.MinTransparency end local factor = distance / Config.FadeDistance return 1 - (factor * (1 - Config.MinTransparency)) end local ESPObject = {} ESPObject.__index = ESPObject function ESPObject.new(player) local self = setmetatable({}, ESPObject) self.Player = player self.Character = nil self.Root = nil self.Head = nil self.Humanoid = nil self.Distance = 0 self.ScreenPos = Vector2.zero self.OnScreen = false self.Size = Vector2.zero self.Transparency = 1 self.Drawings = {} self:CreateDrawings() self:UpdateCharacter() return self end function ESPObject:CreateDrawings() self.Drawings.Box = SafeDrawing("Square", {Thickness = Config.BoxThickness, Color = Config.BoxColor, Filled = false, Visible = false, ZIndex = 2}) self.Drawings.BoxOutline = SafeDrawing("Square", {Thickness = Config.BoxThickness + 2, Color = Config.BoxOutlineColor, Filled = false, Visible = false, ZIndex = 1}) self.Drawings.Tracer = SafeDrawing("Line", {Thickness = Config.TracerThickness, Color = Config.TracerColor, Transparency = Config.TracerTransparency, Visible = false, ZIndex = 2}) self.Drawings.TracerOutline = SafeDrawing("Line", {Thickness = Config.TracerThickness + 2, Color = Color3.new(0, 0, 0), Transparency = Config.TracerTransparency, Visible = false, ZIndex = 1}) self.Drawings.Name = SafeDrawing("Text", {Text = "", Size = Config.NameSize, Font = Config.NameFont, Color = Config.NameColor, Outline = true, OutlineColor = Color3.new(0, 0, 0), Center = true, Visible = false, ZIndex = 3}) self.Drawings.HealthBarOutline = SafeDrawing("Square", {Thickness = 1, Color = Color3.new(0, 0, 0), Filled = true, Visible = false, ZIndex = 1}) self.Drawings.HealthBar = SafeDrawing("Square", {Thickness = 1, Color = Config.HealthBarColor, Filled = true, Visible = false, ZIndex = 2}) self.Drawings.HeadDot = SafeDrawing("Circle", {Radius = Config.HeadDotSize, Color = Config.HeadDotColor, Filled = true, Visible = false, ZIndex = 2}) end function ESPObject:UpdateCharacter() self.Character = self.Player.Character self.Root = GetRoot(self.Character) self.Head = GetHead(self.Character) self.Humanoid = GetHumanoid(self.Character) end function ESPObject:Update(localPos) if not self.Player or not self.Player.Parent then self:SetVisible(false); return false end if IsTeammate(self.Player) then self:SetVisible(false); return true end if not self.Character or not self.Character.Parent then self:UpdateCharacter() end if not self.Root or not self.Root.Parent then self:SetVisible(false); return true end local rootPos = self.Root.Position local screenPos, onScreen, depth = WorldToScreen(rootPos) self.ScreenPos = screenPos self.OnScreen = onScreen and depth > 0 if not self.OnScreen then self:SetVisible(false); return true end if localPos then self.Distance = (localPos - rootPos).Magnitude end if self.Distance > Config.MaxDistance then self:SetVisible(false); return true end self.Transparency = CalculateTransparency(self.Distance) local headScreen = self.Head and WorldToScreen(self.Head.Position) or nil self._headScreen = headScreen if self.Head and headScreen then local height = math.abs(screenPos.Y - headScreen.Y) self.Size = Vector2.new(height * 0.6, height) else self.Size = Vector2.new(50, 80) * (1000 / math.max(self.Distance, 100)) end self:UpdateBox() self:UpdateTracer() self:UpdateName() self:UpdateHealthBar() self:UpdateHeadDot() return true end function ESPObject:UpdateBox() local box = self.Drawings.Box if not box then return end if not Config.BoxEnabled then box.Visible = false if self.Drawings.BoxOutline then self.Drawings.BoxOutline.Visible = false end return end local pos = self.ScreenPos - self.Size / 2 box.Size = self.Size; box.Position = pos; box.Transparency = self.Transparency; box.Visible = true local outline = self.Drawings.BoxOutline if outline then if Config.BoxOutline then outline.Size = self.Size; outline.Position = pos outline.Transparency = self.Transparency; outline.Visible = true else outline.Visible = false end end end function ESPObject:UpdateTracer() local tracer = self.Drawings.Tracer if not tracer then return end if not Config.TracerEnabled then tracer.Visible = false if self.Drawings.TracerOutline then self.Drawings.TracerOutline.Visible = false end return end local cam = getCamera() if not cam then return end local origin if Config.TracerOrigin == "Center" then origin = Vector2.new(cam.ViewportSize.X / 2, cam.ViewportSize.Y / 2) elseif Config.TracerOrigin == "Mouse" then origin = Services.UserInputService:GetMouseLocation() else origin = Vector2.new(cam.ViewportSize.X / 2, cam.ViewportSize.Y) end self.Drawings.Tracer.From = origin; self.Drawings.Tracer.To = self.ScreenPos; self.Drawings.Tracer.Transparency = self.Transparency; self.Drawings.Tracer.Visible = true local outline = self.Drawings.TracerOutline if outline then outline.From = origin; outline.To = self.ScreenPos; outline.Transparency = self.Transparency; outline.Visible = true end end function ESPObject:UpdateName() if not self.Drawings.Name then return end if not Config.NameEnabled then self.Drawings.Name.Visible = false; return end local displayText = self.Player.Name if self.Distance > 0 then displayText = displayText .. string.format(" [%dm]", math.floor(self.Distance)) end if self.Humanoid then displayText = displayText .. string.format(" [%dHP]", math.floor(self.Humanoid.Health)) end self.Drawings.Name.Text = displayText self.Drawings.Name.Position = Vector2.new(self.ScreenPos.X, self.ScreenPos.Y - self.Size.Y / 2 - 15) self.Drawings.Name.Transparency = self.Transparency self.Drawings.Name.Visible = true end function ESPObject:UpdateHealthBar() if not self.Drawings.HealthBar or not self.Humanoid then return end if not Config.HealthBarEnabled then self.Drawings.HealthBar.Visible = false if self.Drawings.HealthBarOutline then self.Drawings.HealthBarOutline.Visible = false end return end local healthPercent = math.clamp(self.Humanoid.Health / self.Humanoid.MaxHealth, 0, 1) local barWidth = 4 local barHeight = self.Size.Y local barPos = Vector2.new(self.ScreenPos.X - self.Size.X / 2 - 8, self.ScreenPos.Y - self.Size.Y / 2) local outline = self.Drawings.HealthBarOutline if outline then outline.Size = Vector2.new(barWidth, barHeight); outline.Position = barPos; outline.Transparency = self.Transparency; outline.Visible = true end local bar = self.Drawings.HealthBar bar.Size = Vector2.new(barWidth, barHeight * healthPercent) bar.Position = Vector2.new(barPos.X, barPos.Y + barHeight * (1 - healthPercent)) bar.Color = Color3.fromRGB(255 * (1 - healthPercent), 255 * healthPercent, 0) bar.Transparency = self.Transparency bar.Visible = true end function ESPObject:UpdateHeadDot() if not self.Drawings.HeadDot or not self.Head then return end if not Config.HeadDotEnabled then self.Drawings.HeadDot.Visible = false; return end local headScreen = self._headScreen or WorldToScreen(self.Head.Position) self.Drawings.HeadDot.Position = headScreen; self.Drawings.HeadDot.Transparency = self.Transparency; self.Drawings.HeadDot.Visible = true end function ESPObject:SetVisible(visible) for _, drawing in pairs(self.Drawings) do if drawing then drawing.Visible = visible end end end function ESPObject:Destroy() self:SetVisible(false) for _, drawing in pairs(self.Drawings) do if drawing then pcall(function() drawing:Remove() end) end end self.Drawings = {} end local IESPSystem = { Objects = {}, Connection = nil, Running = false, _connAdded = nil, _connRemoved = nil } function IESPSystem:Init() if self.Running then return end for _, player in ipairs(Services.Players:GetPlayers()) do if player ~= LocalPlayer then self:AddPlayer(player) end end self._connAdded = Services.Players.PlayerAdded:Connect(function(player) if player ~= LocalPlayer then self:AddPlayer(player) end end) self._connRemoved = Services.Players.PlayerRemoving:Connect(function(player) self:RemovePlayer(player) end) self.Connection = Services.RunService.RenderStepped:Connect(function() if not Config.Enabled then return end self:Update() end) self.Running = true end function IESPSystem:AddPlayer(player) if self.Objects[player] then return end self.Objects[player] = ESPObject.new(player) end function IESPSystem:RemovePlayer(player) local obj = self.Objects[player] if obj then obj:Destroy(); self.Objects[player] = nil end end local function UpdateOne(obj, pos) return obj:Update(pos) end function IESPSystem:Update() local localRoot = GetRoot(LocalPlayer.Character) local localPos = localRoot and localRoot.Position for player, obj in pairs(self.Objects) do local ok = pcall(UpdateOne, obj, localPos) if not ok then obj:Destroy() self.Objects[player] = ESPObject.new(player) end end end function IESPSystem:SetEnabled(enabled) Config.Enabled = enabled if enabled then self:Init() else self:Cleanup() end end function IESPSystem:Cleanup() if self.Connection then self.Connection:Disconnect(); self.Connection = nil end if self._connAdded then self._connAdded:Disconnect(); self._connAdded = nil end if self._connRemoved then self._connRemoved:Disconnect(); self._connRemoved = nil end for _, obj in pairs(self.Objects) do obj:Destroy() end self.Objects = {} self.Running = false end function IESP:Enable() IESPSystem:SetEnabled(true) end function IESP:Disable() IESPSystem:SetEnabled(false) end function IESP.onEnable() IESPSystem:SetEnabled(true) end function IESP.onDisable() IESPSystem:SetEnabled(false) end function IESP:Toggle() IESPSystem:SetEnabled(not Config.Enabled) end function IESP:IsEnabled() return Config.Enabled end function IESP:Cleanup() IESPSystem:Cleanup() end function IESP.build(tab) tab:CreateToggle({ name = "Enabled", flag = "visuals_enabled", value = Config.Enabled, callback = function(on) State.Set("visuals_enabled", on) IESPSystem:SetEnabled(on) end, }) tab:CreateToggle({ name = "Team Check", flag = "visuals_teamcheck", value = Config.TeamCheck, callback = function(v) Config.TeamCheck = v end, }) tab:CreateSlider({ name = "Max Distance", flag = "visuals_maxdistance", range = { 100, 5000 }, increment = 50, value = Config.MaxDistance, callback = function(v) Config.MaxDistance = v end, }) tab:CreateToggle({ name = "Box", flag = "visuals_box", value = Config.BoxEnabled, callback = function(v) Config.BoxEnabled = v end, }) tab:CreateToggle({ name = "Tracer", flag = "visuals_tracer", value = Config.TracerEnabled, callback = function(v) Config.TracerEnabled = v end, }) tab:CreateToggle({ name = "Name", flag = "visuals_name", value = Config.NameEnabled, callback = function(v) Config.NameEnabled = v end, }) tab:CreateToggle({ name = "Health Bar", flag = "visuals_health", value = Config.HealthBarEnabled, callback = function(v) Config.HealthBarEnabled = v end, }) tab:CreateToggle({ name = "Head Dot", flag = "visuals_headdot", value = Config.HeadDotEnabled, callback = function(v) Config.HeadDotEnabled = v end, }) end return IESP ]==]) Vokthos.Modules.Loaded.world = loadModule("world", [==[ local Vokthos = _G.Vokthos if not Vokthos then error("[World] Vokthos not loaded") end local State = Vokthos.State local SharedTicker = Vokthos.SharedTicker local Lighting = game:GetService("Lighting") local World = {} local DEFAULT_GRAVITY = 196.2 local _originalGravity = nil local function captureGravityOnce() if _originalGravity == nil then _originalGravity = workspace.Gravity end end local function combinedGravity() local base = (World.Gravity and World.Gravity._tickFn) and World.Gravity.value or (_originalGravity or DEFAULT_GRAVITY) local mult = (World.TimeScale and World.TimeScale._tickFn) and World.TimeScale.value or 1 return base * mult end local function createPhysicsModule(name, stateEnabled, stateValue, defaultValue, minVal, maxVal, applyFn, resetFn) local module = { name = name, category = "world", enabled = false, value = State.Get(stateValue, defaultValue), _tickFn = nil } function module.onEnable() if module._tickFn then return end captureGravityOnce() module._tickFn = function() if not State.Get(stateEnabled) then return end applyFn(module.value) end SharedTicker.Subscribe(module._tickFn) end function module.onDisable() if module._tickFn then SharedTicker.Unsubscribe(module._tickFn); module._tickFn = nil end resetFn() end function module.build(tab) local currentEnabled = State.Get(stateEnabled) or false tab:CreateToggle({ name = "Enabled", flag = stateEnabled, value = currentEnabled, callback = function(on) State.Set(stateEnabled, on) if on then module.onEnable() else module.onDisable() end end, }) tab:CreateSlider({ name = name, flag = stateValue, range = { minVal, maxVal }, increment = 0.1, value = module.value, callback = function(newValue) module.value = newValue State.Set(stateValue, newValue) end, }) end return module end local AntiVoid = { name = "AntiVoid", category = "world", enabled = false, _platform = nil, _touchedConn = nil } World.AntiVoid = AntiVoid function AntiVoid.onEnable() if AntiVoid._platform then return end local platform = Instance.new("Part") platform.Name = "AntiVoidPlatform" platform.Size = Vector3.new(10000, 1, 10000) platform.Position = Vector3.new(0, -500, 0) platform.Anchored = true platform.CanCollide = true platform.Transparency = 1 platform.Parent = workspace AntiVoid._platform = platform AntiVoid._touchedConn = platform.Touched:Connect(function(hit) local char = Vokthos.Utils.getChar() if not char then return end if hit:IsDescendantOf(char) then local hrp = Vokthos.Utils.getRoot(char) if hrp then local pos = platform.Position hrp.CFrame = CFrame.new(pos.X, pos.Y + 10, pos.Z) end end end) end function AntiVoid.onDisable() if AntiVoid._touchedConn then AntiVoid._touchedConn:Disconnect(); AntiVoid._touchedConn = nil end if AntiVoid._platform then AntiVoid._platform:Destroy(); AntiVoid._platform = nil end end function AntiVoid.build(tab) local current = State.Get("world_antivoid_enabled") or false tab:CreateToggle({ name = "Enabled", flag = "world_antivoid_enabled", value = current, callback = function(on) State.Set("world_antivoid_enabled", on) if on then AntiVoid.onEnable() else AntiVoid.onDisable() end end, }) end World.TimeScale = createPhysicsModule("TimeScale", "world_timescale_enabled", "world_timescale_value", 1, 0.1, 10, function(_val) workspace.Gravity = combinedGravity() end, function() workspace.Gravity = combinedGravity() end) World.Gravity = createPhysicsModule("Gravity", "world_gravity_enabled", "world_gravity_value", DEFAULT_GRAVITY, 0, 500, function(_val) workspace.Gravity = combinedGravity() end, function() workspace.Gravity = combinedGravity() end) local RemoveFog = { name = "RemoveFog", category = "world", enabled = false, _original = nil, _changedConn = nil } World.RemoveFog = RemoveFog function RemoveFog.onEnable() if RemoveFog._changedConn then return end RemoveFog._original = { FogColor = Lighting.FogColor, FogEnd = Lighting.FogEnd, FogStart = Lighting.FogStart } Lighting.FogColor = Color3.new(0, 0, 0) Lighting.FogEnd = 9e9 Lighting.FogStart = 9e9 RemoveFog._changedConn = Lighting.Changed:Connect(function(prop) if prop == "FogColor" then Lighting.FogColor = Color3.new(0, 0, 0) elseif prop == "FogEnd" then Lighting.FogEnd = 9e9 elseif prop == "FogStart" then Lighting.FogStart = 9e9 end end) end function RemoveFog.onDisable() if RemoveFog._changedConn then RemoveFog._changedConn:Disconnect(); RemoveFog._changedConn = nil end if RemoveFog._original then Lighting.FogColor = RemoveFog._original.FogColor Lighting.FogEnd = RemoveFog._original.FogEnd Lighting.FogStart = RemoveFog._original.FogStart RemoveFog._original = nil end end function RemoveFog.build(tab) local current = State.Get("world_removefog_enabled") or false tab:CreateToggle({ name = "Enabled", flag = "world_removefog_enabled", value = current, callback = function(on) State.Set("world_removefog_enabled", on) if on then RemoveFog.onEnable() else RemoveFog.onDisable() end end, }) end return World ]==]) Vokthos.Modules.Loaded.ringparts = loadModule("ringparts", [==[ local RingParts = {} local Players = game:GetService("Players") local RunService = game:GetService("RunService") local Workspace = game:GetService("Workspace") local SoundService = game:GetService("SoundService") local LocalPlayer = Players.LocalPlayer local Utils = shared.Utils or (_G.Vokthos and _G.Vokthos.Utils) local SharedTicker = shared.SharedTicker or (_G.Vokthos and _G.Vokthos.SharedTicker) local State = shared.State or (_G.Vokthos and _G.Vokthos.State) or { Get = function(k, d) return d end, Set = function() end } local DEFAULT = { radius = 50, height = 100, rotationSpeed = 1, attractionStrength = 1000 } RingParts.name = "Ring Parts" RingParts.category = "world" RingParts.stateKey = "world_ringparts_enabled" RingParts.enabled = false RingParts.radius = State.Get("ringparts_radius", DEFAULT.radius) RingParts.height = State.Get("ringparts_height", DEFAULT.height) RingParts.rotationSpeed = State.Get("ringparts_rotationspeed", DEFAULT.rotationSpeed) RingParts.attractionStrength = State.Get("ringparts_attraction", DEFAULT.attractionStrength) RingParts._parts = {} RingParts._originals = setmetatable({}, { __mode = "k" }) RingParts._tickFn = nil RingParts._conns = nil RingParts._sliderRadius = nil RingParts._sliderHeight = nil RingParts._sliderRot = nil RingParts._sliderStrength = nil local function guard(module) module._conns = module._conns or {} end local function track(module, event, callback) module._conns = module._conns or {} local conn = event:Connect(callback) table.insert(module._conns, conn) return conn end local function cleanup(module) if module._conns then for _, conn in ipairs(module._conns) do if typeof(conn) == "RBXScriptConnection" then pcall(function() conn:Disconnect() end) end end module._conns = {} end end local function playSound(id) pcall(function() local s = Instance.new("Sound") s.SoundId = "rbxassetid://" .. tostring(id) s.Parent = SoundService s:Play() s.Ended:Connect(function() s:Destroy() end) end) end -- SimulationRadius (una sola vez, se mantiene vivo como el original) local function ensureNetwork() local genv = (getgenv and getgenv()) or _G if genv.Network then return end genv.Network = { BaseParts = {}, Velocity = Vector3.new(14.46262424, 14.46262424, 14.46262424), } LocalPlayer.ReplicationFocus = Workspace RunService.Heartbeat:Connect(function() if sethiddenproperty then pcall(sethiddenproperty, LocalPlayer, "SimulationRadius", math.huge) end for _, part in pairs(genv.Network.BaseParts) do if part:IsDescendantOf(Workspace) then part.Velocity = genv.Network.Velocity end end end) end local function applyPhysics(part) if not RingParts._originals[part] then RingParts._originals[part] = { CustomPhysicalProperties = part.CustomPhysicalProperties, CanCollide = part.CanCollide } end pcall(function() part.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0) end) part.CanCollide = false end local function restorePhysics(part) local orig = RingParts._originals[part] if not orig then return end if part.Parent then if orig.CustomPhysicalProperties ~= nil then pcall(function() part.CustomPhysicalProperties = orig.CustomPhysicalProperties end) else pcall(function() part.CustomPhysicalProperties = nil end) end part.CanCollide = orig.CanCollide end RingParts._originals[part] = nil end local function isTrackable(part) if typeof(part) ~= "Instance" then return false end if not part:IsA("BasePart") then return false end if part.Anchored then return false end if not part:IsDescendantOf(Workspace) then return false end local char = Utils.getChar() if char and part:IsDescendantOf(char) then return false end return true end local RINGPARTS_CAP = 5000 -- BUG-018: cap para móvil local function addPart(part) if not isTrackable(part) then return end if #RingParts._parts >= RINGPARTS_CAP then return end if table.find(RingParts._parts, part) then return end table.insert(RingParts._parts, part) applyPhysics(part) end local function removePart(part) local i = table.find(RingParts._parts, part) if i then table.remove(RingParts._parts, i) end if not part.Parent then restorePhysics(part) end end local function tick() if not RingParts.enabled then return end local char = Utils.getChar() if not char then return end local hrp = char:FindFirstChild("HumanoidRootPart") if not hrp then return end local center = hrp.Position local radius = RingParts.radius local height = math.max(RingParts.height, 1) local rot = math.rad(RingParts.rotationSpeed) local strength = RingParts.attractionStrength for _, part in ipairs(RingParts._parts) do if part.Parent and not part.Anchored then local pos = part.Position local flatDist = (Vector3.new(pos.X, center.Y, pos.Z) - center).Magnitude local angle = math.atan2(pos.Z - center.Z, pos.X - center.X) local newAngle = angle + rot local targetPos = Vector3.new( center.X + math.cos(newAngle) * math.min(radius, flatDist), center.Y + (height * math.abs(math.sin((pos.Y - center.Y) / height))), center.Z + math.sin(newAngle) * math.min(radius, flatDist) ) local dir = targetPos - part.Position if dir.Magnitude > 0 then part.Velocity = dir.Unit * strength end end end end function RingParts.onEnable() if RingParts._tickFn then return true end guard(RingParts) ensureNetwork() -- BUG-019: solo al activar, no al cargar el módulo RingParts.enabled = true RingParts._parts = {} RingParts._originals = setmetatable({}, { __mode = "k" }) for _, part in ipairs(Workspace:GetDescendants()) do addPart(part) end track(RingParts, Workspace.DescendantAdded, addPart) track(RingParts, Workspace.DescendantRemoving, removePart) RingParts._tickFn = tick SharedTicker.subscribe("RingParts", RingParts._tickFn) playSound("12221967") return true end function RingParts.onDisable() if RingParts._tickFn then SharedTicker.unsubscribe("RingParts") RingParts._tickFn = nil end cleanup(RingParts) pcall(function() -- BUG-019: revertir ReplicationFocus al desactivar if LocalPlayer.ReplicationFocus == Workspace then LocalPlayer.ReplicationFocus = nil end end) for _, part in ipairs(RingParts._parts) do restorePhysics(part) end RingParts._parts = {} RingParts.enabled = false playSound("12221967") return true end function RingParts.build(tab) tab:CreateToggle({ name = "Enabled", flag = "world_ringparts_enabled", value = State.Get("world_ringparts_enabled") or false, callback = function(on) State.Set("world_ringparts_enabled", on) if on then RingParts.onEnable() else RingParts.onDisable() end end, }) RingParts._sliderRadius = tab:CreateSlider({ name = "Radius", flag = "ringparts_radius", range = { 1, 1000 }, increment = 1, value = RingParts.radius, callback = function(v) RingParts.radius = v; State.Set("ringparts_radius", v) end, }) RingParts._sliderHeight = tab:CreateSlider({ name = "Height", flag = "ringparts_height", range = { 1, 1000 }, increment = 1, value = RingParts.height, callback = function(v) RingParts.height = v; State.Set("ringparts_height", v) end, }) RingParts._sliderRot = tab:CreateSlider({ name = "Rotation Speed", flag = "ringparts_rotationspeed", range = { 0, 20 }, increment = 0.1, value = RingParts.rotationSpeed, callback = function(v) RingParts.rotationSpeed = v; State.Set("ringparts_rotationspeed", v) end, }) RingParts._sliderStrength = tab:CreateSlider({ name = "Attraction Strength", flag = "ringparts_attraction", range = { 100, 5000 }, increment = 10, value = RingParts.attractionStrength, callback = function(v) RingParts.attractionStrength = v; State.Set("ringparts_attraction", v) end, }) tab:CreateButton({ name = "Reset", callback = function() RingParts.radius = DEFAULT.radius RingParts.height = DEFAULT.height RingParts.rotationSpeed = DEFAULT.rotationSpeed RingParts.attractionStrength = DEFAULT.attractionStrength State.Set("ringparts_radius", DEFAULT.radius) State.Set("ringparts_height", DEFAULT.height) State.Set("ringparts_rotationspeed", DEFAULT.rotationSpeed) State.Set("ringparts_attraction", DEFAULT.attractionStrength) if RingParts._sliderRadius then RingParts._sliderRadius:Set(DEFAULT.radius, true) end if RingParts._sliderHeight then RingParts._sliderHeight:Set(DEFAULT.height, true) end if RingParts._sliderRot then RingParts._sliderRot:Set(DEFAULT.rotationSpeed, true) end if RingParts._sliderStrength then RingParts._sliderStrength:Set(DEFAULT.attractionStrength, true) end end, }) end return RingParts ]==]) Vokthos.Modules.Loaded.tools = loadModule("tools", [==[ local Vokthos = _G.Vokthos if not Vokthos then error("[Tools] Vokthos not loaded") end local Core = Vokthos local State = Core.State local Utils = Core.Utils local Modules = Core.Modules local Notifications = Core.Notifications local Commands = Core.Commands local protectGui = Core.protectGui local Players = game:GetService("Players") local LocalPlayer = Players.LocalPlayer local UserInputService = game:GetService("UserInputService") local CoreGui = game:GetService("CoreGui") local TeleportService = game:GetService("TeleportService") local Stats = game:GetService("Stats") local Tools = {} local function getParentUi() if gethui then local ok, ui = pcall(gethui) if ok and ui then return ui end end return CoreGui end local CONFIG = { CommandBar = { Width = 400, Height = 40, PositionY = -60, SuggestionHeight = 150, SuggestionOffset = -210, CornerRadius = 8, MaxHistory = 30 }, Colors = { Background = Color3.fromRGB(20, 20, 30), SuggestionBg = Color3.fromRGB(15, 15, 25), Stroke = Color3.fromRGB(100, 100, 255), Text = Color3.new(1, 1, 1) }, Teleport = { OffsetY = 3 }, } local ConnectionManager = {} ConnectionManager.__index = ConnectionManager function ConnectionManager.new() local self = setmetatable({}, ConnectionManager) self._connections = {} self._keys = {} return self end function ConnectionManager:track(connection, key) if typeof(connection) ~= "RBXScriptConnection" then return connection end if key then if self._keys[key] then self._keys[key]:Disconnect() end self._keys[key] = connection end table.insert(self._connections, connection) return connection end function ConnectionManager:disconnectAll() for key, conn in pairs(self._keys) do if conn and conn.Connected then conn:Disconnect() end self._keys[key] = nil end for i, conn in ipairs(self._connections) do if conn and conn.Connected then conn:Disconnect() end self._connections[i] = nil end self._connections = {} end local function toolToggle(tab, module, stateKey) module.stateKey = stateKey local current = State.Get(stateKey) or false tab:CreateToggle({ name = "Enabled", flag = stateKey, value = current, callback = function(on) State.Set(stateKey, on) if on then module.onEnable() else module.onDisable() end end, }) end local TPTool = { name = "TP Tool", category = "tools", enabled = false, _tool = nil, _conn = nil } function TPTool.onEnable() TPTool.onDisable() local tool = Instance.new("Tool") tool.Name = "TP Tool" tool.RequiresHandle = false tool.CanBeDropped = false TPTool._conn = tool.Activated:Connect(function() local char = Utils.getChar() if not char then Notifications.Warn("TP Tool", "Character not loaded"); return end local hrp = Utils.getRoot(char) if not hrp then Notifications.Warn("TP Tool", "HumanoidRootPart not found"); return end local mouse = LocalPlayer:GetMouse() local target = mouse.Target if not target then Notifications.Warn("TP Tool", "No valid target"); return end local pos = mouse.Hit.Position + Vector3.new(0, CONFIG.Teleport.OffsetY, 0) local currentCF = hrp.CFrame hrp.CFrame = CFrame.new(pos) * CFrame.Angles(0, math.atan2(currentCF.LookVector.X, currentCF.LookVector.Z), 0) Utils.breakVelocity(hrp) Notifications.Success("TP Tool", "Teleported") end) TPTool._tool = tool tool.Parent = LocalPlayer.Backpack end function TPTool.onDisable() if TPTool._conn then TPTool._conn:Disconnect(); TPTool._conn = nil end if TPTool._tool then TPTool._tool:Destroy(); TPTool._tool = nil end end function TPTool.build(tab) toolToggle(tab, TPTool, "tools_tptool_enabled") end Tools.TPTool = TPTool local Dex = { name = "Dex Explorer", category = "tools" } function Dex.onEnable() Notifications.Info("Dex Explorer", "Use external Dex for full features") end function Dex.build(tab) tab:CreateButton({ name = "Open Dex Explorer", callback = function() Dex.onEnable() end }) end Tools.Dex = Dex local BTools = { name = "BTools", category = "tools", enabled = false, _tools = {}, _connections = nil } function BTools.onEnable() BTools.onDisable() BTools._connections = ConnectionManager.new() local backpack = LocalPlayer.Backpack local mouse = LocalPlayer:GetMouse() local toolConfigs = { { name = "Hammer", callback = function() local target = mouse.Target if not target then Notifications.Warn("BTools", "No target selected"); return end if not target:IsA("BasePart") then Notifications.Warn("BTools", "Target is not a BasePart"); return end if not target:IsDescendantOf(workspace) then Notifications.Warn("BTools", "Can only delete workspace parts"); return end if target.Locked then Notifications.Warn("BTools", "Part is locked"); return end target:Destroy() Notifications.Success("BTools", "Part deleted") end }, { name = "Clone", callback = function() local target = mouse.Target if not target or not target:IsA("BasePart") then Notifications.Warn("BTools", "No valid target to clone"); return end local s, clone = pcall(function() return target:Clone() end) if s and clone then clone.Parent = workspace clone.CFrame = target.CFrame * CFrame.new(0, target.Size.Y + 1, 0) Notifications.Success("BTools", "Part cloned") else Notifications.Error("BTools", "Failed to clone") end end }, } for _, config in ipairs(toolConfigs) do local tool = Instance.new("Tool") tool.Name = config.name tool.RequiresHandle = false tool.CanBeDropped = false local conn = tool.Activated:Connect(function() local s, err = pcall(config.callback) if not s then Notifications.Error("BTools", config.name .. " error: " .. tostring(err)) end end) BTools._connections:track(conn, "tool_" .. config.name) tool.Parent = backpack BTools._tools[config.name] = tool end end function BTools.onDisable() if BTools._connections then BTools._connections:disconnectAll(); BTools._connections = nil end for _, tool in pairs(BTools._tools) do if tool then tool:Destroy() end end BTools._tools = {} end function BTools.build(tab) toolToggle(tab, BTools, "tools_btools_enabled") end Tools.BTools = BTools local CommandBar = { name = "Command Bar", category = "tools", enabled = false, _gui = nil, _history = {}, _historyIndex = 0, _connections = nil, _suggestionButtons = {} } function CommandBar.onEnable() CommandBar.onDisable() CommandBar._connections = ConnectionManager.new() CommandBar._history = {} CommandBar._historyIndex = 0 CommandBar._suggestionButtons = {} CommandBar._gui = Instance.new("ScreenGui") CommandBar._gui.Name = "CommandBar_" .. Utils.randomString(8) CommandBar._gui.ResetOnSpawn = false CommandBar._gui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling CommandBar._gui.Parent = getParentUi() protectGui(CommandBar._gui) local frame = Instance.new("Frame") frame.Name = "Main" frame.Size = UDim2.new(0, CONFIG.CommandBar.Width, 0, CONFIG.CommandBar.Height) frame.Position = UDim2.new(0.5, -CONFIG.CommandBar.Width/2, 1, CONFIG.CommandBar.PositionY) frame.BackgroundColor3 = CONFIG.Colors.Background frame.BackgroundTransparency = 0.1 frame.BorderSizePixel = 0 frame.Parent = CommandBar._gui local corner = Instance.new("UICorner") corner.CornerRadius = UDim.new(0, CONFIG.CommandBar.CornerRadius) corner.Parent = frame local stroke = Instance.new("UIStroke") stroke.Color = CONFIG.Colors.Stroke stroke.Thickness = 1 stroke.Transparency = 0.5 stroke.Parent = frame local textBox = Instance.new("TextBox") textBox.Name = "Input" textBox.Size = UDim2.new(1, -20, 1, -10) textBox.Position = UDim2.new(0, 10, 0, 5) textBox.BackgroundTransparency = 1 textBox.Text = "" textBox.PlaceholderText = "Command (prefix: ;) ..." textBox.TextColor3 = CONFIG.Colors.Text textBox.TextSize = 16 textBox.Font = Enum.Font.Gotham textBox.TextXAlignment = Enum.TextXAlignment.Left textBox.ClearTextOnFocus = false textBox.Parent = frame local suggestions = Instance.new("ScrollingFrame") suggestions.Name = "Suggestions" suggestions.Size = UDim2.new(0, CONFIG.CommandBar.Width, 0, CONFIG.CommandBar.SuggestionHeight) suggestions.Position = UDim2.new(0.5, -CONFIG.CommandBar.Width/2, 1, CONFIG.CommandBar.SuggestionOffset) suggestions.BackgroundColor3 = CONFIG.Colors.SuggestionBg suggestions.BackgroundTransparency = 0.05 suggestions.BorderSizePixel = 0 suggestions.Visible = false suggestions.ScrollBarThickness = 4 suggestions.AutomaticCanvasSize = Enum.AutomaticSize.Y suggestions.CanvasSize = UDim2.new(0, 0, 0, 0) suggestions.Parent = CommandBar._gui local suggCorner = Instance.new("UICorner") suggCorner.CornerRadius = UDim.new(0, 6) suggCorner.Parent = suggestions local listLayout = Instance.new("UIListLayout") listLayout.Padding = UDim.new(0, 2) listLayout.Parent = suggestions CommandBar._connections:track(textBox.Focused:Connect(function() suggestions.Visible = true end), "focused") CommandBar._connections:track(textBox.FocusLost:Connect(function(enterPressed) suggestions.Visible = false if enterPressed and textBox.Text ~= "" then local cmdText = textBox.Text if Commands and Commands.Execute then local s, err = pcall(function() Commands.Execute(cmdText) end) if not s then Notifications.Error("Command Bar", "Execution error: " .. tostring(err)) end end table.insert(CommandBar._history, 1, cmdText) if #CommandBar._history > CONFIG.CommandBar.MaxHistory then table.remove(CommandBar._history) end CommandBar._historyIndex = 0 textBox.Text = "" end end), "focusLost") local function clearSuggestions() for _, btnData in ipairs(CommandBar._suggestionButtons) do if btnData.connection then btnData.connection:Disconnect() end if btnData.button and btnData.button.Parent then btnData.button:Destroy() end end CommandBar._suggestionButtons = {} end CommandBar._connections:track(textBox:GetPropertyChangedSignal("Text"):Connect(function() local raw = textBox.Text local input = raw:lower():gsub("^;", ""):gsub("%s+$", "") clearSuggestions() if raw == "" or not Commands or not Commands.GetSuggestions then return end for _, cmd in ipairs(Commands.GetSuggestions(input) or {}) do local btn = Instance.new("TextButton") btn.Size = UDim2.new(1, -10, 0, 25) btn.BackgroundTransparency = 1 btn.Text = cmd btn.TextColor3 = CONFIG.Colors.Text btn.TextSize = 14 btn.Font = Enum.Font.Gotham btn.TextXAlignment = Enum.TextXAlignment.Left btn.Parent = suggestions local conn = btn.MouseButton1Click:Connect(function() textBox.Text = cmd .. " " textBox:CaptureFocus() end) table.insert(CommandBar._suggestionButtons, { button = btn, connection = conn }) end end), "textChanged") CommandBar._connections:track(UserInputService.InputBegan:Connect(function(input, gp) if not textBox:IsFocused() then return end if input.KeyCode == Enum.KeyCode.Up then CommandBar._historyIndex = math.min(CommandBar._historyIndex + 1, #CommandBar._history) if CommandBar._historyIndex > 0 then textBox.Text = CommandBar._history[CommandBar._historyIndex] textBox.CursorPosition = #textBox.Text + 1 end elseif input.KeyCode == Enum.KeyCode.Down then CommandBar._historyIndex = math.max(CommandBar._historyIndex - 1, 0) if CommandBar._historyIndex > 0 then textBox.Text = CommandBar._history[CommandBar._historyIndex] textBox.CursorPosition = #textBox.Text + 1 else textBox.Text = "" end elseif input.KeyCode == Enum.KeyCode.Tab then local sugg = Commands.GetSuggestions(textBox.Text:lower():gsub("^;", "")) if #sugg > 0 then table.sort(sugg) textBox.Text = sugg[1] .. " " textBox.CursorPosition = #textBox.Text + 1 end end end), "inputBegan") end function CommandBar.onDisable() if CommandBar._suggestionButtons then for _, btnData in ipairs(CommandBar._suggestionButtons) do if btnData.connection then btnData.connection:Disconnect() end if btnData.button then btnData.button:Destroy() end end CommandBar._suggestionButtons = {} end if CommandBar._connections then CommandBar._connections:disconnectAll(); CommandBar._connections = nil end if CommandBar._gui then CommandBar._gui:Destroy(); CommandBar._gui = nil end CommandBar._history = {} CommandBar._historyIndex = 0 end function CommandBar.build(tab) toolToggle(tab, CommandBar, "tools_commandbar_enabled") tab:CreateText({ name = "CommandBar", text = "Prefix: ; | Tab: autocomplete" }) tab:CreateButton({ name = "Test Command", callback = function() if Commands and Commands.Execute then Commands.Execute("speed 50") end end }) end Tools.CommandBar = CommandBar local ServerInfo = { name = "Server Info", category = "tools" } function ServerInfo.onEnable() local ping = 0 pcall(function() local perfStats = Stats:FindFirstChild("PerformanceStats") if perfStats then local pingStat = perfStats:FindFirstChild("Ping") if pingStat then ping = math.floor(pingStat:GetValue()) end end end) Notifications.Info("Server Info", string.format("JobId: %s | PlaceId: %s | Players: %d/%s | Ping: %dms", tostring(game.JobId), tostring(game.PlaceId), #Players:GetPlayers(), tostring(Players.MaxPlayers or "?"), ping)) end function ServerInfo.build(tab) tab:CreateButton({ name = "Show Server Info", callback = function() ServerInfo.onEnable() end }) end Tools.ServerInfo = ServerInfo local Rejoin = { name = "Rejoin", category = "tools" } function Rejoin.onEnable() local s, err = pcall(function() if TeleportService.TeleportAsync then TeleportService:TeleportAsync(game.PlaceId, {LocalPlayer}) else TeleportService:Teleport(game.PlaceId, LocalPlayer) end end) if not s then Notifications.Error("Rejoin", "Failed to teleport: " .. tostring(err)) end end function Rejoin.build(tab) tab:CreateButton({ name = "Rejoin Server", callback = function() Rejoin.onEnable() end }) end Tools.Rejoin = Rejoin function Tools.Init() if not Modules or not Modules.Register then error("[Tools] Core.Modules not available") end for _, module in ipairs({TPTool, Dex, BTools, CommandBar, ServerInfo, Rejoin}) do pcall(function() Modules.Register(module.category, module) end) end end Tools.Init() return Tools ]==]) Vokthos.Modules.Loaded.settings = loadModule("settings", [==[ local Vokthos = _G.Vokthos if not Vokthos then error("[Settings] Vokthos not loaded") end local Core = Vokthos local State = Core.State local Modules = Core.Modules local Notifications = Core.Notifications local Window = Core.Window local HttpService = game:GetService("HttpService") local Settings = {} local function safeSetClipboard(text, successMsg, failMsg) if typeof(setclipboard) == "function" then setclipboard(text) if successMsg then Notifications.Info("Settings", successMsg) end return true end if failMsg then Notifications.Warning("Settings", failMsg) end return false end local function isValidConfigName(name) if not name or name == "" then return false, "Name cannot be empty" end local trimmed = name:match("^%s*(.-)%s*$") if trimmed == "" then return false, "Name cannot be only spaces" end if trimmed ~= name then return false, "Name cannot have leading/trailing spaces" end if trimmed:match("[<>:\"|?*%%]") then return false, "Name contains invalid characters" end if #trimmed > 50 then return false, "Name too long (max 50 chars)" end return true, trimmed end local THEMES = { "Default", "Cobalt", "Ember", "Amethyst", "Frost", "Rose" } local function applyTheme(name) if Core.Window then Core.Window:ChangeTheme(name) end end local function getWindowFrame() local holder = (gethui and gethui()) or game:GetService("CoreGui") local gui = holder:FindFirstChild("Rayfield") if not gui then for _, g in ipairs(holder:GetChildren()) do if g:IsA("ScreenGui") and g:FindFirstChild("Main", true) then gui = g; break end end end return gui and gui:FindFirstChild("Main", true) end local function resetWindowFlag(key, value, label) State.Set(key, value) local frame = getWindowFrame() if frame then pcall(function() if key == "window_pos" then frame.Position = UDim2.new(0, value.x, 0, value.y) elseif key == "window_size" then frame.Size = UDim2.fromOffset(value.x, value.y) end end) end Notifications.Info("Settings", label) end local UISettings = { name = "UI Settings", category = "settings" } function UISettings.build(tab) local currentTheme = State.Get("ui_theme", "Amethyst") applyTheme(currentTheme) tab:CreateSection({ name = "Theme" }) tab:CreateDropdown({ name = "Theme", flag = "ui_theme", options = THEMES, value = currentTheme, callback = function(name) State.Set("ui_theme", name) applyTheme(name) end, }) tab:CreateSection({ name = "Notifications" }) local currentNotif = State.Get("ui_notifications", true) tab:CreateToggle({ name = "Enabled", flag = "ui_notifications", value = currentNotif, callback = function(on) State.Set("ui_notifications", on) end, }) local currentDuration = State.Get("ui_notificationDuration", 3) tab:CreateSlider({ name = "Duration", flag = "ui_notificationDuration", range = { 1, 10 }, increment = 0.1, value = currentDuration, suffix = "s", callback = function(v) State.Set("ui_notificationDuration", v) end, }) tab:CreateButton({ name = "Reset Window Position", callback = function() resetWindowFlag("window_pos", { x = 100, y = 100 }, "Window position reset") end }) tab:CreateButton({ name = "Reset Window Size", callback = function() resetWindowFlag("window_size", { x = 650, y = 520 }, "Window size reset") end }) end Settings.UISettings = UISettings local ConfigManager = { name = "Config Management", category = "settings" } function ConfigManager.build(tab) tab:CreateText({ name = "Current Config", text = (State.Get("config_name", "default")) }) tab:CreateDivider() local configs = {} if Window and Window.ListConfigs then local ok, list = pcall(function() return Window:ListConfigs() end) if ok and type(list) == "table" then configs = list end end if #configs == 0 then configs = { "default" } end tab:CreateDropdown({ name = "Load Config", options = configs, value = State.Get("config_name", "default"), callback = function(name) local loadOk = pcall(function() Window:Load(name) end) if loadOk then State.Set("config_name", name) Notifications.Success("Config", "Loaded: " .. name) else Notifications.Error("Config", "Failed to load: " .. name) end end, }) local nameInput nameInput = tab:CreateInput({ name = "Save As", value = State.Get("config_newName", ""), placeholder = "Config name", callback = function(text) State.Set("config_newName", text) end, }) tab:CreateButton({ name = "Save", callback = function() local valid, result = isValidConfigName(State.Get("config_newName", "")) if not valid then Notifications.Error("Config", result) else local saveOk = pcall(function() return Window:Save(result) end) if saveOk then State.Set("config_name", result) State.Set("config_newName", "") if nameInput then nameInput:Set("", true) end Notifications.Success("Config", "Saved as: " .. result) else Notifications.Error("Config", "Failed to save") end end end, }) tab:CreateDivider() for _, name in ipairs(configs) do if name ~= "default" and name ~= "config" then tab:CreateButton({ name = "Delete: " .. name, callback = function() local delOk = pcall(function() return Window:DeleteConfig(name) end) if delOk then if name == State.Get("config_name", "default") then State.Set("config_name", "default") end Notifications.Success("Config", "Deleted: " .. name) else Notifications.Error("Config", "Failed to delete: " .. name) end end, }) end end tab:CreateDivider() tab:CreateButton({ name = "Export to Clipboard", callback = function() local data = { version = 3, metadata = { name = State.Get("config_name", "default"), created = os.date("!%Y-%m-%dT%H:%M:%SZ"), exported_from = "Vokthos NXx Hub" }, flags = Window and Window.Flags or {}, modules = State.GetAll(), } local jsonOk, json = pcall(HttpService.JSONEncode, HttpService, data) if jsonOk then safeSetClipboard(json, "Exported to clipboard", "Clipboard not available") else Notifications.Error("Config", "Failed to encode config") end end, }) tab:CreateButton({ name = "Import from Clipboard", callback = function() if typeof(getclipboard) ~= "function" then Notifications.Error("Config", "Clipboard not supported"); return end local jsonOk, json = pcall(getclipboard) if not jsonOk or not json or json == "" then Notifications.Error("Config", "Clipboard is empty or inaccessible"); return end local decodeOk, data = pcall(function() return HttpService:JSONDecode(json) end) if not decodeOk or not data or type(data) ~= "table" or not data.modules then Notifications.Error("Config", "Invalid config structure"); return end local importOk = pcall(function() if data.flags and Window and Window.Set then for k, v in pairs(data.flags) do pcall(Window.Set, Window, k, v) end end State.LoadFromTable(data.modules) end) if importOk then if Modules and Modules.Reapply then pcall(Modules.Reapply) end Notifications.Success("Config", "Imported successfully") else Notifications.Error("Config", "Import failed") end end, }) tab:CreateDivider() tab:CreateButton({ name = "Save Current", callback = function() local saveOk = pcall(function() return Window:Save() end) if saveOk then Notifications.Success("Config", "Saved") else Notifications.Error("Config", "Failed to save") end end, }) end Settings.ConfigManager = ConfigManager local About = { name = "About", category = "settings" } function About.build(tab) tab:CreateText({ name = "Vokthos NXx Hub - Gen2 Edition", text = "Version: 2.2.0" }) tab:CreateText({ name = "About", text = "UI Framework: Rayfield Gen2 (Sirius)" }) tab:CreateDivider() tab:CreateButton({ name = "Discord", callback = function() safeSetClipboard("https://discord.gg/zzjYhtMGFD", "Discord link copied", "Clipboard not available") end }) tab:CreateButton({ name = "Rayfield Gen2 Docs", callback = function() safeSetClipboard("https://docs.sirius.menu/rayfield-gen2", "Docs link copied", "Clipboard not available") end }) end Settings.About = About -- ==== Floating Button (toggle del menú con un toque) ==== local UserInputService = game:GetService("UserInputService") local FloatingButton = { name = "Floating Button", category = "settings", stateKey = "ui_floatingbutton", enabled = false, _gui = nil, _btn = nil, _conns = nil, _dragging = false, _moved = false, } local function fbHolder() if gethui then local ok, ui = pcall(gethui) if ok and ui then return ui end end return game:GetService("CoreGui") end function FloatingButton.onEnable() if FloatingButton._gui then return true end local sg = Instance.new("ScreenGui") sg.Name = "VokthosFloatingButton" sg.ResetOnSpawn = false sg.ZIndexBehavior = Enum.ZIndexBehavior.Sibling sg.DisplayOrder = 1000000 sg.Parent = fbHolder() Core.protectGui(sg) -- <-- Core, NO protectGui() global FloatingButton._gui = sg local btn = Instance.new("TextButton") btn.Size = UDim2.fromOffset(46, 46) btn.Position = UDim2.fromOffset(State.Get("fb_x", 18), State.Get("fb_y", 160)) btn.Text = "V" btn.TextSize = 22 btn.Font = Enum.Font.GothamBold btn.TextColor3 = Color3.new(1, 1, 1) btn.BackgroundColor3 = Color3.fromRGB(45, 32, 80) btn.BackgroundTransparency = 0.15 btn.BorderSizePixel = 0 btn.Active = true btn.Parent = sg local corner = Instance.new("UICorner"); corner.CornerRadius = UDim.new(1, 0); corner.Parent = btn local stroke = Instance.new("UIStroke") stroke.Color = Color3.fromRGB(160, 130, 255); stroke.Thickness = 1.5; stroke.Transparency = 0.3 stroke.Parent = btn FloatingButton._btn = btn local dragStart, startPos FloatingButton._conns = {} local function track(c) table.insert(FloatingButton._conns, c) end track(btn.InputBegan:Connect(function(input) if input.UserInputType == Enum.UserInputType.Touch or input.UserInputType == Enum.UserInputType.MouseButton1 then FloatingButton._dragging = true; FloatingButton._moved = false dragStart = input.Position; startPos = btn.Position end end)) track(UserInputService.InputChanged:Connect(function(input) if not FloatingButton._dragging then return end if input.UserInputType ~= Enum.UserInputType.Touch and input.UserInputType ~= Enum.UserInputType.MouseMovement then return end local delta = input.Position - dragStart if delta.Magnitude > 6 then FloatingButton._moved = true end btn.Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y) end)) track(btn.InputEnded:Connect(function(input) if input.UserInputType ~= Enum.UserInputType.Touch and input.UserInputType ~= Enum.UserInputType.MouseButton1 then return end FloatingButton._dragging = false if not FloatingButton._moved then if Window and Window.ToggleHide then pcall(function() Window:ToggleHide() end) end else State.Set("fb_x", math.floor(btn.Position.X.Offset)) State.Set("fb_y", math.floor(btn.Position.Y.Offset)) end end)) return true end function FloatingButton.onDisable() if FloatingButton._conns then for _, c in ipairs(FloatingButton._conns) do pcall(function() c:Disconnect() end) end FloatingButton._conns = nil end if FloatingButton._gui then FloatingButton._gui:Destroy(); FloatingButton._gui = nil end FloatingButton._btn = nil return true end function FloatingButton.build(tab) tab:CreateToggle({ name = "Floating Button (toggle menú)", flag = "ui_floatingbutton", value = State.Get("ui_floatingbutton", false), callback = function(on) State.Set("ui_floatingbutton", on) if on then FloatingButton.onEnable() else FloatingButton.onDisable() end end, }) end Settings.FloatingButton = FloatingButton function Settings.Init() if not Modules then warn("[Settings] Core.Modules not available"); return end Modules.Register("settings", UISettings) Modules.Register("settings", ConfigManager) Modules.Register("settings", About) Modules.Register("settings", FloatingButton) end Settings.Init() return Settings ]==]) Vokthos.UI = loadModule("ui", [==[ local UI = {} UI.WindowOpen = true local Tabs = { {id = "movement", name = "Movement"}, {id = "combat", name = "Combat"}, {id = "evasion", name = "Evasion"}, {id = "visuals", name = "Visuals"}, {id = "player", name = "Player"}, {id = "world", name = "World"}, {id = "tools", name = "Tools"}, {id = "settings", name = "Settings"}, } function UI.Build(Core) local Window = Core.Window if not Window then return end local Modules = Core.Modules for _, def in ipairs(Tabs) do local tab = Window:CreateTab({ name = def.name }) local modules = Modules.GetByCategory(def.id) if #modules == 0 then tab:CreateText({ name = "Empty", text = "No modules available" }) else for _, module in ipairs(modules) do if module.name and module.build then tab:CreateSection({ name = module.name }) local ok, err = pcall(module.build, tab) if not ok then tab:CreateText({ name = "Error", text = "Error: " .. tostring(err) }) end end end end end end return UI ]==]) local State = Core.State local Modules = Core.Modules local loadedCount = 0 for name, mod in pairs(Modules.Loaded) do if mod then loadedCount += 1 print("[Vokthos] Loaded: " .. name) else warn("[Vokthos] Failed: " .. name) end end if Modules.Reapply then pcall(Modules.Reapply) end if Core.UI and Core.Window then local ok, err = pcall(function() Core.UI.Build(Core) end) if ok then print("[Vokthos] UI built") else warn("[Vokthos] UI build error: " .. tostring(err)) end else warn("[Vokthos] UI or Window not available") end State.Set("ui_open", true) print("[Vokthos] Ready. Modules: " .. loadedCount) do local _hub = Vokthos.Modules.Loaded.hub if _hub and _hub.startCanary then pcall(function() _hub.startCanary() end) end if Core.Dispose and Core.Dispose.add then Core.Dispose.add(function() local hub = (getgenv and getgenv() or _G).VokthosHub if hub and hub.uninstall then pcall(hub.uninstall) end end) end end