SHARE
TWEET

Untitled

Vzurxy Feb 2nd, 2019 (edited) 85 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local Amount = 10
  2.  
  3. local Backpack = game:GetService("Players").LocalPlayer.Backpack
  4.  
  5. for i,v in pairs(Backpack:GetChildren()) do
  6. if v.Name == "MP5" then
  7. local Gun = Backpack["MP5"]
  8. local GunControl = Gun["RifleScript"]
  9. for i = 1, Amount do
  10. local Clone = GunControl:Clone()
  11. Clone.Parent = Gun
  12. end
  13. end
  14. if v.Name == "Pistol" then
  15. local Gun = Backpack["Pistol"]
  16. local GunControl = Gun["PistolScript"]
  17. for i = 1, Amount do
  18. local Clone = GunControl:Clone()
  19. Clone.Parent = Gun
  20. end
  21. end
  22. if v.Name == "Shotgun" then
  23. local Gun = Backpack["Shotgun"]
  24. local GunControl = Gun["ShotgunScript"]
  25. for i = 1, Amount do
  26. local Clone = GunControl:Clone()
  27. Clone.Parent = Gun
  28. end
  29. end
  30. if v.Name == "Baton" then
  31. local Gun = Backpack["Baton"]
  32. local GunControl = Gun["MeleeScript"]
  33. for i = 1, Amount do
  34. local Clone = GunControl:Clone()
  35. Clone.Parent = Gun
  36. end
  37. end
  38. if v.Name == "TEC9" then
  39. local Gun = Backpack["TEC9"]
  40. local GunControl = Gun["PistolScript"]
  41. for i = 1, Amount do
  42. local Clone = GunControl:Clone()
  43. Clone.Parent = Gun
  44. end
  45. end
  46. if v.Name == "Grenade" then
  47. local Gun = Backpack["Grenade"]
  48. local GunControl = Gun["GrenadeScript"]
  49. for i = 1, Amount do
  50. local Clone = GunControl:Clone()
  51. Clone.Parent = Gun
  52. end
  53. end
  54. if v.Name == "Tazer" then
  55. local Gun = Backpack["Tazer"]
  56. local GunControl = Gun["TazerScript"]
  57. for i = 1, Amount do
  58. local Clone = GunControl:Clone()
  59. Clone.Parent = Gun
  60. end
  61. end
  62. if v.Name == "AK47" then
  63. local Gun = Backpack["AK47"]
  64. local GunControl = Gun["RifleScript"]
  65. for i = 1, Amount do
  66. local Clone = GunControl:Clone()
  67. Clone.Parent = Gun
  68. end
  69. end
  70. if v.Name == "Deagle" then
  71. local Gun = Backpack["Deagle"]
  72. local GunControl = Gun["PistolScript"]
  73. for i = 1, Amount do
  74. local Clone = GunControl:Clone()
  75. Clone.Parent = Gun
  76. end
  77. end
  78. if v.Name == "Laser Beam" then
  79. local Gun = Backpack["Laser Beam"]
  80. local GunControl = Gun["PowerScript"]
  81. for i = 1, Amount do
  82. local Clone = GunControl:Clone()
  83. Clone.Parent = Gun
  84. end
  85. end
  86. if v.Name == "Electricity" then
  87. local Gun = Backpack["Electricity"]
  88. local GunControl = Gun["PowerScript"]
  89. for i = 1, Amount do
  90. local Clone = GunControl:Clone()
  91. Clone.Parent = Gun
  92. end
  93. end
  94. if v.Name == "Dark Energy" then
  95. local Gun = Backpack["Dark Energy"]
  96. local GunControl = Gun["PowerScript"]
  97. for i = 1, Amount do
  98. local Clone = GunControl:Clone()
  99. Clone.Parent = Gun
  100. end
  101. end
  102. if v.Name == "Fire Ball" then
  103. local Gun = Backpack["Fire Ball"]
  104. local GunControl = Gun["PowerScript"]
  105. for i = 1, Amount do
  106. local Clone = GunControl:Clone()
  107. Clone.Parent = Gun
  108. end
  109. end
  110. if v.Name == "Dutchman" then
  111. local Gun = Backpack["Dutchman"]
  112. local GunControl = Gun["PowerScript"]
  113. for i = 1, Amount do
  114. local Clone = GunControl:Clone()
  115. Clone.Parent = Gun
  116. end
  117. end
  118. end
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top