Howdy, I encountered this weird behavior when I was testing my game with multiple players.
My car system fully utilizes Roblox’s constraint system, so no use of bodyforces. It only uses spring and cylindrical constraints for the attachments between the wheels and the car body.
The car works normally without players on top of it.
The driver of the car owns full networkownership of the vehicle.
Here you can see what happens when the person standing on the car gets off:
it all goes back to normal physics behavior.
I have a feeling that it may be due to the stiffness of the springs, or the weight of the car, but even if that was the cause this shouldn’t happen under any conditions as its not normal physical behavior.
The behavior becomes worse with more player, server latency, or lower ping.
Here are more examples that include more players on the vehicle, the movement becomes crazier:
Keep in mind that I am not placing any throttle input the the vehicle, it is doing it by itself.
What are the typical Part’s Density Properties of the items in your car?
What happens if you print the VehicleSeat Steer and Throttle outputs to see if they are being affected by the passenger. They shouldn’t be, but might be worth a try.
The players do add weight to the car, but that wouldn’t cause it to move on its own unless the script controlling the car has some feedback from the car’s current position/velocity.
Again, I don’t know how your car is programmed. What exactly do you do to get the car to move or stop. Sounds like there is a script that changes the behavior of the constraints to make the car drive, right?
Works as it should, if a heavy part is on top of the car it’s suspension will go down with it. It doesn’t make the car move side to side like how players would
What happens if you make the part smaller, and increase it’s weight and friction?
Ah okay nevermind then.
Edit: I had some issues with players too. Once players would stand on a certain platform I created, it was supposed to move (I added springs) but it just glitched out. Normal parts would work just fine… No scripts were involved.
I have a part in my script that makes the players hats invisible when they get on the car, but apart from that there is nothing else that changes the humanoid.
When a character is standing/moving around on your vehicle, they apply an equal and opposite force on the vehicle as well. This will have a similar effect as having a “BodyForce” applied down on the points your character are standing. If your car is light enough its possible for the characters to push on the car a bit.