Script tend to be a pain to get rid of unless you know exactly which script it is so you have a few main options, if you wait a little bit sometimes the script will finish on their own and you will regain movement. You can also simply revert to a save from before you visited the location and this should cure any issues. If you installed any mods recently it could also be due to those in which case its worth seeing if the mod page has any mention of such an issue incase there is a quick fix, some mods will have an uninstall feature in an MCM menu which can fix these issues sometimes.
Easiest would be to either revert to an older save or wait and see if it fixes though, without knowing the specific script causing it there is nothing (to my knowledge) than can really be done though many people on this forum are far more experienced than me so wait for another reply if you wish.