So I want to make my car move using VectorForce but I don’t really know how I can do this.
My current code:
local speed = 100
local function setDriveForce()
local mass = getMass(vehicle)
local driveForce = (chassis.CFrame.LookVector * speed) + Vector3.new(0, -mass * workspace.Gravity, 0)
DriveForce.Force = driveForce <--- VectorForce
end
loop
I’m trying to move the car depending on the speed and make it stay on the ground.