Having some problems with a script I am writing. I have an obbject that when clicked calls a menu. When a menu option is selected it sends a linked message to another script on the object. It is the linked script I am having the problem with. My goal is to have each menu option passed to the script initiate a positioned sit, and run an animation. I just can not get it to work. I will attempt to attach the script here, and perhaps someone could point out what I am doing wrong....
integer gChannel = 0;
default
{
state_entry()
{
llRequestPermissions(llAvatarOnSitTarget(), PERMISSION_TRIGGER_ANIMATION);
}
link_message(integer sender_num, integer num, string str, key id)
{
if (str == "laydown"

{
vector POSITION=<0.25,-0.75,-0.4>;
rotation ROT=<1,0,0,1>;
integer perm = llGetPermissions();
if (perm & PERMISSION_TRIGGER_ANIMATION)
{
llSitTarget(POSITION, ROT);
llStopAnimation("sit"
;llStartAnimation("lay1"
;}
llSay(gChannel, "Laying Down"
;}
if (str == "sitguy"

{
llSay(gChannel, "SITGUY"
;}
if (str == "sitgirl"

{
llSay(gChannel, "SITGIRL"
;}
if (str == "relax"

{
llSay(gChannel, "RELAX"
;}
}
}
Thanks!
Anderion