There a a bajillion poseball script freebies, check the lsl library on the official site, or the library forum here, or possibly sources of freebies in world. You'll find every variant under the sun.
But the jist of what you want to do is something like this (IMHO):
[useless tag because these forums suck]
default
{
state_entry()
{
llSitTarget(<0,0,.6>, ZERO_ROTATION);
llSetText("Sit Here",<1,1,1>,1);
}
changed(integer change)
{
if (change & CHANGED_LINK)
{
if (llAvatarOnSitTarget() != NULL_KEY)
{
llSetAlpha(0.0,ALL_SIDES);
llSetText("",<1,1,1>,1);
llRequestPermissions(llAvatarOnSitTarget(), PERMISSION_TRIGGER_ANIMATION);
}
else
{
llSetAlpha(1.0,ALL_SIDES);
llSetText("Sit Here",<1,1,1>,1);
}
}
}
run_time_permissions(integer perm)
{
if (perm & PERMISSION_TRIGGER_ANIMATION)
{
llStopAnimation("sit"

;
string animation=llGetInventoryName(INVENTORY_ANIMATION,0 );
llStartAnimation(animation);
}
}
}
[/useless tag because these forums suck]
From: Zaria Bellman
Hi I am new to scripting and I need to adjust a poseball script that works well only it the ball doesn't become transparent when you "sit" on it nor does the text.
I know that is is probably easy to do..... can anyone help?
Here is the script:
default
{
state_entry()
{
llSitTarget(<0,0,.6>, ZERO_ROTATION);
llSetText("Sit Here",<1,1,1>,1);
}
changed(integer change)
{
if (change & CHANGED_LINK)
{
if (llAvatarOnSitTarget() != NULL_KEY)
{
llRequestPermissions(llAvatarOnSitTarget(), PERMISSION_TRIGGER_ANIMATION);
}
}
}
run_time_permissions(integer perm)
{
if (perm & PERMISSION_TRIGGER_ANIMATION)
{
llStopAnimation("sit");
string animation=llGetInventoryName(INVENTORY_ANIMATION,0 );
llStartAnimation(animation);
}
}
}