try:
on [shoot button] pressed
repeat 5 times
---> create object (bullet)
---> set angle (bullet) to "gun.angle + random(-15,15)"
this example creates a bullet, then sets its angle to no more than 15 degrees off the direction the gun is pointing. repeated 5 times. a bullet behavior will automatically move the bullets forward the set angle.