-
Could Someone Explain To Me How To Make A Data Store Script?
-
How Do I Make A Data Store Script?
-
So Far I Have Never Made A DataStore Script Before.
game.Players.PlayerAdded:Connect(function(plr)
local leaderstats = Instance.new("Folder")
leaderstats.Parent = plr
leaderstats.Name = "leaderstats"
local Strength = Instance.new("NumberValue")
Strength.Parent = leaderstats
Strength.Name = "Strength"
Strength.Value = 0
local Coins = Instance.new("NumberValue")
Coins.Parent = leaderstats
Coins.Name = "Coins"
Coins.Value = 0
local Rebirths = Instance.new("NumberValue")
Rebirths.Parent = leaderstats
Rebirths.Name = "Rebirths"
Rebirths.Value = 0
end)
The Code Above Is The Leaderstats Script I Used. ^
I just need someone to write me a code for it and explain to me how it works.