LinearVelocity is going in the wrong direction

the linear velocity is in the line constraint mode
relative to attachment 0

its meant to go the way the blue arrows are pointing

video:

code:

if not motor:IsA("LinearVelocity") then continue end
local side = motor.Parent.Name:lower()

if toThrottle ~= 0 then
	motor.LineVelocity = speed
elseif toThrottle == 0 and toSteer == 0 then
	motor.LineVelocity = speed
end

if toSteer ~= 0 and toThrottle == 0 then
	if side == "right" then motor.LineVelocity = turnSpeed end
	if side == "left" then motor.LineVelocity = -turnSpeed end
end
2 Likes

fixed it by switching the constraint mode to plane

2 Likes

How do you do it??? can you send me what you did?

this is months old and i completely forgot how and what i did with this project
i suggest using vector forces and just constraining it to a certain axis