Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Roses are red, violets are blue, wheels are turning but car doesn't move?

Hello everyone. I made a car and I tied wheels to suspension bricks with HingeConstraints, and suspension bricks are tied to car body with PrismaticConstraints and SpringConstraints. After that I set ActuatorType to Motor, MotorMaxTorque to 2000 and MotorMaxAcceleration to 2000 too. As you see below

script.Parent.ActuatorType = Enum.ActuatorType.Motor
script.Parent.MotorMaxTorque = 2000
script.Parent.MotorMaxAcceleration = 2000

After that I made wheels turn by setting AngularVelocity to 300. Wheels are turning, but that is not enough to make the car move front or back. When I set any of these values higher to make car more powerful to move, wheels just get crazy. I also tried Velocity to move car's body but car can't even climb a slope with 10 degree. What should I do?

Note: No, I won't use DriverSeat object.

3 comments

1

Have you considered that you aren't getting friction between the wheels and the ground? It's a possibilty.

0

Lmao I love the title

0

@eLunate I checked it and set all parts' friction to 1. Still same, problem's not that.

1 answer

You should really use DriverSeat. Because it comes with it's own handy properites. If you don't want to use the driver seat object because of the gui, you can always change it in the player's core scripts.

[EDIT]

As you don't want to use a vehicle seat, you can just use a normal seat, and use user input service.

Whenever they input a key for let's say 'W' for forward we want the car to move forward. Make sure that everything is welded to the main part called Chasis. Then add velocity to the chasis and it should work.

2 comments

0

You should really read the entire question and see that he doesn't have any intention to use a DriverSeat.

0

Yes, I do not want to use that seat, but that's a friendly insisting answer @shayner32 . Who -1'ed this answer anyway? I am neutraling it back.

This discussion is preserved as it was. New answers, comments, and votes are closed.