Advertisement
AanWarbhe

Items All Spawn

May 24th, 2019
201
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.21 KB | None | 0 0
  1. -- Farewell Infortality.
  2. -- Version: 2.82
  3. -- Instances:
  4. local AutoLumberGui = Instance.new("ScreenGui")
  5. local OpenButton = Instance.new("TextButton")
  6. local MainFrame = Instance.new("Frame")
  7. local MadeByText = Instance.new("TextLabel")
  8. local NameText = Instance.new("TextLabel")
  9. local GetButton = Instance.new("TextButton")
  10. local TextBox = Instance.new("TextBox")
  11. local CloseButton = Instance.new("TextButton")
  12. --Properties:
  13. AutoLumberGui.Name = "AutoLumberGui"
  14. AutoLumberGui.Parent = game.CoreGui
  15. AutoLumberGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  16.  
  17. OpenButton.Name = "OpenButton"
  18. OpenButton.Parent = AutoLumberGui
  19. OpenButton.BackgroundColor3 = Color3.new(1, 1, 1)
  20. OpenButton.Position = UDim2.new(0, 0, 0.656984806, 0)
  21. OpenButton.Size = UDim2.new(0, 200, 0, 50)
  22. OpenButton.Style = Enum.ButtonStyle.RobloxRoundDropdownButton
  23. OpenButton.Font = Enum.Font.SourceSansItalic
  24. OpenButton.Text = "Open"
  25. OpenButton.TextColor3 = Color3.new(0.14902, 0.14902, 0.14902)
  26. OpenButton.TextSize = 30
  27. OpenButton.TextWrapped = true
  28. OpenButton.MouseButton1Down:connect(function()
  29. OpenButton.Visible = false
  30. MainFrame.Visible = true
  31. end)
  32.  
  33. MainFrame.Name = "MainFrame"
  34. MainFrame.Active = true
  35. MainFrame.Parent = AutoLumberGui
  36. MainFrame.BackgroundColor3 = Color3.new(0.223529, 0.223529, 0.223529)
  37. MainFrame.BackgroundTransparency = 0.050000000745058
  38. MainFrame.BorderColor3 = Color3.new(0.694118, 0.694118, 0.694118)
  39. MainFrame.BorderSizePixel = 2
  40. MainFrame.Position = UDim2.new(0.217048138, 0, 0.381742746, 0)
  41. MainFrame.Size = UDim2.new(0, 300, 0, 212)
  42. MainFrame.Visible = false
  43. MainFrame.Draggable = true
  44.  
  45. MadeByText.Name = "MadeByText"
  46. MadeByText.Parent = MainFrame
  47. MadeByText.BackgroundColor3 = Color3.new(1, 1, 1)
  48. MadeByText.BorderColor3 = Color3.new(0.694118, 0.694118, 0.694118)
  49. MadeByText.BorderSizePixel = 2
  50. MadeByText.Position = UDim2.new(-0.00295186043, 0, 0.826619983, 0)
  51. MadeByText.Size = UDim2.new(0, 300, 0, 36)
  52. MadeByText.Font = Enum.Font.SourceSansBold
  53. MadeByText.Text = "Gui Made by AanDimyati. Script made by AanDimyati on verm"
  54. MadeByText.TextColor3 = Color3.new(0.176471, 0.176471, 0.176471)
  55. MadeByText.TextSize = 14
  56.  
  57. NameText.Name = "NameText"
  58. NameText.Parent = MainFrame
  59. NameText.BackgroundColor3 = Color3.new(1, 1, 1)
  60. NameText.BorderColor3 = Color3.new(0.694118, 0.694118, 0.694118)
  61. NameText.BorderSizePixel = 2
  62. NameText.Position = UDim2.new(-0.00295186043, 0, -0.00171580911, 0)
  63. NameText.Size = UDim2.new(0, 300, 0, 36)
  64. NameText.Font = Enum.Font.SourceSansBold
  65. NameText.Text = "AutoLumber V.1"
  66. NameText.TextColor3 = Color3.new(0.176471, 0.176471, 0.176471)
  67. NameText.TextScaled = true
  68. NameText.TextSize = 14
  69. NameText.TextWrapped = true
  70.  
  71. GetButton.Name = "GetButton"
  72. GetButton.Parent = MainFrame
  73. GetButton.BackgroundColor3 = Color3.new(1, 1, 1)
  74. GetButton.Position = UDim2.new(0.166666672, 0, 0.533018827, 0)
  75. GetButton.Size = UDim2.new(0, 200, 0, 50)
  76. GetButton.Selected = true
  77. GetButton.Style = Enum.ButtonStyle.RobloxRoundDropdownButton
  78. GetButton.Font = Enum.Font.SourceSans
  79. GetButton.Text = "Get Item"
  80. GetButton.TextColor3 = Color3.new(0, 0, 0)
  81. GetButton.TextSize = 14
  82. GetButton.MouseButton1Down:connect(function()
  83. local Item = TextBox.Text
  84. local Quantity = 10
  85.  
  86. local Land = nil
  87. for i,v in pairs(game.Workspace.Properties:GetChildren()) do
  88. if v.Owner.Value == game.Players.LocalPlayer then
  89. Land = v
  90. break
  91. end
  92. end
  93. if not Land then
  94. for i,v in pairs(game.Workspace.Properties:GetChildren()) do
  95. if v.Owner.Value == game.Players.LocalPlayer or v.Owner.Value == nil then
  96. Land = v
  97. game.ReplicatedStorage.Interaction.ClientIsDragging:FireServer(v)
  98. break
  99. end
  100. end
  101. end
  102.  
  103. function Spawn(Item)
  104. local Info = {}
  105. Info.Name = Item.Name
  106. Info.Type = game.ReplicatedStorage.Purchasables.Structures.HardStructures.Sawmill2.Type
  107. Info.OtherInfo = game.ReplicatedStorage.Purchasables.WireObjects.Wire.OtherInfo
  108. local Points = {Land.OriginSquare.Position + Vector3.new(0,5,0), Land.OriginSquare.Position + Vector3.new(0,5,0)}
  109. game.ReplicatedStorage.PlaceStructure.ClientPlacedWire:FireServer(Info, Points)
  110. end
  111.  
  112. for i=1, Quantity do
  113. Spawn(game.ReplicatedStorage.Purchasables:FindFirstChild(Item, true))
  114. end
  115. end)
  116.  
  117. TextBox.Parent = MainFrame
  118. TextBox.BackgroundColor3 = Color3.new(1, 1, 1)
  119. TextBox.BorderColor3 = Color3.new(0.694118, 0.694118, 0.694118)
  120. TextBox.BorderSizePixel = 2
  121. TextBox.Position = UDim2.new(-0.00333333341, 0, 0.165094346, 0)
  122. TextBox.Size = UDim2.new(0, 300, 0, 50)
  123. TextBox.Font = Enum.Font.SourceSans
  124. TextBox.Text = "Type here what Item you want."
  125. TextBox.TextColor3 = Color3.new(0, 0, 0)
  126. TextBox.TextSize = 25
  127.  
  128. CloseButton.Name = "CloseButton"
  129. CloseButton.Parent = MainFrame
  130. CloseButton.BackgroundColor3 = Color3.new(1, 1, 1)
  131. CloseButton.BackgroundTransparency = 1
  132. CloseButton.Position = UDim2.new(0.916666687, 0, 0, 0)
  133. CloseButton.Size = UDim2.new(0, 25, 0, 24)
  134. CloseButton.Font = Enum.Font.SourceSansBold
  135. CloseButton.Text = "X"
  136. CloseButton.TextColor3 = Color3.new(0.419608, 0.419608, 0.419608)
  137. CloseButton.TextScaled = true
  138. CloseButton.TextSize = 14
  139. CloseButton.TextWrapped = true
  140. CloseButton.MouseButton1Down:connect(function()
  141. MainFrame.Visible = false
  142. OpenButton.Visible = true
  143. end)
  144. -- Scripts:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement