-- Powered by ScriptBlox.com local Players = game:GetService("Players") local ReplicatedStorage = game:GetService("ReplicatedStorage") local Workspace = game:GetService("Workspace") local LocalPlayer = Players.LocalPlayer local Event = ReplicatedStorage:WaitForChild("Events"):WaitForChild("CombatEvent") local config = { enabled = true, range = 25, delay = 0.1, standardWeapons = {"Axe", "Diamond Sword", "DiamondSword"} } local attemptId = 0 local function getEquippedWeapon() local char = LocalPlayer.Character if not char then return nil, nil end if char:FindFirstChild("Mace") then return "Mace", "Mace" end for _, name in ipairs(config.standardWeapons) do if char:FindFirstChild(name) then return name, "Standard" end end return nil, nil end local function getTargets() local list = {} local char = LocalPlayer.Character local root = char and char:FindFirstChild("HumanoidRootPart") if not root then return list end for _, obj in ipairs(Workspace:GetChildren()) do if obj:IsA("Model") and obj ~= char then local hum = obj:FindFirstChild("Humanoid") local hitbox = obj:FindFirstChild("PlayerHitbox") if hum and hitbox and hum.Health > 0 then local dist = (root.Position - hitbox.Position).Magnitude if dist <= config.range then table.insert(list, { Humanoid = hum, Hitbox = hitbox }) end end end end return list end task.spawn(function() while true do if config.enabled then local weaponName, weaponType = getEquippedWeapon() if weaponName then local char = LocalPlayer.Character local root = char and char:FindFirstChild("HumanoidRootPart") local targets = getTargets() for _, target in ipairs(targets) do if target.Hitbox and target.Humanoid then pcall(function() if weaponType == "Mace" and root then attemptId = (attemptId + 1) % 10000 local originPos = root.Position + Vector3.new(0, 15, 0) local targetPos = target.Hitbox.Position local aimDir = (targetPos - originPos).Unit Event:FireServer( target.Humanoid, target.Hitbox, 1, "Mace", { SmashMissTipPosition = targetPos, SmashMissRayOrigin = originPos, FallSpeed = 600, AimDirection = aimDir, ClientMaceSmashHitPosition = targetPos, SourceCharacter = char, FallDistance = 800, SmashAttemptId = attemptId, ClientMaceSmashHurtbox = true } ) elseif weaponType == "Standard" then Event:FireServer( target.Humanoid, target.Hitbox, 1, weaponName, { SourceCharacter = char, IsFalling = true } ) end end) end end end end task.wait(config.delay) end end)