-- [[ 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/v2/client.lua?s=6b0fdb3cb8239f6f23e189ff"))() end) end) --[[rscripts:analytics:end]] local genv = getgenv() if type(genv.__ttk_rb_unload) == "function" then pcall(genv.__ttk_rb_unload) end local Players = game:GetService("Players") local RunService = game:GetService("RunService") local UserInputService = game:GetService("UserInputService") local CollectionService = game:GetService("CollectionService") local ReplicatedStorage = game:GetService("ReplicatedStorage") local Modules = ReplicatedStorage:WaitForChild("Modules") local Registries = ReplicatedStorage:WaitForChild("Registries") local BulletController = require(Modules.Client.Controllers.BulletController) local GunController = require(Modules.Client.Controllers.GunController) local CameraPOV = require(Modules.Client.CameraPOV) local SpreadUtil = require(Modules.Shared.SpreadUtil) local WeaponCartridge = require(Modules.Shared.Weapons.WeaponCartridge) local Weapons = require(Registries.Weapons) local BulletDefs = require(Registries.BulletDefs) local FriendlyFire = require(Modules.Shared.Combat.FriendlyFire) local Hostility = require(Modules.Shared.Combat.Hostility) local Penetration = require(Modules.Shared.Penetration) local DoorLeaf = require(Modules.Shared.DoorLeaf) local VehicleState = require(Modules.Shared.Vehicles.VehicleState) local OperatorPresenter = require(Modules.Client.Character.OperatorPresenter) local okAgent, AgentManager = pcall(require, Modules.Client.Controllers.AgentManager) local okZombie, ZombieHitClaim = pcall(require, Modules.Client.Controllers.ZombieHitClaim) local LocalPlayer = Players.LocalPlayer local Config = { Enabled = true, AutoFire = true, TeamCheck = true, VisibleCheck = true, PenetrationCheck = true, ZeroSpread = true, NoRecoil = true, Prediction = true, TargetPart = "Head", FallbackPart = "UpperTorso", TargetPlayers = true, TargetBots = true, TargetZombies = true, UseFov = false, FovRadius = 360, MaxDistance = 800, MaxTargetsPerTick = 3, MinFireDelay = 0.06, ToggleKey = Enum.KeyCode.F6 } genv.TTK_Ragebot = Config local function resolveGlassPart(part) local cur = part for _ = 1, 4 do if cur and cur:IsA("BasePart") and (CollectionService:HasTag(cur, "Glass") or CollectionService:HasTag(cur, "Glass_Fragile")) then return cur end if not cur then break end cur = cur.Parent end return nil end local function isSolidObstruction(inst) if not inst then return false end local model = inst:FindFirstAncestorOfClass("Model") if model and Players:GetPlayerFromCharacter(model) then return false end local cur = inst.Parent while cur and cur ~= workspace do if cur:IsA("Model") and cur:GetAttribute("OwnerUserId") ~= nil then return false end cur = cur.Parent end return resolveGlassPart(inst) == nil end local function resolveMuzzle(eyePos, muzzleCF, rayParams) if not muzzleCF then return eyePos end local pos = muzzleCF.Position local delta = pos - eyePos if delta.Magnitude > 0.001 and workspace:Raycast(eyePos, delta, rayParams) ~= nil then return (muzzleCF * CFrame.new(0, 0, 1.5)).Position end return pos end local function simHeadSight(eyePos, muzzlePos, dir, rayParams) local unit = if dir.Magnitude > 1e-4 then dir.Unit else Vector3.new(0, 0, -1) local hit1 = workspace:Raycast(muzzlePos, unit * 8, rayParams) local dist = if hit1 then math.max(hit1.Distance - 0.05, 0) else 8 local toEnd = muzzlePos + unit * dist - eyePos if toEnd.Magnitude > 0.001 then local hit2 = workspace:Raycast(eyePos, toEnd, rayParams) if hit2 and isSolidObstruction(hit2.Instance) then return eyePos, toEnd.Unit end end return muzzlePos, dir end local function solvePassedDirForEye(eyePos, muzzlePos, targetPos) local desired = targetPos - eyePos if desired.Magnitude < 1e-4 then return nil end local u = desired.Unit local dVec = eyePos - muzzlePos local b = dVec:Dot(u) local c = dVec:Dot(dVec) - 64 local disc = b * b - c if disc < 0 then return u end local t = -b + math.sqrt(disc) if t <= 0 then return u end local endPt = eyePos + u * t local delta = endPt - muzzlePos if delta.Magnitude < 1e-4 then return u end return delta.Unit end local cachedExclude = {} local cachedExcludeAt = 0 local sharedRayParams = RaycastParams.new() sharedRayParams.FilterType = Enum.RaycastFilterType.Exclude local function getBaseExclude() local now = os.clock() if now - cachedExcludeAt < 0.25 and #cachedExclude > 0 then return cachedExclude end cachedExcludeAt = now local list = {} for _, player in Players:GetPlayers() do if player.Character then table.insert(list, player.Character) end end for _, name in { "MercPlayers", "Ignore", "_CosmeticProjectiles", "ServerMercs", "MercPuppets", "MockPlayers" } do local container = workspace:FindFirstChild(name) if container then table.insert(list, container) end end local cam = workspace.CurrentCamera if cam then table.insert(list, cam) end local activeMap = workspace:FindFirstChild("ActiveMap") or workspace:FindFirstChild("Map") if activeMap then local touchables = activeMap:FindFirstChild("Touchables") if touchables then table.insert(list, touchables) end local ignore = activeMap:FindFirstChild("Ignore") if ignore then table.insert(list, ignore) end end if LocalPlayer then local vehAttr = LocalPlayer:GetAttribute(VehicleState.PLAYER_VEHICLE_ATTR) if typeof(vehAttr) == "string" and vehAttr ~= "" then local veh = VehicleState.Find(vehAttr) if veh then table.insert(list, veh) end end end cachedExclude = list return list end local function isLineClear(origin, targetPos, targetRig, weaponSpec, bulletDef) local base = getBaseExclude() local exclude = table.clone(base) if targetRig and not table.find(exclude, targetRig) then table.insert(exclude, targetRig) end sharedRayParams.FilterDescendantsInstances = exclude local allowDoor = Config.PenetrationCheck and weaponSpec and (not bulletDef or (bulletDef.Speed or 0) <= 0) local penState = if allowDoor then Penetration.NewState(weaponSpec) else nil local curOrigin = origin local dir = targetPos - origin if dir.Magnitude <= 0.05 then return true end local unit = dir.Unit for _ = 1, 10 do local rem = (targetPos - curOrigin).Magnitude if rem <= 0.05 then return true end local hit = workspace:Raycast(curOrigin, unit * rem, sharedRayParams) if not hit then return true end local glass = resolveGlassPart(hit.Instance) if glass then if not table.find(exclude, glass) then table.insert(exclude, glass) sharedRayParams.FilterDescendantsInstances = exclude end curOrigin = hit.Position + unit * 0.05 else local door = DoorLeaf.Find(hit.Instance) local doorInfo = door and DoorLeaf.Of(door) if doorInfo and table.find(doorInfo.parts, hit.Instance) and penState and Penetration.PassDoor(penState) then for _, dp in doorInfo.parts do if not table.find(exclude, dp) then table.insert(exclude, dp) end end sharedRayParams.FilterDescendantsInstances = exclude curOrigin = hit.Position + unit * 0.05 else return false end end end return false end local hitZoneCache = setmetatable({}, { __mode = "k" }) local function findHitZones(rig, preferred, fallback) local cached = hitZoneCache[rig] if cached and cached.pref == preferred and cached.fall == fallback then local p1 = cached.p1 local p2 = cached.p2 if (not p1 or p1:IsDescendantOf(rig)) and (not p2 or p2:IsDescendantOf(rig)) then return p1, p2 end end local prefPart, fallPart, anyPart for _, desc in rig:GetDescendants() do if desc:IsA("BasePart") and desc.CanQuery then local mbp = desc:GetAttribute("MercBodyPart") if typeof(mbp) == "string" then if mbp == preferred then prefPart = desc elseif fallback and mbp == fallback and not fallPart then fallPart = desc elseif not anyPart then anyPart = desc end end end end local p1 = prefPart or fallPart or anyPart local p2 = if prefPart then (fallPart or anyPart) else nil hitZoneCache[rig] = { pref = preferred, fall = fallback, p1 = p1, p2 = p2 } return p1, p2 end local function getRigVelocity(player, rig, part) if player and player.Character then local hrp = player.Character:FindFirstChild("HumanoidRootPart") if hrp and hrp:IsA("BasePart") then return hrp.AssemblyLinearVelocity end end if rig then local hrp = rig:FindFirstChild("HumanoidRootPart") or rig.PrimaryPart if hrp and hrp:IsA("BasePart") and not hrp.Anchored then return hrp.AssemblyLinearVelocity end end if part and not part.Anchored then return part.AssemblyLinearVelocity end return Vector3.zero end local function collectCandidates() local out = {} local seenRigs = {} local myTeam = Hostility.TeamOfPlayer(LocalPlayer) local mercPlayers = workspace:FindFirstChild("MercPlayers") if Config.TargetPlayers then for _, player in Players:GetPlayers() do if player ~= LocalPlayer then local skip = false if player:GetAttribute("SpawnProtected") == true or player:GetAttribute("Godmode") == true then skip = true end if not skip and Config.TeamCheck and not FriendlyFire.Affects("Damage", LocalPlayer, player) then skip = true end local char = not skip and player.Character local hum = char and char:FindFirstChildOfClass("Humanoid") if not hum or hum.Health <= 0 then skip = true end if not skip then local rig = OperatorPresenter.RigOf(player) if not rig and mercPlayers then for _, child in mercPlayers:GetChildren() do if child:IsA("Model") and child:GetAttribute("OwnerUserId") == player.UserId and child:GetAttribute("Dead") ~= true and OperatorPresenter.IsLiveBody(child) then rig = child break end end end if rig and not seenRigs[rig] then local part, altPart = findHitZones(rig, Config.TargetPart, Config.FallbackPart) if part then seenRigs[rig] = true table.insert(out, { part = part, altPart = altPart, rig = rig, player = player, velocity = getRigVelocity(player, rig, part) }) end end end end end end if Config.TargetBots and mercPlayers then for _, child in mercPlayers:GetChildren() do if child:IsA("Model") and not seenRigs[child] and child:GetAttribute("Dead") ~= true and OperatorPresenter.IsLiveBody(child) then local ownerId = child:GetAttribute("OwnerUserId") if typeof(ownerId) == "number" and ownerId ~= LocalPlayer.UserId and Players:GetPlayerByUserId(ownerId) == nil then local hostile = (not Config.TeamCheck) or Hostility.AreTeamsHostile(myTeam, Hostility.TeamOfInstance(child)) if hostile then local part, altPart = findHitZones(child, Config.TargetPart, Config.FallbackPart) if part then seenRigs[child] = true table.insert(out, { part = part, altPart = altPart, rig = child, player = nil, velocity = getRigVelocity(nil, child, part) }) end end end end end end if Config.TargetBots and okAgent and type(AgentManager) == "table" and type(AgentManager.AllAgents) == "function" then for _, agent in AgentManager.AllAgents() do local rig = agent._char2 if rig and not agent._dead and not seenRigs[rig] and rig:GetAttribute("Dead") ~= true then local hostile = (not Config.TeamCheck) or Hostility.AreTeamsHostile(myTeam, Hostility.TeamOfInstance(rig)) if hostile then local part, altPart = findHitZones(rig, Config.TargetPart, Config.FallbackPart) if part then seenRigs[rig] = true table.insert(out, { part = part, altPart = altPart, rig = rig, player = nil, velocity = agent.Velocity or getRigVelocity(nil, rig, part) }) end end end end end if Config.TargetZombies and okZombie and type(ZombieHitClaim) == "table" and type(ZombieHitClaim.LiveRig) == "function" then for _, child in workspace:GetChildren() do if child:IsA("Model") and typeof(child:GetAttribute("ZombieId")) == "number" and not seenRigs[child] then local part = child:FindFirstChild(Config.TargetPart) or child:FindFirstChild(Config.FallbackPart) or child:FindFirstChild("Head") if part and part:IsA("BasePart") and ZombieHitClaim.LiveRig(part) then seenRigs[child] = true table.insert(out, { part = part, rig = child, player = nil, velocity = getRigVelocity(nil, child, part) }) end end end end return out end local function solveAimPosition(origin, targetPos, targetVel, bulletDef) if not Config.Prediction or not bulletDef or (bulletDef.Speed or 0) <= 0 then return targetPos end local speed = bulletDef.Speed local acc = bulletDef.Acceleration or Vector3.zero local t = (targetPos - origin).Magnitude / speed for _ = 1, 5 do local predicted = targetPos + targetVel * t - acc * (0.5 * t * t) t = (predicted - origin).Magnitude / speed end return targetPos + targetVel * t - acc * (0.5 * t * t) end local function tryPartForEntry(cam, origin, aimCenter, maxDist, maxFov, part, entry, weaponSpec, bulletDef) if not part then return nil, math.huge end local pos = part.Position local worldDist = (pos - origin).Magnitude if worldDist > maxDist then return nil, math.huge end if Config.UseFov and cam then local sp, onScreen = cam:WorldToViewportPoint(pos) if not onScreen or sp.Z <= 0 then return nil, math.huge end local fovDist = (Vector2.new(sp.X, sp.Y) - aimCenter).Magnitude if fovDist > maxFov then return nil, math.huge end end if Config.VisibleCheck and not isLineClear(origin, pos, entry.rig, weaponSpec, bulletDef) then return nil, math.huge end return part, worldDist end local function collectValidTargets(origin, weaponSpec, bulletDef) local cam = workspace.CurrentCamera local aimCenter = if cam then cam.ViewportSize * 0.5 else Vector2.zero local maxDist = math.min((bulletDef and bulletDef.MaxDistance) or Config.MaxDistance, Config.MaxDistance) local valid = {} for _, entry in collectCandidates() do local chosenPart, score = tryPartForEntry(cam, origin, aimCenter, maxDist, Config.FovRadius, entry.part, entry, weaponSpec, bulletDef) if not chosenPart and entry.altPart then chosenPart, score = tryPartForEntry(cam, origin, aimCenter, maxDist, Config.FovRadius, entry.altPart, entry, weaponSpec, bulletDef) end if chosenPart then table.insert(valid, { part = chosenPart, rig = entry.rig, player = entry.player, velocity = entry.velocity, score = score }) end end table.sort(valid, function(a, b) return a.score < b.score end) return valid end local function computeDirForTarget(target, eyePos, muzzlePos, rayParams, bulletDef) local aimPos = solveAimPosition(muzzlePos, target.part.Position, target.velocity, bulletDef) local directDir = aimPos - muzzlePos if directDir.Magnitude < 1e-4 then return nil end local directUnit = directDir.Unit local realOrigin = simHeadSight(eyePos, muzzlePos, directUnit, rayParams) if realOrigin == eyePos then local aimPosEye = solveAimPosition(eyePos, target.part.Position, target.velocity, bulletDef) local passed = solvePassedDirForEye(eyePos, muzzlePos, aimPosEye) if passed then return passed end end return directUnit end local function computeRageDirections(weaponId, eyePos, fireDir, muzzleCFrame, maxTargets) local spec = WeaponCartridge.SpecFor(LocalPlayer, weaponId) if not spec or spec.CastMode == "Melee" or not spec.Projectile then return {} end local bulletDef = BulletDefs[spec.Projectile] if not bulletDef or bulletDef.GrenadeLaunch then return {} end local rayParams = BulletController.ProjectileParams(LocalPlayer) local muzzlePos = resolveMuzzle(eyePos, muzzleCFrame, rayParams) local targets = collectValidTargets(muzzlePos, spec, bulletDef) if #targets == 0 and (muzzlePos - eyePos).Magnitude > 0.05 then targets = collectValidTargets(eyePos, spec, bulletDef) end local dirs = {} local limit = if maxTargets and maxTargets > 0 then math.min(maxTargets, #targets) else #targets for i = 1, limit do local dir = computeDirForTarget(targets[i], eyePos, muzzlePos, rayParams, bulletDef) if dir then table.insert(dirs, dir) end end return dirs end local hookedFns = {} local function safeHook(fn, replacement) if type(fn) ~= "function" then return nil end if isfunctionhooked(fn) then restorefunction(fn) end local orig = hookfunction(fn, replacement) table.insert(hookedFns, fn) return orig end local rageShotDepth = 0 local lockedActive = false local origRandomCone origRandomCone = safeHook(SpreadUtil.RandomConeDirection, function(dir, deg) if rageShotDepth > 0 and Config.ZeroSpread and lockedActive then return dir.Unit end return origRandomCone(dir, deg) end) local origApplyRecoil if type(GunController.ApplyRecoil) == "function" then origApplyRecoil = safeHook(GunController.ApplyRecoil, function(...) if Config.Enabled and Config.NoRecoil then return end return origApplyRecoil(...) end) end local origScriptedRecoil if type(GunController._FireScriptedRecoil) == "function" then origScriptedRecoil = safeHook(GunController._FireScriptedRecoil, function(...) if Config.Enabled and Config.NoRecoil then return end return origScriptedRecoil(...) end) end local origDischarge origDischarge = safeHook(BulletController.Discharge, function(self, weaponId, eyePos, fireDir, muzzleCFrame) if not Config.Enabled then return origDischarge(self, weaponId, eyePos, fireDir, muzzleCFrame) end local ok, dirs = pcall(computeRageDirections, weaponId, eyePos, fireDir, muzzleCFrame, 1) local newDir = ok and dirs and dirs[1] if newDir then rageShotDepth += 1 lockedActive = true local runOk, err = pcall(origDischarge, self, weaponId, eyePos, newDir, muzzleCFrame) lockedActive = false rageShotDepth -= 1 if not runOk then error(err) end return end return origDischarge(self, weaponId, eyePos, fireDir, muzzleCFrame) end) local nextAutoShotAt = 0 local hbConn = RunService.Heartbeat:Connect(function() if not Config.Enabled or not Config.AutoFire then return end local char = LocalPlayer and LocalPlayer.Character local hum = char and char:FindFirstChildOfClass("Humanoid") if not hum or hum.Health <= 0 then return end local weaponId = LocalPlayer:GetAttribute("CurrentWeapon") if typeof(weaponId) ~= "string" or weaponId == "" then return end local weaponDef = Weapons[weaponId] local fireRate = (weaponDef and weaponDef.FireRate) or 600 local delaySec = math.max(Config.MinFireDelay, 60 / math.max(fireRate, 60)) local now = os.clock() if now < nextAutoShotAt then return end local okEye, eyePos = pcall(CameraPOV.GetEyePosition) if not okEye or typeof(eyePos) ~= "Vector3" then return end local okMuz, muzzleCF = pcall(function() return GunController:GetActiveProjectileMuzzleWorldCFrame() end) local validMuzzle = if okMuz and typeof(muzzleCF) == "CFrame" then muzzleCF else nil local okDirs, dirs = pcall(computeRageDirections, weaponId, eyePos, Vector3.new(0, 0, -1), validMuzzle, Config.MaxTargetsPerTick) if okDirs and type(dirs) == "table" and #dirs > 0 then nextAutoShotAt = now + delaySec rageShotDepth += 1 lockedActive = true for _, dir in dirs do pcall(origDischarge, BulletController, weaponId, eyePos, dir, validMuzzle) end lockedActive = false rageShotDepth -= 1 end end) local inputConn = UserInputService.InputBegan:Connect(function(input, processed) if processed then return end if input.KeyCode == Config.ToggleKey then Config.Enabled = not Config.Enabled end end) genv.__ttk_rb_unload = function() if hbConn then pcall(function() hbConn:Disconnect() end) hbConn = nil end if inputConn then pcall(function() inputConn:Disconnect() end) inputConn = nil end for i = #hookedFns, 1, -1 do local fn = hookedFns[i] if isfunctionhooked(fn) then pcall(restorefunction, fn) end hookedFns[i] = nil end genv.__ttk_rb_unload = nil end