im getting an error but its not consistent when debugging, it occasionally happens
error>
invalid set index 'stream' ( on base: 'previously freed') with value of type AudioStreamSample
func _on_shotgunshell_body_entered(_body):
#shellmesh.set_layer_mask(1)
var n = randi() % (shellSounds.size() - 1) + 1
#error here>
myAudio.stream = shellSounds[n]
myAudio.pitch_scale = random.randf_range(0.8, 1.2)
myAudio.play()