11-04-2007 08:27
This must be one of the most requested scripts on this forum. I found this just sitting in the replies of a post on the tips forum. Obviously I take no credit for this, just reposting it because everyone wants it.

It's perfect for prim shoes or replacing bodyparts with prims, ENJOY!

Thank you Mr. Chris Knox

////The Better Invisibility Script
//from Chris Knox
refresh()
{
llSetTexture("38b86f85-2575-52a9-a531-23108d8da837", ALL_SIDES);
llOffsetTexture(0.468, 0, ALL_SIDES);
llScaleTexture(0, 0, ALL_SIDES);
llSleep(30);
llSetTexture("e97cf410-8e61-7005-ec06-629eba4cd1fb", ALL_SIDES);
llOffsetTexture(0.468, 0, ALL_SIDES);
llScaleTexture(0, 0, ALL_SIDES);
}

default
{
state_entry()
{
refresh();
llSetTimerEvent(5);
}

timer()
{
if ((integer)llGetWallclock() % 60 < 10)
{
refresh();
}
}
}

Just put that script into any prim and it'll make your avatar and anything partially transparent invisible.

So, if you'd like to attach this to your avatar to make yourself invisible, just set any attachments you have to a transparency of 1 (you won't notice a difference) and you disappear when surrounded by a prim with this script in it.