Advertisement
Animescapetower

Every Player Leaderboard Script

Jul 11th, 2018
302
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.73 KB | None | 0 0
  1. --Script made by animescapetower
  2. plr = game.Players
  3.  
  4.  
  5. gc = plr:GetChildren() -- Gets the children
  6.  
  7.  immune = false -- Another Bool Value
  8. for n = 1,#gc do -- Don't mess with this, this gives the stats to other players
  9.  
  10. int = Instance.new("IntValue") -- int don't change
  11. int.Name = "leaderstats"
  12. int.Parent = gc[n]
  13.  
  14. money = Instance.new("StringValue")
  15. money.Name = "Credits"
  16. money.Parent = int
  17. money.Value = 12  -- value changeable
  18.  
  19. hp = Instance.new("StringValue")
  20. hp.Name = "Health"
  21. hp.Parent = int
  22. hp.Value = 0 -- value changeable
  23.  
  24. ws = Instance.new("StringValue")
  25. ws.Name = "Speed"
  26. ws.Parent = int
  27. ws.Value = 0 -- value changeable
  28.  
  29. jp = Instance.new("StringValue")
  30. jp.Name = "Jump Power"
  31. jp.Parent = int
  32. jp.Value = 0 -- value changeable
  33.  
  34.  
  35.  
  36. if workspace:FindFirstChildOfClass("Folder") ~= nil then
  37. nam2 = Instance.new("Folder")
  38. nam2.Name = gc[n].Name
  39. nam2.Parent = workspace:FindFirstChildOfClass("Folder")
  40. end
  41.  
  42. name = ""
  43. name = gc[n].Name
  44. wait(0.1)
  45. char = workspace[name]
  46. hum = char:WaitForChild("Humanoid")
  47.  
  48. if hum ~= nil then -- i forget to change it to nil instead a false, fixed
  49. if char.Name == "Animescapetower" then-- Change this to your name
  50. money.Value = "OVERLOAD"
  51. end
  52. hum.Died:connect(function()
  53. print("Someone died") -- print you can change it
  54. wait(0.6)
  55. int:Destroy()
  56. end)
  57. while wait() do
  58. hp.Value = hum.Health
  59. ws.Value = hum.WalkSpeed
  60. jp.Value = hum.JumpPower
  61. end
  62. end
  63.  
  64.  
  65. immune = true
  66. while wait(math.random(1,3)) do -- same to the 1 and 6
  67. if immune == true then
  68. money.Value = money.Value + math.random(1,40) -- change 1 or 40 to a random number
  69. if char.Name == "Animescapetower" then -- Change this to your name
  70. immune = false
  71. money.Value = "OVERLOAD"
  72. end
  73. end
  74. end
  75.  
  76.  
  77.  
  78.  
  79.  
  80. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement