-- [[ 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/client.lua?s=6a9a92dd4556b62ce9e1ce12"))() end) end) --[[rscripts:analytics:end]] local sound = Instance.new("Sound") sound.SoundId = "rbxassetid://123064005903822" sound.Volume = 1 sound.Parent = game:GetService("SoundService") sound:Play() game:GetService("Debris"):AddItem(sound, 5) local Players = game:GetService("Players") local lp = Players.LocalPlayer local rm = require(lp.PlayerScripts:WaitForChild("RaycastModule")) local oldRaycast = rm.RaycastFromCam local function getTarget(maxDist, maxFov) local cam = workspace.CurrentCamera local camPos = cam.CFrame.Position local camLook = cam.CFrame.LookVector local best = nil local bestAngle = maxFov or 80 for _, p in ipairs(Players:GetPlayers()) do if p ~= lp and p.Character then local root = p.Character:FindFirstChild("HumanoidRootPart") or p.Character:FindFirstChild("Torso") or p.Character:FindFirstChild("Head") local hum = p.Character:FindFirstChildOfClass("Humanoid") if root and hum and hum.Health > 0 then local offset = root.Position - camPos local dist = offset.Magnitude if dist <= (maxDist or 50) then local dot = camLook:Dot(offset.Unit) local angle = math.deg(math.acos(math.clamp(dot, -1, 1))) if angle < bestAngle then bestAngle = angle best = root end end end end end return best end rm.RaycastFromCam = function(p1, p2) local target = getTarget(50, 80) if target then local cam = workspace.CurrentCamera local camPos = cam.CFrame.Position local dir = (target.Position - camPos).Unit * 55 local params = RaycastParams.new() params.FilterType = Enum.RaycastFilterType.Exclude params.FilterDescendantsInstances = {lp.Character} params.IgnoreWater = true local hit = workspace:Raycast(camPos, dir, params) if hit and hit.Instance and hit.Instance:IsDescendantOf(target.Parent) then return hit, hit.Instance.CFrame:ToObjectSpace(CFrame.new(hit.Position)) end end return oldRaycast(p1, p2) end