RuineKiller

f

Jul 3rd, 2019
831
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 18.28 KB | None | 0 0
  1. local GUI_PRESENTES = Instance.new("ScreenGui")
  2. local presentes = Instance.new("Frame")
  3. local close = Instance.new("TextButton")
  4. local TextButton = Instance.new("TextButton")
  5. local textbox_item = Instance.new("TextBox")
  6. local _2017CGift_GreatTimes = Instance.new("ImageButton")
  7. local _2016CGift_Ut = Instance.new("ImageButton")
  8. local _2017CGift_Modern = Instance.new("ImageButton")
  9. local _2017CGift_Wobble = Instance.new("ImageButton")
  10. local _2018CGift_Wobble = Instance.new("ImageButton")
  11. local _2016CGift_Big = Instance.new("ImageButton")
  12. local _2018CGift_GingerAxe = Instance.new("ImageButton")
  13. local _2018CGift_Plate = Instance.new("ImageButton")
  14. local _2018CGift_Plum = Instance.new("ImageButton")
  15. local _2018CGift_Sled = Instance.new("ImageButton")
  16. local _2018CGift_Snow = Instance.new("ImageButton")
  17. local _2018CGift_Duck = Instance.new("ImageButton")
  18. local _2016CGift_Jingle = Instance.new("ImageButton")
  19. local _2018CGift_Cocoa = Instance.new("ImageButton")
  20. local _2016CGift_Blue = Instance.new("ImageButton")
  21. local _2018CGift_Cone = Instance.new("ImageButton")
  22. local _2016CGift_Wobble = Instance.new("ImageButton")
  23. local _2017CGift_Gold = Instance.new("ImageButton")
  24. local preview = Instance.new("ImageLabel")
  25. local _2018CGift_Candy = Instance.new("ImageButton")
  26. local TextBox = Instance.new("TextBox")
  27. local titulo = Instance.new("TextLabel")
  28. local _2015CGift_Coal = Instance.new("ImageButton")
  29. local _2015CGift_Red = Instance.new("ImageButton")
  30. local _2015CGift_Volcano = Instance.new("ImageButton")
  31. local _2015CGift_Wobble = Instance.new("ImageButton")
  32. --Properties:
  33. GUI_PRESENTES.Name = "GUI_PRESENTES"
  34. GUI_PRESENTES.Parent = game.CoreGui
  35.  
  36. presentes.Name = "presentes"
  37. presentes.Parent = GUI_PRESENTES
  38. presentes.BackgroundColor3 = Color3.new(0, 0, 0)
  39. presentes.BackgroundTransparency = 0.5
  40. presentes.Position = UDim2.new(0, 0, 0.0133333337, 0)
  41. presentes.Size = UDim2.new(0, 415, 0, 481)
  42. presentes.Draggable = true
  43. presentes.Active = true
  44.  
  45. close.Name = "close"
  46. close.Parent = presentes
  47. close.BackgroundColor3 = Color3.new(0.509804, 0.509804, 0.509804)
  48. close.Position = UDim2.new(0.940600634, 0, 0, 0)
  49. close.Size = UDim2.new(0, 24, 0, 16)
  50. close.Font = Enum.Font.SourceSans
  51. close.Text = "X"
  52. close.TextColor3 = Color3.new(0.835294, 0, 0)
  53. close.TextSize = 25
  54. close.MouseButton1Click:Connect(function()
  55. GUI_PRESENTES:Destroy()
  56. end)
  57.  
  58. TextButton.Parent = presentes
  59. TextButton.BackgroundColor3 = Color3.new(0.0823529, 0.0823529, 0.0823529)
  60. TextButton.BorderColor3 = Color3.new(0.278431, 0, 0)
  61. TextButton.Position = UDim2.new(0.400000006, 0, 0.852390826, 0)
  62. TextButton.Size = UDim2.new(0, 200, 0, 50)
  63. TextButton.Font = Enum.Font.SourceSans
  64. TextButton.Text = "!!! SPAWN !!!"
  65. TextButton.TextColor3 = Color3.new(1, 1, 1)
  66. TextButton.TextScaled = true
  67. TextButton.TextSize = 14
  68. TextButton.TextWrapped = true
  69.  
  70. textbox_item.Name = "textbox_item"
  71. textbox_item.Parent = presentes
  72. textbox_item.BackgroundColor3 = Color3.new(1, 1, 1)
  73. textbox_item.BackgroundTransparency = 1
  74. textbox_item.Position = UDim2.new(0.0746987984, 0, 0.956340909, 0)
  75. textbox_item.Size = UDim2.new(0, 99, 0, 21)
  76. textbox_item.Font = Enum.Font.SourceSans
  77. textbox_item.PlaceholderColor3 = Color3.new(0.933333, 0.933333, 0.933333)
  78. textbox_item.PlaceholderText = "Select item"
  79. textbox_item.Text = ""
  80. textbox_item.TextColor3 = Color3.new(1, 1, 1)
  81. textbox_item.TextSize = 15
  82.  
  83. _2017CGift_GreatTimes.Name = "2017CGift_GreatTimes"
  84. _2017CGift_GreatTimes.Parent = presentes
  85. _2017CGift_GreatTimes.BackgroundColor3 = Color3.new(1, 1, 1)
  86. _2017CGift_GreatTimes.BackgroundTransparency = 1
  87. _2017CGift_GreatTimes.BorderColor3 = Color3.new(0.207843, 0, 0)
  88. _2017CGift_GreatTimes.Position = UDim2.new(0.438554227, 0, 0.304241151, 0)
  89. _2017CGift_GreatTimes.Size = UDim2.new(0, 50, 0, 50)
  90. _2017CGift_GreatTimes.Image = "rbxassetid://3209782717"
  91. _2017CGift_GreatTimes.MouseButton1Down:connect(function()
  92. textbox_item.Text = "2017CGift_GreatTimes"
  93. preview.Image = "rbxassetid://3209782717"
  94. end)
  95.  
  96. _2016CGift_Ut.Name = "2016CGift_Ut"
  97. _2016CGift_Ut.Parent = presentes
  98. _2016CGift_Ut.BackgroundColor3 = Color3.new(1, 1, 1)
  99. _2016CGift_Ut.BackgroundTransparency = 1
  100. _2016CGift_Ut.BorderColor3 = Color3.new(0.207843, 0, 0)
  101. _2016CGift_Ut.Position = UDim2.new(0.078554213, 0, 0.304241151, 0)
  102. _2016CGift_Ut.Size = UDim2.new(0, 50, 0, 50)
  103. _2016CGift_Ut.Image = "rbxassetid://3209779527"
  104. _2016CGift_Ut.MouseButton1Down:connect(function()
  105. textbox_item.Text = "2016CGift_Ut"
  106. preview.Image = "rbxassetid://3209779527"
  107. end)
  108.  
  109. _2017CGift_Modern.Name = "2017CGift_Modern"
  110. _2017CGift_Modern.Parent = presentes
  111. _2017CGift_Modern.BackgroundColor3 = Color3.new(1, 1, 1)
  112. _2017CGift_Modern.BackgroundTransparency = 1
  113. _2017CGift_Modern.BorderColor3 = Color3.new(0.207843, 0, 0)
  114. _2017CGift_Modern.Position = UDim2.new(0.558554173, 0, 0.304241151, 0)
  115. _2017CGift_Modern.Size = UDim2.new(0, 50, 0, 50)
  116. _2017CGift_Modern.Image = "rbxassetid://3209783908"
  117. _2017CGift_Modern.MouseButton1Down:connect(function()
  118. textbox_item.Text = "2017CGift_Modern"
  119. preview.Image = "rbxassetid://3209783908"
  120. end)
  121.  
  122. _2017CGift_Wobble.Name = "2017CGift_Wobble"
  123. _2017CGift_Wobble.Parent = presentes
  124. _2017CGift_Wobble.BackgroundColor3 = Color3.new(1, 1, 1)
  125. _2017CGift_Wobble.BackgroundTransparency = 1
  126. _2017CGift_Wobble.BorderColor3 = Color3.new(0.207843, 0, 0)
  127. _2017CGift_Wobble.Position = UDim2.new(0.678554177, 0, 0.304241151, 0)
  128. _2017CGift_Wobble.Size = UDim2.new(0, 50, 0, 50)
  129. _2017CGift_Wobble.Image = "rbxassetid://3209793246"
  130. _2017CGift_Wobble.MouseButton1Down:connect(function()
  131. textbox_item.Text = "2017CGift_Wobble"
  132. preview.Image = "rbxassetid://3209793246"
  133. end)
  134.  
  135. _2018CGift_Wobble.Name = "2018CGift_Wobble"
  136. _2018CGift_Wobble.Parent = presentes
  137. _2018CGift_Wobble.BackgroundColor3 = Color3.new(1, 1, 1)
  138. _2018CGift_Wobble.BackgroundTransparency = 1
  139. _2018CGift_Wobble.BorderColor3 = Color3.new(0.207843, 0, 0)
  140. _2018CGift_Wobble.Position = UDim2.new(0.198554218, 0, 0.524241149, 0)
  141. _2018CGift_Wobble.Size = UDim2.new(0, 50, 0, 50)
  142. _2018CGift_Wobble.Image = "rbxassetid://3209807556"
  143. _2018CGift_Wobble.MouseButton1Down:connect(function()
  144. textbox_item.Text = "2018CGift_Wobble"
  145. preview.Image = "rbxassetid://3209807556"
  146. end)
  147.  
  148. _2016CGift_Big.Name = "2016CGift_Big"
  149. _2016CGift_Big.Parent = presentes
  150. _2016CGift_Big.BackgroundColor3 = Color3.new(1, 1, 1)
  151. _2016CGift_Big.BackgroundTransparency = 1
  152. _2016CGift_Big.BorderColor3 = Color3.new(0.207843, 0, 0)
  153. _2016CGift_Big.Position = UDim2.new(0.558554173, 0, 0.194241166, 0)
  154. _2016CGift_Big.Size = UDim2.new(0, 50, 0, 50)
  155. _2016CGift_Big.Image = "rbxassetid://3209775531"
  156. _2016CGift_Big.MouseButton1Down:connect(function()
  157. textbox_item.Text = "2016CGift_Big"
  158. preview.Image = "rbxassetid://3209775531"
  159. end)
  160.  
  161. _2018CGift_GingerAxe.Name = "2018CGift_GingerAxe"
  162. _2018CGift_GingerAxe.Parent = presentes
  163. _2018CGift_GingerAxe.BackgroundColor3 = Color3.new(1, 1, 1)
  164. _2018CGift_GingerAxe.BackgroundTransparency = 1
  165. _2018CGift_GingerAxe.BorderColor3 = Color3.new(0.207843, 0, 0)
  166. _2018CGift_GingerAxe.Position = UDim2.new(0.438554227, 0, 0.414241135, 0)
  167. _2018CGift_GingerAxe.Size = UDim2.new(0, 50, 0, 50)
  168. _2018CGift_GingerAxe.Image = "rbxassetid://3209800888"
  169. _2018CGift_GingerAxe.MouseButton1Down:connect(function()
  170. textbox_item.Text = "2018CGift_GingerAxe"
  171. preview.Image = "rbxassetid://3209800888"
  172. end)
  173.  
  174. _2018CGift_Plate.Name = "2018CGift_Plate"
  175. _2018CGift_Plate.Parent = presentes
  176. _2018CGift_Plate.BackgroundColor3 = Color3.new(1, 1, 1)
  177. _2018CGift_Plate.BackgroundTransparency = 1
  178. _2018CGift_Plate.BorderColor3 = Color3.new(0.207843, 0, 0)
  179. _2018CGift_Plate.Position = UDim2.new(0.558554173, 0, 0.414241135, 0)
  180. _2018CGift_Plate.Size = UDim2.new(0, 50, 0, 50)
  181. _2018CGift_Plate.Image = "rbxassetid://3209802080"
  182. _2018CGift_Plate.MouseButton1Down:connect(function()
  183. textbox_item.Text = "2018CGift_Plate"
  184. preview.Image = "rbxassetid://3209802080"
  185. end)
  186.  
  187. _2018CGift_Plum.Name = "2018CGift_Plum"
  188. _2018CGift_Plum.Parent = presentes
  189. _2018CGift_Plum.BackgroundColor3 = Color3.new(1, 1, 1)
  190. _2018CGift_Plum.BackgroundTransparency = 1
  191. _2018CGift_Plum.BorderColor3 = Color3.new(0.207843, 0, 0)
  192. _2018CGift_Plum.Position = UDim2.new(0.678554177, 0, 0.414241135, 0)
  193. _2018CGift_Plum.Size = UDim2.new(0, 50, 0, 50)
  194. _2018CGift_Plum.Image = "rbxassetid://3209804173"
  195. _2018CGift_Plum.MouseButton1Down:connect(function()
  196. textbox_item.Text = "2018CGift_Plum"
  197. preview.Image = "rbxassetid://3209804173"
  198. end)
  199.  
  200. _2018CGift_Sled.Name = "2018CGift_Sled"
  201. _2018CGift_Sled.Parent = presentes
  202. _2018CGift_Sled.BackgroundColor3 = Color3.new(1, 1, 1)
  203. _2018CGift_Sled.BackgroundTransparency = 1
  204. _2018CGift_Sled.BorderColor3 = Color3.new(0.207843, 0, 0)
  205. _2018CGift_Sled.Position = UDim2.new(0.798554182, 0, 0.414241135, 0)
  206. _2018CGift_Sled.Size = UDim2.new(0, 50, 0, 50)
  207. _2018CGift_Sled.Image = "rbxassetid://3209805260"
  208. _2018CGift_Sled.MouseButton1Down:connect(function()
  209. textbox_item.Text = "2018CGift_Sled"
  210. preview.Image = "rbxassetid://3209805260"
  211. end)
  212.  
  213. _2018CGift_Snow.Name = "2018CGift_Snow"
  214. _2018CGift_Snow.Parent = presentes
  215. _2018CGift_Snow.BackgroundColor3 = Color3.new(1, 1, 1)
  216. _2018CGift_Snow.BackgroundTransparency = 1
  217. _2018CGift_Snow.BorderColor3 = Color3.new(0.207843, 0, 0)
  218. _2018CGift_Snow.Position = UDim2.new(0.078554213, 0, 0.524241149, 0)
  219. _2018CGift_Snow.Size = UDim2.new(0, 50, 0, 50)
  220. _2018CGift_Snow.Image = "rbxassetid://3209806499"
  221. _2018CGift_Snow.MouseButton1Down:connect(function()
  222. textbox_item.Text = "2018CGift_Snow"
  223. preview.Image = "rbxassetid://3209806499"
  224. end)
  225.  
  226. _2018CGift_Duck.Name = "2018CGift_Duck"
  227. _2018CGift_Duck.Parent = presentes
  228. _2018CGift_Duck.BackgroundColor3 = Color3.new(1, 1, 1)
  229. _2018CGift_Duck.BackgroundTransparency = 1
  230. _2018CGift_Duck.BorderColor3 = Color3.new(0.207843, 0, 0)
  231. _2018CGift_Duck.Position = UDim2.new(0.318554223, 0, 0.414241135, 0)
  232. _2018CGift_Duck.Size = UDim2.new(0, 50, 0, 50)
  233. _2018CGift_Duck.Image = "rbxassetid://3209799725"
  234. _2018CGift_Duck.MouseButton1Down:connect(function()
  235. textbox_item.Text = "2018CGift_Duck"
  236. preview.Image = "rbxassetid://3209799725"
  237. end)
  238.  
  239. _2016CGift_Jingle.Name = "2016CGift_Jingle"
  240. _2016CGift_Jingle.Parent = presentes
  241. _2016CGift_Jingle.BackgroundColor3 = Color3.new(1, 1, 1)
  242. _2016CGift_Jingle.BackgroundTransparency = 1
  243. _2016CGift_Jingle.BorderColor3 = Color3.new(0.207843, 0, 0)
  244. _2016CGift_Jingle.Position = UDim2.new(0.798554182, 0, 0.194241166, 0)
  245. _2016CGift_Jingle.Size = UDim2.new(0, 50, 0, 50)
  246. _2016CGift_Jingle.Image = "rbxassetid://3209778607"
  247. _2016CGift_Jingle.MouseButton1Down:connect(function()
  248. textbox_item.Text = "2016CGift_Jingle"
  249. preview.Image = "rbxassetid://3209778607"
  250. end)
  251.  
  252. _2018CGift_Cocoa.Name = "2018CGift_Cocoa"
  253. _2018CGift_Cocoa.Parent = presentes
  254. _2018CGift_Cocoa.BackgroundColor3 = Color3.new(1, 1, 1)
  255. _2018CGift_Cocoa.BackgroundTransparency = 1
  256. _2018CGift_Cocoa.BorderColor3 = Color3.new(0.207843, 0, 0)
  257. _2018CGift_Cocoa.Position = UDim2.new(0.078554213, 0, 0.414241135, 0)
  258. _2018CGift_Cocoa.Size = UDim2.new(0, 50, 0, 50)
  259. _2018CGift_Cocoa.Image = "rbxassetid://3209796618"
  260. _2018CGift_Cocoa.MouseButton1Down:connect(function()
  261. textbox_item.Text = "2018CGift_Cocoa"
  262. preview.Image = "rbxassetid://3209796618"
  263. end)
  264.  
  265. _2016CGift_Blue.Name = "2016CGift_Blue"
  266. _2016CGift_Blue.Parent = presentes
  267. _2016CGift_Blue.BackgroundColor3 = Color3.new(1, 1, 1)
  268. _2016CGift_Blue.BackgroundTransparency = 1
  269. _2016CGift_Blue.BorderColor3 = Color3.new(0.207843, 0, 0)
  270. _2016CGift_Blue.Position = UDim2.new(0.678554177, 0, 0.194241166, 0)
  271. _2016CGift_Blue.Size = UDim2.new(0, 50, 0, 50)
  272. _2016CGift_Blue.Image = "rbxassetid://3209776921"
  273. _2016CGift_Blue.MouseButton1Down:connect(function()
  274. textbox_item.Text = "2016CGift_Blue"
  275. preview.Image = "rbxassetid://3209776921"
  276. end)
  277.  
  278. _2018CGift_Cone.Name = "2018CGift_Cone"
  279. _2018CGift_Cone.Parent = presentes
  280. _2018CGift_Cone.BackgroundColor3 = Color3.new(1, 1, 1)
  281. _2018CGift_Cone.BackgroundTransparency = 1
  282. _2018CGift_Cone.BorderColor3 = Color3.new(0.207843, 0, 0)
  283. _2018CGift_Cone.Position = UDim2.new(0.198554218, 0, 0.414241135, 0)
  284. _2018CGift_Cone.Size = UDim2.new(0, 50, 0, 50)
  285. _2018CGift_Cone.Image = "rbxassetid://3209798753"
  286. _2018CGift_Cone.MouseButton1Down:connect(function()
  287. textbox_item.Text = "2018CGift_Cone"
  288. preview.Image = "rbxassetid://3209798753"
  289. end)
  290.  
  291. _2016CGift_Wobble.Name = "2016CGift_Wobble"
  292. _2016CGift_Wobble.Parent = presentes
  293. _2016CGift_Wobble.BackgroundColor3 = Color3.new(1, 1, 1)
  294. _2016CGift_Wobble.BackgroundTransparency = 1
  295. _2016CGift_Wobble.BorderColor3 = Color3.new(0.207843, 0, 0)
  296. _2016CGift_Wobble.Position = UDim2.new(0.198554218, 0, 0.304241151, 0)
  297. _2016CGift_Wobble.Size = UDim2.new(0, 50, 0, 50)
  298. _2016CGift_Wobble.Image = "rbxassetid://3209780628"
  299. _2016CGift_Wobble.MouseButton1Down:connect(function()
  300. textbox_item.Text = "2016CGift_Wobble"
  301. preview.Image = "rbxassetid://3209780628"
  302. end)
  303.  
  304. _2017CGift_Gold.Name = "2017CGift_Gold"
  305. _2017CGift_Gold.Parent = presentes
  306. _2017CGift_Gold.BackgroundColor3 = Color3.new(1, 1, 1)
  307. _2017CGift_Gold.BackgroundTransparency = 1
  308. _2017CGift_Gold.BorderColor3 = Color3.new(0.207843, 0, 0)
  309. _2017CGift_Gold.Position = UDim2.new(0.318554223, 0, 0.304241151, 0)
  310. _2017CGift_Gold.Size = UDim2.new(0, 50, 0, 50)
  311. _2017CGift_Gold.Image = "rbxassetid://3209781646"
  312. _2017CGift_Gold.MouseButton1Down:connect(function()
  313. textbox_item.Text = "2017CGift_Gold"
  314. preview.Image = "rbxassetid://3209781646"
  315. end)
  316.  
  317. preview.Name = "preview"
  318. preview.Parent = presentes
  319. preview.BackgroundColor3 = Color3.new(1, 1, 1)
  320. preview.BackgroundTransparency = 1
  321. preview.Position = UDim2.new(0.0746987984, 0, 0.748440742, 0)
  322. preview.Size = UDim2.new(0, 100, 0, 100)
  323. preview.Image = "rbxassetid://31032747"
  324.  
  325. _2018CGift_Candy.Name = "2018CGift_Candy"
  326. _2018CGift_Candy.Parent = presentes
  327. _2018CGift_Candy.BackgroundColor3 = Color3.new(1, 1, 1)
  328. _2018CGift_Candy.BackgroundTransparency = 1
  329. _2018CGift_Candy.BorderColor3 = Color3.new(0.207843, 0, 0)
  330. _2018CGift_Candy.Position = UDim2.new(0.798554182, 0, 0.304241151, 0)
  331. _2018CGift_Candy.Size = UDim2.new(0, 50, 0, 50)
  332. _2018CGift_Candy.Image = "rbxassetid://3209795590"
  333. _2018CGift_Candy.MouseButton1Down:connect(function()
  334. textbox_item.Text = "2018CGift_Candy"
  335. preview.Image = "rbxassetid://3209795590"
  336. end)
  337.  
  338. TextBox.Parent = presentes
  339. TextBox.BackgroundColor3 = Color3.new(0.117647, 0.117647, 0.117647)
  340. TextBox.BorderColor3 = Color3.new(0.301961, 0, 0)
  341. TextBox.Position = UDim2.new(0.400000006, 0, 0.748440742, 0)
  342. TextBox.Size = UDim2.new(0, 200, 0, 37)
  343. TextBox.Font = Enum.Font.SourceSans
  344. TextBox.PlaceholderColor3 = Color3.new(0.996078, 0.996078, 0.996078)
  345. TextBox.PlaceholderText = "ENTER QUANTITY HARE"
  346. TextBox.Text = ""
  347. TextBox.TextColor3 = Color3.new(1, 1, 1)
  348. TextBox.TextScaled = true
  349. TextBox.TextSize = 20
  350. TextBox.TextWrapped = true
  351.  
  352. titulo.Name = "titulo"
  353. titulo.Parent = presentes
  354. titulo.BackgroundColor3 = Color3.new(0.223529, 0.223529, 0.223529)
  355. titulo.Position = UDim2.new(0.078554213, 0, 0.0332640335, 0)
  356. titulo.Selectable = true
  357. titulo.Size = UDim2.new(0, 348, 0, 49)
  358. titulo.Font = Enum.Font.SourceSans
  359. titulo.Text = "Spawn Presents/Gifts"
  360. titulo.TextColor3 = Color3.new(1, 1, 1)
  361. titulo.TextScaled = true
  362. titulo.TextSize = 14
  363. titulo.TextWrapped = true
  364.  
  365. _2015CGift_Coal.Name = "2015CGift_Coal"
  366. _2015CGift_Coal.Parent = presentes
  367. _2015CGift_Coal.BackgroundColor3 = Color3.new(1, 1, 1)
  368. _2015CGift_Coal.BackgroundTransparency = 1
  369. _2015CGift_Coal.BorderColor3 = Color3.new(0.207843, 0, 0)
  370. _2015CGift_Coal.Position = UDim2.new(0.078554213, 0, 0.194241166, 0)
  371. _2015CGift_Coal.Size = UDim2.new(0, 50, 0, 50)
  372. _2015CGift_Coal.Image = "rbxassetid://3209763154"
  373. _2015CGift_Coal.MouseButton1Down:connect(function()
  374. textbox_item.Text = "2015CGift_Coal"
  375. preview.Image = "rbxassetid://3209763154"
  376. end)
  377.  
  378. _2015CGift_Red.Name = "2015CGift_Red"
  379. _2015CGift_Red.Parent = presentes
  380. _2015CGift_Red.BackgroundColor3 = Color3.new(1, 1, 1)
  381. _2015CGift_Red.BackgroundTransparency = 1
  382. _2015CGift_Red.BorderColor3 = Color3.new(0.207843, 0, 0)
  383. _2015CGift_Red.Position = UDim2.new(0.198554218, 0, 0.194241166, 0)
  384. _2015CGift_Red.Size = UDim2.new(0, 50, 0, 50)
  385. _2015CGift_Red.Image = "rbxassetid://3209766496"
  386. _2015CGift_Red.MouseButton1Down:connect(function()
  387. textbox_item.Text = "2015CGift_Red"
  388. preview.Image = "rbxassetid://3209766496"
  389. end)
  390.  
  391. _2015CGift_Volcano.Name = "2015CGift_Volcano"
  392. _2015CGift_Volcano.Parent = presentes
  393. _2015CGift_Volcano.BackgroundColor3 = Color3.new(1, 1, 1)
  394. _2015CGift_Volcano.BackgroundTransparency = 1
  395. _2015CGift_Volcano.BorderColor3 = Color3.new(0.207843, 0, 0)
  396. _2015CGift_Volcano.Position = UDim2.new(0.318554223, 0, 0.194241166, 0)
  397. _2015CGift_Volcano.Size = UDim2.new(0, 50, 0, 50)
  398. _2015CGift_Volcano.Image = "rbxassetid://3209769274"
  399. _2015CGift_Volcano.MouseButton1Down:connect(function()
  400. textbox_item.Text = "2015CGift_Volcano"
  401. preview.Image = "rbxassetid://3209769274"
  402. end)
  403.  
  404. _2015CGift_Wobble.Name = "2015CGift_Wobble"
  405. _2015CGift_Wobble.Parent = presentes
  406. _2015CGift_Wobble.BackgroundColor3 = Color3.new(1, 1, 1)
  407. _2015CGift_Wobble.BackgroundTransparency = 1
  408. _2015CGift_Wobble.BorderColor3 = Color3.new(0.207843, 0, 0)
  409. _2015CGift_Wobble.Position = UDim2.new(0.438554227, 0, 0.194241166, 0)
  410. _2015CGift_Wobble.Size = UDim2.new(0, 50, 0, 50)
  411. _2015CGift_Wobble.Image = "rbxassetid://3209774156"
  412. _2015CGift_Wobble.MouseButton1Down:connect(function()
  413. textbox_item.Text = "2015CGift_Wobble"
  414. preview.Image = "rbxassetid://3209774156"
  415. end)
  416. -- Scripts:
  417. TextButton.MouseButton1Down:connect(function()
  418. local Item = textbox_item.Text
  419. local Quantity = TextBox.Text
  420.  
  421. local Land = nil
  422. for i,v in pairs(game.Workspace.Properties:GetChildren()) do
  423. if v.Owner.Value == game.Players.LocalPlayer then
  424. Land = v
  425. break
  426. end
  427. end
  428. if not Land then
  429. for i,v in pairs(game.Workspace.Properties:GetChildren()) do
  430. if v.Owner.Value == game.Players.LocalPlayer or v.Owner.Value == nil then
  431. Land = v
  432. game.ReplicatedStorage.Interaction.ClientIsDragging:FireServer(v)
  433. break
  434. end
  435. end
  436. end
  437.  
  438. function Spawn(Item)
  439. local Info = {}
  440. Info.Name = Item.Name
  441. Info.Type = game.ReplicatedStorage.Purchasables.Structures.HardStructures.Sawmill2.Type
  442. Info.OtherInfo = game.ReplicatedStorage.Purchasables.WireObjects.Wire.OtherInfo
  443. local Points = {Land.OriginSquare.Position + Vector3.new(0,5,0), Land.OriginSquare.Position + Vector3.new(0,5,0)}
  444. game.ReplicatedStorage.PlaceStructure.ClientPlacedWire:FireServer(Info, Points)
  445. end
  446.  
  447. for i=1, Quantity do
  448. Spawn(game.ReplicatedStorage.Purchasables:FindFirstChild(Item, true))
  449. end
  450. end)
Add Comment
Please, Sign In to add comment