guys so im making a game where you have to buy something from the shop and i keep messing up the code and im tired already and i need help
game.Players.PlayerAdded:Connect(function(player)
local leaderstats = Instance.new("Folder",player)
leaderstats.Name = "leaderstats"
local cash = Instance.new("IntValue",leaderstats)
cash.Name = "Gold"
cash.Value = 1000
end)

3 comments
Hi, the code works perfectly. I don't think you got enough sleep.
ok i ge it this means there must be something wronk in an other script?
https://developer.roblox.com/en-us/articles/Leaderboards just follow this and you'll get there