-- [[ 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 clonerefFn = cloneref local hookfn = hookfunction local newcc = newcclosure local clonefn = clonefunction local gethuiFn = gethui setfenv(1, setmetatable({}, { __index = getrenv() })) local StarterGui = clonerefFn(game:GetService("StarterGui")) local function notify(title, text) pcall(function() StarterGui:SetCore("SendNotification", { Title = title, Text = text, Duration = 4, }) end) end local ok, err = pcall(function() local Config = { SilentAim = true, NoSpread = true, NoRecoil = true, ESPOutline = true, ESPColor = Color3.fromRGB(255, 60, 60), TargetPart = "Head", TargetBots = true, TargetHorde = true, } local Players = clonerefFn(game:GetService("Players")) local ReplicatedStorage = clonerefFn(game:GetService("ReplicatedStorage")) local RunService = clonerefFn(game:GetService("RunService")) local Workspace = clonerefFn(game:GetService("Workspace")) local LocalPlayer = Players.LocalPlayer local BulletModule = require(ReplicatedStorage.Components.Weapon.Classes.Bullet) local CameraController = require(ReplicatedStorage.Controllers.CameraController) local HordeController = require(ReplicatedStorage.Controllers.HordeController) local RaycastModule = require(ReplicatedStorage.Shared.Raycast) local GetRayIgnore = require(ReplicatedStorage.Components.Common.GetRayIgnore) local CharacterResolver = require(ReplicatedStorage.Components.Common.CharacterResolver) local IsSurvivalMode = require(ReplicatedStorage.Components.Common.IsSurvivalMode) local CastThroughDistance = clonefn(RaycastModule.castThroughDistance) local currentCamera = Workspace.CurrentCamera Workspace:GetPropertyChangedSignal("CurrentCamera"):Connect(function() currentCamera = Workspace.CurrentCamera end) local cachedRayIgnore = GetRayIgnore() local charsFolder = Workspace:FindFirstChild("Characters") Workspace.ChildAdded:Connect(function(child) if child.Name == "Characters" then charsFolder = child elseif child.Name == "Map" then task.defer(function() cachedRayIgnore = GetRayIgnore() end) end end) Workspace.ChildRemoved:Connect(function(child) if child == charsFolder then charsFolder = nil end end) LocalPlayer.CharacterAdded:Connect(function() task.defer(function() cachedRayIgnore = GetRayIgnore() end) end) local candidatesList = {} local activeSet = {} local espHighlights = {} local espPool = {} local espFolder = nil local lastEspUpdate = 0 local function getTargetPart(model) local part = model:FindFirstChild(Config.TargetPart) if part and part:IsA("BasePart") then return part end return model.PrimaryPart end local function fillCandidates() table.clear(candidatesList) if IsSurvivalMode() then if Config.TargetHorde then local shells = HordeController.GetLiveShells() for i = 1, #shells do candidatesList[#candidatesList + 1] = shells[i] end end return candidatesList end local playerList = Players:GetPlayers() for i = 1, #playerList do local player = playerList[i] if player ~= LocalPlayer then local char = CharacterResolver.getPlayerCharacter(player) if char and CharacterResolver.isAliveCharacter(char) then candidatesList[#candidatesList + 1] = char end end end if Config.TargetBots and charsFolder then local children = charsFolder:GetChildren() for i = 1, #children do local model = children[i] if model:IsA("Model") and model:GetAttribute("Bot") == true and model:GetAttribute("Dead") ~= true and (tonumber(model:GetAttribute("Health")) or 1) > 0 and model:GetAttribute("ClientCharacterPresentationVisible") ~= false then candidatesList[#candidatesList + 1] = model end end end return candidatesList end local function getClosestTarget(origin, maxRange) local camera = currentCamera if not camera then return nil end local viewport = camera.ViewportSize local centerX = viewport.X * 0.5 local centerY = viewport.Y * 0.5 local maxRangeSq = maxRange * maxRange local bestPart = nil local bestDistSq = math.huge local list = fillCandidates() for i = 1, #list do local part = getTargetPart(list[i]) if part then local pos = part.Position local ox = pos.X - origin.X local oy = pos.Y - origin.Y local oz = pos.Z - origin.Z if ox * ox + oy * oy + oz * oz <= maxRangeSq then local screenPos, onScreen = camera:WorldToViewportPoint(pos) if onScreen and screenPos.Z > 0 then local dx = screenPos.X - centerX local dy = screenPos.Y - centerY local distSq = dx * dx + dy * dy if distSq < bestDistSq then bestDistSq = distSq bestPart = part end end end end end return bestPart end local function getEspContainer() if espFolder and espFolder.Parent then return espFolder end local folder = Instance.new("Folder") folder.Name = "CoreOverlay" folder.Parent = gethuiFn() espFolder = folder return folder end local function releaseHighlight(model, hl) espHighlights[model] = nil if hl and hl.Parent then hl.Enabled = false hl.Adornee = nil espPool[#espPool + 1] = hl end end local function acquireHighlight(model, container) local hl = table.remove(espPool) if not hl or not hl.Parent then hl = Instance.new("Highlight") hl.DepthMode = Enum.HighlightDepthMode.AlwaysOnTop hl.FillTransparency = 1 hl.OutlineTransparency = 0 hl.Parent = container end hl.OutlineColor = Config.ESPColor hl.Adornee = model hl.Enabled = true espHighlights[model] = hl end RunService.Heartbeat:Connect(function() local now = os.clock() if now - lastEspUpdate < 0.15 then return end lastEspUpdate = now if not Config.ESPOutline then for model, hl in pairs(espHighlights) do releaseHighlight(model, hl) end return end local container = getEspContainer() table.clear(activeSet) local list = fillCandidates() for i = 1, #list do local model = list[i] if model and model:IsDescendantOf(Workspace) then activeSet[model] = true end end for model, hl in pairs(espHighlights) do if not activeSet[model] then releaseHighlight(model, hl) end end for model in pairs(activeSet) do local hl = espHighlights[model] if not hl or not hl.Parent then acquireHighlight(model, container) elseif hl.OutlineColor ~= Config.ESPColor then hl.OutlineColor = Config.ESPColor end end end) local function installHook(tbl, key, detour) local orig orig = hookfn(tbl[key], newcc(function(...) return detour(orig, ...) end)) end installHook(BulletModule, "getTrueSpread", function(orig, self, ...) if Config.NoSpread then return 0 end return orig(self, ...) end) installHook(BulletModule, "_performRaycast", function(orig, self, trueSpread) local camera = currentCamera if not camera then return orig(self, Config.NoSpread and 0 or trueSpread) end local range = self.Properties.Range or 500 local viewport = camera.ViewportSize local centerRay = camera:ViewportPointToRay(viewport.X * 0.5, viewport.Y * 0.5) local origin = centerRay.Origin local targetPart = Config.SilentAim and getClosestTarget(origin, range) or nil if not targetPart then return orig(self, Config.NoSpread and 0 or trueSpread) end local direction = (targetPart.Position - origin).Unit local hitsRaw = CastThroughDistance(origin, direction * range, self.Properties.Penetration or 0, cachedRayIgnore) local hitCount = #hitsRaw local hits = table.create(hitCount) local distance = range if hitCount > 0 then distance = (hitsRaw[1].position - origin).Magnitude for i = 1, hitCount do local entry = hitsRaw[i] if entry.instance and entry.material then hits[#hits + 1] = { Position = entry.position, Instance = entry.instance, Material = entry.material.Name, Normal = entry.normal or Vector3.zero, Exit = (i % 2 == 0), } end end end return { Distance = distance, Origin = origin, Direction = direction, Hits = hits, } end) local function noRecoilDetour(orig, ...) if Config.NoRecoil then return end return orig(...) end installHook(CameraController, "setWeaponRecoil", noRecoilDetour) installHook(CameraController, "weaponKick", noRecoilDetour) if Config.NoRecoil then CameraController.resetWeaponRecoil() end end) if ok then notify("Script Started", "Loaded successfully (Undetected)") else notify("Script Failed", tostring(err)) end