im triying to make a shootsound, but if i press the shootbutton one time, the sound gets played infinitly. im using this code:
func process(delta):
if Input.isactionjustpressed("shoot"):
$AudioStreamPlayer.play()
pass
what do i have to add to the script?