How do i keep velocity and stop character from moving while mid-air?

Most of the posts I have seen on this topic do keep velocity while mid-air, but they are controllable. I do not want mine to be controllable.
I have tried setting the humanoid state to physics, but i do not know how to revert it without letting the humanoid change states as normal.

what do i do?

Not controllable at all, like you cannot change your direction no matter what when you’re midair?

yep.

This text will be blurred

I don’t really know how to do this without making custom movement, if you can do that you could take some kind of force object (stuff like LinearVelocity), set the humanoid’s walkspeed to 0, then manually set the velocity as it should be

Or you could use CharacterControllers, I think their example included one where you can’t change your direction midair

Check ControllerStateMachine.lua on this post