ROBLOX Studio - Building cars

Hey DevForums,
I’m jack a Scripter and Builder.
On a game I am working on called “State of Packston” my developer asked if I knew how to make cars which move. If you guys could set me up with a tutorial or a model to look at and reference I would be grateful.

Also,
In studio when my developers log on it lags really bad! Do you guys know a fix? Such as grouping together maybe? I did not try because honestly I don’t want the map to break or lag in game.

Additional he cannot size anything. https://gyazo.com/9aa2f61a0661f7e23a3bcf724d1ef61c that is with no free model buildings, cars, or trees.

Cheers!
JJackTed
ROBLOX Developer
Scripter and Builder

I can suggest a few options, that could reduce your lag when you enter studio:

Try to close any other applications that are running while you’re in studio. e.g spotify, discord, roblox ect.

If it lags in any other project or whenever you enter studio, I would advise you check your CPU or storage, or quality of your computer to make sure it has the ability to handle and run the task.

If you have a lot of people entering team create at once, it’s going to lag because that’s normal. Check how many people you have entering and leaving the studio that are in team create because you might need to see how many people are in there.

It also could be your builds, or scripts. I’d say that if you’re developing you should save it manually after you create something so you don’t lag out. It’s bound to lag at some point or hit lag spikes if your game has a few cars, or things in the explorer that are quite big in size.

Now everything that’s open is chrome and Studio

https://gyazo.com/e1fcd486600d4031a0e439c371d25dd3

Do you have the builds in the map, anchored even though it may not be anything related to that but if you have them all unanchored you’re going to have a lot of parts and that could cause lag spikes within your studio.

Also, if anyone else is working in studio then maybe they are working on something higher laggy because it doesn’t lag for them since they have a different computer?


https://gyazo.com/9ef321a5a28c69c22ebad8214409c7ea

If you run on a windows computer, check in Settings > System > Storage. That will show you how much storage you have on your computer, maybe get rid of files that you don’t need or that are unwanted.

I may of found the fix.
To solve the sizing issue: Screenshot by Lightshot Screenshot by Lightshot make sure those are unchecked, it says “Rotate and Move” but roblox means “Move” as scaling/resizing as well.

Regarding to your concern about creating moving cars, could you specify what type of cars you’re looking for? In terms or patrol, police cars? Or civilian cars?

Currently civilian. Picture of the build. image
The exterior looks good, it just doesn’t drive right now.

There are tons of tutorials via YouTube showing you how to make cars so you should check them out.

It looks good on the outside, but you could maybe fix up the lights and in my opinion I would make them circles to make the shape stand out seeming it looks a bit boring in my perspective.


https://gyazo.com/a86e858ab7e55416cb037d3faa6295b6

With the wheels, you could keep the model but add a mesh or a bit of texture to make it more realistic and make it feel like a real wheel off a car and make some kind of design with the texture.

Here is what I recommend with the mesh/texture:


https://gyazo.com/e8ca9ba24cbcc0dd13abed68d1576fb2

I will continue to support you throughout your development process, let me know if this helped you.

Sure. Add me on ROBLOX to join the Team create. Can you have a go? This is not my high experienced area of development.

If you require further assistance with the textures you should refer to #development-support:game-design-support

@ModernJokes Add me on ROBLOX if you can.

I cannot assist you in team create because I am currently not assisting with projects. I’ll happily give you advice and improvements you could make on your designs, or development.

If you need assistance with scripting the car, then use #development-support:scripting-support

Best of luck.

On the topic of the car; I 've been working on a chassis lately.

Setting The Car Up

What I did was make an axle for each wheel. The wheels and axles are connected through HingeConstraints (Working on an update and shifting to CylindricalConstraints alongside a suspension system, which is pretty much done). If you want a simple car, I’d stick with HingeConstraints. I wrote a little script to weld together the car’s body, and weld the axles to the body.

To stick to basics, if the applied throttle is equal to zero, I set each powered HingeConstraint’s ActuatorType to Hinge. If the applied throttle is not zero, the ActuatorType is set to Motor.


The Scripting Side of Things

The main drive script checks for certain conditions in a Heartbeat connection. The transmission part calculates the RPM through wheel RPM, current gear ratio and final drive ratio. Wheel RPM is calculated through, simply, wheel.RotVelocity:Dot(axle.CFrame.lookVector)


A Final Note

I won’t go into too much detail as this is the Building Support category, and I’m probably making numerous mistakes and missing out on things as it’s 1 AM here. If you need any help with scripting make sure to make a thread in the Scripting Support category.

I’m gonna head to sleep, I’ll make sure to check if you’ve made a topic in the morning :+1:. Don’t expect to see me online for another 12 hours though :laughing:

Oh and I forgot to mention: Steering I currently handle through a HingeConstraint, although I may shift to something like a PrismaticConstraint in the future.