Help with bodyVelocity

So I have a skill in my game where you can boost forwards at super high speeds. It creates a bodyvelocity on the server which sends the player straight forward. And it uses both raycast and hitbox detections to check for players and walls so that it can slow down once it hits something. The issue is that sometimes the player’s torso collides with a small bump on the ground, making them go in some random direction.

So does anyone know how to make a bodyvelocity skip over ledges? Or if theres a different way of moving the player.

Don’t do the BodyVelocity on the server. You’re going to have to raycast to see if the player is about to hit the part and move them upwards. Make sure you raycast locally to save performance and if the BodyVelocity is on the client you can just adjust it easily.