sadly I might be unable to fix the movement system. I have tried making my own code on it... and succeeded and failed in same time.
Sadly when bugs are made they affect more than the player if the fix is not clean. Which would mean remaking this whole game from scratch, I hope you understand, but I thank you, and wish you a very nice day