ezSave is a module for DataStore2.
It has some functions for saving, loading and more.
There are currently few functions. But I’ll add more soon.
Why ezSave?
ezSave is easy to use and even people who isn’t good at coding can do things with DataStore2
Examples
Load Example:
local ezSave = require(location)
game.Players.PlayerAdded:Connect(function(Player)
ezSave.Load(Player, "Cash")
local playerCash = ezSave.res
end)
Save Example:
local ezSave = require(location)
game.Players.PlayerRemoving:Connect(function(Player)
ezSave.Save(Player, "Cash", Player.Cash.Value)
end)
Documentation
Mods
There are also mods for ezSave Which can made by anyone. There is currently 1 mod that is created by me. It’s called ezStats. It’s really easiest way to make a leaderstat which is fully configurable.
If you want to learn more about ezStats, go here https://github.com/Zelqify/ezSave/tree/main
Get ezSave
You can put the module to anywhere you want. I preffer ServerScriptService. So it’s not reachable from client.
It’s same as DataStore2. Which can save everything that is can saved by DataStore2.
Unfortunaly it doesn’t support multiple parameters but you can always save tables.
You can do it like this example:
game.Players.PlayerRemoving:Connect(function(Player)
local ezSave = require(game.ServerScriptService.ezSave)
local myTable = {"Hello","Hi","This is a testing"}
ezSave.Save(Player, "table_test", myTable)
end)
Also If you don’t understand the second parameter in the Save() function, it is the key for our saving. And it is recording as Player.UserId … yourkey when ezSave is saving it.