Hi, I am a bit confused on how you update the client vs the server. Currently whenever the vehicle moves (local script) the server is updated via remote event (super laggy). So I think I’m supposed to update all the other clients instead and then when the vehicle stops moving update the server of its final position. However, I am confused on how to update the position of the vehicle to all clients without going via the server (I think this way there’s no lag) but then going via the server at the end. Can someone please explain how all of this works?
Summary
If it’s relevant, the player driving the vehicle has network ownership of it.
There is no way as I know to reduce lag of venicle for every accupant, but you rather can fixate characters of passenger’s characters (for example by wield constraint) or make environment of venicle move instread of venicle.
Ah. I also want players who aren’t occupants to see it moving though, so am trying to replicate the movement to all clients but don’t know how. Cause currently a remote event tells the server, but I think that’s wrong.
You don’t need to keep a remote event, make the vehicle SetNetworkOwner() as the player, now if you do any changes to the vehicle locally using a local script, then it does the same on server-side, this is not at all laggy, and this is how 90% games do to avoid lag within vehicle systems