Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How would I make a triple saving leaderstats? (Gold, Exp, Level)

Asked by
Nozazxe 107
4 years ago

I know how to make double save, but not triple. I’ve looked for it on YouTube but can’t find one. Can someone help me?

0
can i have the double save Jakob_Cashy 79 — 4y

1 answer

Log in to vote
0
Answered by 4 years ago
01local datastore = game:GetService("DataStoreService")
02local ds1 = datastore:GetDataStore("GoldSaveSystem")
03local ds2 = datastore:GetDataStore("ExpSaveSystem")
04local ds3 = datastore:GetDataStore("LevelSaveSystem")
05 
06game.Players.PlayerAdded:connect(function(plr)
07 local folder = Instance.new("Folder", plr)
08 folder.Name = "leaderstats"
09 local Gold = Instance.new("IntValue", folder)
10 Gold.Name = "Gold"
11 local Exp = Instance.new("IntValue", folder)
12 Exp.Name = "Exp"
13 local Level = Instance.new("IntValue", folder)
14 Level.Name = "Level"
15 
View all 36 lines...

this works it also creates the leaderstats as well

0
Thanks mate Nozazxe 107 — 4y
Ad

Answer this question