integer ON = 0; //STATE OF SCRIPT//YOU EDIT THESE PARTS FOR NEW ANIMATIONS, SOUND CLIPS ETC. DO NOT TOUCH THE SCRIPTstring animation = "blueberry"; //ANIMATION NAMEinteger MaxSoundClips = 19; //AMOUNT OF SONG CLIPS, NAME THEM 1,2,3,4,ETC integer SoundLength = 10; //FIRST SERIES OF SOUND LENGTHSinteger LastSoundLength = 2; //INCASE LAST SOUND CLIP IS SHORTERinteger SoundClipNumber = 0; //FOR SOUND LOOPResetToDefault(){ llStopSound(); llSetTimerEvent(0.00); llStopAnimation(animation); ON = 0; SoundClipNumber = 0;} default{ state_entry() { llListen(0, "", "", ""); } attach(key id) { if(id) { llOwnerSay(" Commands 'on' or 'off'"); llRequestPermissions(id, PERMISSION_TRIGGER_ANIMATION); } else ResetToDefault(); } timer() { llPlaySound((string)(++SoundClipNumber),1.0); if(ON == 1){llSetTimerEvent(SoundLength); ON = 2;} if(SoundClipNumber == MaxSoundClips){llSetTimerEvent(LastSoundLength); ON = 1; SoundClipNumber = 0;} llPreloadSound((string)(SoundClipNumber+1)); } listen(integer channel, string name, key id, string message) { message = llToLower(message); if (ON == 0 && message == "on") { ON = 1; llStartAnimation(animation); llSetTimerEvent(0.01); } else if(message == "off"){ResetToDefault();} }}