-- [[ 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 Config = { KillAuraRadius = 16, MaxCleaveTargets = 3, UseWeaponMaxHits = true, AttackCooldown = 0.12, TargetHead = true, AutoRepair = true, RepairRadius = 14, RepairInterval = 0.25, HoldKey = Enum.KeyCode.C } local workspace = workspace local Players = game:GetService("Players") local RunService = game:GetService("RunService") local StarterGui = game:GetService("StarterGui") local UserInputService = game:GetService("UserInputService") local CollectionService = game:GetService("CollectionService") local LocalPlayer = Players.LocalPlayer local function notify(title, text, duration) pcall(function() StarterGui:SetCore("SendNotification", { Title = title, Text = text, Duration = duration or 4 }) end) end local env = (type(getgenv) == "function" and getgenv()) or nil local ok, err = pcall(function() local tick = tick local task_defer = task.defer local math_random = math.random local math_max = math.max local math_sqrt = math.sqrt local Vector3_new = Vector3.new local table_clear = table.clear local table_insert = table.insert local Instance_new = Instance.new local Color3_fromRGB = Color3.fromRGB local UDim2_new = UDim2.new local UDim_new = UDim.new local UP_VECTOR = Vector3_new(0, 1, 0) local KILL_RADIUS_SQ = Config.KillAuraRadius * Config.KillAuraRadius local REPAIR_RADIUS_SQ = Config.RepairRadius * Config.RepairRadius if env and env.GB_Cleanup then pcall(env.GB_Cleanup) end local auraEnabled = false local listeningForKey = false local lastAttackTick = 0 local lastRepairTick = 0 local currentWeapon = nil local currentHammer = nil local globalConns = {} local charConns = {} local zombieFolderConns = {} local buildingConns = {} local zombieList = {} local zombieCache = {} -- [model] = data (with .Index in zombieList) local repairList = {} local repairCache = {} -- [model] = data (with .Index in repairList) local targetBuffer = { { Model = nil, Data = nil, DistSq = math.huge }, { Model = nil, Data = nil, DistSq = math.huge }, { Model = nil, Data = nil, DistSq = math.huge } } local repairParams = RaycastParams.new() repairParams.IgnoreWater = true repairParams.FilterType = Enum.RaycastFilterType.Exclude local MeleeNames = { ["Sabre"] = true, ["Heavy Sabre"] = true, ["CaptainSabre"] = true, ["Arming Sword"] = true, ["Captain's Arming Sword"] = true, ["Arming Sword w_ Shield"] = true, ["Sword & Shield"] = true, ["Axe"] = true, ["BoardingAxe"] = true, ["BoardingPike"] = true, ["HandAxe"] = true, ["Pickaxe"] = true, ["Poleaxe"] = true, ["Spade"] = true, ["Shovel"] = true, ["Stake"] = true, ["Spontoon"] = true, ["Baton"] = true, ["DoctorCane"] = true, ["DeliciousLeg"] = true, ["Machete"] = true, ["LeRevenant"] = true, ["Sledgehammer"] = true, ["Sword Bayonet"] = true, ["Lance"] = true, ["PocketKnife"] = true, ["Forgehammer"] = true, ["ModernHammer"] = true } local HammerNames = { ["Hammer"] = true, ["ClawHammer"] = true, ["Welder"] = true } local function getSafeGuiParent() if type(gethui) == "function" then local okGui, hui = pcall(gethui) if okGui and hui then return hui end end local okCore, coreGui = pcall(function() return game:GetService("CoreGui") end) if okCore and coreGui then return coreGui end return LocalPlayer:WaitForChild("PlayerGui") end local ScreenGui = Instance_new("ScreenGui") ScreenGui.Name = "RobloxGuiOverlay" ScreenGui.ResetOnSpawn = false ScreenGui.DisplayOrder = 999 ScreenGui.IgnoreGuiInset = true ScreenGui.Enabled = true ScreenGui.Parent = getSafeGuiParent() local IndicatorFrame = Instance_new("Frame") IndicatorFrame.Size = UDim2_new(0, 170, 0, 32) IndicatorFrame.Position = UDim2_new(0.5, -85, 0.88, 0) IndicatorFrame.BackgroundColor3 = Color3_fromRGB(15, 15, 20) IndicatorFrame.BackgroundTransparency = 0.25 IndicatorFrame.BorderSizePixel = 0 IndicatorFrame.Visible = false IndicatorFrame.Parent = ScreenGui local UICorner = Instance_new("UICorner") UICorner.CornerRadius = UDim_new(0, 6) UICorner.Parent = IndicatorFrame local UIStroke = Instance_new("UIStroke") UIStroke.Thickness = 1.5 UIStroke.Color = Color3_fromRGB(0, 255, 150) UIStroke.Parent = IndicatorFrame local StatusLabel = Instance_new("TextLabel") StatusLabel.Size = UDim2_new(1, 0, 1, 0) StatusLabel.BackgroundTransparency = 1 StatusLabel.Font = Enum.Font.GothamBold StatusLabel.TextColor3 = Color3_fromRGB(0, 255, 150) StatusLabel.TextSize = 12 StatusLabel.Text = "★ KILL AURA: ON ★" StatusLabel.Parent = IndicatorFrame local MainFrame = Instance_new("Frame") MainFrame.Size = UDim2_new(0, 210, 0, 128) MainFrame.Position = UDim2_new(0, 20, 0.5, -64) MainFrame.BackgroundColor3 = Color3_fromRGB(18, 18, 24) MainFrame.BackgroundTransparency = 0.15 MainFrame.BorderSizePixel = 0 MainFrame.Active = true MainFrame.Draggable = true MainFrame.Visible = true MainFrame.Parent = ScreenGui local MainCorner = Instance_new("UICorner") MainCorner.CornerRadius = UDim_new(0, 8) MainCorner.Parent = MainFrame local MainStroke = Instance_new("UIStroke") MainStroke.Thickness = 1.5 MainStroke.Color = Color3_fromRGB(0, 255, 150) MainStroke.Parent = MainFrame local TitleLabel = Instance_new("TextLabel") TitleLabel.Size = UDim2_new(1, -16, 0, 26) TitleLabel.Position = UDim2_new(0, 8, 0, 4) TitleLabel.BackgroundTransparency = 1 TitleLabel.Font = Enum.Font.GothamBold TitleLabel.TextColor3 = Color3_fromRGB(0, 255, 150) TitleLabel.TextSize = 13 TitleLabel.TextXAlignment = Enum.TextXAlignment.Left TitleLabel.Text = "G&B Aura [RShift: UI]" TitleLabel.Parent = MainFrame local function makeButton(yPos, text) local btn = Instance_new("TextButton") btn.Size = UDim2_new(1, -16, 0, 26) btn.Position = UDim2_new(0, 8, 0, yPos) btn.BackgroundColor3 = Color3_fromRGB(30, 32, 42) btn.BorderSizePixel = 0 btn.Font = Enum.Font.GothamSemibold btn.TextColor3 = Color3_fromRGB(235, 240, 245) btn.TextSize = 12 btn.Text = text btn.AutoButtonColor = true btn.Parent = MainFrame local corner = Instance_new("UICorner") corner.CornerRadius = UDim_new(0, 6) corner.Parent = btn return btn end local KeybindButton = makeButton(34, "Hold Key: [" .. Config.HoldKey.Name .. "]") local HeadButton = makeButton(65, "Target Head: " .. (Config.TargetHead and "ON" or "OFF")) local RepairButton = makeButton(96, "Auto Repair: " .. (Config.AutoRepair and "ON" or "OFF")) local function disconnectList(list) for i = 1, #list do local conn = list[i] if conn and conn.Disconnect then conn:Disconnect() end end table_clear(list) end local function swapRemove(list, cache, key) local data = cache[key] if not data then return nil end local idx = data.Index local lastIdx = #list if idx ~= lastIdx then local lastData = list[lastIdx] list[idx] = lastData lastData.Index = idx end list[lastIdx] = nil cache[key] = nil return data end local function getSwingArgs(tool) local anims = tool:FindFirstChild("Animations") if anims then if anims:FindFirstChild("SwingRight") then return "Side", "Right" elseif anims:FindFirstChild("SwingLeft") then return "Side", "Left" elseif anims:FindFirstChild("SwingDown") then return "Over", "Up" elseif anims:FindFirstChild("Thrust") then return "Down", "Down" end end return "Side", "Right" end local function isBayonetReady(tool, config) local hasBayonet = (config and config:GetAttribute("HasBayonet") == true) or (tool:GetAttribute("HasBayonet") == true) or (tool:FindFirstChild("HasBayonet") ~= nil) or (tool:FindFirstChild("Bayonet") ~= nil) or (string.find(tool.Name, "Bayonet") ~= nil and not MeleeNames[tool.Name]) if not hasBayonet then return false end local detachName = config and config:GetAttribute("DetachableBayonet") if detachName then local backpack = LocalPlayer:FindFirstChild("Backpack") local detachTool = backpack and backpack:FindFirstChild(detachName) if detachTool and not detachTool:HasTag("GrayoutTool") then return false end local modelRef = tool:FindFirstChild("ModelReference") local gunModel = modelRef and modelRef.Value if gunModel then local bayoPart = gunModel:FindFirstChild("Bayonet") if bayoPart and bayoPart:IsA("Model") then bayoPart = bayoPart:FindFirstChild("Bayonet") or bayoPart:FindFirstChildOfClass("BasePart") end if bayoPart and bayoPart:IsA("BasePart") and bayoPart.Transparency >= 1 then return false end end end return true end local function updateEquippedTool(char) currentWeapon = nil currentHammer = nil if not char then return end local tool = char:FindFirstChildOfClass("Tool") if not tool then return end local remote = tool:FindFirstChild("RemoteEvent") or tool:FindFirstChild("Remote") local hrp = char:FindFirstChild("HumanoidRootPart") local head = char:FindFirstChild("Head") if not (remote and hrp and head) then return end local toolName = tool.Name if HammerNames[toolName] or tool:FindFirstChild("BuildMenu") or tool:FindFirstChild("UpdateLook") then currentHammer = { Remote = remote, HRP = hrp, Head = head, OnlyConstruct = (toolName == "ClawHammer") } return end if toolName == "Blessing" or toolName == "Divinity" then return end local config = tool:FindFirstChild("Configuration") local isMelee = MeleeNames[toolName] or tool:GetAttribute("Melee") == true local isBayonet = (not isMelee) and isBayonetReady(tool, config) if isMelee or isBayonet then local swingCat, swingType = getSwingArgs(tool) currentWeapon = { Tool = tool, Remote = remote, HRP = hrp, Char = char, IsBayonet = isBayonet, SwingCat = swingCat, SwingType = isBayonet and "Up" or swingType, BaseMaxHits = (config and config:GetAttribute("MaxHits")) or Config.MaxCleaveTargets, HitBuff = tool:FindFirstChild("HitIncreaseBuff") } end end local function setupCharacter(char) if not char then return end disconnectList(charConns) repairParams.FilterDescendantsInstances = { char } table_insert(charConns, char.ChildAdded:Connect(function(child) if child:IsA("Tool") then task_defer(updateEquippedTool, char) end end)) table_insert(charConns, char.ChildRemoved:Connect(function(child) if child:IsA("Tool") then task_defer(updateEquippedTool, char) end end)) updateEquippedTool(char) end table_insert(globalConns, LocalPlayer.CharacterAdded:Connect(setupCharacter)) if LocalPlayer.Character then setupCharacter(LocalPlayer.Character) end local function cleanupZombie(model) local data = swapRemove(zombieList, zombieCache, model) if data then if data.ConnDied then data.ConnDied:Disconnect() end if data.ConnAncestry then data.ConnAncestry:Disconnect() end end end local function cacheZombie(model) if not (model and model:IsA("Model")) or zombieCache[model] then return end task_defer(function() if not model.Parent or zombieCache[model] then return end local humanoid = model:FindFirstChild("Zombie") or model:FindFirstChildOfClass("Humanoid") local hrp = model:FindFirstChild("HumanoidRootPart") or model:FindFirstChild("Torso") or model:FindFirstChild("Head") if not (humanoid and hrp) then return end local orig = model:FindFirstChild("Orig") local idx = #zombieList + 1 local data = { Index = idx, Model = model, Humanoid = humanoid, HRP = hrp, Head = model:FindFirstChild("Head") or hrp, Torso = model:FindFirstChild("Torso") or hrp, TargetEntity = (orig and orig:IsA("ObjectValue") and orig.Value) or model, ConnDied = nil, ConnAncestry = nil } data.ConnDied = humanoid.Died:Once(function() cleanupZombie(model) end) data.ConnAncestry = model.AncestryChanged:Connect(function(_, parent) if not parent then cleanupZombie(model) end end) zombieList[idx] = data zombieCache[model] = data end) end local function bindZombiesFolder(folder) disconnectList(zombieFolderConns) if not folder then return end table_insert(zombieFolderConns, folder.ChildAdded:Connect(cacheZombie)) table_insert(zombieFolderConns, folder.ChildRemoved:Connect(cleanupZombie)) local children = folder:GetChildren() for i = 1, #children do cacheZombie(children[i]) end end local existingZombies = workspace:FindFirstChild("Zombies") if existingZombies then bindZombiesFolder(existingZombies) end table_insert(globalConns, workspace.ChildAdded:Connect(function(child) if child.Name == "Zombies" and child:IsA("Folder") then bindZombiesFolder(child) end end)) table_insert(globalConns, workspace.ChildRemoved:Connect(function(child) if child.Name == "Zombies" then for i = #zombieList, 1, -1 do cleanupZombie(zombieList[i].Model) end end end)) local function cleanupRepairTarget(healthObj) local data = swapRemove(repairList, repairCache, healthObj) if data and data.ConnAncestry then data.ConnAncestry:Disconnect() end end local function registerHealthObj(healthObj, ownerRoot, isConstruct) if not healthObj or not healthObj.Parent or repairCache[healthObj] then return end if not (healthObj:IsA("IntValue") or healthObj:IsA("NumberValue")) then return end local parent = healthObj.Parent local part = (parent:IsA("BasePart") and parent) or (ownerRoot:IsA("BasePart") and ownerRoot) or (ownerRoot:IsA("Model") and ownerRoot.PrimaryPart) or parent:FindFirstChild("Bound") or ownerRoot:FindFirstChild("Bound") or ownerRoot:FindFirstChildWhichIsA("BasePart", true) if not part then return end local idx = #repairList + 1 local data = { Index = idx, Model = ownerRoot, HealthObj = healthObj, Part = part, IsConstruct = isConstruct, ConnAncestry = healthObj.AncestryChanged:Connect(function(_, newParent) if not newParent then cleanupRepairTarget(healthObj) end end) } repairList[idx] = data repairCache[healthObj] = data end local function scanRepairDescendants(root, isConstruct) if not root or not root.Parent then return end for _, desc in root:GetDescendants() do if desc.Name == "BuildingHealth" or desc.Name == "ConstructHealth" then registerHealthObj(desc, root, isConstruct) end end end local function watchRepairRoot(root, isConstruct) if not root or not root.Parent then return end scanRepairDescendants(root, isConstruct) table_insert(isConstruct and globalConns or buildingConns, root.DescendantAdded:Connect(function(desc) if desc.Name == "BuildingHealth" or desc.Name == "ConstructHealth" then task_defer(registerHealthObj, desc, root, isConstruct) end end)) end local function bindBuildingOwnerFolder(folder) table_insert(buildingConns, folder.ChildAdded:Connect(function(child) watchRepairRoot(child, false) end)) local children = folder:GetChildren() for i = 1, #children do watchRepairRoot(children[i], false) end end local function bindBuildingsRoot(buildings) disconnectList(buildingConns) if not buildings then return end table_insert(buildingConns, buildings.ChildAdded:Connect(function(child) if child:IsA("Folder") then bindBuildingOwnerFolder(child) elseif child:IsA("Model") then watchRepairRoot(child, false) end end)) local children = buildings:GetChildren() for i = 1, #children do local child = children[i] if child:IsA("Folder") then bindBuildingOwnerFolder(child) elseif child:IsA("Model") then watchRepairRoot(child, false) end end end local existingBuildings = workspace:FindFirstChild("Buildings") if existingBuildings then bindBuildingsRoot(existingBuildings) end table_insert(globalConns, workspace.ChildAdded:Connect(function(child) if child.Name == "Buildings" then bindBuildingsRoot(child) end end)) for _, env in CollectionService:GetTagged("EnvironmentalConstruct") do watchRepairRoot(env, true) end table_insert(globalConns, CollectionService:GetInstanceAddedSignal("EnvironmentalConstruct"):Connect(function(env) watchRepairRoot(env, true) end)) local function checkAutoRepair(hammerData) local myPos = hammerData.HRP.Position local mx, my, mz = myPos.X, myPos.Y, myPos.Z local hammerRemote = hammerData.Remote local onlyConstruct = hammerData.OnlyConstruct for i = #repairList, 1, -1 do local data = repairList[i] local healthObj = data.HealthObj local model = data.Model if not (healthObj.Parent and model.Parent) then cleanupRepairTarget(healthObj) elseif not onlyConstruct or data.IsConstruct then if not data.IsConstruct or (model:GetAttribute("FullyBuilt") ~= true and model:GetAttribute("OnCooldown") ~= true) then local maxHealth = healthObj:GetAttribute("MaxHealth") or (healthObj.Parent and healthObj.Parent:GetAttribute("MaxHealth")) or model:GetAttribute("MaxHealth") or 100 if healthObj.Value < maxHealth then local p = data.Part.Position local dx, dy, dz = p.X - mx, p.Y - my, p.Z - mz if (dx * dx + dy * dy + dz * dz) <= REPAIR_RADIUS_SQ then hammerRemote:FireServer("Repair", healthObj) return end end end end end local camera = workspace.CurrentCamera if camera then local rayResult = workspace:Raycast(hammerData.Head.Position, camera.CFrame.LookVector * Config.RepairRadius, repairParams) local hitPart = rayResult and rayResult.Instance if hitPart then local constructHealth = hitPart:FindFirstChild("ConstructHealth") if constructHealth and constructHealth.Value < (constructHealth:GetAttribute("MaxHealth") or 100) then hammerRemote:FireServer("Repair", constructHealth) end end end end local function performAttack(count, weaponData, mx, my, mz) local remoteEvent = weaponData.Remote local isBayonet = weaponData.IsBayonet local swingType = weaponData.SwingType if isBayonet then remoteEvent:FireServer("ThrustBayonet", swingType) else remoteEvent:FireServer("PrepareSwing") remoteEvent:FireServer("Swing", weaponData.SwingCat, swingType) end local isHead = Config.TargetHead local partName = isHead and "Head" or "Torso" for i = 1, count do local slot = targetBuffer[i] local data = slot.Data local targetEntity = data.TargetEntity or slot.Model local basePos = (isHead and data.Head or data.Torso).Position local rx = basePos.X + math_random(-10, 10) * 0.01 local ry = basePos.Y + math_random(-10, 10) * 0.01 local rz = basePos.Z + math_random(-10, 10) * 0.01 local randPos = Vector3_new(rx, ry, rz) if isBayonet then remoteEvent:FireServer("Bayonet_HitZombie", targetEntity, randPos, isHead, partName, swingType) else local dx, dy, dz = rx - mx, ry - my, rz - mz local dSq = dx * dx + dy * dy + dz * dz local scale = (dSq > 1) and (25 / math_sqrt(dSq)) or 25 remoteEvent:FireServer("HitZombieZM", targetEntity, randPos, isHead, Vector3_new(dx * scale, dy * scale, dz * scale), partName, UP_VECTOR, swingType) end end end local function getEffectiveMaxTargets(weaponData) local maxTargets = Config.UseWeaponMaxHits and weaponData.BaseMaxHits or Config.MaxCleaveTargets if Config.UseWeaponMaxHits then local char = weaponData.Char if char and char:HasTag("Charging") then maxTargets += 2 end if weaponData.HitBuff then maxTargets += weaponData.HitBuff.Value end end maxTargets = math_max(1, maxTargets) while #targetBuffer < maxTargets do table_insert(targetBuffer, { Model = nil, Data = nil, DistSq = math.huge }) end return maxTargets end table_insert(globalConns, KeybindButton.MouseButton1Click:Connect(function() listeningForKey = true auraEnabled = false IndicatorFrame.Visible = false KeybindButton.Text = "Press any key..." end)) table_insert(globalConns, HeadButton.MouseButton1Click:Connect(function() Config.TargetHead = not Config.TargetHead HeadButton.Text = "Target Head: " .. (Config.TargetHead and "ON" or "OFF") end)) table_insert(globalConns, RepairButton.MouseButton1Click:Connect(function() Config.AutoRepair = not Config.AutoRepair RepairButton.Text = "Auto Repair: " .. (Config.AutoRepair and "ON" or "OFF") end)) table_insert(globalConns, UserInputService.InputBegan:Connect(function(input) if UserInputService:GetFocusedTextBox() then return end if listeningForKey then if input.UserInputType == Enum.UserInputType.Keyboard and input.KeyCode ~= Enum.KeyCode.Unknown then if input.KeyCode == Enum.KeyCode.RightShift then KeybindButton.Text = "RightShift reserved!" return end if input.KeyCode ~= Enum.KeyCode.Escape then Config.HoldKey = input.KeyCode end listeningForKey = false KeybindButton.Text = "Hold Key: [" .. Config.HoldKey.Name .. "]" end return end if input.KeyCode == Enum.KeyCode.RightShift then MainFrame.Visible = not MainFrame.Visible return end if input.KeyCode == Config.HoldKey then auraEnabled = true IndicatorFrame.Visible = true end end)) table_insert(globalConns, UserInputService.InputEnded:Connect(function(input) if input.KeyCode == Config.HoldKey then auraEnabled = false IndicatorFrame.Visible = false end end)) table_insert(globalConns, RunService.Heartbeat:Connect(function() local now = tick() if Config.AutoRepair and currentHammer and (now - lastRepairTick >= Config.RepairInterval) then lastRepairTick = now checkAutoRepair(currentHammer) end if auraEnabled and currentWeapon and (now - lastAttackTick >= Config.AttackCooldown) then local myPos = currentWeapon.HRP.Position local mx, my, mz = myPos.X, myPos.Y, myPos.Z local maxTargets = getEffectiveMaxTargets(currentWeapon) local count = 0 for i = 1, maxTargets do targetBuffer[i].DistSq = math.huge end for i = #zombieList, 1, -1 do local data = zombieList[i] local model = data.Model if model.Parent and data.Humanoid.Health > 0 then local p = data.HRP.Position local dx, dy, dz = p.X - mx, p.Y - my, p.Z - mz local distSq = dx * dx + dy * dy + dz * dz if distSq <= KILL_RADIUS_SQ and distSq < targetBuffer[maxTargets].DistSq then local entity = data.TargetEntity or model if not entity:HasTag("Invincible") then local insertIdx = maxTargets for j = 1, maxTargets do if distSq < targetBuffer[j].DistSq then insertIdx = j break end end for j = maxTargets, insertIdx + 1, -1 do local prev = targetBuffer[j - 1] local curr = targetBuffer[j] curr.Model = prev.Model curr.Data = prev.Data curr.DistSq = prev.DistSq end local slot = targetBuffer[insertIdx] slot.Model = model slot.Data = data slot.DistSq = distSq if count < maxTargets then count += 1 end end end else cleanupZombie(model) end end if count > 0 then lastAttackTick = now performAttack(count, currentWeapon, mx, my, mz) end end end)) local function cleanup() disconnectList(globalConns) disconnectList(charConns) disconnectList(zombieFolderConns) disconnectList(buildingConns) for i = #zombieList, 1, -1 do cleanupZombie(zombieList[i].Model) end for i = #repairList, 1, -1 do cleanupRepairTarget(repairList[i].HealthObj) end if ScreenGui then ScreenGui:Destroy() end currentWeapon = nil currentHammer = nil end if env then env.GB_Cleanup = cleanup end end) if ok then notify("G&B Aura", ("Loaded! Hold [%s] for Kill Aura."):format(Config.HoldKey.Name), 4) else if env and env.GB_Cleanup then pcall(env.GB_Cleanup) end notify("G&B Aura - Failed", tostring(err), 6) end