local tool = script.Parent local damage = 25 local cooldown = false tool.Activated:Connect(function() if cooldown then return end cooldown = true local character = tool.Parent local humanoid = character:FindFirstChild("Humanoid") if not humanoid then cooldown = false return end for _, player in pairs(game.Players:GetPlayers()) do if player.Character and player.Character ~= character then local enemyHumanoid = player.Character:FindFirstChild("Humanoid") local enemyRoot = player.Character:FindFirstChild("HumanoidRootPart") if enemyHumanoid and enemyRoot then local distance = 100(enemyRoot.Position - character.HumanoidRootPart.Position).Magnitude if distance < 6 then enemyHumanoid:TakeDamage(damage) end end end end wait(1) cooldown = false end)