Custom Movement Issues

I’ve created a 2D movement system, by using MoveTo() depending on whether the player holds A or D, and when they press space bar the Humanoid.Jump is set to true.

My main issue is that when they player jumps it freezes and unfreezes randomly. I’m quite baffled as to why it would, because once they land it works like normal again.

More specifically, the character freezes for a millisecond before the jump, and then after about 1 second into the jump will freeze again until it hits the ground.

Here is a video demonstrating the issue:

Is there any way to fix this so that it behaves like a normal roblox character?

hmm, i don’t know if it is the humanoid physics because i can’t see the code, but i think that you can fix it by changing the Humanoid StateType

I’ve found the solution. If you want to make custom movement, it is better to use Humanoid:Move() rather than Humanoid:MoveTo(). This lets you move while in the Humanoid state “FreeFalling”, while Humanoid:MoveTo() will not let you move in the state “FreeFalling”, meaning you will be stuck until the humanoid’s state changes (most likely when you hit the ground).