Need a shooting script for character and for the enemy to take damage

Hi! I’m a noob at coding and i cant achive a script that makes my character shoot+reaload and that the shots damage the enemy. please help!

Only way to learn is to do! Its different in all circumstances. It could be two scripts depending on whether you use bullets or rays. Google it a bit and you will most surely get half of your answer, the rest is learning.