I had recently included this in another question, but I'll explain it in more detail this time.
What I want to do for my game is to save a players bricks to the game. So say there were two players on my game. One is Bob and the other is Dave. They both built something and then ROBLOX went under maintenance and all servers went down. Normally their creations would be gone. But I want to make it so that there creations save. Not to the individual either. So Bob joined back and Dave didn't, Bob would be able to see both his and Dave's creation. Is this possible? I have found nothing like it. But if I were able to this my game would have to run on a individual server. Similar to the ROBLOX game "Meep City" (As I have stated this before)
Of course you can.
There are two ways to do as you stated. One of them is a bit outdated but it would get the job done. The other is more professional and a bit more complex. Shall we begin?
The first example we are going to be using Data Persistence.
--To save an instance --Player:SaveInstance(Key, Value) --To load an instance --Player:LoadInstance(Key) --So.... Game.Players.PlayerAdded:connect(function(Player) Player:SaveInstance('Model', Workspace.Model) wait(2) local Model = Player:LoadInstance('Model') Model.Parent = Workspace end)
As I previous stated, this method is outdated.
Stravant wrote a module a while back that allow you to save instances to Roblox Datastore. I am not familiar with his module so I will post the example he uses.
https://www.roblox.com/EncodeInstance-Module-Does-not-work-with-CSG-item?id=176696010
dataStore:SetAsync("MyKey", EncodeInstance.Encode(someModel)) local someModel = EncodeInstance.Decode(dataStore:GetAsync("MyKey"))
I hope this help in some way. If it did feel free to thumb up. :)
-Kuri