Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Leaderstats script, End of game not working. help?

Asked by 3 years ago

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)
0
Is there an output? ParticularlyPenguin 71 — 3y

1 answer

Log in to vote
0
Answered by 3 years ago

The parent is supposed to be player for the leaderstats.

Ad

Answer this question