Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- game.Players.PlayerAdded:Coonect(function(plr) -- You can also do Player here, but plr is shorter for that
- local leaderstats = Instance.new("Folder")
- leaderstats.name = "leaderstats"
- leaderstats.Parent = plr -- You can also do the parent as plr at ("Folder", plr)
- local cash = Instance.new("IntValue")
- cash.Name = "cash"
- cash.Parent = leaderstats -- As before, you can also do it at ("IntValue", leaderstats)
- cash.Value = 100 -- This is how much money the player will start with
- end)
Add Comment
Please, Sign In to add comment