Advertisement
Guest User

Untitled

a guest
Jun 20th, 2019
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.08 KB | None | 0 0
  1. local Players = game.Players
  2.  
  3. Players.PlayerAdded:Connect(function(player)
  4.  
  5. repeat wait() until player.Character
  6.  
  7. --[[For Reference: 0 FPs = Max lvl 50
  8. 1 FP = Max lvl 75
  9. 2 FPs = Max lvl 100
  10. 3 FPs = Max lvl 150
  11. 4 FPs = Max lvl 175
  12. 5 FPs = Max lvl 200
  13. 6 FPs = Max lvl 250
  14. 7 FPs = Max lvl 300
  15. 8 FPs = Max lvl 350
  16. 9 FPs = Max lvl 400
  17. 10 FPs = Max lvl 500
  18.  
  19. --]]
  20. local FlashPointLevels = {
  21. [0] = 50,
  22. [1] = 75,
  23. [2] = 100,
  24. [3] = 150,
  25. [4] = 175,
  26. [5] = 200,
  27. [6] = 250,
  28. [7] = 300,
  29. [8] = 350,
  30. [9] = 400,
  31. [10] = 500
  32. }
  33. local speedforce = player.leaderstats:WaitForChild("Speed Force Inherited")
  34. local lvl = player.leaderstats:WaitForChild("Level")
  35. local xp = player.leaderstats.hidden:WaitForChild("Experience")
  36. local fps = player.leaderstats:WaitForChild("Flash Points")
  37. local maxXp = 12
  38. local canEarnXp = true
  39. player.Character.Humanoid.WalkSpeed = lvl.Value * (2/10)+ player.Character.Humanoid.WalkSpeed
  40. if lvl.Value == 1 then
  41. player.Character.Humanoid.WalkSpeed = 2
  42. end
  43. speedforce.Changed:Connect(function()
  44. if speedforce.Value % 5 == 0 and canEarnXp then
  45. print("we good")
  46. xp.Value = xp.Value + 1
  47. end
  48. end)
  49. lvl.Changed:Connect(function()
  50. if lvl.Value == 1 then
  51. player.Character.Humanoid.WalkSpeed = 2
  52. maxXp = 12
  53. elseif lvl.Value == FlashPointLevels[fps.Value] then
  54. print("wth")
  55. canEarnXp = false
  56. else
  57. print("yep")
  58. maxXp = lvl.Value * 12
  59. player.Character.Humanoid.WalkSpeed = lvl.Value * (2/10)+ player.Character.Humanoid.WalkSpeed
  60. end
  61.  
  62. end)
  63.  
  64. xp.Changed:Connect(function()
  65. if xp.Value >= maxXp and canEarnXp then
  66. lvl.Value = lvl.Value + 1
  67. end
  68. end)
  69. player.CharacterAdded:Connect(function(char)
  70. while true do
  71. wait()
  72.  
  73. print("start the char")
  74. local playerr = game.Players:GetPlayerFromCharacter(char)
  75. local speedforcee = playerr.leaderstats:WaitForChild("Speed Force Inherited")
  76. local lvle = playerr.leaderstats:WaitForChild("Level")
  77. local xpe = playerr.leaderstats.hidden:WaitForChild("Experience")
  78. local fpse = playerr.leaderstats:WaitForChild("Flash Points")
  79. local maxXpe = 12
  80. local canEarnXpe = true
  81. print("ok getting along")
  82. char.Humanoid.WalkSpeed = lvle.Value * (2/10)+ char.Humanoid.WalkSpeed
  83. if lvle.Value == 1 then
  84. char.Humanoid.WalkSpeed = 2
  85. end
  86. speedforcee.Changed:Connect(function()
  87. if speedforcee.Value % 5 == 0 and canEarnXpe then
  88. print("we good")
  89. xpe.Value = xpe.Value + 1
  90. end
  91. end)
  92. lvle.Changed:Connect(function()
  93. if lvle.Value == 1 then
  94. char.Humanoid.WalkSpeed = 2
  95. maxXpe = 12
  96. elseif lvle.Value == FlashPointLevels[fpse.Value] then
  97. print("wth")
  98. canEarnXpe = false
  99. else
  100. print("yep")
  101. maxXpe = lvle.Value * 12
  102. char.Humanoid.WalkSpeed = lvle.Value * (2/10)+ player.Character.Humanoid.WalkSpeed
  103. end
  104.  
  105. end)
  106.  
  107. xpe.Changed:Connect(function()
  108. if xpe.Value >= maxXpe and canEarnXpe then
  109. lvle.Value = lvle.Value + 1
  110. end
  111. end)
  112. end
  113.  
  114. end)
  115. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement