local lib = getgenv().Library local cfg = Configuration 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.6) print("== targeting with no keybind ==") cfg.SilentAimRelated["Silent Aim Enabled"] = true task.wait(0.4) print("silent aim only -> target:", tostring(cfg.TargetRelated["Current Target"] and cfg.TargetRelated["Current Target"].Name), "hitpart:", tostring(cfg.TargetRelated["Current Target Hitpart"] and cfg.TargetRelated["Current Target Hitpart"].Name)) cfg.SilentAimRelated["Silent Aim Enabled"] = false task.wait(0.4) print("all off -> target cleared:", tostring(cfg.TargetRelated["Current Target"] == nil)) cfg.SilentAimRelated["Aim Lock Enabled"] = true task.wait(0.4) print("aim lock only -> target:", tostring(cfg.TargetRelated["Current Target"] and cfg.TargetRelated["Current Target"].Name)) print("== camera aimlock ==") local before = cam.CFrame cfg.SilentAimRelated["Aim Lock Held"] = true task.wait(0.6) local after = cam.CFrame local _, y1 = before:ToOrientation() local _, y2 = after:ToOrientation() local function ang(a, b) local d = math.abs(a - b) % (2 * math.pi); return math.deg(d > math.pi and (2 * math.pi - d) or d) end print(string.format("view yaw moved: %.1f deg (%.1f -> %.1f) using type %s", ang(y1, y2), math.deg(y1), math.deg(y2), cfg.SilentAimRelated["Aim Lock Type"])) cfg.SilentAimRelated["Aim Lock Held"] = false cfg.SilentAimRelated["Aim Lock Enabled"] = false print("== camera aimlock points at the target ==") cfg.SilentAimRelated["Aim Lock Enabled"] = true cfg.SilentAimRelated["Aim Lock Held"] = true task.wait(1.2) local head = cfg.TargetRelated["Current Target Hitpart"] if head then local dir = (head.Position - cam.CFrame.Position).Unit local looking = cam.CFrame.LookVector local dot = looking:Dot(dir) print(string.format("look dot to hitpart: %.4f (1 = dead on)", dot)) end cfg.SilentAimRelated["Aim Lock Held"] = false cfg.SilentAimRelated["Aim Lock Enabled"] = false lib.Registry["Aim Lock Type"].Set("Camera") task.wait(0.1) print("menu type switch ->", cfg.SilentAimRelated["Aim Lock Type"]) lib.Registry["Aim Lock Type"].Set("Mouse") cam.CameraType = old