-- [[ 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 ReplicatedStorage = game:GetService("ReplicatedStorage") local RunService = game:GetService("RunService") local LocalPlayer = Players.LocalPlayer local Modules = ReplicatedStorage:WaitForChild("Modules") local GunController = require(Modules.Client.Controllers.GunController) local CameraPOV = require(Modules.Client.CameraPOV) local MercNpc = require(Modules.Shared.Mercs.MercNpc) local CONFIG = { InfiniteAmmo = true, SilentAim = true, HitPart = "Head", ESP = true, ESPColor = Color3.fromRGB(255, 60, 60), ESPFillTransparency = 1, ESPOutlineTransparency = 0, } if CONFIG.InfiniteAmmo then LocalPlayer:SetAttribute("InfiniteAmmo", true) LocalPlayer:GetAttributeChangedSignal("InfiniteAmmo"):Connect(function() if LocalPlayer:GetAttribute("InfiniteAmmo") ~= true then LocalPlayer:SetAttribute("InfiniteAmmo", true) end end) RunService.Heartbeat:Connect(function() local rounds = GunController._launcherRounds if rounds then if rounds.tube and rounds.tube < 1 then rounds.tube = 1 end if rounds.vest and rounds.vest < 99 then rounds.vest = 99 end end end) end local rigs = {} local rigSeen = {} local partCache = setmetatable({}, { __mode = "k" }) local cachedMercPlayers = nil local cachedPuppetFolder = nil local function isLocalRig(model) if model:GetAttribute("OwnerUserId") == LocalPlayer.UserId then return true end if LocalPlayer.Character and model == LocalPlayer.Character then return true end return false end local function isAlive(model) if not model or not model.Parent then return false end if model:GetAttribute("Dead") == true then return false end local hum = model:FindFirstChildOfClass("Humanoid") if hum and hum.Health <= 0 then return false end return true end local function getTargetPart(model) local cached = partCache[model] if cached and cached.Parent and cached:IsDescendantOf(model) then return cached end local part = model:FindFirstChild(CONFIG.HitPart, true) if part and part:IsA("BasePart") then partCache[model] = part return part end if model.PrimaryPart then partCache[model] = model.PrimaryPart return model.PrimaryPart end local fallback = model:FindFirstChildWhichIsA("BasePart", true) if fallback then partCache[model] = fallback end return fallback end local function addRig(model) if model and model:IsA("Model") and not rigSeen[model] and not isLocalRig(model) and isAlive(model) then rigSeen[model] = true table.insert(rigs, model) end end local function refreshRigs() table.clear(rigs) table.clear(rigSeen) if not cachedMercPlayers or not cachedMercPlayers.Parent then cachedMercPlayers = workspace:FindFirstChild("MercPlayers") end if cachedMercPlayers then for _, rig in cachedMercPlayers:GetChildren() do addRig(rig) end end if not cachedPuppetFolder or not cachedPuppetFolder.Parent then cachedPuppetFolder = workspace:FindFirstChild(MercNpc.PUPPET_FOLDER) end if cachedPuppetFolder then for _, npc in cachedPuppetFolder:GetChildren() do addRig(npc) end end for _, player in Players:GetPlayers() do if player ~= LocalPlayer and player.Character then addRig(player.Character) end end return rigs end local function getClosestTarget() local cam = workspace.CurrentCamera if not cam then return nil end local vp = cam.ViewportSize local cx = vp.X * 0.5 local cy = vp.Y * 0.5 local bestPart = nil local bestDist = math.huge for _, model in refreshRigs() do local part = getTargetPart(model) if part then local screenPos, onScreen = cam:WorldToViewportPoint(part.Position) if onScreen and screenPos.Z > 0 then local dx = screenPos.X - cx local dy = screenPos.Y - cy local dist = dx * dx + dy * dy if dist < bestDist then bestDist = dist bestPart = part end end end end return bestPart end local origGetFireDirectionUnspread = GunController.GetFireDirectionUnspread GunController.GetFireDirectionUnspread = function(self) if CONFIG.SilentAim and not self.IsPuppet then local muzzleCF = self:GetActiveProjectileMuzzleWorldCFrame() local origin = (muzzleCF and muzzleCF.Position) or CameraPOV.GetEyePosition() local targetPart = getClosestTarget() if targetPart then local delta = targetPart.Position - origin if delta.Magnitude > 0.001 then return delta.Unit end end end return origGetFireDirectionUnspread(self) end if CONFIG.ESP then local ok, coreGui = pcall(function() return game:GetService("CoreGui") end) local espParent = (ok and coreGui) or LocalPlayer:WaitForChild("PlayerGui") local espFolder = espParent:FindFirstChild("GlowESP") if not espFolder then espFolder = Instance.new("Folder") espFolder.Name = "GlowESP" espFolder.Parent = espParent end local activeHighlights = {} local hlPool = {} local espSeen = {} local toRelease = {} local function acquireHighlight(model) local hl = table.remove(hlPool) if not hl then hl = Instance.new("Highlight") hl.DepthMode = Enum.HighlightDepthMode.AlwaysOnTop hl.FillColor = CONFIG.ESPColor hl.FillTransparency = CONFIG.ESPFillTransparency hl.OutlineColor = CONFIG.ESPColor hl.OutlineTransparency = CONFIG.ESPOutlineTransparency hl.Parent = espFolder end hl.Adornee = model hl.Enabled = true activeHighlights[model] = hl end local function releaseHighlight(model) local hl = activeHighlights[model] if hl then hl.Enabled = false hl.Adornee = nil activeHighlights[model] = nil table.insert(hlPool, hl) end end RunService.Heartbeat:Connect(function() table.clear(espSeen) table.clear(toRelease) for _, model in refreshRigs() do espSeen[model] = true if not activeHighlights[model] then acquireHighlight(model) end end for model in activeHighlights do if not espSeen[model] then table.insert(toRelease, model) end end for i = 1, #toRelease do releaseHighlight(toRelease[i]) end end) end