Making a gun is surprisingly simple in most cases, to do it follow the tutorial that is linked in the following page, as well as a few extra steps that will be listed later
follow these guidelines and once you have that done, set up the sprites and .json files in your sprite folder.