I’m using this script to play sounds when hitting a playbutton:
[FONT=Courier New][SIZE=2] [COLOR=Black]on (release) {[/COLOR]
[COLOR=Black] mySound = new Sound(this);
mySound.attachSound(“soundfile”);
mySound.start(0, 1);
}
How can I make this script better so the soundfile will not start over and over again when hitting the playbutton?
[/COLOR][/SIZE][/FONT]