-- [[ Rscripts Risk Notice ]] -- This script is not verified by rscripts.net. Deal with caution. -- -- Stay safe: -- • Never log in on unofficial Roblox sites or lookalike domains. -- • Real Roblox links use roblox.com (check the .com ending). -- • Treat fake Roblox login / "claim reward" pages as phishing. -- [[ End Rscripts Risk Notice ]] local P = game:GetService("Players") local RS = game:GetService("ReplicatedStorage") local LP = P.LocalPlayer local CC = workspace.CurrentCamera local function Target() local best, bestDist = nil, math.huge local center = CC.ViewportSize / 2 for _, plr in pairs(P:GetPlayers()) do if plr == LP then continue end local char = plr.Character if not char then continue end local hum = char:FindFirstChild("Humanoid") local head = char:FindFirstChild("Head") if not hum or not head or hum.Health <= 0 then continue end if LP.Team and plr.Team and LP.Team == plr.Team then continue end local pos, onScreen = CC:WorldToViewportPoint(head.Position) if onScreen then local dist = (Vector2.new(pos.X, pos.Y) - center).Magnitude if dist < bestDist then bestDist = dist best = head end end end return best end local GF = require(RS:WaitForChild("Modules"):WaitForChild("GeneralFunctions")) local old = GF.cast GF.cast = function(ray, ignoreList) local target = Target() if target then local head = LP.Character and LP.Character:FindFirstChild("Head") if head then ray = Ray.new(head.Position, target.Position - head.Position) end end return old(ray, ignoreList) end