Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
2

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

Asked by 7 years ago

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.

1
Have you considered that you aren't getting friction between the wheels and the ground? It's a possibilty. User#6546 35 — 7y
0
Lmao I love the title Prioxis 673 — 7y
0
@eLunate I checked it and set all parts' friction to 1. Still same, problem's not that. superalp1111 662 — 7y

1 answer

Log in to vote
0
Answered by 7 years ago
Edited 7 years ago

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.

0
You should really read the entire question and see that he doesn't have any intention to use a DriverSeat. shayner32 478 — 7y
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. superalp1111 662 — 7y
Ad

Answer this question