go to events and click (when sprite is clicked) go to sound and click (start sound pop) and go then go to Motion and click (glide one second to random position and change in to 0.5 seconds then go to Variables and create one called (score)and click change Variable by 1 after that change it into score and that is how you do it
its my first time doing scratch and credit samrudh2012 and make sure to check out his amazing projects!