StatBase - V2
Hello, today i want to share my second version of my module!
Im so sorry for my bad english.
Download Source
Roblox Library: (StatBase - V2! - Roblox)
Scripting
-------- Example --------
local StatBase = require(game.ReplicatedStorage.StatBase.MainModule)
game.Players.PlayerAdded:Connect(function(p)
StatBase.CreateStats(p.Name)
StatBase.NewStat(p,"FirstStats","IntValue",0)
StatBase.NewStat(p,"SecondStat","IntValue",0)
StatBase.LoadData(p,"FirstDataStore","FirstStats")
StatBase.LoadData(p,"SecondDataStore","SecondStat")
--StatBase.SetData(p,"FirstDataStore","FirstStats") -- it saves the data
end)
Example
Current version: 2.0