Always wanted to create a building game? A sandbox game? If you did then you might though already in the beginning on this question: “How can I save instances?”.
And this is not easy, you can not simply write
SetAsync(workspace) or SetAsync (anyOtherInstance), that is exactly why I made this. You can do exactly that with this module!
- Save any instance (the size of the instance does not matter)
- Fast loading and saving (without lags (when you configurate the speed correctly))
- Configurable (add animations, async loading and saving …)
- Saving attributes
- Efficient saving
For example, it can easily save things like that:
(These objects in the image are free models and not made by me)
That sounds great but I wanna see an example
In this video, it serialized and saved it, deleted it and loaded it again in a really short time.
(These objects in the video are free models and not made by me)
- 4130 parts
- ~ 34 lines code
- Only 390652 characters
It is recommended that you already can use the DataStoreService.
You can view the documentation here
SavingSaving player data with game:GetService("Players").PlayerRemoving will not work in roblox studio because the game closes before it completes the saving procces.
(Infinity yielding bug by roblox)
Please try it in game and also I recommend using game:BindToClose, more information here, and for testing in studio (you can find that out with RunService), I simply recommend you implementing auto-saving. But you can also implement autosaving for the normal game too.
Read here more about saving player data per se https://developer.roblox.com/en-us/articles/Saving-Player-Data.
More information on the FAQ page
ServicesServices can not be created so only the content of the service can be saved and loaded to the service.
How can I install it?
View instructions on how to install it here.
It is under the GNU Affero General Public License v3.0 (GNU AGPLv3).
Read more: GNU Affero General Public License v3.0 | Choose a License