I am trying to make a leader board that will save when a player will get coins, I already have the leader board set up, like in the top right corner of the screen, but the Coins wont save, can I get some help? Here is my script...I also already have my coins and gui for that set up.

game.Players.PlayerAdded:Connect(function(player)
	
	local stats = Instance.new("Folder",player)
	stats.Name = "leaderstats"
	
	local coins = Instance.new("IntValue",stats)
	coins.Name = "Coins"
	
end)

1 comment

0

You have to use datastore in order to save your coin