Okay so, I'm trying to make an Attached Object's Child Prim follow any avatar near me, its just a challenging thing to do and yet interesting.
so there is an object you wear it, and its root stays on attached position but its child prim follows nearby avatar Within Link Range.
It seems very simple at first but when you do you will see the rotation of your own avatar and then other factors orientations and stuff really messes up, I've tried to make it accurate but it turns out to be doing some weird movements, i think this issue has more to do with Maths and calculations than just scripting.
Please try doing it and if you figure it out Help me too!