Hi so I am new to this Scripting stuff and I don't know how to add another stat along with one on my leaderstats. Here is what I tried to do,
> function onPlayerEntered(newPlayer)
wait(.5)
local stats = Instance.new("IntValue")
stats.Name = "leaderstats"
local score = Instance.new("IntValue")
score.Name = "Sips"
score.Value = 0
score.Parent = stats
stats.Parent = newPlayer
end
function onPlayerEntered(newPlayer)
wait(.5)
local stats = Instance.new("IntValue")
stats.Name = "leaderstats"
local score = Instance.new("IntValue")
score.Name = "Cash"
score.Value = 0
score.Parent = stats
stats.Parent = newPlayer
end
game.Players.ChildAdded:connect(onPlayerEntered)

2 comments
Please format your code. It's hard to read so we can't help you. In order to properly format the code, press the little blue button on the top when editing/writing your code.
I fixed it can you help now?