Easy! Use this as a starting point
Rem * Title : Simple Gun
Rem * Author : TGWDNGHN
Rem * Date : Sept 23
`Standard Initialization
Sync On
Sync Rate 0
`Load Gun
Load Object "Gun.x",1
Scale Object 1,150,150,150
Position Object 1,0,0,0
Autocam Off
`Make Bullets For Gun
for x=2 to 12
make object sphere x,0.025
Color object x,RGB(0,255,0)
hide object x
next x
`make array in which it checks to see if bullet is ready
dim bullets(10)
dim bullet_life(10)
dim bullet_used(10)
wait=10
`Bulet Used...to move it
BU=2
`change the variable to read all bullets as not ready
for x=1 to 9
bullets(x+1)=0
bullet_life(x+1)=0
bullet_used(x+1)=0
next x
`Main Loop
Do
`decrease the "waiting amount"
dec wait
`See if Spacekey was pressed
if spacekey()=1
`check to see which bullet is ready
for x=1 to 9
if bullets(x+1)=0 and wait<=0
bullets(x+1)=1
bullet_life(x+1)=100
Show Object x+1
Position Object x+1,0,0,0
Set Object to Object Orientation x+1,1
bullet_used(x+1)=1
wait=10
endif
next x
endif
`decrease bullet life and prepare it if its "DEAD"
for x=1 to 9
bullet_life(x+1)=bullet_life(x+1)-1
if bullet_life(x+1)<=0
bullet_life(x+1)=0
Hide Object x+1
bullets(x+1)=0
bullet_used(x+1)=0
endif
next x
for x=1 to 9
if bullet_used(x+1)=1 then move object x+1,0.1
next x
`Keyboard moves the gun...
If upkey()=1 then pitch object up 1,1
If downkey()=1 then pitch object down 1,1
If leftkey()=1 then turn object left 1,1
If rightkey()=1 then turn object right 1,1
Sync
Loop
tweak it to your needs...and you can make the gun a cylinder or something...