I know how to build the gun, Just I just don't know how to make a script to where when the bullet damages the player and it gives you like, 1$.
Have you tried anything yet?
At SH, we're not going to make your scripts. If you try, and fail, we will help you. But unless you've tried and proven you tried to make it, we won't help you.
Come back when you have a script made and you need help on IMPROVING it.