local plr = game.Players.LocalPlayer local cfg = Configuration local cam = workspace.CurrentCamera local UIS = game:GetService("UserInputService") 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) task.wait(0.3) local hp = cam:WorldToViewportPoint(target.Character.Head.Position) local start = UIS:GetMouseLocation() print(string.format("[test] mouse %.0f,%.0f | target at %.0f,%.0f | gap %.0f", start.X, start.Y, hp.X, hp.Y, (Vector2.new(start.X, start.Y) - Vector2.new(hp.X, hp.Y)).Magnitude)) 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 for i = 1, 8 do task.wait(0.25) local m = UIS:GetMouseLocation() local h = cam:WorldToViewportPoint(target.Character.Head.Position) print(string.format("[test] t=%.2fs gap=%.0f", i * 0.25, (Vector2.new(m.X, m.Y) - Vector2.new(h.X, h.Y)).Magnitude)) end cfg.SilentAimRelated["Aim Lock Held"] = false lib.Registry["Enable Aim Lock"].Set(false) lib.Registry["Aim Mode"].Set("Silent Aim") cam.CameraType = oldType