Data Store Script Needed

  1. Could Someone Explain To Me How To Make A Data Store Script?

  2. How Do I Make A Data Store Script?

  3. 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.

2 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.