How to save the remaining data in LocalScript when the player leaves the game?

I didnt ask you to move all of those parts on the server every frame. Let the clients move the parts then every 5-10seconds you can calculate where the parts SHOULD be and ping the clients with that position. Read my post again.

So we know how fast the the parts are moving (say 5units/s) and we know the time (10seconds) so its easy to calculate where the part would have been if it was ACTUALLY moving (distance=speed*time)

So now our part should be at
(lastPosition + distance)

And we fire a remote event to the client with this position to sync the server & client. The parts DO NOT MOVE AT ALL on the server. Infact, you dont even need parts on the server. Just store the positions in a table

1 Like