local lib = getgenv().Library local cfg = Configuration local out = {} local silent = lib.Registry["Enable Silent Aim"] local aimlock = lib.Registry["Enable Aim Lock"] local mode = lib.Registry["Aim Mode"] -- arm both, then switch mode: the other must drop silent.Set(true); aimlock.Set(true); task.wait(0.15) table.insert(out, "both armed -> silent=" .. tostring(cfg.SilentAimRelated["Silent Aim Enabled"]) .. " aimlock=" .. tostring(cfg.SilentAimRelated["Aim Lock Enabled"])) mode.Set("Silent Aim"); task.wait(0.2) table.insert(out, "mode Silent Aim -> silent=" .. tostring(cfg.SilentAimRelated["Silent Aim Enabled"]) .. " (ui " .. tostring(silent.Get()) .. ") aimlock=" .. tostring(cfg.SilentAimRelated["Aim Lock Enabled"]) .. " (ui " .. tostring(aimlock.Get()) .. ")") silent.Set(true); aimlock.Set(true); task.wait(0.15) mode.Set("Aim Lock"); task.wait(0.2) table.insert(out, "mode Aim Lock -> silent=" .. tostring(cfg.SilentAimRelated["Silent Aim Enabled"]) .. " (ui " .. tostring(silent.Get()) .. ") aimlock=" .. tostring(cfg.SilentAimRelated["Aim Lock Enabled"]) .. " (ui " .. tostring(aimlock.Get()) .. ") held=" .. tostring(cfg.SilentAimRelated["Aim Lock Held"])) -- functional: with mode Silent Aim and aimlock armed, finding still happens for silent only local cam = workspace.CurrentCamera local old = cam.CameraType cam.CameraType = Enum.CameraType.Scriptable local target for _, p in ipairs(game:GetService("Players"):GetChildren()) do if p ~= game:GetService("Players").LocalPlayer and p.Character and p.Character:FindFirstChild("Head") and p.Character:FindFirstChild("HumanoidRootPart") then target = p end end local pos = target.Character.HumanoidRootPart.Position cam.CFrame = CFrame.lookAt(pos + Vector3.new(0, 3, 24), pos) task.wait(0.4) mode.Set("Silent Aim"); silent.Set(true); aimlock.Set(true); task.wait(0.5) table.insert(out, "silent mode: finder target = " .. tostring(cfg.TargetRelated["Current Target"] and cfg.TargetRelated["Current Target"].Name) .. ", aimlock enabled flag = " .. tostring(cfg.SilentAimRelated["Aim Lock Enabled"])) mode.Set("Aim Lock"); silent.Set(true); aimlock.Set(true); task.wait(0.5) table.insert(out, "aimlock mode: finder target = " .. tostring(cfg.TargetRelated["Current Target"] and cfg.TargetRelated["Current Target"].Name) .. ", silent enabled flag = " .. tostring(cfg.SilentAimRelated["Silent Aim Enabled"])) -- and with the active mode off, nothing is found if cfg.TargetRelated["Aim Mode"] == "Aim Lock" then aimlock.Set(false) else silent.Set(false) end task.wait(0.5) table.insert(out, "active mode off -> target cleared: " .. tostring(cfg.TargetRelated["Current Target"] == nil)) silent.Set(false); aimlock.Set(false); mode.Set("Silent Aim") cam.CameraType = old print("RESULTS: " .. table.concat(out, "\n"))