in each Child Prim..
//----------------------------------\\
float ANIM_SPD = 0; // we'll use ANIM_SPD as a variable for the
// animation speed float in the llSetTextureAnim command.
float X = 0.020;// replace this example number with a valid
// float for the speed you want. using a variable at top
// makes it easier to change as this script will
// set the speed to this variable when it's called.
// each script in every child prim will have different float values
// here to achieve your desired effect.
default
{
state_entry()
{
llSetTextureAnim(ANIM_ON | SMOOTH | LOOP, ALL_SIDES,0,1,1.0, 1,ANIM_SPD);
}
link_message(integer sender_num, integer num, string str, key id)
// the link_message event is the "listen" of the MessageLinked event of the root script.
{
if(str=="on"

// this takes the string called str from the incoming MessageLinked
// and sets the condition that if the message srting is specifically "on" to..
{
ANIM_SPD=X; // sets ANIM_SPD variable to X value defined
// at the beginning of the script. This method makes it
// easier to make adjustments.
} else // this makes it so if the message is ANYTHING BUT "on" to do the following...
{
ANIM_SPD=0; //this is zero, to stop the animation
}
llSetTextureAnim(ANIM_ON | SMOOTH | LOOP, ALL_SIDES,0,1,1.0, 1,ANIM_SPD);
}
}
_________________________
link your prims then in the root prim put in this
//----------------------------------\\
string toggle;
default
{
state_entry()
{
toggle = "off";
llMessageLinked(LINK_SET, 0, toggle, NULL_KEY);
}
touch_start(integer total_number)
{
if(toggle=="off"

{
toggle="on";
} else
{
toggle="off";
}
llMessageLinked(LINK_SET, 0, toggle, NULL_KEY);
}
}
__________
i just built this inworld and it works
