local ZAP = require(game:GetService("ReplicatedStorage").Client.ClientRemotes) local slotNumber = 2 -- your melee slot local auraDistance = 25 -- kill aura distnace while true do task.wait() local character = game.Players.LocalPlayer.Character if character and character:FindFirstChild("HumanoidRootPart") then local root = character.HumanoidRootPart for _, monster in pairs(workspace.Monsters:GetChildren()) do if monster:FindFirstChild("HumanoidRootPart") then local distance = (root.Position - monster.HumanoidRootPart.Position).Magnitude if distance < auraDistance then ZAP.meleeAttack.fire({ monsters = {monster}, civilians = {}, activeSlot = slotNumber }) break end end end end end