local players = game:GetService("Players") local localPlayer =players.LocalPlayer game:GetService("RunService").RenderStepped:Connect(function() local meleetool if localPlayer.Character:FindFirstChildWhichIsA("Tool") and localPlayer.Character:FindFirstChildWhichIsA("Tool"):FindFirstChild("MeleeServer") and localPlayer.Character:FindFirstChildWhichIsA("Tool"):FindFirstChild("MeleeServer"):FindFirstChild("Hit") then meleetool = localPlayer.Character:FindFirstChildWhichIsA("Tool") end if meleetool then for _,v in players:GetChildren() do if v.Name ~= localPlayer.Name and localPlayer.Character ~= nil and v.Character ~= nil and localPlayer.Character:FindFirstChild("HumanoidRootPart") and v.Character:FindFirstChild("HumanoidRootPart") and (localPlayer.Character.HumanoidRootPart.CFrame.Position - v.Character.HumanoidRootPart.CFrame.Position).Magnitude < 25 then meleetool.MeleeServer.Hit:InvokeServer(v.Character:FindFirstChild("Humanoid")) end end end end)