Advertisement
Guest User

Untitled

a guest
Dec 12th, 2019
232
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.42 KB | None | 0 0
  1. -- Gui to Lua
  2. -- Version: 3
  3.  
  4. -- Instances:
  5.  
  6. local NinjaLegendsDupe = Instance.new("ScreenGui")
  7. local main = Instance.new("Frame")
  8. local Info = Instance.new("TextLabel")
  9. local start = Instance.new("TextButton")
  10. local amount = Instance.new("TextBox")
  11. local enter = Instance.new("TextButton")
  12. local Txt = Instance.new("TextLabel")
  13. local done = Instance.new("TextButton")
  14.  
  15. --Properties:
  16.  
  17. NinjaLegendsDupe.Name = "NinjaLegendsDupe"
  18. NinjaLegendsDupe.Parent = game.CoreGui
  19.  
  20. main.Name = "main"
  21. main.Parent = NinjaLegendsDupe
  22. main.BackgroundColor3 = Color3.new(1, 0, 0.498039)
  23. main.BackgroundTransparency = 0.21999999880791
  24. main.BorderColor3 = Color3.new(0, 0, 0)
  25. main.BorderSizePixel = 4
  26. main.Position = UDim2.new(0.420998961, 0, 0.132158637, 0)
  27. main.Size = UDim2.new(0.281447411, 0, 0.478854626, 0)
  28. main.Active = true
  29. main.Draggable = true
  30.  
  31. Info.Name = "Info"
  32. Info.Parent = main
  33. Info.BackgroundColor3 = Color3.new(1, 0, 1)
  34. Info.BorderColor3 = Color3.new(0, 0, 0)
  35. Info.BorderSizePixel = 4
  36. Info.Position = UDim2.new(0.00747955777, 0, 0.424674481, 0)
  37. Info.Size = UDim2.new(0.985455692, 0, 0.563879311, 0)
  38. Info.Font = Enum.Font.Fantasy
  39. Info.Text = "Welcome to 64savage64's Ninja Legends Tool Dupe. HOLD The weapon You Want To Have Duped and Click \"Start\". Notice: IF YOU ARE NOT HOLDING THE MAGNET, IT WONT WORK"
  40. Info.TextColor3 = Color3.new(0.588235, 0.588235, 0.588235)
  41. Info.TextScaled = true
  42. Info.TextSize = 14
  43. Info.TextStrokeTransparency = 0
  44. Info.TextWrapped = true
  45.  
  46. start.Name = "start"
  47. start.Parent = main
  48. start.BackgroundColor3 = Color3.new(0, 1, 1)
  49. start.BorderColor3 = Color3.new(0, 0, 0)
  50. start.BorderSizePixel = 3
  51. start.Position = UDim2.new(0.0671201497, 0, 0.108573876, 0)
  52. start.Size = UDim2.new(0.855465293, 0, 0.20692265, 0)
  53. start.Font = Enum.Font.Fantasy
  54. start.Text = "Start"
  55. start.TextColor3 = Color3.new(0.588235, 0.588235, 0.588235)
  56. start.TextScaled = true
  57. start.TextSize = 14
  58. start.TextStrokeTransparency = 0
  59. start.TextWrapped = true
  60.  
  61. amount.Name = "amount"
  62. amount.Parent = main
  63. amount.BackgroundColor3 = Color3.new(0, 1, 1)
  64. amount.BorderColor3 = Color3.new(0, 0, 0)
  65. amount.BorderSizePixel = 3
  66. amount.Position = UDim2.new(0.0669999793, 0, 0.108999975, 0)
  67. amount.Size = UDim2.new(0.145112067, 0, 0.207000002, 0)
  68. amount.Visible = false
  69. amount.Font = Enum.Font.ArialBold
  70. amount.Text = "1"
  71. amount.TextColor3 = Color3.new(0.588235, 0.588235, 0.588235)
  72. amount.TextScaled = true
  73. amount.TextSize = 14
  74. amount.TextStrokeTransparency = 0
  75. amount.TextWrapped = true
  76.  
  77. enter.Name = "enter"
  78. enter.Parent = main
  79. enter.BackgroundColor3 = Color3.new(0, 1, 1)
  80. enter.BorderColor3 = Color3.new(0, 0, 0)
  81. enter.BorderSizePixel = 3
  82. enter.Position = UDim2.new(0.248213992, 0, 0.108573869, 0)
  83. enter.Size = UDim2.new(0.71421212, 0, 0.20692265, 0)
  84. enter.Visible = false
  85. enter.Font = Enum.Font.Fantasy
  86. enter.Text = "Enter"
  87. enter.TextColor3 = Color3.new(0.588235, 0.588235, 0.588235)
  88. enter.TextScaled = true
  89. enter.TextSize = 14
  90. enter.TextStrokeTransparency = 0
  91. enter.TextWrapped = true
  92.  
  93. Txt.Name = "Txt"
  94. Txt.Parent = main
  95. Txt.BackgroundColor3 = Color3.new(0, 1, 1)
  96. Txt.BorderColor3 = Color3.new(0, 0, 0)
  97. Txt.BorderSizePixel = 3
  98. Txt.Position = UDim2.new(0.0670000017, 0, 0.108999997, 0)
  99. Txt.Size = UDim2.new(0.855000019, 0, 0.207000002, 0)
  100. Txt.Visible = false
  101. Txt.Font = Enum.Font.Fantasy
  102. Txt.Text = ""
  103. Txt.TextColor3 = Color3.new(0, 0, 0)
  104. Txt.TextScaled = true
  105. Txt.TextSize = 14
  106. Txt.TextWrapped = true
  107.  
  108. done.Name = "done"
  109. done.Parent = main
  110. done.BackgroundColor3 = Color3.new(0, 1, 1)
  111. done.BorderColor3 = Color3.new(0, 0, 0)
  112. done.BorderSizePixel = 3
  113. done.Position = UDim2.new(0.0671201497, 0, 0.108573876, 0)
  114. done.Size = UDim2.new(0.855465293, 0, 0.20692265, 0)
  115. done.Visible = false
  116. done.Font = Enum.Font.Fantasy
  117. done.Text = "Recieve Tools"
  118. done.TextColor3 = Color3.new(0.588235, 0.588235, 0.588235)
  119. done.TextScaled = true
  120. done.TextSize = 14
  121. done.TextStrokeTransparency = 0
  122. done.TextWrapped = true
  123.  
  124. --Scripts:
  125.  
  126. local plr = game.Players.LocalPlayer
  127. local tool = ""
  128. local count = 0
  129.  
  130. start.MouseButton1Click:Connect(function()
  131. for i,v in pairs(workspace[plr.Name]:GetChildren()) do
  132. if v.ClassName == "Tool" then
  133. tool = v.Name
  134. end
  135. end
  136. wait(.2)
  137. start.Visible = false
  138. enter.Visible = true
  139. amount.Visible = true
  140. workspace[plr.Name][tool].Parent = plr
  141. local text = 'Type in the amount of weapons you want duped and click "Enter".'
  142. wait()
  143. for i = 1,string.len(text),1 do
  144. Info.Text = string.sub(text,1,i)
  145. wait()
  146. end
  147. end)
  148.  
  149. enter.MouseButton1Click:Connect(function()
  150. amount.Visible = false
  151. local text = ''
  152. wait()
  153. for i = 1,string.len(text),1 do
  154. enter.Text = string.sub(text,1,i)
  155. wait()
  156. end
  157. enter.Visible = false
  158. Txt.Visible = true
  159. wait(.5)
  160. local text = 'This shouldnt take long. DO NOT UN-EQUIP THE TOOL'
  161. local text2 = 'Please Wait...'
  162. wait(0.02)
  163. for i = 1,string.len(text),1 do
  164. Txt.Text = string.sub(text2,1,i)
  165. Info.Text = string.sub(text,1,i)
  166. wait()
  167. end
  168. count = amount.Text
  169. wait()
  170. count = count - 1
  171. wait()
  172. repeat wait(0.5)
  173. count = count - 1
  174. workspace[plr.Name][tool].Parent = plr
  175. until count == 0
  176. wait(2)
  177. local text = 'You are all done. Click "Recieve Tools" to get your weapons'
  178. wait()
  179. for i = 1,string.len(text),1 do
  180. Info.Text = string.sub(text,1,i)
  181. wait()
  182. end
  183. done.Visible = true
  184. end)
  185.  
  186. done.MouseButton1Click:connect(function()
  187. for i,v in pairs(plr:GetChildren()) do
  188. if v.Name == tool then
  189. v.Parent = plr.Backpack
  190. NinjaLegendsDupe:Destroy()
  191. end
  192. end
  193. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement