Front of car falls and prevents driving

Hi all, I’m working on a basic car with a Vehicle Seat. I followed this tutorial:

However, for some reason, the front of the car falls to the ground. When I try to drive the car, it’s unable to move properly. I followed the above tutorial exactly as is, but maybe I missed something.

Here’s some footage showcasing the issue:

Thank you,
Jake

Oh. I am sorry your car’s falling each time and you just can’t figure out how to fix that… It’s okay though, you can get through it eventually… I think you can. but I don’t know if you can fix that. I really don’t know if it’s something that can be fixed it could be in the source code meaning that nothing you ever do will fix it nothing will ever make it right anymore

something in your front wheels is probably anchored or one of the force objects is set up wrong

I have skipped the video to the scripting part, if your script was the same one in the vid it means that you got something wrong in the building of the car, make sure the parts are unanchored and the constraints are connected between the right parts and the right positions, if you do this, then it should work.

Ok thanks. The script I have on my end is identical to the one in the video.

local seat = script.Parent.VehicleSeat
local backLeft = script.Parent.BackLeft
local backRight = script.Parent.BackRight
local frontLeft = script.Parent.FrontLeft
local frontRight = script.Parent.FrontRight

local steerAngle = 30
local speed = 60

seat:GetPropertyChangedSignal("Steer"):Connect(function()
	frontLeft.PartB.SteeringConstraint.TargetAngle = steerAngle * seat.Steer
	frontRight.PartB.SteeringConstraint.TargetAngle = steerAngle * seat.Steer
end)

seat:GetPropertyChangedSignal("Throttle"):Connect(function()
	frontLeft.Wheel.WheelConstraint.AngularVelocity = speed * seat.Throttle
	frontRight.Wheel.WheelConstraint.AngularVelocity = speed * seat.Throttle
	
	backLeft.Wheel.WheelConstraint.AngularVelocity = speed * seat.Throttle
	backRight.Wheel.WheelConstraint.AngularVelocity = speed * seat.Throttle
end)

I checked all the parts and they’re unanchored, so I’ll double-check the constraints and get back to you.

alright good luck, We all get stuck including me, i was just stuck in something and after hours of search and attempts, i figured it out, and i am taking a break now by reading the latest posts, I believe you will be able to get it sooner or later, as long as you don’t give up.

1 Like