How to make BodyVelocity maxforce only forward based on lookVector

  1. What do you want to achieve?
    I want to make a BodyVelocity that will go forward but the MaxForce should only be forward, so I can move left and right but it still propels me forward.

  2. What is the issue?
    The issue is I don’t know which axis is forward so I can change the MaxForce.

  3. What solutions have you tried so far?
    I tried just giving the root velocity but for some reason, it didn’t work at all.
    I did this before: Root.Velocity = Root.Velocity + Root.CFrame.lookVector * 12

local BodyVelocity ="BodyVelocity")
BodyVelocity.Velocity = Player.Character.HumanoidRootPart.CFrame.lookVector * 12
BodyVelocity.MaxForce =, 0, 1e5) -- Here is the part I don't know how to fix to make it only go forward and not left and right 
BodyVelocity.Parent = Player.Character.HumanoidRootPart 
Debris:AddItem(BodyVelocity, .3)
1 Like