
In this case, as long as the button is pressed, the while loop just goes around and around, and no other part of your game will be run, therefore it seems like all froze.
+ Code Snippetif GetVirtualButtonState( 1 ) = 1 and GetSoundsPlaying( 1 ) = 0 then PlaySound( 1, 25 )
This will check it once every loop instead. It's called "nonblocking logic"
Also, remove the , behind 25 in the playsound.