local game = game local players = game:GetService("Players") local localPlayer = players.LocalPlayer local character = localPlayer.Character local runService = game:GetService("RunService") local cd = 0 runService.RenderStepped:Connect(function(delta) character = localPlayer.Character local weapon = character:FindFirstChildWhichIsA("Tool") if cd > 0.005 then for _,v in workspace:GetChildren() do if v:FindFirstChild("Humanoid") and v:FindFirstChild("Mob") and v.Mob.Value == true and v.Humanoid.Health > 0 and not players:FindFirstChild(v.Name) and weapon and weapon:FindFirstChild("FEMeleeKitEvents") then weapon.FEMeleeKitEvents.Attack.Attack_Server:FireServer(v,"Handle") elseif v:FindFirstChild("Humanoid") and v:FindFirstChild("Mob") and v.Mob.Value == true and v.Humanoid.Health > 0 and not players:FindFirstChild(v.Name) and weapon and weapon:FindFirstChild("RemoteFunction") then weapon.RemoteFunction:InvokeServer("hit",{v.Humanoid,100000}) end end cd = 0 end cd += delta end)