1function onPlayerEntered(newPlayer)
2 wait(.5)
3 local stats = Instance.new("IntValue")
4 stats.Name = "leaderstats"
5
6 local score = Instance.new("IntValue")
7
8 score.Name = "Cash" -- Change "Cash" with Your Leaderstats Name
9 score.Value = 0
10
11 score.Parent = stats
12 stats.Parent = newPlayer
13end
14
15game.Players.ChildAdded:connect(onPlayerEntered)