From: Nika Talaj
All that happens to the script when you sell it is that it changes to "next owner" perms, same as the prim it's in. Pete's pointed out the most likely failure, but if you post the script ... quickly! ... we can tell you what's wrong.
string textureOne = "64feac94-3a4f-0bad-f924-9b648cd57437";
string textureTwo = "1a262056-6742-1fc2-024c-fdf41fab8a60";
default{
touch_start(integer total_number){
llSay(0,"Changing textures"

;
string loadedTexture = llGetTexture(1);
if (loadedTexture != textureOne){
llSay(0,"Texture One"

;
// Y axis (grey arrows)
llSetTexture(textureOne,1);
llSetTexture(textureOne,3);
// X axis (red arrows)
llSetTexture(textureOne,2);
llSetTexture(textureOne,4);
// hollow (if hollow)
llSetTexture(textureOne,5);
}
else{
llSay(0,"TextureTwo"

;
// Y axis (grey arrows)
llSetTexture(textureTwo,1);
llSetTexture(textureTwo,3);
// X axis (red arrows)
llSetTexture(textureTwo,2);
llSetTexture(textureTwo,4);
// hollow (if hollow)
llSetTexture(textureTwo,5);
}
}
}