I have a rolling script and whenever a player rolls it places a body velocity inside of their humanoidrootpart.
If they jump however whilst rolling they go much farther than intended. How can I fix this? I’ve tried ending the roll if it detects humanoid state freefall or if hum.FloorMaterial == air
Well why don’t you just disable the roll ability when they are jumping and enable it again when they aren’t jumping? You could also lower the speed when they are jumping and increase it again when they aren’t jumping.
Also from the looks of it, when rolling on a floor you will intentionally have less speed due to friction and when in air your speed will increase so try changing the speed or make the max force and power of the body velocity higher