your player is probably on the layout at the start of the layout, right?
try something like this
on start of layout > player.destroy
wait 0.5s
System > create player
On create player > do what you want
About spawning guns, maybe you should read about containers on the manual / tutorial section.