How to make good gun recoil?

here are some tutorials you can somehow put the code into your thing