RuineKiller

h

Jul 3rd, 2019
604
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.74 KB | None | 0 0
  1. local GUI_VEICULOS = Instance.new("ScreenGui")
  2. local veiculos = Instance.new("Frame")
  3. local close = Instance.new("TextButton")
  4. local TextButton = Instance.new("TextButton")
  5. local textbox_item = Instance.new("TextBox")
  6. local titulo = Instance.new("TextLabel")
  7. local SmallTrailer = Instance.new("ImageButton")
  8. local preview = Instance.new("ImageLabel")
  9. local Trailer2 = Instance.new("ImageButton")
  10. local Sleigh = Instance.new("ImageButton")
  11. local UtilityTruck2 = Instance.new("ImageButton")
  12. local UtilityTruck = Instance.new("ImageButton")
  13. local Pickup1 = Instance.new("ImageButton")
  14. local TextBox = Instance.new("TextBox")
  15. --Properties:
  16. GUI_VEICULOS.Name = "GUI_VEICULOS"
  17. GUI_VEICULOS.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  18. GUI_VEICULOS.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  19.  
  20. veiculos.Name = "veiculos"
  21. veiculos.Parent = GUI_VEICULOS
  22. veiculos.BackgroundColor3 = Color3.new(0, 0, 0)
  23. veiculos.BackgroundTransparency = 0.5
  24. veiculos.Position = UDim2.new(0, 0, 0.0133333337, 0)
  25. veiculos.Size = UDim2.new(0, 415, 0, 481)
  26. veiculos.Draggable = true
  27. veiculos.Active = true
  28.  
  29. close.Name = "close"
  30. close.Parent = veiculos
  31. close.BackgroundColor3 = Color3.new(0.509804, 0.509804, 0.509804)
  32. close.Position = UDim2.new(0.940600634, 0, 0, 0)
  33. close.Size = UDim2.new(0, 24, 0, 16)
  34. close.Font = Enum.Font.SourceSans
  35. close.Text = "X"
  36. close.TextColor3 = Color3.new(0.835294, 0, 0)
  37. close.TextSize = 25
  38. close.MouseButton1Click:Connect(function()
  39. GUI_VEICULOS:Destroy()
  40. end)
  41.  
  42. TextButton.Parent = veiculos
  43. TextButton.BackgroundColor3 = Color3.new(0.0823529, 0.0823529, 0.0823529)
  44. TextButton.BorderColor3 = Color3.new(0.278431, 0, 0)
  45. TextButton.Position = UDim2.new(0.400000006, 0, 0.852390826, 0)
  46. TextButton.Size = UDim2.new(0, 200, 0, 50)
  47. TextButton.Font = Enum.Font.SourceSans
  48. TextButton.Text = "!!! SPAWN !!!"
  49. TextButton.TextColor3 = Color3.new(1, 1, 1)
  50. TextButton.TextScaled = true
  51. TextButton.TextSize = 14
  52. TextButton.TextWrapped = true
  53.  
  54. textbox_item.Name = "textbox_item"
  55. textbox_item.Parent = veiculos
  56. textbox_item.BackgroundColor3 = Color3.new(1, 1, 1)
  57. textbox_item.BackgroundTransparency = 1
  58. textbox_item.Position = UDim2.new(0.0746987984, 0, 0.956340909, 0)
  59. textbox_item.Size = UDim2.new(0, 99, 0, 21)
  60. textbox_item.Font = Enum.Font.SourceSans
  61. textbox_item.PlaceholderColor3 = Color3.new(0.933333, 0.933333, 0.933333)
  62. textbox_item.PlaceholderText = "Select item"
  63. textbox_item.Text = ""
  64. textbox_item.TextColor3 = Color3.new(1, 1, 1)
  65. textbox_item.TextSize = 15
  66.  
  67. titulo.Name = "titulo"
  68. titulo.Parent = veiculos
  69. titulo.BackgroundColor3 = Color3.new(0.223529, 0.223529, 0.223529)
  70. titulo.Position = UDim2.new(0.078554213, 0, 0.0332640335, 0)
  71. titulo.Selectable = true
  72. titulo.Size = UDim2.new(0, 348, 0, 49)
  73. titulo.Font = Enum.Font.SourceSans
  74. titulo.Text = "Spawn Vehicle/Trailer"
  75. titulo.TextColor3 = Color3.new(1, 1, 1)
  76. titulo.TextScaled = true
  77. titulo.TextSize = 14
  78. titulo.TextWrapped = true
  79.  
  80. SmallTrailer.Name = "SmallTrailer"
  81. SmallTrailer.Parent = veiculos
  82. SmallTrailer.BackgroundColor3 = Color3.new(1, 1, 1)
  83. SmallTrailer.BackgroundTransparency = 1
  84. SmallTrailer.BorderColor3 = Color3.new(0.207843, 0, 0)
  85. SmallTrailer.Position = UDim2.new(0.318554223, 0, 0.194241166, 0)
  86. SmallTrailer.Size = UDim2.new(0, 100, 0, 100)
  87. SmallTrailer.Image = "rbxassetid://3209627577"
  88. SmallTrailer.MouseButton1Down:connect(function()
  89. textbox_item.Text = "SmallTrailer"
  90. preview.Image = "rbxassetid://3209627577"
  91. end)
  92.  
  93. preview.Name = "preview"
  94. preview.Parent = veiculos
  95. preview.BackgroundColor3 = Color3.new(1, 1, 1)
  96. preview.BackgroundTransparency = 1
  97. preview.Position = UDim2.new(0.0746987984, 0, 0.748440742, 0)
  98. preview.Size = UDim2.new(0, 100, 0, 100)
  99. preview.Image = "rbxassetid://31032747"
  100.  
  101. Trailer2.Name = "Trailer2"
  102. Trailer2.Parent = veiculos
  103. Trailer2.BackgroundColor3 = Color3.new(1, 1, 1)
  104. Trailer2.BackgroundTransparency = 1
  105. Trailer2.BorderColor3 = Color3.new(0.207843, 0, 0)
  106. Trailer2.Position = UDim2.new(0.558554173, 0, 0.194241166, 0)
  107. Trailer2.Size = UDim2.new(0, 100, 0, 100)
  108. Trailer2.Image = "rbxassetid://3209627321"
  109. Trailer2.MouseButton1Down:connect(function()
  110. textbox_item.Text = "Trailer2"
  111. preview.Image = "rbxassetid://3209627321"
  112. end)
  113.  
  114. Sleigh.Name = "Sleigh"
  115. Sleigh.Parent = veiculos
  116. Sleigh.BackgroundColor3 = Color3.new(1, 1, 1)
  117. Sleigh.BackgroundTransparency = 1
  118. Sleigh.BorderColor3 = Color3.new(0.207843, 0, 0)
  119. Sleigh.Position = UDim2.new(0.558554173, 0, 0.414241135, 0)
  120. Sleigh.Size = UDim2.new(0, 100, 0, 100)
  121. Sleigh.Image = "rbxassetid://3209637273"
  122. Sleigh.MouseButton1Down:connect(function()
  123. textbox_item.Text = "Sleigh"
  124. preview.Image = "rbxassetid://3209637273"
  125. end)
  126.  
  127. UtilityTruck2.Name = "UtilityTruck2"
  128. UtilityTruck2.Parent = veiculos
  129. UtilityTruck2.BackgroundColor3 = Color3.new(1, 1, 1)
  130. UtilityTruck2.BackgroundTransparency = 1
  131. UtilityTruck2.BorderColor3 = Color3.new(0.207843, 0, 0)
  132. UtilityTruck2.Position = UDim2.new(0.318554223, 0, 0.414241135, 0)
  133. UtilityTruck2.Size = UDim2.new(0, 100, 0, 100)
  134. UtilityTruck2.Image = "rbxassetid://3209627047"
  135. UtilityTruck2.MouseButton1Down:connect(function()
  136. textbox_item.Text = "UtilityTruck2"
  137. preview.Image = "rbxassetid://3209627047"
  138. end)
  139.  
  140. UtilityTruck.Name = "UtilityTruck"
  141. UtilityTruck.Parent = veiculos
  142. UtilityTruck.BackgroundColor3 = Color3.new(1, 1, 1)
  143. UtilityTruck.BackgroundTransparency = 1
  144. UtilityTruck.BorderColor3 = Color3.new(0.207843, 0, 0)
  145. UtilityTruck.Position = UDim2.new(0.078554213, 0, 0.414241135, 0)
  146. UtilityTruck.Size = UDim2.new(0, 100, 0, 100)
  147. UtilityTruck.Image = "rbxassetid://3209636952"
  148. UtilityTruck.MouseButton1Down:connect(function()
  149. textbox_item.Text = "UtilityTruck"
  150. preview.Image = "rbxassetid://3209636952"
  151. end)
  152.  
  153. Pickup1.Name = "Pickup1"
  154. Pickup1.Parent = veiculos
  155. Pickup1.BackgroundColor3 = Color3.new(1, 1, 1)
  156. Pickup1.BackgroundTransparency = 1
  157. Pickup1.BorderColor3 = Color3.new(0.207843, 0, 0)
  158. Pickup1.Position = UDim2.new(0.078554213, 0, 0.194241166, 0)
  159. Pickup1.Size = UDim2.new(0, 100, 0, 100)
  160. Pickup1.Image = "rbxassetid://3209616149"
  161. Pickup1.MouseButton1Down:connect(function()
  162. textbox_item.Text = "Pickup1"
  163. preview.Image = "rbxassetid://3209616149"
  164. end)
  165.  
  166. TextBox.Parent = veiculos
  167. TextBox.BackgroundColor3 = Color3.new(0.117647, 0.117647, 0.117647)
  168. TextBox.BorderColor3 = Color3.new(0.301961, 0, 0)
  169. TextBox.Position = UDim2.new(0.400000006, 0, 0.748440742, 0)
  170. TextBox.Size = UDim2.new(0, 200, 0, 37)
  171. TextBox.Font = Enum.Font.SourceSans
  172. TextBox.PlaceholderColor3 = Color3.new(0.996078, 0.996078, 0.996078)
  173. TextBox.PlaceholderText = "ENTER QUANTITY HARE"
  174. TextBox.Text = ""
  175. TextBox.TextColor3 = Color3.new(1, 1, 1)
  176. TextBox.TextScaled = true
  177. TextBox.TextSize = 20
  178. TextBox.TextWrapped = true
  179. -- Scripts:
  180. TextButton.MouseButton1Down:connect(function()
  181. local Item = textbox_item.Text
  182. local Quantity = TextBox.Text
  183.  
  184. local Land = nil
  185. for i,v in pairs(game.Workspace.Properties:GetChildren()) do
  186. if v.Owner.Value == game.Players.LocalPlayer then
  187. Land = v
  188. break
  189. end
  190. end
  191. if not Land then
  192. for i,v in pairs(game.Workspace.Properties:GetChildren()) do
  193. if v.Owner.Value == game.Players.LocalPlayer or v.Owner.Value == nil then
  194. Land = v
  195. game.ReplicatedStorage.Interaction.ClientIsDragging:FireServer(v)
  196. break
  197. end
  198. end
  199. end
  200.  
  201. function Spawn(Item)
  202. local Info = {}
  203. Info.Name = Item.Name
  204. Info.Type = game.ReplicatedStorage.Purchasables.Structures.HardStructures.Sawmill2.Type
  205. Info.OtherInfo = game.ReplicatedStorage.Purchasables.WireObjects.Wire.OtherInfo
  206. local Points = {Land.OriginSquare.Position + Vector3.new(0,5,0), Land.OriginSquare.Position + Vector3.new(0,5,0)}
  207. game.ReplicatedStorage.PlaceStructure.ClientPlacedWire:FireServer(Info, Points)
  208. end
  209.  
  210. for i=1, Quantity do
  211. Spawn(game.ReplicatedStorage.Purchasables:FindFirstChild(Item, true))
  212. end
  213. end)
Add Comment
Please, Sign In to add comment