Advertisement
marcelslibrary

modguns gui

Apr 12th, 2019
327
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.38 KB | None | 0 0
  1. -- Farewell Infortality.
  2. -- Version: 2.82
  3. -- Instances:
  4. local modguns = Instance.new("ScreenGui")
  5. local modgunsframe = Instance.new("Frame")
  6. local Frame = Instance.new("Frame")
  7. local Frame_2 = Instance.new("Frame")
  8. local ITamountmod = Instance.new("TextBox")
  9. local ITpistol = Instance.new("TextButton")
  10. local TextLabel = Instance.new("TextLabel")
  11. local TextLabel_2 = Instance.new("TextLabel")
  12. local exit = Instance.new("TextButton")
  13. --Properties:
  14. modguns.Name = "modguns"
  15. modguns.Parent = game.CoreGui
  16. modguns.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  17.  
  18. modgunsframe.Name = "modgunsframe"
  19. modgunsframe.Parent = modguns
  20. modgunsframe.BackgroundColor3 = Color3.new(0.117647, 0.117647, 0.117647)
  21. modgunsframe.BackgroundTransparency = 0.03999999910593
  22. modgunsframe.BorderColor3 = Color3.new(0.117647, 0.117647, 0.117647)
  23. modgunsframe.Position = UDim2.new(1, 0, 0.0280000009, 0)
  24. modgunsframe.Size = UDim2.new(0, 245, 0, 268)
  25.  
  26. Frame.Parent = modgunsframe
  27. Frame.BackgroundColor3 = Color3.new(0.333333, 0, 1)
  28. Frame.BackgroundTransparency = 0.03999999910593
  29. Frame.BorderSizePixel = 0
  30. Frame.Size = UDim2.new(0, 245, 0, 24)
  31.  
  32. Frame_2.Parent = modgunsframe
  33. Frame_2.BackgroundColor3 = Color3.new(0.333333, 0, 1)
  34. Frame_2.BackgroundTransparency = 0.03999999910593
  35. Frame_2.BorderSizePixel = 0
  36. Frame_2.Position = UDim2.new(0, 0, 0.910447776, 0)
  37. Frame_2.Size = UDim2.new(0, 245, 0, 24)
  38.  
  39. ITamountmod.Name = "ITamountmod"
  40. ITamountmod.Parent = modgunsframe
  41. ITamountmod.BackgroundColor3 = Color3.new(0.0784314, 0.0784314, 0.0784314)
  42. ITamountmod.BackgroundTransparency = 0.03999999910593
  43. ITamountmod.BorderColor3 = Color3.new(0.333333, 0, 1)
  44. ITamountmod.Position = UDim2.new(0.0899427533, 0, 0.234520942, 0)
  45. ITamountmod.Size = UDim2.new(0, 200, 0, 50)
  46. ITamountmod.Font = Enum.Font.GothamBold
  47. ITamountmod.Text = "Amount"
  48. ITamountmod.TextColor3 = Color3.new(0.333333, 0, 1)
  49. ITamountmod.TextSize = 14
  50.  
  51. ITpistol.Name = "ITpistol"
  52. ITpistol.Parent = ITamountmod
  53. ITpistol.BackgroundColor3 = Color3.new(0.0784314, 0.0784314, 0.0784314)
  54. ITpistol.BackgroundTransparency = 0.03999999910593
  55. ITpistol.BorderSizePixel = 0
  56. ITpistol.Position = UDim2.new(0.0551892072, 0, 1.32934999, 0)
  57. ITpistol.Size = UDim2.new(0, 177, 0, 45)
  58. ITpistol.Font = Enum.Font.GothamBold
  59. ITpistol.Text = "Mod Inventory"
  60. ITpistol.TextColor3 = Color3.new(0.333333, 0, 1)
  61. ITpistol.TextSize = 14
  62.  
  63. TextLabel.Parent = ITamountmod
  64. TextLabel.BackgroundColor3 = Color3.new(0.0784314, 0.0784314, 0.0784314)
  65. TextLabel.BackgroundTransparency = 0.03999999910593
  66. TextLabel.BorderSizePixel = 0
  67. TextLabel.Position = UDim2.new(-0.105000004, 0, 2.38000011, 0)
  68. TextLabel.Size = UDim2.new(0, 242, 0, 50)
  69. TextLabel.Font = Enum.Font.SourceSansBold
  70. TextLabel.Text = "How many timesu want ur gun duplicated"
  71. TextLabel.TextColor3 = Color3.new(0.333333, 0, 1)
  72. TextLabel.TextSize = 14
  73.  
  74. TextLabel_2.Parent = TextLabel
  75. TextLabel_2.BackgroundColor3 = Color3.new(0.0784314, 0.0784314, 0.0784314)
  76. TextLabel_2.BackgroundTransparency = 1
  77. TextLabel_2.BorderSizePixel = 0
  78. TextLabel_2.Position = UDim2.new(0.0347245187, 0, 0.219999894, 0)
  79. TextLabel_2.Size = UDim2.new(0, 225, 0, 50)
  80. TextLabel_2.Font = Enum.Font.SourceSansBold
  81. TextLabel_2.Text = "recommended is 10-20 u can go way higher tho"
  82. TextLabel_2.TextColor3 = Color3.new(0.333333, 0, 1)
  83. TextLabel_2.TextSize = 14
  84.  
  85. exit.Name = "exit"
  86. exit.Parent = modgunsframe
  87. exit.BackgroundColor3 = Color3.new(1, 1, 1)
  88. exit.BackgroundTransparency = 1
  89. exit.Position = UDim2.new(0.865305901, 0, 0.0895522833, 0)
  90. exit.Size = UDim2.new(0, 33, 0, 33)
  91. exit.Font = Enum.Font.GothamBold
  92. exit.Text = "X"
  93. exit.TextColor3 = Color3.new(0.333333, 0, 1)
  94. exit.TextSize = 25
  95. -- Scripts:
  96. modgunsframe:TweenPosition(UDim2.new(0.279, 0,0.028, 0),'Out','Sine',1)
  97.  
  98.  
  99. ITpistol.MouseButton1Click:connect(function()
  100. local Amount = ITamountmod.Text
  101.  
  102. local Backpack = game:GetService("Players").LocalPlayer.Backpack
  103.  
  104. for i,v in pairs(Backpack:GetChildren()) do
  105. if v.Name == "MP5" then
  106. local Gun = Backpack["MP5"]
  107. local GunControl = Gun["RifleScript"]
  108. for i = 1, Amount do
  109. local Clone = GunControl:Clone()
  110. Clone.Parent = Gun
  111. end
  112. end
  113.  
  114. if v.Name == "Pistol" then
  115. local Gun = Backpack["Pistol"]
  116. local GunControl = Gun["PistolScript"]
  117. for i = 1, Amount do
  118. local Clone = GunControl:Clone()
  119. Clone.Parent = Gun
  120. end
  121. end
  122. if v.Name == "Shotgun" then
  123. local Gun = Backpack["Shotgun"]
  124. local GunControl = Gun["ShotgunScript"]
  125. for i = 1, Amount do
  126. local Clone = GunControl:Clone()
  127. Clone.Parent = Gun
  128. end
  129. end
  130. if v.Name == "Baton" then
  131. local Gun = Backpack["Baton"]
  132. local GunControl = Gun["MeleeScript"]
  133. for i = 1, Amount do
  134. local Clone = GunControl:Clone()
  135. Clone.Parent = Gun
  136. end
  137. end
  138. if v.Name == "TEC9" then
  139. local Gun = Backpack["TEC9"]
  140. local GunControl = Gun["PistolScript"]
  141. for i = 1, Amount do
  142. local Clone = GunControl:Clone()
  143. Clone.Parent = Gun
  144. end
  145. end
  146. if v.Name == "Grenade" then
  147. local Gun = Backpack["Grenade"]
  148. local GunControl = Gun["GrenadeScript"]
  149. for i = 1, Amount do
  150. local Clone = GunControl:Clone()
  151. Clone.Parent = Gun
  152. end
  153. end
  154. if v.Name == "Tazer" then
  155. local Gun = Backpack["Tazer"]
  156. local GunControl = Gun["TazerScript"]
  157. for i = 1, Amount do
  158. local Clone = GunControl:Clone()
  159. Clone.Parent = Gun
  160. end
  161. end
  162. if v.Name == "AK47" then
  163. local Gun = Backpack["AK47"]
  164. local GunControl = Gun["RifleScript"]
  165. for i = 1, Amount do
  166. local Clone = GunControl:Clone()
  167. Clone.Parent = Gun
  168. end
  169. end
  170. if v.Name == "Deagle" then
  171. local Gun = Backpack["Deagle"]
  172. local GunControl = Gun["PistolScript"]
  173. for i = 1, Amount do
  174. local Clone = GunControl:Clone()
  175. Clone.Parent = Gun
  176. end
  177. end
  178. if v.Name == "SPAS" then
  179. local Gun = Backpack["SPAS"]
  180. local GunControl = Gun["ShotgunScript"]
  181. for i = 1, Amount do
  182. local Clone = GunControl:Clone()
  183. Clone.Parent = Gun
  184. end
  185. end
  186. if v.Name == "Sniper" then
  187. local Gun = Backpack["Sniper"]
  188. local GunControl = Gun["RifleScript"]
  189. for i = 1, Amount do
  190. local Clone = GunControl:Clone()
  191. Clone.Parent = Gun
  192. end
  193. end
  194. if v.Name == "Knife" then
  195. local Gun = Backpack["Knife"]
  196. local GunControl = Gun["MeleeScript"]
  197. for i = 1, Amount do
  198. local Clone = GunControl:Clone()
  199. Clone.Parent = Gun
  200. end
  201. end
  202. if v.Name == "Laser Beam" then
  203. local Gun = Backpack["Laser Beam"]
  204. local GunControl = Gun["PowerScript"]
  205. for i = 1, Amount do
  206. local Clone = GunControl:Clone()
  207. Clone.Parent = Gun
  208. end
  209. end
  210. if v.Name == "Electricity" then
  211. local Gun = Backpack["Electricity"]
  212. local GunControl = Gun["PowerScript"]
  213. for i = 1, Amount do
  214. local Clone = GunControl:Clone()
  215. Clone.Parent = Gun
  216. end
  217. end
  218. if v.Name == "Dark Energy" then
  219. local Gun = Backpack["Dark Energy"]
  220. local GunControl = Gun["PowerScript"]
  221. for i = 1, Amount do
  222. local Clone = GunControl:Clone()
  223. Clone.Parent = Gun
  224. end
  225. end
  226. if v.Name == "Fire Ball" then
  227. local Gun = Backpack["Fire Ball"]
  228. local GunControl = Gun["PowerScript"]
  229. for i = 1, Amount do
  230. local Clone = GunControl:Clone()
  231. Clone.Parent = Gun
  232. end
  233. end
  234. if v.Name == "Phantom" then
  235. local Gun = Backpack["Phantom"]
  236. local GunControl = Gun["PowerScript"]
  237. for i = 1, Amount do
  238. local Clone = GunControl:Clone()
  239. Clone.Parent = Gun
  240. end
  241. end
  242. if v.Name == "Frost" then
  243. local Gun = Backpack["Frost"]
  244. local GunControl = Gun["PowerScript"]
  245. for i = 1, Amount do
  246. local Clone = GunControl:Clone()
  247. Clone.Parent = Gun
  248. end
  249. end
  250. end
  251. end)
  252.  
  253. modgunsframe.Active = true
  254. modgunsframe.Draggable = true
  255. exit.MouseButton1Click:connect(function()
  256. modgunsframe:TweenPosition(UDim2.new(1, 0,0.028, 0),'Out','Sine',1)
  257. wait(1)
  258. modguns:Destroy()
  259. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement