Chassis physics don't replicate to client unless in direct contact

Hey there!

[Keep in mind that from my research, I’d say there’s a fairly large chance this issue is not my mistake, but a Roblox issue.]

I am currently making a car that drives by itself, this is done by a (server)script adding angularvelocity to cylindricalconstraints that are connected to my chassis wheels. The movement works… until you look at client side, here’s a video:

As you can see in the video, the physics that are used in the serverscript only work while i’m touching the car, while on server side they’re working constantly (when the car disappears, it already got to the end of the baseplate and got destroyed by falling off)

Does anyone know why this occurs and/or how to fix it?

Thanks for reading!

Do you have any code that uses the network ownership API? i.e. SetNetworkOwner, SetNetworkOwnershipAuto, GetNetworkOwner etc.

I tried it with both setting the network owner to nil(server) and to the automatical network ownership, it brought no difference

Does this vehicle system use VehicleSeats? How are you handling control? Does the client have anything to do with vehicle control?

Highly unlikely, these things just don’t happen unless you are doing something out of the ordinary.

The vehicle system uses a vehicleseat, it can be controlled by a player if they enter it, that works fine, only the part where its owned by server/auto and controlled by server script doesn’t work

If the server automatically sets the physics owner to the player, when it goes to make changes server-side, it de-replicates the change, breaking client/server. There has to be a link between client/server that validates the changes to keep it synchronized!

How is it structured? What is the code that handles the player entering the seat?

The server sets the owner to the server though

Player entering seat is irrelevant, player control works fine, driving without a player controlling is the problem currently

I can see that the player seemingly never enters the vehicle seat? This could be an issue if you use vehicle seats without actual making the player enter one.

1 Like

In the script I apply forces directly to cylindricals, the player movement reads from seat and does the same

1 Like