Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

I need to make a DataStore. Can you please copy and paste the full script?

Please, help! I need to make a DataStore for this:

-- Creates a leaderboard that shows player variables
    local function onPlayerJoin(player)
    	local leaderstats = Instance.new("Folder")
    	leaderstats.Name = "leaderstats"
    	leaderstats.Parent = player
     
    	local gold = Instance.new("IntValue")
    	gold.Name = "Gold"
    	gold.Value = 0
    	gold.Parent = leaderstats
     
    	local items= Instance.new("IntValue")
    	items.Name = "Molecules"
    	items.Value = 0
    	items.Parent = leaderstats
     
    	local spaces = Instance.new("IntValue")
    	spaces.Name = "Spaces"
    	spaces.Value = 2
    	spaces.Parent = leaderstats
     
    end
     

2 answers

✓ Accepted answer

This isn't a request site. Instead of giving you the whole script, I will send you the link to a tutorial by AlvinBlox here.

He explains it very well and I hope it helps you.

This discussion is preserved as it was. New answers, comments, and votes are closed.