local plr = game.Players.LocalPlayer local cfg = Configuration local cam = workspace.CurrentCamera -- point the camera at somebody so a target exists local target for _, p in ipairs(game.Players:GetChildren()) do if p ~= plr and p.Character and p.Character:FindFirstChild("Head") then target = p end end if not target then print("no target") return end local oldType = cam.CameraType cam.CameraType = Enum.CameraType.Scriptable cam.CFrame = CFrame.lookAt(target.Character.HumanoidRootPart.Position + Vector3.new(0, 4, 22), target.Character.HumanoidRootPart.Position) -- record mouse deltas instead of moving the real mouse local deltas = {} local original = getgenv().mousemoverel getgenv().mousemoverel = function(dx, dy) if dx and dy then table.insert(deltas, math.sqrt(dx * dx + dy * dy)) end end local lib = getgenv().Library lib.Registry["Aim Mode"].Set("Aim Lock") lib.Registry["Aim Lock Type"].Set("Mouse") lib.Registry["Smoothness"].Set(10) lib.Registry["Enable Aim Lock"].Set(true) cfg.SilentAimRelated["Aim Lock Held"] = true task.wait(2) cfg.SilentAimRelated["Aim Lock Held"] = false lib.Registry["Enable Aim Lock"].Set(false) lib.Registry["Aim Mode"].Set("Silent Aim") getgenv().mousemoverel = original cam.CameraType = oldType local maxD, first, last, n = 0, nil, nil, #deltas for i, d in ipairs(deltas) do if d > maxD then maxD = d end if not first then first = d end last = d end print(string.format("RESULTS: moves=%d | first=%.0fpx max=%.0fpx last=%.1fpx | factor=%.2f", n, first or 0, maxD, last or 0, cfg.SilentAimRelated["Aim Lock Smoothness"]))