-- discord.gg/d66H53XCsX local Players, Workspace = game:GetService("Players"), game:GetService("Workspace") local LocalPlayer = Players.LocalPlayer local Character = LocalPlayer.Character or LocalPlayer.CharacterAdded:Wait() local Humanoid = Character:WaitForChild("Humanoid") local HumanoidRootPart = Character:WaitForChild("HumanoidRootPart") local function getTool() for _, tool in ipairs(Character:GetChildren()) do if tool:IsA("Tool") and tool:FindFirstChild("MeleeSwing") and tool.Parent == Character then return tool end end return nil end local function checkNPCs() local tool = getTool() if Humanoid.Health <= 0 or not tool then return end local RemoteEvent = tool:FindFirstChild("SwingEvent") if not RemoteEvent or tool.Parent ~= Character then return end for _, obj in ipairs(Workspace:GetDescendants()) do local humanoid, rootPart = obj:FindFirstChild("Humanoid"), obj:FindFirstChild("HumanoidRootPart") if humanoid and humanoid.Health > 0 and not Players:GetPlayerFromCharacter(obj) then local targetPos = rootPart and rootPart.Position or humanoid.Position if (HumanoidRootPart.Position - targetPos).Magnitude <= 18 then RemoteEvent:FireServer(targetPos) end end end end task.spawn(function() while task.wait(0.3) do checkNPCs() end end)