Advertisement
otorp2

roblox basic leader board

Jun 26th, 2019
458
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. local function onPlayerJoin(player)
  2. local leaderstats = Instance.new("Folder")
  3. leaderstats.Name = "leaderstats"
  4. leaderstats.Parent = player
  5.  
  6. -- Example of a IntValue
  7. local points = Instance.new("IntValue")
  8. points.Name = "Points"
  9. points.Value = 0
  10. points.Parent = leaderstats
  11.  
  12. end
  13.  
  14. -- Run onPlayerJoin when the PlayerAdded event fires
  15. game.Players.PlayerAdded:Connect(onPlayerJoin)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement