How to use ControllerManager to keep the character's horizontal velocity in air?

I want to make it so charcaters don’t lose their velocity when they are in the air. By default all characters are trying to lose the horizontal momentum quickly, which is something I don’t want. And to fix this, I decided to use controller manager. Here is my server script located under StarterCharacterScripts:

local humanoidRootPart = script.Parent:WaitForChild('HumanoidRootPart')
local controllerManager = Instance.new('ControllerManager')
local airController = Instance.new('AirController')

controllerManager.ActiveController = airController
controllerManager.RootPart = humanoidRootPart
airController.Parent = controllerManager
controllerManager.Parent = script.Parent

local groundSensor = Instance.new('ControllerPartSensor')
groundSensor.Name = 'GroundSensor'
groundSensor.SearchDistance = 2
groundSensor.Parent = humanoidRootPart

controllerManager.GroundSensor = groundSensor

I am trying to use the AirController’s MaintainLinearMomentum property and I believe it’s something I need.

If this is not it, then you can just describe another method of changing this behaviour. I am aware that you can use LinearVelocity or something similar to save the horizontal momentum, but I don’t want to use it since it’s pretty hard to code without a lot of workarounds.

Thank you.

Bump
(Post must be at least 31 characters)