local a = game:GetService("Players") local b = game:GetService("RunService") local c = workspace.CurrentCamera local d = a.LocalPlayer local e = nil local function f() local g, h local i = c.ViewportSize local j = Vector2.new(i.X / 2, i.Y / 2) for _, k in pairs(a:GetPlayers()) do if k == d then continue end local l = k.Character if not l then continue end local m = l:FindFirstChild("Humanoid") if not m or m.Health <= 0 then continue end local n = l:FindFirstChild("Torso") or l:FindFirstChild("UpperTorso") or l:FindFirstChild("HumanoidRootPart") if n then local o = d.Character if o then local p = RaycastParams.new() p.FilterDescendantsInstances = {o, l} p.FilterType = Enum.RaycastFilterType.Exclude local q = c.CFrame.Position local r = (n.Position - q) local s = workspace:Raycast(q, r, p) if s and not s.Instance:IsDescendantOf(l) then continue end end local t, u = c:WorldToScreenPoint(n.Position) if u then local v = (j - Vector2.new(t.X, t.Y)).Magnitude if v <= (h or 1000) then g = n h = v end end end end return g end b.Heartbeat:Connect(function() local success, result = pcall(f) if success then e = result end end) local w w = hookmetamethod(game, "__namecall", newcclosure(function(...) local x, y = getnamecallmethod(), {...} local z = y[1] if z == workspace and not checkcaller() and x == "Raycast" then local aa = e if aa and aa.Parent then local ab = y[2] local ac = (aa.Position - ab).Unit * 1000 y[2], y[3] = ab, ac return w(unpack(y)) end end return w(...) end))