# How Would I Fix this Follow Script?

**URL:** <https://forum.kirupa.com/t/how-would-i-fix-this-follow-script/182295>\
**Category:** flash\
**Created:** [March 16, 2006, 11:49pm UTC](https://forum.kirupa.com/t/how-would-i-fix-this-follow-script/182295 "2006-03-16T23:49:25Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![JoRdAnMaN](https://avatars.discourse-cdn.com/v4/letter/j/3d9bf3/32.png) [@JoRdAnMaN](https://forum.kirupa.com/u/JoRdAnMaN)\
**Post date:** [March 16, 2006, 11:49pm UTC](https://forum.kirupa.com/t/how-would-i-fix-this-follow-script/182295/1 "2006-03-16T23:49:25Z")

</div>

If u look at the swf below, im trying to make it so that the head stay on the chars shoulders and follows the moves. If u hit z u can make his tounge come out. Anyone know how to fix this? This is the script im using

onClipEvent (enterFrame) {  
\_rotation = Math.atan2(\_parent.\_ymouse+\_y, \_parent.\_xmouse-\_x)\*45/Math.PI;  
}

---

<div class="post-metadata">

**Author:** ![JoRdAnMaN](https://avatars.discourse-cdn.com/v4/letter/j/3d9bf3/32.png) [@JoRdAnMaN](https://forum.kirupa.com/u/JoRdAnMaN)\
**Post date:** [March 19, 2006, 9:44am UTC](https://forum.kirupa.com/t/how-would-i-fix-this-follow-script/182295/2 "2006-03-19T09:44:55Z")

</div>

Moving the point made it follow a little better but would i be able to get it so that the head stays on its shoulders and not rolling backwars n stuff. Look at my file ull know what i mean. I posted the fla too if anyone knows how to fix the problem.
