Ducksneedhelp1

Leaderstats

Jul 14th, 2020
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.48 KB | None | 0 0
  1. game.Players.PlayerAdded:Coonect(function(plr) -- You can also do Player here, but plr is shorter for that
  2.  
  3. local leaderstats = Instance.new("Folder")
  4. leaderstats.name = "leaderstats"
  5. leaderstats.Parent = plr -- You can also do the parent as plr at ("Folder", plr)
  6.  
  7. local cash = Instance.new("IntValue")
  8. cash.Name = "cash"
  9. cash.Parent = leaderstats -- As before, you can also do it at ("IntValue", leaderstats)
  10. cash.Value = 100 -- This is how much money the player will start with
  11. end)
Add Comment
Please, Sign In to add comment