Jetski randomly turns right

Hello. I made a jetski, but when I drive it forward, it randomly turns right. Here is a video showing what happens:
https://streamable.com/52ey2q

Here is the engine script:

local vehicleSeat = script.Parent.Parent.VehicleSeat;

while wait() do
	local defaultForce = -0.5 * 1000;
	local torque =  0.0001;

	script.Parent.VectorForce.Force = Vector3.new(-1 * -vehicleSeat.Steer * vehicleSeat.Throttle, 0, defaultForce * vehicleSeat.Throttle)
	script.Parent.Torque.Torque = Vector3.new(0, torque, 0)
end

Any help?

I can’t really find the problem, but I do recommend defining your variables outside the loop as they stay the same.

1 Like

It didn’t really help. But thank you for trying to help :pray: :slight_smile:

I know, it’s just for efficiency. You don’t need to define them again every loop.

1 Like