If player is standing a certain script enables, if a player walks then script disables

This is pretty obvious. Its because youre disabling the script while the ik is still active. It uses CFrames, no? this means it wont reset when the script is disabled. Ive got 2 options for you.

Make a script that reverts the CFrames back to normal

or

Make the script again / if you got it online, make the script yourself so you can understand the script and change certain things.