Bolt Action Rifle SWEPS

been trying to find a way to make full working bolt action rifle SWEP I have seen some of the lua codes and not too familiar with it but i know my fair bit any suggestions by chance?