Server Lag doesnt just happen.
Its either you:
-
Have a bad connection to the Server
-
Have Faulty. Obsolete, or Corrupted Hardware
-
Have Outdated Software
-
Physics Applying to Hundreds (Potentially Thousands) of Parts
, Meshes
, or UnionOperations
-
Have a Script running very intense functions within a short time frame
-
Have Background Scripts Interference
You can Replicate whats on the Client to the Server. It will never be as smooth as the Client,
To get a More Accurate View:
The Server is Attempting to Replicate the game to you, while the Client is your view on the game, when using the client to update things, since its only working for you and not the Server which is doing a bunch of Calculations and Replication, it will be a lot smoother.
It is Ultimately based on your Connection to the Server, or the Available Resources that decides whether the Train is smooth, or not.
When Connection is Lost, The Server completely stops as the Connection to your Computer (PC, Xbox, etc) has been cut, no data is being sent between the Servers and your Device, meanwhile the Client continues as if nothing has happened due to its connection to your Computer.
You could try having a RemoteEvent
fire to all Clients by using FireAllClients
, that will ensure all the Players in the Server will see the same thing, and will ensure that it will be smooth for all due to Data being sent directly to the Clients to run.
But if new Players join after the Event is fired, they wont see the change as to the Server, it has only happened on the Client.
Another thing would be NetworkOwnership
Please however, do your own research on this as what i say can be false.
I Hope this is helpful.