Thanks Qie, i've changed the left click option to "sit on object" instead of "touch/grab" & also modified the script to un-sit the av. But the problem now is that there isn't a request for animation permission. So my av doesn't animate.
If i change the left click option back to "touch/grab" while using the modified script, the permission & animation comes as expected, but my av doesn't teleport to the object.
No worries about moving off though. The animation makes the av walk only on the spot. If it helps, the script i'm using is below:
default
{
state_entry()
{
llSetText("Teleportation test",<1.0,1.0,1.0>,1.0);
llSetTextureAnim(ANIM_ON | SMOOTH | LOOP , ALL_SIDES, 1, 1, 1, 1, 0.45);
llSay(0, "Hello, Avatar!"

;
}
touch_start(integer i)
{
llRequestPermissions(llDetectedKey(0), PERMISSION_TRIGGER_ANIMATION);
llSitTarget(<0.0, 0.0, 1.0>, ZERO_ROTATION);
//llRequestPermissions(llDetectedKey(0), PERMISSION_TRIGGER_ANIMATION);
}
changed(integer change) //event changed
{
if (change & CHANGED_LINK)
{
key user = llAvatarOnSitTarget();
llUnSit(user); //unsit the avatar on the sit target
}
}
run_time_permissions(integer perm)
{
if (perm & PERMISSION_TRIGGER_ANIMATION)
{
llStartAnimation("Walk Slow"

;
llOwnerSay("animation will end in 10 seconds"

;
llSetTimerEvent(10.0);
}
}
timer()
{
llSetTimerEvent(0.0);
llStopAnimation("Walk Slow"

;
}
}