The problem was that the sprite was going to glide after the music finished playing, so I added another, "When green flag clicked" block of code.