Leader Stat Script won't work

My leader stat script won’t work. I want it to display in the leader boards “Souls” and “Coins” So i made a script for that though it won’t work.

game.Players.PlayerAdded:Connect(function(player)
	local stats = Instance.new("Folder")
	stats.Name = "leaderstats"
	stats.Parent = player
	
	local souls = Instance.new("IntValue")
	souls.name = "Souls"
	souls.Value = 0
	souls.Parent = stats
	
	local coins = Instance.new("IntValue")
	coins.name = "Coins"
	coins.Value = 0
	coins.Parent = stats
end)
1 Like

Write this as souls.Name

and this as coins.Name

your script worked for me after I changed those

1 Like

Agh tysm. I’m that dumb to miss spell that! lol.

1 Like