I want my skateboards to be able to roll up and down ramps smoothly but the board kind of flys out sideways. I am using a PID controller to keep the board upright based on the normals on a part.
Ive tried making the value a negative but that just doesnt work. Heres my code, thanks for any help in advance.
rs.Heartbeat:Connect(function(dt) local orientZ = hrp.Orientation.Z local orientX = hrp.Orientation.X local balanceForceZ = bpidZ:Calculate(hnZ,orientZ,dt) local balanceForceX = bpidX:Calculate(-hnX,orientX,dt) vf.Force = Vector3.new(-balanceForceZ,0,balanceForceX)*75 end)