I was attempting to build a car in roblox but it failed

I have tried a few tutorials but seemed to fail, I am not sure if I have incomplete parts or I done constraints wrong. Could you please tell me what I did wrong?
voxelcar.rbxm (36.4 KB)


Any help would be appreciated!

1 Like

Hello!

First of all, theres no scripts in the file.
Second of all, no constraints of any kind which I think you need for creating cars. Try sending the place file instead!

1 Like

Here is the place file:
car.rbxl (92.5 KB)

1 Like

Hello!

There is no hinge constraints in the wheels…

1 Like

I think I put the hinge on the wrong part

1 Like

Take the screenshot with Constraint details ON

1 Like

1 Like

There are many issues you have here. It doesn’t look like you’ve followed any instructions of any tutorial I’ve ever seen.

I’m going to be pretty harsh because there are so many problems with your car.
It doesn’t mean you shouldn’t stop trying though, but if you watch a tutorial you need to follow it step-by-step EXACTLY.

Wheels need to be round cylinders or balls. They also can’t be touching other parts of the car. Yours are built locked into the rest of the car because of their blocky shapes. They won’t rotate or steer.

Your hinge Parts aren’t welded to the car, so when I tested it the wheels just fell off with the hinge Parts.

You have your wheels split in half, and the inner half is part of the Mesh CarBody. This means that even if the wheels did spin the inner CarBody half would still be sitting on the ground.

Your HingeConstraints Attachments are not centered in each wheel, and the Attachment in the CarBody doesn’t align with the ones in the wheel. This means the wheel Attachment will try to be pulled toward the CarBody Attachment position. The wheel Attachments need to be in the center of the wheels to let them spin correctly, and the ones in the CarBody need to be in the exact same Position as the ones in each wheel otherwise they’ll try to pull the wheel into weird positions when you test it.

Your script is looking for:

-- Find the wheels
local rearLeftWheel = car:FindFirstChild("Wheel_RL")

but in your model you don’t have the wheel named Wheel_RL you have it named WheelRL so the script is failing at that point. All the Wheels are not named the same as what the script is looking for.

-- Get the Hinge Constraints
local leftHinge = rearLeftWheel:FindFirstChildOfClass("HingeConstraint")

The next issue is the script is looking for the HingeConstraint for the rear left wheel but you have it located in a part named HingeRL which the script isn’t looking for. The HingeConstraint should be inside the wheel named Wheel_RL

The next issue is you don’t have any steering hinges in the front wheels for the steering part of the script to control. You have the Hinges for the wheel axles, but you’ve set them up as Servo. You need vertically aligned Hinges for the steering as well as wheel axle hinges.

		local steer = seat.Steer
		leftSteer.TargetAngle = steer * turnSpeed
		rightSteer.TargetAngle = steer * turnSpeed

Instead of looking for tutorials online how about you search through the forums for “how to make a car”. I know there are lots, and I’ve probably posted in a lot of them as well. In a few of those I’ve posted models of cars you can try out.