Thank you so much, yeah its is not supposed to be able to do that. I don't know how to fix it lol.
I think the game I made has the same movement mechanic, if you are really interested I could give you the movement script I used.