BodyVelocity making character fall if he moves against something

Hey guys, my character keeps falling after rolling with bodyvelocity, when it rolls against something welded or anchored.

I tried switching to VectorForce but ithe speed wasnt constant. If i was on the ground it’d go slower than when i was mid air. I also tried LineForce but that didnt even start,

Example: Normal Rolling

Example: Rolling against something

thanks for the help :slight_smile:

Can you try BodyForce? That might not do the thing

Hey storm,

You can disable falling over easily through a humanoid.

-- Code for stopping a humanoid from falling over.
local stateType = Enum.HumanoidStateType

local character = script.Parent
local humanoid = character:WaitForChild("Humanoid")

humanoid:SetStateEnabled(stateType.FallingDown, false)
humanoid:SetStateEnabled(stateType.Ragdoll, false)

That way it doesn’t flop, be aware though if you use too high a body force it will send your character flying :laughing:

1 Like

didn’t work man, im still falling over

You could try decreasing the max force on the bodyvelocity

use this in a local script

Humanoid:SetStateEnabled(Enum.HumanoidStateType.FallingDown, false)
Humanoid:SetStateEnabled(Enum.HumanoidStateType.Ragdoll, false)

sorry im a little late but i had the issue and wanted to help anyone else who is looking for the solution