Heres the script that I am using:
//From the script library
//Writen by Strife Onizuka
//http://secondlife.com/badgeo/wakka.php?wakka=LibraryTextureSwitcher
float time = 10; //give me a value if you want time based shifting otherwise set to zero
integer total;
integer counter;
next()
{
string name = llGetInventoryName(INVENTORY_TEXTURE,counter);
if(name == ""

{
total = llGetInventoryNumber(INVENTORY_TEXTURE);
counter = 0;
if(total < 1)
return;
else
name = llGetInventoryName(INVENTORY_TEXTURE,counter);
}
else if(counter + 1 >= total)
total = llGetInventoryNumber(INVENTORY_TEXTURE);
llSetTexture(name ,ALL_SIDES);
if(total)
counter = (counter + 1) % total;
}
default
{
state_entry()
{
total = llGetInventoryNumber(INVENTORY_TEXTURE);
next();
llSetTimerEvent(time);
}
// touch_start(integer a)
// {
// llSetTimerEvent(0);
// next();
// llSetTimerEvent(time);
// }
timer()
{
next();
}
}
Thanks for any help