I want to have an infinitely generated map which could cause lag if I were to keep each chunk of the map in the game as the players moves. An obvious solution to this is to remove the chunk if you are not within distance to see it.
(Chunks need to save if you move away and then come back, do not need to save after rejoin)
My question is, Is this necessary? If so, would I put unloaded chunks in replicated storage?
You definitely need a render system, and I would suggest saving chunk data in a string (if you use a bunch of values such as ints, booleans, etc. it helps to use json encoding), because you can then save that data to a datastore or something to always load the same chunk features