Making Sweps to use for npcs

Ok, so i just want to make a swep for an npc to use, but once they start shooting it, it says something about the ViewModel, and only the gun sounds come about and they don’t shoot anything. Also, now can you make it so that an npc will only shoot the gun like once every 2 seconds?