Make custom character not fall without anchoring it

Hi, I am making a custom character. For my game it is important that it doesn’t fall. I’ve even tried moving the character on the server, but that makes it slow. If I anchor the part it doesn’t replicate to the server. Is there a way to make it not fall without anchoring it?
Code:

local movementDirection = (workspace.Camera.CFrame.Rotation * direction * Vector3.new(1,0,1)).Unit
character.PrimaryPart.CFrame *= CFrame.new(movementDirection)
character.PrimaryPart.CFrame = CFrame.new(character.PrimaryPart.CFrame.X,height,character.PrimaryPart.CFrame.Z)

Video:

Maybe this will help

https://developer.roblox.com/en-us/api-reference/class/AlignPosition

Or you can try applying a constant upward force on the player using ConstraintMovers?

1 Like

Thanks VectorForce worked perfectly for me :smile:

1 Like