i wanna make leaderstats for my game like leaderboards saying coins: 1000 please answer meh heres my script:
print(leaderstats)
function onPlayerEntered(newPlayer) wait(0) local stats = Instance.new("NumberValue") stats.Name = "leaderstats" local cash = Instance.new("NumberValue") cash.Name = "moistbux" cash.Value = 0 --This sets the amount of money every player starts with cash.Parent = stats stats.Parent = newPlayer local cash = Instance.new("NumberValue") cash.Name = "moistbirths" cash.Value = 1 --This sets the amount of money every player starts with cash.Parent = stats stats.Parent = newPlayer end game.Players.PlayerAdded:connect(onPlayerEntered)
Closed as Not Constructive by superalp1111, User#21908, and User#19524
This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.
Why was this question closed?