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.
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.
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?
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 LightshotScreenshot 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?
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.
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.
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
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 . Don’t expect to see me online for another 12 hours though
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.