Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Leaderstats script, End of game not working. help?

game.Players.PlayerAdded:Connect(function (players)

  local leaderstats = Instance.new("Folder")
  leaderstats.Name = "leaderstats"
  leaderstats.Parent = players
  
  local Cash = Instance.new("IntValue")
  Cash.Name = "Cash"
  Cash.Value = 0
  Cash.Parent = leaderstats
 end)

1 comment

0

Is there an output?

1 answer

The parent is supposed to be player for the leaderstats.

This discussion is preserved as it was. New answers, comments, and votes are closed.