Advertisement
deadropz

height

Apr 18th, 2017
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.34 KB | None | 0 0
  1. print("Community Leaderboard script loaded")
  2.  
  3.  
  4. function onPlayerEntered(newPlayer)
  5.  
  6. local stats = Instance.new("IntValue")
  7. stats.Name = "leaderstats"
  8.  
  9. local lvlup = Instance.new("Sound")
  10. lvlup.SoundId = 'rbxassetid://341542294'
  11. lvlup.Name = 'LvlUp'
  12.  
  13. local mins = Instance.new("IntValue")
  14. mins.Name = "Gold"
  15. mins.Value = 0
  16.  
  17. local lvl = Instance.new("IntValue")
  18. lvl.Name = "Level"
  19. lvl.Value = 1
  20.  
  21. local XP = Instance.new("IntValue")
  22. XP.Name = "XP"
  23. XP.Value = 0
  24.  
  25. local dmg = Instance.new("IntValue")
  26. dmg.Name = "dmg"
  27. dmg.Value = 1
  28.  
  29. local Pnts = Instance.new("IntValue")
  30. Pnts.Name = "Points"
  31. Pnts.Value = 0
  32.  
  33. local handling = Instance.new("IntValue")
  34. handling.Name = 'HND'
  35. handling.Value = 5
  36.  
  37. local nedXP = Instance.new("IntValue")
  38. nedXP.Name = "nedXP"
  39. nedXP.Value = 60
  40.  
  41. local Health = Instance.new("IntValue")
  42. Health.Name = "HP"
  43. Health.Value = 80
  44.  
  45. local Spd = Instance.new("IntValue")
  46. Spd.Name = "Speed"
  47. Spd.Value = 16
  48.  
  49. mins.Parent = stats
  50.  
  51. stats.Parent = newPlayer
  52.  
  53. lvl.Parent = stats
  54.  
  55. nedXP.Parent = stats
  56.  
  57. XP.Parent = stats
  58.  
  59. dmg.Parent = stats
  60.  
  61. Pnts.Parent = stats
  62.  
  63. Health.Parent = stats
  64.  
  65. handling.Parent = stats
  66.  
  67. Spd.Parent = stats
  68.  
  69. lvl.Changed:connect(function()
  70. lvlup:Play()
  71. end)
  72.  
  73. end
  74.  
  75.  
  76.  
  77. game.Players.ChildAdded:connect(onPlayerEntered)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement