Car Spinning Predicament

For the most part my car is done, modeled and everything. But it doesn’t steer left or right. Instead, it spins as long as you hold the w or s key. Here’s where I believe the problem resides:

local speed = 60 
local Ang = 30 

vehicle_seat:GetPropertyChangedSignal("Throttle"):Connect(function()
	FL.AngularVelocity = vehicle_seat.Throttle * speed 
	FR.AngularVelocity = vehicle_seat.Throttle * speed 
	BL.AngularVelocity = vehicle_seat.Throttle * speed 
	BR.AngularVelocity = vehicle_seat.Throttle * speed
end) 

vehicle_seat:GetPropertyChangedSignal("Steer"):Connect(function()
	FL.TargetAngle = vehicle_seat.Steer * Ang 
	FR.TargetAngle = vehicle_seat.Steer * Ang
end) 

that’s all. If you need more info i can show you the model.

2 Likes

What is “FL” and what is “FR”?

1 Like

Front Left Hinge and Front Right Hinge

1 Like

The hinges force could be causing the car to spin.

1 Like

Alright, ill see how it works now.

1 Like

not sure what you meant by force, as I lowered it and it only spins slower, but ive spotting something strange, the car isnt turning at the front, in fact the wheels are completely stationary

The wheels must be welded if they do not turn. Try making all surfaces smooth if not already, and checking welds.

POW! Solved. So what you want to do is apply an angular speed of 10 to the servo and a max torque of 10000 for the motor.

Also for VehicleSeat.Throttle make FrontRight and BackRight negative.
The reason it spun was because of this, until next time. :metal: :metal: :metal:

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.