help with opponents

right now i am developing a small game where you are in a mountain terrain and can shoot jump do all that good stuff. i have made it so that my opponents will follow me how may i get them to shoot at me.
note the charactor is a block with a gun and the enemys are the same just red.
any help would be greatly appreciated

You could have the enemies create moving cubes to act as bullets and add a delay to that action…