-- [[ 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 env = getgenv() if env._ColdWarCleanup then pcall(env._ColdWarCleanup) end local function getService(name) return cloneref(game:GetService(name)) end local Players = getService("Players") local Workspace = getService("Workspace") local RunService = getService("RunService") local UserInputService = getService("UserInputService") local ReplicatedStorage = getService("ReplicatedStorage") local StarterGui = getService("StarterGui") local LocalPlayer = Players.LocalPlayer local CharactersFolder = Workspace:WaitForChild("Characters", 10) local function notify(title, text) pcall(StarterGui.SetCore, StarterGui, "SendNotification", { Title = title, Text = text, Duration = 4 }) end local fails = {} if not CharactersFolder then fails[#fails + 1] = "ESP" end local pendingTasks = 3 local function finishTask() pendingTasks -= 1 if pendingTasks == 0 then if #fails == 0 then notify("ColdWar", "Loaded successfully!") else notify("ColdWar", "Failed: " .. table.concat(fails, ", ")) end end end local COLOR_VISIBLE = Color3.fromRGB(255, 255, 0) local COLOR_HIDDEN = Color3.fromRGB(255, 60, 60) local CHECK_INTERVAL = 0.08 local highlights = {} local highlightPool = {} local targetData = {} local dataPool = {} local charConnections = {} local globalConnections = {} local ignoreList = {} local rayParams = RaycastParams.new() rayParams.FilterType = Enum.RaycastFilterType.Exclude rayParams.IgnoreWater = true local espFolder = Instance.new("Folder") espFolder.Name = "PlayerGuiCache" espFolder.Parent = gethui() local function getTargetPart(character) return character:FindFirstChild("Head") or character:FindFirstChild("Torso") or character:FindFirstChild("HumanoidRootPart") end local function hookMethod(tbl, key, makeWrapper) local orig = tbl[key] if typeof(orig) ~= "function" then return false end local old old = hookfunction(orig, newcclosure(makeWrapper(function(...) return old(...) end))) return true end local function updateRayFilter() table.clear(ignoreList) local cam = Workspace.CurrentCamera if cam then ignoreList[#ignoreList + 1] = cam end if LocalPlayer.Character then ignoreList[#ignoreList + 1] = LocalPlayer.Character end local ignoreFolder = Workspace:FindFirstChild("Ignore") if ignoreFolder then ignoreList[#ignoreList + 1] = ignoreFolder end rayParams.FilterDescendantsInstances = ignoreList end updateRayFilter() globalConnections[#globalConnections + 1] = LocalPlayer.CharacterAdded:Connect(updateRayFilter) globalConnections[#globalConnections + 1] = Workspace:GetPropertyChangedSignal("CurrentCamera"):Connect(updateRayFilter) local function getBestTarget() local cam = Workspace.CurrentCamera if not cam then return nil end local mousePos = UserInputService:GetMouseLocation() local mouseX, mouseY = mousePos.X, mousePos.Y local bestVisiblePart = nil local shortestVisibleDistSq = math.huge local bestHiddenPart = nil local shortestHiddenDistSq = math.huge for _, data in targetData do local part = data.part if part and part.Parent then local screenPos, onScreen = cam:WorldToViewportPoint(part.Position) if onScreen and screenPos.Z > 0 then local dx = screenPos.X - mouseX local dy = screenPos.Y - mouseY local distSq = dx * dx + dy * dy if data.visible then if distSq < shortestVisibleDistSq then shortestVisibleDistSq = distSq bestVisiblePart = part end elseif distSq < shortestHiddenDistSq then shortestHiddenDistSq = distSq bestHiddenPart = part end end end end return bestVisiblePart or bestHiddenPart end task.spawn(function() local hooked = false local clientFolder = ReplicatedStorage:WaitForChild("Client", 10) local tools = clientFolder and clientFolder:WaitForChild("Tools", 10) local weapon = tools and tools:WaitForChild("Weapon", 10) local controllers = weapon and weapon:WaitForChild("controllers", 10) local recoilModule = controllers and controllers:WaitForChild("RecoilController", 10) if recoilModule then local ok, recoilController = pcall(require, recoilModule) if ok and typeof(recoilController) == "table" then hooked = hookMethod(recoilController, "rNDvKCHx7N", function() return function() end end) end end if not hooked then fails[#fails + 1] = "Recoil" end finishTask() end) task.spawn(function() local sharedFolder = ReplicatedStorage:WaitForChild("Shared", 10) if not sharedFolder then fails[#fails + 1] = "WeaponConfig" fails[#fails + 1] = "Trajectory" fails[#fails + 1] = "WeaponSource" finishTask() return end local weaponConfigFolder = sharedFolder:WaitForChild("WeaponConfigManager", 10) if weaponConfigFolder then local function patchConfig(mod) if not mod:IsA("ModuleScript") then return end local ok, data = pcall(require, mod) if not ok or typeof(data) ~= "table" then return end for _, muzzle in data do if typeof(muzzle) == "table" then muzzle.Spread = 0 if typeof(muzzle.BulletSettings) == "table" then for _, bSetting in muzzle.BulletSettings do if typeof(bSetting) == "table" then bSetting.MuzzleVelocity = 200000 bSetting.Drag = 0 bSetting.Spread = 0 end end end end end end for _, child in weaponConfigFolder:GetChildren() do patchConfig(child) end globalConnections[#globalConnections + 1] = weaponConfigFolder.ChildAdded:Connect(patchConfig) else fails[#fails + 1] = "WeaponConfig" end local ballisticsFolder = sharedFolder:WaitForChild("Ballistics", 10) if not ballisticsFolder then fails[#fails + 1] = "Trajectory" fails[#fails + 1] = "WeaponSource" finishTask() return end local trajHooked = false local trajectoryMod = ballisticsFolder:WaitForChild("Trajectory", 10) if trajectoryMod then local ok, Trajectory = pcall(require, trajectoryMod) if ok and typeof(Trajectory) == "table" then trajHooked = hookMethod(Trajectory, "new", function(orig) return function(p0) if p0 then p0.Gravity = 0 p0.K = 0 if p0.MuzzleSpeed and p0.MuzzleSpeed < 200000 then p0.MuzzleSpeed = 200000 end end return orig(p0) end end) end end if not trajHooked then fails[#fails + 1] = "Trajectory" end local sourceHooked = false local sourcesFolder = ballisticsFolder:WaitForChild("Sources", 10) local weaponSourceMod = sourcesFolder and sourcesFolder:WaitForChild("WeaponSource", 10) if weaponSourceMod then local ok, WeaponSource = pcall(require, weaponSourceMod) if ok and typeof(WeaponSource) == "table" then sourceHooked = hookMethod(WeaponSource, "toFireParams", function(orig) return function(p1) local res = orig(p1) if res then if res.Weapon then res.Weapon.MuzzleSpeed = 200000 res.Weapon.K = 0 res.Weapon.Gravity = 0 end res.Spread = 0 end return res end end) end end if not sourceHooked then fails[#fails + 1] = "WeaponSource" end finishTask() end) task.spawn(function() local hooked = false local playerScripts = LocalPlayer:WaitForChild("PlayerScripts", 10) local ballisticsClient = playerScripts and playerScripts:WaitForChild("BallisticsClient", 10) local clientFireMod = ballisticsClient and ballisticsClient:WaitForChild("ClientFire", 10) if clientFireMod then local ok, ClientFire = pcall(require, clientFireMod) if ok and typeof(ClientFire) == "table" then hooked = hookMethod(ClientFire, "sLnpiWe6Dt", function(orig) return function(tool, muzzleIndex, bulletIndex, origin, directionsArray, options) if typeof(directionsArray) == "table" and #directionsArray > 0 then local targetPart = getBestTarget() local aimDirection = directionsArray[1] if targetPart then local delta = targetPart.Position - origin if delta.Magnitude > 0.001 then aimDirection = delta.Unit end end for i = 1, #directionsArray do directionsArray[i] = aimDirection end end return orig(tool, muzzleIndex, bulletIndex, origin, directionsArray, options) end end) end end if not hooked then fails[#fails + 1] = "SilentAim" end finishTask() end) local function releaseHighlight(character) local hl = highlights[character] if hl then highlights[character] = nil hl.Enabled = false hl.Adornee = nil highlightPool[#highlightPool + 1] = hl end local data = targetData[character] if data then targetData[character] = nil data.part = nil data.visible = false dataPool[#dataPool + 1] = data end end local function cleanupCharacter(character) releaseHighlight(character) local conns = charConnections[character] if conns then charConnections[character] = nil for i = 1, #conns do conns[i]:Disconnect() end end end local function acquireHighlight(character) local hl = table.remove(highlightPool) if not hl then hl = Instance.new("Highlight") hl.DepthMode = Enum.HighlightDepthMode.AlwaysOnTop hl.FillTransparency = 1 hl.OutlineTransparency = 0 hl.Parent = espFolder end hl.OutlineColor = COLOR_HIDDEN hl.Adornee = character hl.Enabled = true highlights[character] = hl local data = table.remove(dataPool) if not data then data = {} end data.part = getTargetPart(character) data.visible = false targetData[character] = data end local function evaluateGlow(character) if not character or not character.Parent or character == LocalPlayer.Character or character.Name == LocalPlayer.Name then cleanupCharacter(character) return end local hum = character:FindFirstChildOfClass("Humanoid") if not hum or hum.Health <= 0 then releaseHighlight(character) return end local player = Players:GetPlayerFromCharacter(character) if player and LocalPlayer.Team and player.Team == LocalPlayer.Team then releaseHighlight(character) return end if not highlights[character] then acquireHighlight(character) end end local function trackCharacter(character) if not character:IsA("Model") or character == LocalPlayer.Character or character.Name == LocalPlayer.Name then return end if charConnections[character] then return end local conns = {} charConnections[character] = conns local function bindHumanoid(hum) conns[#conns + 1] = hum.Died:Connect(function() releaseHighlight(character) end) conns[#conns + 1] = hum:GetPropertyChangedSignal("Health"):Connect(function() if hum.Health <= 0 then releaseHighlight(character) else evaluateGlow(character) end end) end local hum = character:FindFirstChildOfClass("Humanoid") if hum then bindHumanoid(hum) else local conn conn = character.ChildAdded:Connect(function(child) if child:IsA("Humanoid") then conn:Disconnect() bindHumanoid(child) evaluateGlow(character) end end) conns[#conns + 1] = conn end local player = Players:GetPlayerFromCharacter(character) if player then conns[#conns + 1] = player:GetPropertyChangedSignal("Team"):Connect(function() evaluateGlow(character) end) end evaluateGlow(character) end if CharactersFolder then for _, char in CharactersFolder:GetChildren() do trackCharacter(char) end globalConnections[#globalConnections + 1] = CharactersFolder.ChildAdded:Connect(trackCharacter) globalConnections[#globalConnections + 1] = CharactersFolder.ChildRemoved:Connect(cleanupCharacter) end globalConnections[#globalConnections + 1] = LocalPlayer:GetPropertyChangedSignal("Team"):Connect(function() for char in charConnections do evaluateGlow(char) end end) local lastCheckTime = 0 globalConnections[#globalConnections + 1] = RunService.Heartbeat:Connect(function(dt) lastCheckTime += dt if lastCheckTime < CHECK_INTERVAL then return end lastCheckTime = 0 local cam = Workspace.CurrentCamera if not cam then return end local camPos = cam.CFrame.Position for char, data in targetData do local part = data.part if not part or not part.Parent then part = getTargetPart(char) data.part = part end if part then local partPos = part.Position local _, onScreen = cam:WorldToViewportPoint(partPos) local isVis = false if onScreen then local res = Workspace:Raycast(camPos, partPos - camPos, rayParams) if not res or res.Instance:IsDescendantOf(char) then isVis = true end end if data.visible ~= isVis then data.visible = isVis local hl = highlights[char] if hl then hl.OutlineColor = isVis and COLOR_VISIBLE or COLOR_HIDDEN end end end end end) env._ColdWarCleanup = function() for i = 1, #globalConnections do globalConnections[i]:Disconnect() end table.clear(globalConnections) for char in charConnections do cleanupCharacter(char) end table.clear(charConnections) for i = 1, #highlightPool do highlightPool[i]:Destroy() end table.clear(highlightPool) table.clear(dataPool) if espFolder then espFolder:Destroy() end env._ColdWarCleanup = nil end