game.Players.PlayerAdded:Connect(function(player)
local leaderstats = Instance.new
leaderstats.Name = "leaderstats"
leaderstats.Parent = player
local cash = Instance.new("IntValue")
cash.Name = "cash"
cash.Value = 10000
cash.Parent = leaderstats
end)

5 comments
What are you trying to do?
any errors? It all looks fine to me
In the top bar in studio, click on view then output, then run the game and see if any red stuff shows up in the output
I can help if I know what you're trying to do
I'm trying to make like a leaderboard thing and it shows ur cash in the corner and stuff cause im starting to make a egg simulator