Player Keeps Jump Velocity when Body velocity is applied

Im trying to make a dashing system but there is an issue, when the player jump and dashes it keeps the velocity for a bit which can cause weird behaviour , the maxforce on the Y axis to 0 yet it still dosent do anything I tried setting it to math.huge still didnt affect it How do i fix this solution where the body velocity will only affect the x and z axis

Use LinearVelocity instead of BodyVelocity. The BodyVelocity instance is deprecated and shouldn’t be used. You’ll be able to achieve a good dash system where the Y-axis is restricted with LinearVelocity.

Ill try that tho i still prefer using body velocity is there any other solutions?