if you get over 5 guns it will be harder to implement since the line would get bigger and bigger, this would be the most efficient way
sync on
sync rate 30
autocam off
make object cylinder 1,1
make object cylinder 2,1
scale object 1,200,500,450
scale object 2,150,450,250
position object 1,0,-7,15
position object 2,0,-7,15
xrotate object 2,50
xrotate object 1,50
lock object on 1
lock object on 2
gun_ammount=2
for i=2 to gun_ammount
hide object i
next i
do
key_down=scancode()
if key_down>1 and key_down<(gun_ammount+1)
for i=1 to gunammount
hide object i
next i
show object key_down-1
endif
sync
loop
that should be the most efficient way, i havent tested it since im downloading a file and dont wanna risk my pc crashing or anything.