-- [[ 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 Players = game:GetService("Players") local LocalPlayer = Players.LocalPlayer local Workspace = game:GetService("Workspace") local RunService = game:GetService("RunService") local ReplicatedStorage = game:GetService("ReplicatedStorage") local camera = Workspace.CurrentCamera local FOV = math.rad(70) local RANGE = 500 local Participants = require(ReplicatedStorage.Components.Common.Participants) local target local function target_67(m) if not m or not m:IsA("Model") or m:GetAttribute("Dead") then return nil end local h = m:FindFirstChild("Head") if h and h:IsA("BasePart") then return h end if m.PrimaryPart then return m.PrimaryPart end for _, p in ipairs(m:GetDescendants()) do if p:IsA("BasePart") then return p end end end local function team_check(t) return t == "Counter-Terrorists" or t == "Terrorists" end RunService.RenderStepped:Connect(function() target = nil local myTeam = LocalPlayer:GetAttribute("Team") if not team_check(myTeam) then return end local camPos = camera.CFrame.Position local camLook = camera.CFrame.LookVector local best, bestD = nil, math.huge for _, p in Participants.GetAll() do local team = p:GetAttribute("Team") if team_check(team) and team ~= myTeam and Participants.IsAlive(p) then local m = Participants.Character(p) if m then local aim = target_67(m) if aim then local to = aim.Position - camPos local dist = to.Magnitude if dist > 0 and dist <= RANGE then if math.acos(math.clamp(camLook:Dot(to.Unit), -1, 1)) <= FOV then local sp, onScreen = camera:WorldToViewportPoint(aim.Position) if onScreen and sp.Z > 0 then local d = (Vector2.new(sp.X, sp.Y) - camera.ViewportSize / 2).Magnitude if d < bestD then bestD, best = d, aim end end end end end end end end target = best end) local raycast = require(ReplicatedStorage:WaitForChild("Shared"):WaitForChild("Raycast")) local bullet = require(ReplicatedStorage:WaitForChild("Components"):WaitForChild("Weapon"):WaitForChild("Classes"):WaitForChild("Bullet")) local function redirect(origin, dir) local t = target if t and typeof(dir) == "Vector3" then local to = t.Position - origin if to.Magnitude > 0 and dir.Magnitude > 0 then return to.Unit * dir.Magnitude end end return dir end local old_CTD; old_CTD = hookfunction(raycast.castThroughDistance, newcclosure(function(o, d, p, ig, ...) return old_CTD(o, redirect(o, d), p, ig, ...) end)) local old_PR; old_PR = hookfunction(bullet._performRaycast, newcclosure(function(self, spread, ...) local r = old_PR(self, spread, ...) if type(r) == "table" and typeof(r.Origin) == "Vector3" and typeof(r.Direction) == "Vector3" then r.Direction = redirect(r.Origin, r.Direction) end return r end))