Stop+Animations

code //Place this script in an object and click on it if your Avatar gets stuck in an animation

key stopme;

default {   state_entry {   llSetTouchText("STOP"); llSetText("stop all animation

",<1,1,1>,1);   }    touch_start(integer total_number)    {        stopme = llDetectedKey(0);        llRequestPermissions(llDetectedKey(0),PERMISSION_TRIGGER_ANIMATION);    }    run_time_permissions(integer a)    {        if (a & PERMISSION_TRIGGER_ANIMATION)        {            string null=(string)NULL_KEY;            list a=llGetAnimationList(stopme);            integer b;            for (b;b<llGetListLength(a);b++)            {                //sometimes it gives you a null key, it's a bug and very annoying. remove if statement when fixed.                if (llList2String(a,b)!= null )                {                   if(llList2String(a,b) != "2408fe9e-df1d-1d7d-f4ff-1384fa7b350f")                    {                    llStopAnimation(llList2String(a,b));                    }                }            }

llStartAnimation("stand");

}

} }

code