Advertisement
BobMe

BrockL

Oct 18th, 2020 (edited)
334
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 80.04 KB | None | 0 0
  1. -- This work is protected under copyright
  2. -- Any attempts to steal and publish this work will be taken action against under law.
  3. --
  4. -- © 2020, Denizen Donut, All rights reserved.
  5.  
  6. local remote = game.Players.LocalPlayer:WaitForChild("GrowBrick")
  7. local player = game.Players.LocalPlayer
  8. local name = nil
  9. -- Instances:
  10.  
  11. local WelcomeScreen = Instance.new("ScreenGui")
  12. local Outside = Instance.new("Frame")
  13. local Title = Instance.new("TextLabel")
  14. local SubTitle = Instance.new("TextLabel")
  15. local Frame = Instance.new("TextLabel")
  16. local FrameBottom = Instance.new("TextLabel")
  17. local TextLabel = Instance.new("TextLabel")
  18. local TextBox = Instance.new("TextBox")
  19. local TextButton = Instance.new("TextButton")
  20.  
  21. --Properties:
  22.  
  23. WelcomeScreen.Name = "WelcomeScreen"
  24. WelcomeScreen.Parent = player.PlayerGui
  25. WelcomeScreen.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  26. WelcomeScreen.ResetOnSpawn = false
  27.  
  28. Outside.Name = "Outside"
  29. Outside.Parent = WelcomeScreen
  30. Outside.AnchorPoint = Vector2.new(0.5, 0.5)
  31. Outside.BackgroundColor3 = Color3.fromRGB(17, 152, 255)
  32. Outside.BackgroundTransparency = 0.500
  33. Outside.BorderColor3 = Color3.fromRGB(28, 107, 255)
  34. Outside.BorderSizePixel = 10
  35. Outside.Position = UDim2.new(0.5, 0, 0.5, 0)
  36. Outside.Size = UDim2.new(0.899999976, 0, 0.5, 0)
  37. Outside.SizeConstraint = Enum.SizeConstraint.RelativeYY
  38.  
  39. Title.Name = "Title"
  40. Title.Parent = Outside
  41. Title.AnchorPoint = Vector2.new(0.5, 0)
  42. Title.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  43. Title.BackgroundTransparency = 1.000
  44. Title.Position = UDim2.new(0.5, 0, 0.0500000007, 0)
  45. Title.Size = UDim2.new(0.800000012, 0, 0.200000003, 0)
  46. Title.ZIndex = 2
  47. Title.Font = Enum.Font.PermanentMarker
  48. Title.Text = "Grow A Brick!"
  49. Title.TextColor3 = Color3.fromRGB(255, 255, 255)
  50. Title.TextScaled = true
  51. Title.TextSize = 14.000
  52. Title.TextStrokeColor3 = Color3.fromRGB(136, 136, 136)
  53. Title.TextStrokeTransparency = 0.000
  54. Title.TextWrapped = true
  55.  
  56. SubTitle.Name = "SubTitle"
  57. SubTitle.Parent = Outside
  58. SubTitle.AnchorPoint = Vector2.new(0.5, 0)
  59. SubTitle.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  60. SubTitle.BackgroundTransparency = 1.000
  61. SubTitle.Position = UDim2.new(0.5, 0, 0.200000003, 0)
  62. SubTitle.Size = UDim2.new(0.800000012, 0, 0.075000003, 0)
  63. SubTitle.ZIndex = 2
  64. SubTitle.Font = Enum.Font.PermanentMarker
  65. SubTitle.Text = "By Memo1332"
  66. SubTitle.TextColor3 = Color3.fromRGB(227, 227, 227)
  67. SubTitle.TextScaled = true
  68. SubTitle.TextSize = 14.000
  69. SubTitle.TextStrokeColor3 = Color3.fromRGB(136, 136, 136)
  70. SubTitle.TextStrokeTransparency = 0.000
  71. SubTitle.TextWrapped = true
  72.  
  73. Frame.Name = "Frame"
  74. Frame.Parent = Outside
  75. Frame.AnchorPoint = Vector2.new(0.5, 0)
  76. Frame.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  77. Frame.BackgroundTransparency = 0.700
  78. Frame.Position = UDim2.new(0.5, 0, 0.0500000007, 0)
  79. Frame.Size = UDim2.new(0.800000012, 0, 0.25, 0)
  80. Frame.Font = Enum.Font.PermanentMarker
  81. Frame.Text = ""
  82. Frame.TextColor3 = Color3.fromRGB(227, 227, 227)
  83. Frame.TextScaled = true
  84. Frame.TextSize = 14.000
  85. Frame.TextStrokeColor3 = Color3.fromRGB(136, 136, 136)
  86. Frame.TextStrokeTransparency = 0.000
  87. Frame.TextWrapped = true
  88.  
  89. FrameBottom.Name = "FrameBottom"
  90. FrameBottom.Parent = Outside
  91. FrameBottom.AnchorPoint = Vector2.new(0.5, 0)
  92. FrameBottom.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  93. FrameBottom.BackgroundTransparency = 0.700
  94. FrameBottom.Position = UDim2.new(0.5, 0, 0.349999994, 0)
  95. FrameBottom.Size = UDim2.new(0.949999988, 0, 0.600000024, 0)
  96. FrameBottom.Font = Enum.Font.PermanentMarker
  97. FrameBottom.Text = ""
  98. FrameBottom.TextColor3 = Color3.fromRGB(227, 227, 227)
  99. FrameBottom.TextScaled = true
  100. FrameBottom.TextSize = 14.000
  101. FrameBottom.TextStrokeColor3 = Color3.fromRGB(136, 136, 136)
  102. FrameBottom.TextStrokeTransparency = 0.000
  103. FrameBottom.TextWrapped = true
  104.  
  105. TextLabel.Parent = FrameBottom
  106. TextLabel.AnchorPoint = Vector2.new(1, 0.5)
  107. TextLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  108. TextLabel.BackgroundTransparency = 1.000
  109. TextLabel.Position = UDim2.new(0.479999989, 0, 0.449999988, 0)
  110. TextLabel.Size = UDim2.new(0.400000006, 0, 0.300000012, 0)
  111. TextLabel.Font = Enum.Font.PermanentMarker
  112. TextLabel.Text = "Brick Name:"
  113. TextLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
  114. TextLabel.TextScaled = true
  115. TextLabel.TextSize = 14.000
  116. TextLabel.TextWrapped = true
  117.  
  118. TextBox.Parent = FrameBottom
  119. TextBox.AnchorPoint = Vector2.new(0, 0.5)
  120. TextBox.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  121. TextBox.BackgroundTransparency = 0.500
  122. TextBox.BorderColor3 = Color3.fromRGB(157, 157, 157)
  123. TextBox.BorderSizePixel = 5
  124. TextBox.Position = UDim2.new(0.519999981, 0, 0.449999988, 0)
  125. TextBox.Size = UDim2.new(0.400000006, 0, 0.300000012, 0)
  126. TextBox.Font = Enum.Font.SourceSans
  127. TextBox.PlaceholderColor3 = Color3.fromRGB(140, 140, 140)
  128. TextBox.PlaceholderText = "Ava"
  129. TextBox.Text = ""
  130. TextBox.TextColor3 = Color3.fromRGB(255, 255, 255)
  131. TextBox.TextScaled = true
  132. TextBox.TextSize = 14.000
  133. TextBox.TextWrapped = true
  134.  
  135. TextButton.Parent = FrameBottom
  136. TextButton.AnchorPoint = Vector2.new(0.5, 0.5)
  137. TextButton.BackgroundColor3 = Color3.fromRGB(3, 200, 0)
  138. TextButton.BorderColor3 = Color3.fromRGB(9, 135, 0)
  139. TextButton.BorderSizePixel = 5
  140. TextButton.Position = UDim2.new(0.5, 0, 0.850000024, 0)
  141. TextButton.Size = UDim2.new(0.300000012, 0, 0.200000003, 0)
  142. TextButton.Font = Enum.Font.PermanentMarker
  143. TextButton.Text = "Go!"
  144. TextButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  145. TextButton.TextScaled = true
  146. TextButton.TextSize = 14.000
  147. TextButton.TextWrapped = true
  148.  
  149. TextButton.MouseButton1Click:Connect(function()
  150. name = TextBox.Text
  151. end)
  152.  
  153. repeat wait() until name ~= nil
  154.  
  155. -- Instances:
  156.  
  157. local aBillboardGui = Instance.new("BillboardGui")
  158. local aFrame1 = Instance.new("Frame")
  159. local aFrame = Instance.new("Frame")
  160. local aFrame2 = Instance.new("Frame")
  161. local aFrame_2 = Instance.new("Frame")
  162. local aFrame3 = Instance.new("Frame")
  163. local aFrame_3 = Instance.new("Frame")
  164. local aFrame4 = Instance.new("Frame")
  165. local aFrame_4 = Instance.new("Frame")
  166. local aCenter = Instance.new("Frame")
  167. local aTextLabel = Instance.new("TextLabel")
  168.  
  169. --Properties:
  170.  
  171. aBillboardGui.Parent = nil
  172. aBillboardGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  173. aBillboardGui.Active = true
  174. aBillboardGui.AlwaysOnTop = true
  175. aBillboardGui.LightInfluence = 1.000
  176. aBillboardGui.Size = UDim2.new(2, 0, 2, 0)
  177.  
  178. aFrame1.Name = "Frame1"
  179. aFrame1.Parent = aBillboardGui
  180. aFrame1.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  181. aFrame1.BackgroundTransparency = 0.500
  182. aFrame1.BorderSizePixel = 0
  183. aFrame1.Position = UDim2.new(0, 0, 0.0500000007, 0)
  184. aFrame1.Size = UDim2.new(0.0500000007, 0, 0.949999988, 0)
  185.  
  186. aFrame.Parent = aFrame1
  187. aFrame.AnchorPoint = Vector2.new(0, 1)
  188. aFrame.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  189. aFrame.BackgroundTransparency = 0.500
  190. aFrame.BorderSizePixel = 0
  191. aFrame.Position = UDim2.new(0, 0, 1, 0)
  192. aFrame.Size = UDim2.new(1, 0, 0.5, 0)
  193.  
  194. aFrame2.Name = "Frame2"
  195. aFrame2.Parent = aBillboardGui
  196. aFrame2.AnchorPoint = Vector2.new(1, 0)
  197. aFrame2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  198. aFrame2.BackgroundTransparency = 0.500
  199. aFrame2.BorderSizePixel = 0
  200. aFrame2.Position = UDim2.new(1, 0, 0, 0)
  201. aFrame2.Size = UDim2.new(0.0500000007, 0, 0.949999988, 0)
  202.  
  203. aFrame_2.Parent = aFrame2
  204. aFrame_2.BackgroundColor3 = Color3.fromRGB(255,255,255)
  205. aFrame_2.BackgroundTransparency = 0.500
  206. aFrame_2.BorderSizePixel = 0
  207. aFrame_2.Size = UDim2.new(1, 0, 0.5, 0)
  208.  
  209. aFrame3.Name = "Frame3"
  210. aFrame3.Parent = aBillboardGui
  211. aFrame3.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  212. aFrame3.BackgroundTransparency = 0.500
  213. aFrame3.BorderSizePixel = 0
  214. aFrame3.Size = UDim2.new(0.949999988, 0, 0.0500000007, 0)
  215.  
  216. aFrame_3.Parent = aFrame3
  217. aFrame_3.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  218. aFrame_3.BackgroundTransparency = 0.500
  219. aFrame_3.BorderSizePixel = 0
  220. aFrame_3.Size = UDim2.new(0.5, 0, 1, 0)
  221.  
  222. aFrame4.Name = "Frame4"
  223. aFrame4.Parent = aBillboardGui
  224. aFrame4.AnchorPoint = Vector2.new(0, 1)
  225. aFrame4.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  226. aFrame4.BackgroundTransparency = 0.500
  227. aFrame4.BorderSizePixel = 0
  228. aFrame4.Position = UDim2.new(0.0500000007, 0, 1, 0)
  229. aFrame4.Size = UDim2.new(0.949999988, 0, 0.0500000007, 0)
  230.  
  231. aFrame_4.Parent = aFrame4
  232. aFrame_4.AnchorPoint = Vector2.new(1, 0)
  233. aFrame_4.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  234. aFrame_4.BackgroundTransparency = 0.500
  235. aFrame_4.BorderSizePixel = 0
  236. aFrame_4.Position = UDim2.new(1, 0, 0, 0)
  237. aFrame_4.Size = UDim2.new(0.5, 0, 1, 0)
  238.  
  239. aCenter.Name = "Center"
  240. aCenter.Parent = aBillboardGui
  241. aCenter.AnchorPoint = Vector2.new(0.5, 0.5)
  242. aCenter.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  243. aCenter.BackgroundTransparency = 1.000
  244. aCenter.BorderSizePixel = 0
  245. aCenter.Position = UDim2.new(0.5, 0, 0.5, 0)
  246. aCenter.Size = UDim2.new(0.600000024, 0, 0.600000024, 0)
  247.  
  248. aTextLabel.Parent = aCenter
  249. aTextLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  250. aTextLabel.BackgroundTransparency = 0.800
  251. aTextLabel.Size = UDim2.new(1, 0, 1, 0)
  252. aTextLabel.Font = Enum.Font.SourceSans
  253. aTextLabel.Text = "F"
  254. aTextLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
  255. aTextLabel.TextScaled = true
  256. aTextLabel.TextSize = 14.000
  257. aTextLabel.TextWrapped = true
  258.  
  259. WelcomeScreen:Destroy()
  260. remote:FireServer("Begin",name)
  261. local folder = nil
  262. remote.OnClientEvent:Connect(function(sc)
  263. if folder == nil then
  264. folder = sc
  265. end
  266. end)
  267. repeat wait() until folder ~= nil
  268.  
  269. -- Instances:
  270.  
  271. local Inventory = Instance.new("ScreenGui")
  272. local Outside = Instance.new("Frame")
  273. local StatFrame = Instance.new("Frame")
  274. local Namer = Instance.new("TextLabel")
  275. local ImageLabel = Instance.new("ImageLabel")
  276. local grad = Instance.new("ImageLabel")
  277. local grad_2 = Instance.new("ImageLabel")
  278. local statss = Instance.new("TextLabel")
  279. local Hunger = Instance.new("TextLabel")
  280. local Health = Instance.new("TextLabel")
  281. local Boredom = Instance.new("TextLabel")
  282. local Defecation = Instance.new("TextLabel")
  283. local Following = Instance.new("TextLabel")
  284. local Wandering = Instance.new("TextLabel")
  285. local Speed = Instance.new("TextLabel")
  286. local Size = Instance.new("TextLabel")
  287. local Ticks = Instance.new("TextLabel")
  288. local DefTick = Instance.new("TextLabel")
  289. local Color = Instance.new("TextLabel")
  290. local ItemFrame = Instance.new("Frame")
  291. local Itemi = Instance.new("Frame")
  292. local Frame = Instance.new("Frame")
  293. local Description = Instance.new("TextLabel")
  294. local UseButton = Instance.new("TextButton")
  295. local DropButton = Instance.new("TextButton")
  296. local ImageLabel2 = Instance.new("ImageLabel")
  297. local grad_3 = Instance.new("ImageLabel")
  298. local grad_4 = Instance.new("ImageLabel")
  299. local Namer2 = Instance.new("TextLabel")
  300. local crafti = Instance.new("Frame")
  301. local CraftFrame = Instance.new("Frame")
  302. local CraftSample = Instance.new("TextLabel")
  303. local CraftButton = Instance.new("TextButton")
  304. local ImageLabel2_2 = Instance.new("ImageLabel")
  305. local grad_5 = Instance.new("ImageLabel")
  306. local grad_6 = Instance.new("ImageLabel")
  307. local Namer2_2 = Instance.new("TextLabel")
  308. local InventoryFrame = Instance.new("Frame")
  309. local InventoryScrollFrame = Instance.new("ScrollingFrame")
  310. local Sample = Instance.new("ImageButton")
  311. local Amount = Instance.new("TextLabel")
  312. local Top = Instance.new("Frame")
  313. local InventoryButton = Instance.new("TextButton")
  314. local CraftingButton = Instance.new("TextButton")
  315. local CraftingScrollFrame = Instance.new("ScrollingFrame")
  316.  
  317. --Properties:
  318.  
  319. Inventory.Name = "Inventory"
  320. Inventory.Parent = player:WaitForChild("PlayerGui")
  321. Inventory.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  322. Inventory.Enabled = false
  323. Inventory.ResetOnSpawn = false
  324.  
  325. Outside.Name = "Outside"
  326. Outside.Parent = Inventory
  327. Outside.AnchorPoint = Vector2.new(0.5, 0.5)
  328. Outside.BackgroundColor3 = Color3.fromRGB(17, 152, 255)
  329. Outside.BackgroundTransparency = 0.500
  330. Outside.BorderColor3 = Color3.fromRGB(28, 107, 255)
  331. Outside.BorderSizePixel = 10
  332. Outside.Position = UDim2.new(0.5, 0, 0.5, 0)
  333. Outside.Size = UDim2.new(1.29999995, 0, 0.899999976, 0)
  334. Outside.SizeConstraint = Enum.SizeConstraint.RelativeYY
  335.  
  336. StatFrame.Name = "StatFrame"
  337. StatFrame.Parent = Outside
  338. StatFrame.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  339. StatFrame.BackgroundTransparency = 0.500
  340. StatFrame.BorderSizePixel = 0
  341. StatFrame.Size = UDim2.new(0.300000012, 0, 1, 0)
  342.  
  343. Namer.Name = "Namer"
  344. Namer.Parent = StatFrame
  345. Namer.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  346. Namer.BackgroundTransparency = 1.000
  347. Namer.Size = UDim2.new(1, 0, 0.100000001, 0)
  348. Namer.Font = Enum.Font.PermanentMarker
  349. Namer.Text = name
  350. Namer.TextColor3 = Color3.fromRGB(255, 255, 255)
  351. Namer.TextScaled = true
  352. Namer.TextSize = 14.000
  353. Namer.TextStrokeColor3 = Color3.fromRGB(147, 147, 147)
  354. Namer.TextStrokeTransparency = 0.000
  355. Namer.TextWrapped = true
  356.  
  357. ImageLabel.Parent = StatFrame
  358. ImageLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  359. ImageLabel.BackgroundTransparency = 1.000
  360. ImageLabel.BorderSizePixel = 0
  361. ImageLabel.Position = UDim2.new(0, 0, 0.100000031, 0)
  362. ImageLabel.Size = UDim2.new(1, 0, 0.300000012, 0)
  363. ImageLabel.Image = "http://www.roblox.com/asset/?id=5841668418"
  364. ImageLabel.ScaleType = Enum.ScaleType.Crop
  365.  
  366. grad.Name = "grad"
  367. grad.Parent = StatFrame
  368. grad.AnchorPoint = Vector2.new(0, 0.5)
  369. grad.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  370. grad.BackgroundTransparency = 1.000
  371. grad.BorderSizePixel = 0
  372. grad.ClipsDescendants = true
  373. grad.Position = UDim2.new(0, 0, 0.100000001, 0)
  374. grad.Size = UDim2.new(1, 0, 0.00400000019, 0)
  375. grad.Image = "http://www.roblox.com/asset/?id=5285832934"
  376. grad.ScaleType = Enum.ScaleType.Tile
  377.  
  378. grad_2.Name = "grad"
  379. grad_2.Parent = StatFrame
  380. grad_2.AnchorPoint = Vector2.new(0, 0.5)
  381. grad_2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  382. grad_2.BackgroundTransparency = 1.000
  383. grad_2.BorderSizePixel = 0
  384. grad_2.ClipsDescendants = true
  385. grad_2.Position = UDim2.new(0, 0, 0.400000006, 0)
  386. grad_2.Size = UDim2.new(1, 0, 0.00400000019, 0)
  387. grad_2.Image = "http://www.roblox.com/asset/?id=5285832934"
  388. grad_2.ScaleType = Enum.ScaleType.Tile
  389.  
  390. statss.Name = "stats"
  391. statss.Parent = StatFrame
  392. statss.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  393. statss.BackgroundTransparency = 1.000
  394. statss.Position = UDim2.new(0, 0, 0.400000006, 0)
  395. statss.Size = UDim2.new(1, 0, 0.0500000007, 0)
  396. statss.Font = Enum.Font.PermanentMarker
  397. statss.Text = "Stats"
  398. statss.TextColor3 = Color3.fromRGB(255, 255, 255)
  399. statss.TextScaled = true
  400. statss.TextSize = 14.000
  401. statss.TextStrokeColor3 = Color3.fromRGB(147, 147, 147)
  402. statss.TextStrokeTransparency = 0.000
  403. statss.TextWrapped = true
  404.  
  405. Hunger.Name = "Hunger"
  406. Hunger.Parent = StatFrame
  407. Hunger.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  408. Hunger.BackgroundTransparency = 0.500
  409. Hunger.BorderColor3 = Color3.fromRGB(79, 79, 79)
  410. Hunger.BorderSizePixel = 3
  411. Hunger.Position = UDim2.new(0, 0, 0.449999988, 0)
  412. Hunger.Size = UDim2.new(1, 0, 0.0500000007, 0)
  413. Hunger.Font = Enum.Font.Code
  414. Hunger.Text = "Hunger: 0"
  415. Hunger.TextColor3 = Color3.fromRGB(255, 255, 255)
  416. Hunger.TextScaled = true
  417. Hunger.TextSize = 14.000
  418. Hunger.TextStrokeColor3 = Color3.fromRGB(147, 147, 147)
  419. Hunger.TextStrokeTransparency = 0.000
  420. Hunger.TextWrapped = true
  421.  
  422. Health.Name = "Health"
  423. Health.Parent = StatFrame
  424. Health.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  425. Health.BackgroundTransparency = 0.500
  426. Health.BorderColor3 = Color3.fromRGB(79, 79, 79)
  427. Health.BorderSizePixel = 3
  428. Health.Position = UDim2.new(0, 0, 0.5, 0)
  429. Health.Size = UDim2.new(1, 0, 0.0500000007, 0)
  430. Health.Font = Enum.Font.Code
  431. Health.Text = "Health: 0"
  432. Health.TextColor3 = Color3.fromRGB(255, 255, 255)
  433. Health.TextScaled = true
  434. Health.TextSize = 14.000
  435. Health.TextStrokeColor3 = Color3.fromRGB(147, 147, 147)
  436. Health.TextStrokeTransparency = 0.000
  437. Health.TextWrapped = true
  438.  
  439. Boredom.Name = "Boredom"
  440. Boredom.Parent = StatFrame
  441. Boredom.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  442. Boredom.BackgroundTransparency = 0.500
  443. Boredom.BorderColor3 = Color3.fromRGB(79, 79, 79)
  444. Boredom.BorderSizePixel = 3
  445. Boredom.Position = UDim2.new(0, 0, 0.550000012, 0)
  446. Boredom.Size = UDim2.new(1, 0, 0.0500000007, 0)
  447. Boredom.Font = Enum.Font.Code
  448. Boredom.Text = "Boredom: 0"
  449. Boredom.TextColor3 = Color3.fromRGB(255, 255, 255)
  450. Boredom.TextScaled = true
  451. Boredom.TextSize = 14.000
  452. Boredom.TextStrokeColor3 = Color3.fromRGB(147, 147, 147)
  453. Boredom.TextStrokeTransparency = 0.000
  454. Boredom.TextWrapped = true
  455.  
  456. Defecation.Name = "Defecation"
  457. Defecation.Parent = StatFrame
  458. Defecation.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  459. Defecation.BackgroundTransparency = 0.500
  460. Defecation.BorderColor3 = Color3.fromRGB(79, 79, 79)
  461. Defecation.BorderSizePixel = 3
  462. Defecation.Position = UDim2.new(0, 0, 0.600000024, 0)
  463. Defecation.Size = UDim2.new(1, 0, 0.0500000007, 0)
  464. Defecation.Font = Enum.Font.Code
  465. Defecation.Text = "Defecation: 0"
  466. Defecation.TextColor3 = Color3.fromRGB(255, 255, 255)
  467. Defecation.TextScaled = true
  468. Defecation.TextSize = 14.000
  469. Defecation.TextStrokeColor3 = Color3.fromRGB(147, 147, 147)
  470. Defecation.TextStrokeTransparency = 0.000
  471. Defecation.TextWrapped = true
  472.  
  473. Following.Name = "Following"
  474. Following.Parent = StatFrame
  475. Following.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  476. Following.BackgroundTransparency = 0.500
  477. Following.BorderColor3 = Color3.fromRGB(79, 79, 79)
  478. Following.BorderSizePixel = 3
  479. Following.Position = UDim2.new(0, 0, 0.75, 0)
  480. Following.Size = UDim2.new(1, 0, 0.0500000007, 0)
  481. Following.Font = Enum.Font.Code
  482. Following.Text = "Following: false"
  483. Following.TextColor3 = Color3.fromRGB(255, 255, 255)
  484. Following.TextScaled = true
  485. Following.TextSize = 14.000
  486. Following.TextStrokeColor3 = Color3.fromRGB(147, 147, 147)
  487. Following.TextStrokeTransparency = 0.000
  488. Following.TextWrapped = true
  489.  
  490. Wandering.Name = "Wandering"
  491. Wandering.Parent = StatFrame
  492. Wandering.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  493. Wandering.BackgroundTransparency = 0.500
  494. Wandering.BorderColor3 = Color3.fromRGB(79, 79, 79)
  495. Wandering.BorderSizePixel = 3
  496. Wandering.Position = UDim2.new(0, 0, 0.800000012, 0)
  497. Wandering.Size = UDim2.new(1, 0, 0.0500000007, 0)
  498. Wandering.Font = Enum.Font.Code
  499. Wandering.Text = "Wandering: true"
  500. Wandering.TextColor3 = Color3.fromRGB(255, 255, 255)
  501. Wandering.TextScaled = true
  502. Wandering.TextSize = 14.000
  503. Wandering.TextStrokeColor3 = Color3.fromRGB(147, 147, 147)
  504. Wandering.TextStrokeTransparency = 0.000
  505. Wandering.TextWrapped = true
  506.  
  507. Speed.Name = "Speed"
  508. Speed.Parent = StatFrame
  509. Speed.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  510. Speed.BackgroundTransparency = 0.500
  511. Speed.BorderColor3 = Color3.fromRGB(79, 79, 79)
  512. Speed.BorderSizePixel = 3
  513. Speed.Position = UDim2.new(0, 0, 0.649999976, 0)
  514. Speed.Size = UDim2.new(1, 0, 0.0500000007, 0)
  515. Speed.Font = Enum.Font.Code
  516. Speed.Text = "Speed: 4"
  517. Speed.TextColor3 = Color3.fromRGB(255, 255, 255)
  518. Speed.TextScaled = true
  519. Speed.TextSize = 14.000
  520. Speed.TextStrokeColor3 = Color3.fromRGB(147, 147, 147)
  521. Speed.TextStrokeTransparency = 0.000
  522. Speed.TextWrapped = true
  523.  
  524. Size.Name = "Size"
  525. Size.Parent = StatFrame
  526. Size.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  527. Size.BackgroundTransparency = 0.500
  528. Size.BorderColor3 = Color3.fromRGB(79, 79, 79)
  529. Size.BorderSizePixel = 3
  530. Size.Position = UDim2.new(0, 0, 0.699999988, 0)
  531. Size.Size = UDim2.new(1, 0, 0.0500000007, 0)
  532. Size.Font = Enum.Font.Code
  533. Size.Text = "Size: 1"
  534. Size.TextColor3 = Color3.fromRGB(255, 255, 255)
  535. Size.TextScaled = true
  536. Size.TextSize = 14.000
  537. Size.TextStrokeColor3 = Color3.fromRGB(147, 147, 147)
  538. Size.TextStrokeTransparency = 0.000
  539. Size.TextWrapped = true
  540.  
  541. Ticks.Name = "Ticks"
  542. Ticks.Parent = StatFrame
  543. Ticks.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  544. Ticks.BackgroundTransparency = 0.500
  545. Ticks.BorderColor3 = Color3.fromRGB(79, 79, 79)
  546. Ticks.BorderSizePixel = 3
  547. Ticks.Position = UDim2.new(0, 0, 0.850000024, 0)
  548. Ticks.Size = UDim2.new(1, 0, 0.0500000007, 0)
  549. Ticks.Font = Enum.Font.Code
  550. Ticks.Text = "Tick: 0"
  551. Ticks.TextColor3 = Color3.fromRGB(255, 255, 255)
  552. Ticks.TextScaled = true
  553. Ticks.TextSize = 14.000
  554. Ticks.TextStrokeColor3 = Color3.fromRGB(147, 147, 147)
  555. Ticks.TextStrokeTransparency = 0.000
  556. Ticks.TextWrapped = true
  557.  
  558. DefTick.Name = "DefTick"
  559. DefTick.Parent = StatFrame
  560. DefTick.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  561. DefTick.BackgroundTransparency = 0.500
  562. DefTick.BorderColor3 = Color3.fromRGB(79, 79, 79)
  563. DefTick.BorderSizePixel = 3
  564. DefTick.Position = UDim2.new(0, 0, 0.899999976, 0)
  565. DefTick.Size = UDim2.new(1, 0, 0.0500000007, 0)
  566. DefTick.Font = Enum.Font.Code
  567. DefTick.Text = "DefTick: 0"
  568. DefTick.TextColor3 = Color3.fromRGB(255, 255, 255)
  569. DefTick.TextScaled = true
  570. DefTick.TextSize = 14.000
  571. DefTick.TextStrokeColor3 = Color3.fromRGB(147, 147, 147)
  572. DefTick.TextStrokeTransparency = 0.000
  573. DefTick.TextWrapped = true
  574.  
  575. Color.Name = "Color"
  576. Color.Parent = StatFrame
  577. Color.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  578. Color.BackgroundTransparency = 0.500
  579. Color.BorderColor3 = Color3.fromRGB(79, 79, 79)
  580. Color.BorderSizePixel = 3
  581. Color.Position = UDim2.new(0, 0, 0.949999988, 0)
  582. Color.Size = UDim2.new(1, 0, 0.0500000007, 0)
  583. Color.Font = Enum.Font.Code
  584. Color.Text = "Color: (255,0,255)"
  585. Color.TextColor3 = Color3.fromRGB(255, 255, 255)
  586. Color.TextScaled = true
  587. Color.TextSize = 14.000
  588. Color.TextStrokeColor3 = Color3.fromRGB(147, 147, 147)
  589. Color.TextStrokeTransparency = 0.000
  590. Color.TextWrapped = true
  591.  
  592. ItemFrame.Name = "ItemFrame"
  593. ItemFrame.Parent = Outside
  594. ItemFrame.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  595. ItemFrame.BackgroundTransparency = 0.500
  596. ItemFrame.BorderSizePixel = 0
  597. ItemFrame.Position = UDim2.new(0.699999988, 0, 0, 0)
  598. ItemFrame.Size = UDim2.new(0.300000012, 0, 1, 0)
  599.  
  600. Itemi.Name = "Itemi"
  601. Itemi.Parent = ItemFrame
  602. Itemi.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  603. Itemi.BackgroundTransparency = 1.000
  604. Itemi.BorderColor3 = Color3.fromRGB(27, 42, 53)
  605. Itemi.Size = UDim2.new(1, 0, 1, 0)
  606.  
  607. Frame.Parent = Itemi
  608. Frame.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  609. Frame.BackgroundTransparency = 0.600
  610. Frame.Position = UDim2.new(0.0500000007, 0, 0.519999981, 0)
  611. Frame.Size = UDim2.new(0.899999976, 0, 0.349999994, 0)
  612.  
  613. Description.Name = "Description"
  614. Description.Parent = Frame
  615. Description.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  616. Description.BackgroundTransparency = 1.000
  617. Description.BorderSizePixel = 8
  618. Description.Size = UDim2.new(1, 0, 1, 0)
  619. Description.Text = "A fruit with a metal shell and strange design. Inside the shell contains many small and squishy capsules that are jam packed with fiber. This might make your brick need to use the restroom."
  620. Description.TextColor3 = Color3.fromRGB(255, 255, 255)
  621. Description.TextSize = 24.000
  622. Description.TextWrapped = true
  623. Description.TextXAlignment = Enum.TextXAlignment.Left
  624. Description.TextYAlignment = Enum.TextYAlignment.Top
  625.  
  626. UseButton.Name = "UseButton"
  627. UseButton.Parent = Itemi
  628. UseButton.AnchorPoint = Vector2.new(1, 0.5)
  629. UseButton.BackgroundColor3 = Color3.fromRGB(255, 157, 0)
  630. UseButton.BorderSizePixel = 0
  631. UseButton.Position = UDim2.new(0.479999989, 0, 0.935000002, 0)
  632. UseButton.Size = UDim2.new(0.400000006, 0, 0.0599999987, 0)
  633. UseButton.Font = Enum.Font.SourceSans
  634. UseButton.Text = "Use"
  635. UseButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  636. UseButton.TextScaled = true
  637. UseButton.TextSize = 14.000
  638. UseButton.TextWrapped = true
  639.  
  640. DropButton.Name = "DropButton"
  641. DropButton.Parent = Itemi
  642. DropButton.AnchorPoint = Vector2.new(0, 0.5)
  643. DropButton.BackgroundColor3 = Color3.fromRGB(188, 0, 0)
  644. DropButton.BorderSizePixel = 0
  645. DropButton.Position = UDim2.new(0.519999981, 0, 0.935000002, 0)
  646. DropButton.Size = UDim2.new(0.400000006, 0, 0.0599999987, 0)
  647. DropButton.Font = Enum.Font.SourceSans
  648. DropButton.Text = "Drop"
  649. DropButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  650. DropButton.TextScaled = true
  651. DropButton.TextSize = 14.000
  652. DropButton.TextWrapped = true
  653.  
  654. ImageLabel2.Name = "ImageLabel2"
  655. ImageLabel2.Parent = Itemi
  656. ImageLabel2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  657. ImageLabel2.BackgroundTransparency = 1.000
  658. ImageLabel2.BorderSizePixel = 0
  659. ImageLabel2.Position = UDim2.new(0, 0, 0.100000031, 0)
  660. ImageLabel2.Size = UDim2.new(1, 0, 0.400000006, 0)
  661. ImageLabel2.Image = "http://www.roblox.com/asset/?id=5841403880"
  662. ImageLabel2.ScaleType = Enum.ScaleType.Crop
  663.  
  664. grad_3.Name = "grad"
  665. grad_3.Parent = Itemi
  666. grad_3.AnchorPoint = Vector2.new(0, 0.5)
  667. grad_3.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  668. grad_3.BackgroundTransparency = 1.000
  669. grad_3.BorderSizePixel = 0
  670. grad_3.ClipsDescendants = true
  671. grad_3.Position = UDim2.new(0, 0, 0.100000001, 0)
  672. grad_3.Rotation = 180.000
  673. grad_3.Size = UDim2.new(1, 0, 0.00400000019, 0)
  674. grad_3.Image = "http://www.roblox.com/asset/?id=5285832934"
  675. grad_3.ScaleType = Enum.ScaleType.Tile
  676.  
  677. grad_4.Name = "grad"
  678. grad_4.Parent = Itemi
  679. grad_4.AnchorPoint = Vector2.new(0, 0.5)
  680. grad_4.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  681. grad_4.BackgroundTransparency = 1.000
  682. grad_4.BorderSizePixel = 0
  683. grad_4.ClipsDescendants = true
  684. grad_4.Position = UDim2.new(0, 0, 0.5, 0)
  685. grad_4.Rotation = 180.000
  686. grad_4.Size = UDim2.new(1, 0, 0.00400000019, 0)
  687. grad_4.Image = "http://www.roblox.com/asset/?id=5285832934"
  688. grad_4.ScaleType = Enum.ScaleType.Tile
  689.  
  690. Namer2.Name = "Namer2"
  691. Namer2.Parent = Itemi
  692. Namer2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  693. Namer2.BackgroundTransparency = 1.000
  694. Namer2.Size = UDim2.new(1, 0, 0.100000001, 0)
  695. Namer2.Font = Enum.Font.PermanentMarker
  696. Namer2.Text = "Bush's Baked Beans"
  697. Namer2.TextColor3 = Color3.fromRGB(255, 255, 255)
  698. Namer2.TextScaled = true
  699. Namer2.TextSize = 14.000
  700. Namer2.TextStrokeColor3 = Color3.fromRGB(147, 147, 147)
  701. Namer2.TextStrokeTransparency = 0.000
  702. Namer2.TextWrapped = true
  703.  
  704. crafti.Name = "crafti"
  705. crafti.Parent = ItemFrame
  706. crafti.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  707. crafti.BackgroundTransparency = 1.000
  708. crafti.BorderColor3 = Color3.fromRGB(27, 42, 53)
  709. crafti.Size = UDim2.new(1, 0, 1, 0)
  710. crafti.Visible = false
  711.  
  712. CraftFrame.Name = "CraftFrame"
  713. CraftFrame.Parent = crafti
  714. CraftFrame.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  715. CraftFrame.BackgroundTransparency = 0.600
  716. CraftFrame.Position = UDim2.new(0.0500000007, 0, 0.519999981, 0)
  717. CraftFrame.Size = UDim2.new(0.899999976, 0, 0.349999994, 0)
  718.  
  719. CraftSample.Name = "CraftSample"
  720. CraftSample.Parent = CraftFrame
  721. CraftSample.BackgroundColor3 = Color3.fromRGB(34, 255, 0)
  722. CraftSample.BackgroundTransparency = 0.300
  723. CraftSample.BorderSizePixel = 3
  724. CraftSample.Size = UDim2.new(1, 0, 0.100000001, 0)
  725. CraftSample.Font = Enum.Font.SourceSans
  726. CraftSample.Text = "2x Fertilizer"
  727. CraftSample.TextColor3 = Color3.fromRGB(255, 255, 255)
  728. CraftSample.TextScaled = true
  729. CraftSample.TextSize = 14.000
  730. CraftSample.TextWrapped = true
  731.  
  732. CraftButton.Name = "CraftButton"
  733. CraftButton.Parent = crafti
  734. CraftButton.AnchorPoint = Vector2.new(0.5, 0.5)
  735. CraftButton.BackgroundColor3 = Color3.fromRGB(182, 0, 0)
  736. CraftButton.BorderSizePixel = 0
  737. CraftButton.Position = UDim2.new(0.5, 0, 0.935000002, 0)
  738. CraftButton.Size = UDim2.new(0.400000006, 0, 0.0599999987, 0)
  739. CraftButton.Font = Enum.Font.SourceSans
  740. CraftButton.Text = "Craft"
  741. CraftButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  742. CraftButton.TextScaled = true
  743. CraftButton.TextSize = 14.000
  744. CraftButton.TextWrapped = true
  745.  
  746. ImageLabel2_2.Name = "ImageLabel2"
  747. ImageLabel2_2.Parent = crafti
  748. ImageLabel2_2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  749. ImageLabel2_2.BackgroundTransparency = 1.000
  750. ImageLabel2_2.BorderSizePixel = 0
  751. ImageLabel2_2.Position = UDim2.new(0, 0, 0.100000031, 0)
  752. ImageLabel2_2.Size = UDim2.new(1, 0, 0.400000006, 0)
  753. ImageLabel2_2.Image = "http://www.roblox.com/asset/?id=5841403880"
  754. ImageLabel2_2.ScaleType = Enum.ScaleType.Crop
  755.  
  756. grad_5.Name = "grad"
  757. grad_5.Parent = crafti
  758. grad_5.AnchorPoint = Vector2.new(0, 0.5)
  759. grad_5.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  760. grad_5.BackgroundTransparency = 1.000
  761. grad_5.BorderSizePixel = 0
  762. grad_5.ClipsDescendants = true
  763. grad_5.Position = UDim2.new(0, 0, 0.100000001, 0)
  764. grad_5.Rotation = 180.000
  765. grad_5.Size = UDim2.new(1, 0, 0.00400000019, 0)
  766. grad_5.Image = "http://www.roblox.com/asset/?id=5285832934"
  767. grad_5.ScaleType = Enum.ScaleType.Tile
  768.  
  769. grad_6.Name = "grad"
  770. grad_6.Parent = crafti
  771. grad_6.AnchorPoint = Vector2.new(0, 0.5)
  772. grad_6.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  773. grad_6.BackgroundTransparency = 1.000
  774. grad_6.BorderSizePixel = 0
  775. grad_6.ClipsDescendants = true
  776. grad_6.Position = UDim2.new(0, 0, 0.5, 0)
  777. grad_6.Rotation = 180.000
  778. grad_6.Size = UDim2.new(1, 0, 0.00400000019, 0)
  779. grad_6.Image = "http://www.roblox.com/asset/?id=5285832934"
  780. grad_6.ScaleType = Enum.ScaleType.Tile
  781.  
  782. Namer2_2.Name = "Namer2"
  783. Namer2_2.Parent = crafti
  784. Namer2_2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  785. Namer2_2.BackgroundTransparency = 1.000
  786. Namer2_2.Size = UDim2.new(1, 0, 0.100000001, 0)
  787. Namer2_2.Font = Enum.Font.PermanentMarker
  788. Namer2_2.Text = ""
  789. Namer2_2.TextColor3 = Color3.fromRGB(255, 255, 255)
  790. Namer2_2.TextScaled = true
  791. Namer2_2.TextSize = 14.000
  792. Namer2_2.TextStrokeColor3 = Color3.fromRGB(147, 147, 147)
  793. Namer2_2.TextStrokeTransparency = 0.000
  794. Namer2_2.TextWrapped = true
  795.  
  796. InventoryFrame.Name = "InventoryFrame"
  797. InventoryFrame.Parent = Outside
  798. InventoryFrame.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  799. InventoryFrame.BackgroundTransparency = 1.000
  800. InventoryFrame.BorderSizePixel = 0
  801. InventoryFrame.Position = UDim2.new(0.300000012, 0, 0, 0)
  802. InventoryFrame.Size = UDim2.new(0.400000006, 0, 1, 0)
  803.  
  804. InventoryScrollFrame.Name = "InventoryScrollFrame"
  805. InventoryScrollFrame.Parent = InventoryFrame
  806. InventoryScrollFrame.Active = true
  807. InventoryScrollFrame.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  808. InventoryScrollFrame.BackgroundTransparency = 1.000
  809. InventoryScrollFrame.Position = UDim2.new(0, 0, 0.075000003, 0)
  810. InventoryScrollFrame.Size = UDim2.new(1, 0, 0.925000012, 0)
  811. InventoryScrollFrame.CanvasSize = UDim2.new(0, 0, 1, 0)
  812. InventoryScrollFrame.ScrollBarThickness = 5
  813.  
  814. Sample.Name = "Sample"
  815. Sample.Parent = InventoryScrollFrame
  816. Sample.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  817. Sample.BackgroundTransparency = 0.300
  818. Sample.Position = UDim2.new(0.0250000004, 0, 0.0250000004, 0)
  819. Sample.Size = UDim2.new(0.300000012, 0, 0.172000006, 0)
  820. Sample.Image = "http://www.roblox.com/asset/?id=5841401980"
  821. Sample.ScaleType = Enum.ScaleType.Crop
  822.  
  823. Amount.Name = "Amount"
  824. Amount.Parent = Sample
  825. Amount.AnchorPoint = Vector2.new(1, 0)
  826. Amount.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  827. Amount.BackgroundTransparency = 1.000
  828. Amount.Position = UDim2.new(1, 0, 0, 0)
  829. Amount.Size = UDim2.new(0.25, 0, 0.25, 0)
  830. Amount.SizeConstraint = Enum.SizeConstraint.RelativeYY
  831. Amount.Font = Enum.Font.GothamBold
  832. Amount.Text = "14"
  833. Amount.TextColor3 = Color3.fromRGB(255, 255, 255)
  834. Amount.TextScaled = true
  835. Amount.TextSize = 14.000
  836. Amount.TextWrapped = true
  837.  
  838. Top.Name = "Top"
  839. Top.Parent = InventoryFrame
  840. Top.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  841. Top.BackgroundTransparency = 0.500
  842. Top.BorderSizePixel = 0
  843. Top.Size = UDim2.new(1, 0, 0.075000003, 0)
  844.  
  845. InventoryButton.Name = "InventoryButton"
  846. InventoryButton.Parent = Top
  847. InventoryButton.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  848. InventoryButton.BackgroundTransparency = 0.500
  849. InventoryButton.BorderColor3 = Color3.fromRGB(140, 140, 140)
  850. InventoryButton.BorderSizePixel = 5
  851. InventoryButton.Size = UDim2.new(0.5, 0, 1, 0)
  852. InventoryButton.Font = Enum.Font.SourceSansSemibold
  853. InventoryButton.Text = "Inventory"
  854. InventoryButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  855. InventoryButton.TextScaled = true
  856. InventoryButton.TextSize = 14.000
  857. InventoryButton.TextWrapped = true
  858.  
  859. CraftingButton.Name = "CraftingButton"
  860. CraftingButton.Parent = Top
  861. CraftingButton.BackgroundColor3 = Color3.fromRGB(61, 61, 61)
  862. CraftingButton.BackgroundTransparency = 0.500
  863. CraftingButton.BorderColor3 = Color3.fromRGB(0, 0, 0)
  864. CraftingButton.BorderSizePixel = 5
  865. CraftingButton.Position = UDim2.new(0.5, 0, 0, 0)
  866. CraftingButton.Size = UDim2.new(0.5, 0, 1, 0)
  867. CraftingButton.Font = Enum.Font.SourceSansSemibold
  868. CraftingButton.Text = "Crafting"
  869. CraftingButton.TextColor3 = Color3.fromRGB(99, 99, 99)
  870. CraftingButton.TextScaled = true
  871. CraftingButton.TextSize = 14.000
  872. CraftingButton.TextWrapped = true
  873.  
  874. CraftingScrollFrame.Name = "CraftingScrollFrame"
  875. CraftingScrollFrame.Parent = InventoryFrame
  876. CraftingScrollFrame.Active = true
  877. CraftingScrollFrame.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  878. CraftingScrollFrame.BackgroundTransparency = 1.000
  879. CraftingScrollFrame.Position = UDim2.new(0, 0, 0.075000003, 0)
  880. CraftingScrollFrame.Size = UDim2.new(1, 0, 0.925000012, 0)
  881. CraftingScrollFrame.Visible = false
  882. CraftingScrollFrame.CanvasSize = UDim2.new(0, 0, 1, 0)
  883. CraftingScrollFrame.ScrollBarThickness = 5
  884.  
  885. Sample.Parent = nil
  886. CraftSample.Parent = nil
  887.  
  888. -- Instances:
  889.  
  890. local Songs = Instance.new("ScreenGui")
  891. local Frame = Instance.new("Frame")
  892. local Mute = Instance.new("TextButton")
  893. local NowPlaying = Instance.new("TextLabel")
  894.  
  895. --Properties:
  896.  
  897. Songs.Name = "Songs"
  898. Songs.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  899. Songs.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  900. Songs.ResetOnSpawn = false
  901.  
  902. Frame.Parent = Songs
  903. Frame.AnchorPoint = Vector2.new(1, 1)
  904. Frame.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  905. Frame.BackgroundTransparency = 1.000
  906. Frame.Position = UDim2.new(1, 0, 1, 0)
  907. Frame.Size = UDim2.new(0.200000003, 0, 0.150000006, 0)
  908.  
  909. Mute.Name = "Mute"
  910. Mute.Parent = Frame
  911. Mute.AnchorPoint = Vector2.new(1, 1)
  912. Mute.BackgroundColor3 = Color3.fromRGB(255, 0, 251)
  913. Mute.BackgroundTransparency = 0.500
  914. Mute.BorderSizePixel = 0
  915. Mute.Position = UDim2.new(1, -3, 1, -3)
  916. Mute.Size = UDim2.new(0.300000012, 0, 0.200000003, 0)
  917. Mute.Font = Enum.Font.SourceSans
  918. Mute.Text = "Mute"
  919. Mute.TextColor3 = Color3.fromRGB(255, 255, 255)
  920. Mute.TextScaled = true
  921. Mute.TextSize = 14.000
  922. Mute.TextWrapped = true
  923.  
  924. NowPlaying.Name = "NowPlaying"
  925. NowPlaying.Parent = Frame
  926. NowPlaying.AnchorPoint = Vector2.new(0, 1)
  927. NowPlaying.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  928. NowPlaying.BackgroundTransparency = 0.500
  929. NowPlaying.Position = UDim2.new(1.10000002, -3, 0.75, 0)
  930. NowPlaying.Size = UDim2.new(1, 0, 0.449999988, 0)
  931. NowPlaying.Font = Enum.Font.SourceSans
  932. NowPlaying.Text = "Now playing: Garbage truck"
  933. NowPlaying.TextColor3 = Color3.fromRGB(255, 255, 255)
  934. NowPlaying.TextSize = 22.000
  935.  
  936. local songs = {
  937. 911993485,
  938. 4110953040,
  939. 838005568,
  940. 2217398035,
  941. 1625489737,
  942. 1402202152,
  943. 1045722860,
  944. 1339865767,
  945. 5686389321,
  946. 5630330827,
  947. 5196933474,
  948. 5046738115,
  949. 5523078772,
  950. 961018305,
  951. 895079632,
  952. 4924129997,
  953. 5554411383,
  954. 2522691284,
  955. 4069430993,
  956. 3328634141,
  957. 2654040596,
  958. 4963202696,
  959. 1180273873,
  960. 2482937864,
  961. 1123126733,
  962. 4595789343,
  963. 2393991991,
  964. 5034732210,
  965. 1938554614,
  966. 1591776686,
  967. 3406661902,
  968. 5011189105,
  969. 3315991165,
  970. 1866644818
  971. }
  972.  
  973. local items = {
  974. "Apple",
  975. "Orange",
  976. "Blueberry",
  977. "Cabbage",
  978. "DragonFruit",
  979. "BushsBakedBeans",
  980. "SnowBerry",
  981. "Tier1Sapling",
  982. "Tier2Sapling",
  983. "Tier3Sapling",
  984. "Tier4Sapling",
  985. "Tier5Sapling",
  986. "BrickPoop",
  987. "Fertilizer",
  988. "AppleCompound",
  989. "OrangeCompound",
  990. "BlueberryCompound",
  991. "CabbageCompound",
  992. "DragonFruitCompound",
  993. "Log",
  994. "Stick",
  995. "StandingTorch"
  996. }
  997. local inventory = {}
  998. for i,v in pairs(items) do
  999. table.insert(inventory,0)
  1000. end
  1001. inventory[8] = 1
  1002. local craftingrecipes = {
  1003. "Fertilizer",{"4/BrickPoop"},
  1004. "Tier1Sapling",{"1/Fertilizer","4/Apple"},
  1005. "Tier2Sapling",{"2/Fertilizer","4/Orange"},
  1006. "Tier3Sapling",{"3/Fertilizer","4/Blueberry"},
  1007. "Tier4Sapling",{"4/Fertilizer","4/Cabbage"},
  1008. "Tier5Sapling",{"5/Fertilizer","4/DragonFruit"},
  1009. "AppleCompound",{"10/Apple","1/SnowBerry","1/BushsBakedBeans"},
  1010. "OrangeCompound",{"10/Orange","2/SnowBerry","1/BushsBakedBeans"},
  1011. "BlueberryCompound",{"10/Blueberry","2/SnowBerry","2/BushsBakedBeans"},
  1012. "CabbageCompound",{"10/Cabbage","3/SnowBerry","2/BushsBakedBeans"},
  1013. "DragonFruitCompound",{"10/DragonFruit","3/SnowBerry","3/BushsBakedBeans"},
  1014. "Stick/2",{"1/Log"},
  1015. "StandingTorch",{"4/Stick"}
  1016. }
  1017.  
  1018. local dic = {
  1019. Apple = {
  1020. Name = "Apple",
  1021. Description = "The most common and basic food source. It's full of sugar, nutriant, and found everywhere!",
  1022. Color = Color3.fromRGB(196, 40, 28),
  1023. Size = Vector3.new(0.75, 1, 0.75),
  1024. Material = Enum.Material.SmoothPlastic,
  1025. Saturation = 25,
  1026. Image = "http://www.roblox.com/asset/?id=5841401980"
  1027. },
  1028. Orange = {
  1029. Name = "Orange",
  1030. Description = "A less generic food source full of water. Bricks find these to be a very tasty treat!",
  1031. Color = Color3.fromRGB(218, 133, 65),
  1032. Size = Vector3.new(0.75, 1, 0.75),
  1033. Material = Enum.Material.SmoothPlastic,
  1034. Saturation = 53,
  1035. Image = "http://www.roblox.com/asset/?id=5841402486"
  1036. },
  1037. Blueberry = {
  1038. Name = "Blueberry",
  1039. Description = "A thick capsule of sugar that explode with flavor. Bricks find these to look very pretty!",
  1040. Color = Color3.fromRGB(13, 105, 172),
  1041. Size = Vector3.new(0.75, 1, 0.75),
  1042. Material = Enum.Material.SmoothPlastic,
  1043. Saturation = 67,
  1044. Image = "http://www.roblox.com/asset/?id=5841402851"
  1045. },
  1046. Cabbage = {
  1047. Name = "Cabbage",
  1048. Description = "A nutrient rich ball of leaves. Bricks love the crunch, and to them cabbages taste sour and sweet! They sometimes play soccer with these.",
  1049. Color = Color3.fromRGB(75, 151, 75),
  1050. Size = Vector3.new(0.75, 1, 0.75),
  1051. Material = Enum.Material.Slate,
  1052. Saturation = 83,
  1053. Image = "http://www.roblox.com/asset/?id=5841403181"
  1054. },
  1055. DragonFruit = {
  1056. Name = "Dragon Fruit",
  1057. Description = "A cookies and cream fruit with a beautiful pink shell. These are full of nutrience and are especially full of flavor. Bricks tend to fight to the death for these.",
  1058. Color = Color3.fromRGB(255, 102, 204),
  1059. Size = Vector3.new(0.75, 1, 0.75),
  1060. Material = Enum.Material.Sand,
  1061. Saturation = 98,
  1062. Image = "http://www.roblox.com/asset/?id=5841403563"
  1063. },
  1064. BushsBakedBeans = {
  1065. Name = "Bush's Baked Beans",
  1066. Description = "A fruit with a metal shell and strange design. Inside the shell contains many small and squishy capsules that are jam packed with fiber. This might make your brick need to use the restroom.",
  1067. Color = Color3.fromRGB(86, 36, 36),
  1068. Size = Vector3.new(0.75, 1, 0.75),
  1069. Material = Enum.Material.Metal,
  1070. Saturation = 113,
  1071. Image = "http://www.roblox.com/asset/?id=5841403880"
  1072. },
  1073. SnowBerry = {
  1074. Name = "Snow Berry",
  1075. Description = "A berry that isn't very filling, yet full of stimulants. This will excite your brick and make it travel faster!",
  1076. Color = Color3.fromRGB(231, 231, 236),
  1077. Size = Vector3.new(0.75, 1, 0.75),
  1078. Material = Enum.Material.SmoothPlastic,
  1079. Saturation = 20,
  1080. Image = "http://www.roblox.com/asset/?id=5841404303"
  1081. },
  1082. Tier1Sapling = {
  1083. Name = "Tier 1 Sapling",
  1084. Description = "A genetically modified apple sapling which grows many types of fruits, but mostly outputs apples.",
  1085. Color = Color3.fromRGB(124, 156, 107),
  1086. Size = Vector3.new(0.75, 1.5, 0.75),
  1087. Material = Enum.Material.Slate,
  1088. Image = "http://www.roblox.com/asset/?id=5842132663"
  1089. },
  1090. Tier2Sapling = {
  1091. Name = "Tier 2 Sapling",
  1092. Description = "A genetically modified orange sapling which grows many types of fruits. It mostly grows apples and oranges but sometimes can sprout blueberries.",
  1093. Color = Color3.fromRGB(124, 156, 107),
  1094. Size = Vector3.new(0.75, 1.5, 0.75),
  1095. Material = Enum.Material.Slate,
  1096. Image = "http://www.roblox.com/asset/?id=5842132922"
  1097. },
  1098. Tier3Sapling = {
  1099. Name = "Tier 3 Sapling",
  1100. Description = "A genetically modified blueberry sapling which grows all types of fruits. This sapling can grow all types of food, but usually grows blueberries and oranges.",
  1101. Color = Color3.fromRGB(124, 156, 107),
  1102. Size = Vector3.new(0.75, 1.5, 0.75),
  1103. Material = Enum.Material.Slate,
  1104. Image = "http://www.roblox.com/asset/?id=5842133357"
  1105. },
  1106. Tier4Sapling = {
  1107. Name = "Tier 4 Sapling",
  1108. Description = "A genetically modified cabbage sapling which grows all types of fruits. This is a very balanced sapling that grows all food types nearly evenly.",
  1109. Color = Color3.fromRGB(124, 156, 107),
  1110. Size = Vector3.new(0.75, 1.5, 0.75),
  1111. Material = Enum.Material.Slate,
  1112. Image = "http://www.roblox.com/asset/?id=5842133570"
  1113. },
  1114. Tier5Sapling = {
  1115. Name = "Tier 5 Sapling",
  1116. Description = "A genetically modified cabbage sapling which grows all types of fruits. This is a very rare and exotic sapling which grows mostly exotic fruits.",
  1117. Color = Color3.fromRGB(124, 156, 107),
  1118. Size = Vector3.new(0.75, 1.5, 0.75),
  1119. Material = Enum.Material.Slate,
  1120. Image = "http://www.roblox.com/asset/?id=5842133857"
  1121. },
  1122. BrickPoop = {
  1123. Name = "Brick Poop",
  1124. Description = "Some smelly and yucky stuff that came out of your brick. Used for fertilizer.",
  1125. Color = Color3.fromRGB(106, 57, 9),
  1126. Size = Vector3.new(0.75, 0.75, 0.75),
  1127. Material = Enum.Material.Granite,
  1128. Image = "http://www.roblox.com/asset/?id=5842162205"
  1129. },
  1130. Fertilizer = {
  1131. Name = "Fertilizer",
  1132. Description = "Very gross and smelly, but saplings love it.",
  1133. Color = Color3.fromRGB(106, 57, 9),
  1134. Size = Vector3.new(0.75, 1.75, 0.75),
  1135. Material = Enum.Material.Slate,
  1136. Image = "http://www.roblox.com/asset/?id=5842171608"
  1137. },
  1138. AppleCompound = {
  1139. Name = "Apple Compound",
  1140. Description = "A bunch of apples that have been fused together to create an even bigger more powerful apple! These are very very filling.",
  1141. Color = Color3.fromRGB(151, 0, 0),
  1142. Size = Vector3.new(1.25, 2, 1.25),
  1143. Material = Enum.Material.Slate,
  1144. Saturation = 375,
  1145. Image = "http://www.roblox.com/asset/?id=5853176500"
  1146. },
  1147. OrangeCompound = {
  1148. Name = "Orange Compound",
  1149. Description = "Congradulations! You are now the world record holder of the world's largest orange!",
  1150. Color = Color3.fromRGB(170, 85, 0),
  1151. Size = Vector3.new(1.25, 2, 1.25),
  1152. Material = Enum.Material.Slate,
  1153. Saturation = 795,
  1154. Image = "http://www.roblox.com/asset/?id=5853176830"
  1155. },
  1156. BlueberryCompound = {
  1157. Name = "Blueberry Compound",
  1158. Description = "You could probably just keep this as a bean bag. A very big fleshy bean bag.",
  1159. Color = Color3.fromRGB(33, 84, 185),
  1160. Size = Vector3.new(1.25, 2, 1.25),
  1161. Material = Enum.Material.Slate,
  1162. Saturation = 1005,
  1163. Image = "http://www.roblox.com/asset/?id=5853177154"
  1164. },
  1165. CabbageCompound = {
  1166. Name = "Cabbage Compound",
  1167. Description = "Wow okay now that's ALOT of fiber.",
  1168. Color = Color3.fromRGB(44, 101, 29),
  1169. Size = Vector3.new(1.25, 2, 1.25),
  1170. Material = Enum.Material.Slate,
  1171. Saturation = 1245,
  1172. Image = "http://www.roblox.com/asset/?id=5853177599"
  1173. },
  1174. DragonFruitCompound = {
  1175. Name = "Dragon Fruit Compound",
  1176. Description = "BIG PINK FRUIT YUMMY BIG PINK SUPER NEON BRIGHT YUMMY PINK NO GREEN YUMMY PINK YUM YUM",
  1177. Color = Color3.fromRGB(255,0,255),
  1178. Size = Vector3.new(1.25, 2, 1.25),
  1179. Material = Enum.Material.Slate,
  1180. Saturation = 1470,
  1181. Image = "http://www.roblox.com/asset/?id=5853178072"
  1182. },
  1183. Log = {
  1184. Name = "Log",
  1185. Description = "A fresh log harvested from a fresh tree.",
  1186. Color = Color3.fromRGB(105, 63, 40),
  1187. Size = Vector3.new(10, 2, 2),
  1188. Material = Enum.Material.Wood,
  1189. Image = "http://www.roblox.com/asset/?id=6326165327"
  1190. },
  1191. Stick = {
  1192. Name = "Stick",
  1193. Description = "A very small log which is used as a handle or for supporting a structure.",
  1194. Color = Color3.fromRGB(105, 63, 40),
  1195. Size = Vector3.new(5, 1, 1),
  1196. Material = Enum.Material.Wood,
  1197. Image = "http://www.roblox.com/asset/?id=6326165733"
  1198. },
  1199. StandingTorch = {
  1200. Name = "Standing Torch",
  1201. Description = "A super cool torch that you can use to light up super cool things.",
  1202. Color = Color3.fromRGB(105, 63, 40),
  1203. Size = Vector3.new(2, 4, 2),
  1204. Material = Enum.Material.Wood,
  1205. Image = "http://www.roblox.com/asset/?id=6326164632"
  1206. }
  1207. }
  1208. local bap = 0
  1209. function playSound(id,volume,pitch,parent,namer,timer)
  1210. bap = bap + 1
  1211. local oldbap = bap
  1212. local sound = Instance.new("Sound",parent)
  1213. sound.Volume = volume
  1214. sound.SoundId = "rbxassetid://"..tostring(id)
  1215. sound.Pitch = pitch
  1216. sound.Name = namer
  1217. sound:Play()
  1218. if timer ~= nil then
  1219. coroutine.resume(coroutine.create(function()
  1220. wait(timer)
  1221. if bap == oldbap then
  1222. sound:Destroy()
  1223. end
  1224. end))
  1225. end
  1226. end
  1227. local craft = false
  1228. local inventoryselected = nil
  1229. local craftselected = nil
  1230. local mouse = player:GetMouse()
  1231. local absy
  1232. local atc = nil
  1233. local shift = false
  1234.  
  1235. user = game:GetService("UserInputService")
  1236.  
  1237. user.InputBegan:Connect(function(input)
  1238. if input.UserInputType == Enum.UserInputType.Keyboard then
  1239. local key = input.KeyCode
  1240. if input.KeyCode == Enum.KeyCode.LeftControl then
  1241. shift = true
  1242. CraftButton.Text = "Craft all"
  1243. if atc then
  1244. CraftButton.BackgroundColor3 = Color3.fromRGB(255, 0, 255)
  1245. else
  1246. CraftButton.BackgroundColor3 = Color3.fromRGB(182, 0, 0)
  1247. end
  1248. elseif input.KeyCode == Enum.KeyCode.LeftShift then
  1249. game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 50
  1250. end
  1251. end
  1252. end)
  1253.  
  1254. user.InputEnded:Connect(function(input)
  1255. if input.UserInputType == Enum.UserInputType.Keyboard then
  1256. local key = input.KeyCode
  1257. if input.KeyCode == Enum.KeyCode.LeftControl then
  1258. shift = false
  1259. CraftButton.Text = "Craft"
  1260. if atc then
  1261. CraftButton.BackgroundColor3 = Color3.fromRGB(0, 182, 6)
  1262. else
  1263. CraftButton.BackgroundColor3 = Color3.fromRGB(182, 0, 0)
  1264. end
  1265. elseif input.KeyCode == Enum.KeyCode.LeftShift then
  1266. game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 16
  1267. end
  1268. end
  1269. end)
  1270.  
  1271. function refreshInventory()
  1272. InventoryScrollFrame:ClearAllChildren()
  1273. local count = 0
  1274. local lasty
  1275. local lastysize
  1276. for i=1,#items do
  1277. if inventory[i] > 0 then
  1278. count = count + 1
  1279. local sam = Sample:Clone()
  1280. local x = (count%3)
  1281. if x == 0 then x = 3 end
  1282. local y = math.floor((count-1)/3)
  1283. sam.Parent = InventoryScrollFrame
  1284. if absy == nil then absy = sam.AbsoluteSize.Y end
  1285. sam.Size = UDim2.new(sam.Size.X.Scale,sam.Size.X.Offset,0,absy)
  1286. sam.Position = UDim2.new((0.325*(x-1))+0.025,sam.AbsoluteSize.X/2,0,(((absy*y)+15*y)+15)+sam.AbsoluteSize.Y/2)
  1287. sam.Amount.Text = tostring(inventory[i])
  1288. sam.Image = dic[items[i]].Image
  1289. sam.AnchorPoint = Vector2.new(0.5,0.5)
  1290. lasty = sam.Position.Y.Offset
  1291. lastysize = sam.Size.Y.Offset
  1292. sam.MouseButton1Click:Connect(function()
  1293. ImageLabel2.Image = dic[items[i]].Image
  1294. Description.Text = dic[items[i]].Description
  1295. Description.TextSize = 24
  1296. while Description.TextFits == false do
  1297. Description.TextSize = Description.TextSize - 0.5
  1298. end
  1299. Namer2.Text = dic[items[i]].Name
  1300. inventoryselected = i
  1301. end)
  1302. local unexpandedsize = sam.Size
  1303. local expandedsize = UDim2.new(0.35,0,0,absy+30)
  1304. sam.MouseEnter:Connect(function()
  1305. playSound(278039453,1,1,Inventory,"Hover")
  1306. sam:TweenSize(expandedsize,Enum.EasingDirection.Out,Enum.EasingStyle.Quad,0.25,true)
  1307. end)
  1308. sam.MouseLeave:Connect(function()
  1309. sam:TweenSize(unexpandedsize,Enum.EasingDirection.Out,Enum.EasingStyle.Quad,0.25,true)
  1310. end)
  1311. end
  1312. end
  1313. if lasty ~= nil and lasty > 1 then
  1314. InventoryScrollFrame.CanvasSize = UDim2.new(0,0,0,lasty+lastysize)
  1315. else
  1316. InventoryScrollFrame.CanvasSize = UDim2.new(0,0,0,0)
  1317. end
  1318. end
  1319. function refreshCrafting()
  1320. CraftingScrollFrame:ClearAllChildren()
  1321. local count = 0
  1322. local lasty
  1323. local lastysize
  1324. for i=1,#craftingrecipes do
  1325. if i%2 == 1 then
  1326. count = count + 1
  1327. local itemtocraft = string.split(craftingrecipes[i],"/")[1]
  1328. local components = craftingrecipes[i+1]
  1329. local id = table.find(items,itemtocraft)
  1330. local sam = Sample:Clone()
  1331. local x = (count%3)
  1332. if x == 0 then x = 3 end
  1333. local y = math.floor((count-1)/3)
  1334. sam.Parent = CraftingScrollFrame
  1335. if absy == nil then absy = sam.AbsoluteSize.Y end
  1336. sam.Size = UDim2.new(sam.Size.X.Scale,sam.Size.X.Offset,0,absy)
  1337. sam.Position = UDim2.new((0.325*(x-1))+0.025,sam.AbsoluteSize.X/2,0,(((absy*y)+15*y)+15)+sam.AbsoluteSize.Y/2)
  1338. sam.AnchorPoint = Vector2.new(0.5,0.5)
  1339. sam.Amount.Text = tostring(inventory[id])
  1340. sam.Image = dic[items[id]].Image
  1341. lasty = sam.Position.Y.Offset
  1342. lastysize = sam.Size.Y.Offset
  1343.  
  1344. sam.MouseButton1Click:Connect(function()
  1345. CraftFrame:ClearAllChildren()
  1346. local abletocraft = true
  1347. ImageLabel2_2.Image = dic[itemtocraft].Image
  1348. Namer2_2.Text = dic[itemtocraft].Name
  1349. craftselected = i
  1350. for ii=1,#components do
  1351. local str = string.split(components[ii],"/")
  1352. local amount = tonumber(str[1])
  1353. local item = str[2]
  1354. local id = table.find(items,item)
  1355. if inventory[id] >= amount then
  1356. local clon = CraftSample:Clone()
  1357. clon.Parent = CraftFrame
  1358. clon.Text = tostring(amount).."x "..dic[item].Name
  1359. clon.BorderColor3 = Color3.fromRGB(2, 167, 0)
  1360. clon.Position = UDim2.new(0,0,(0.1*(ii-1)),0)
  1361. else
  1362. abletocraft = false
  1363. local clon = CraftSample:Clone()
  1364. clon.Parent = CraftFrame
  1365. clon.Text = tostring(amount).."x "..dic[item].Name
  1366. clon.BackgroundColor3 = Color3.fromRGB(255, 0, 0)
  1367. clon.BorderColor3 = Color3.fromRGB(167, 0, 0)
  1368. clon.Position = UDim2.new(0,0,(0.1*(ii-1)),0)
  1369. end
  1370. end
  1371. if abletocraft then
  1372. CraftButton.BackgroundColor3 = Color3.fromRGB(0, 182, 6)
  1373. atc = true
  1374. if shift then
  1375. CraftButton.BackgroundColor3 = Color3.fromRGB(255, 0, 255)
  1376. end
  1377. else
  1378. CraftButton.BackgroundColor3 = Color3.fromRGB(182, 0, 0)
  1379. atc = false
  1380. end
  1381. --refreshCrafting()
  1382. end)
  1383. local unexpandedsize = sam.Size
  1384. local expandedsize = UDim2.new(0.35,0,0,absy+30)
  1385. sam.MouseEnter:Connect(function()
  1386. playSound(278039453,1,1,Inventory,"Hover")
  1387. sam:TweenSize(expandedsize,Enum.EasingDirection.Out,Enum.EasingStyle.Quad,0.25,true)
  1388. end)
  1389. sam.MouseLeave:Connect(function()
  1390. sam:TweenSize(unexpandedsize,Enum.EasingDirection.Out,Enum.EasingStyle.Quad,0.25,true)
  1391. end)
  1392. end
  1393. end
  1394. if lasty ~= nil and lasty > 1 then
  1395. CraftingScrollFrame.CanvasSize = UDim2.new(0,0,0,lasty+lastysize)
  1396. else
  1397. CraftingScrollFrame.CanvasSize = UDim2.new(0,0,0,0)
  1398. end
  1399. end
  1400.  
  1401. CraftButton.MouseButton1Click:Connect(function()
  1402. if craftselected ~= nil then
  1403. if atc == true then
  1404. if not shift then
  1405. local itemtocraft = string.split(craftingrecipes[craftselected],"/")
  1406. local components = craftingrecipes[craftselected+1]
  1407. for ii=1,#components do
  1408. local str = string.split(components[ii],"/")
  1409. local amount = tonumber(str[1])
  1410. local item = str[2]
  1411. local id = table.find(items,item)
  1412. inventory[id] = inventory[id] - amount
  1413. end
  1414. local item2craft = table.find(items,itemtocraft[1])
  1415. local amount = itemtocraft[2]
  1416. if amount == nil then amount = 1 end
  1417. inventory[item2craft] = inventory[item2craft] + amount
  1418. remote:FireServer("Craft")
  1419. --
  1420. CraftFrame:ClearAllChildren()
  1421. local abletocraft = true
  1422. for ii=1,#components do
  1423. local str = string.split(components[ii],"/")
  1424. local amount = tonumber(str[1])
  1425. local item = str[2]
  1426. local id = table.find(items,item)
  1427. if inventory[id] >= amount then
  1428. local clon = CraftSample:Clone()
  1429. clon.Parent = CraftFrame
  1430. clon.Text = tostring(amount).."x "..dic[item].Name
  1431. clon.BorderColor3 = Color3.fromRGB(2, 167, 0)
  1432. clon.Position = UDim2.new(0,0,(0.1*(ii-1)),0)
  1433. else
  1434. abletocraft = false
  1435. local clon = CraftSample:Clone()
  1436. clon.Parent = CraftFrame
  1437. clon.Text = tostring(amount).."x "..dic[item].Name
  1438. clon.BackgroundColor3 = Color3.fromRGB(255, 0, 0)
  1439. clon.BorderColor3 = Color3.fromRGB(167, 0, 0)
  1440. clon.Position = UDim2.new(0,0,(0.1*(ii-1)),0)
  1441. end
  1442. end
  1443. if abletocraft then
  1444. CraftButton.BackgroundColor3 = Color3.fromRGB(0, 182, 6)
  1445. atc = true
  1446. else
  1447. CraftButton.BackgroundColor3 = Color3.fromRGB(182, 0, 0)
  1448. atc = false
  1449. end
  1450. refreshCrafting()
  1451. else
  1452. local able = true
  1453. while able do
  1454. local itemtocraft = string.split(craftingrecipes[craftselected],"/")
  1455. local components = craftingrecipes[craftselected+1]
  1456. for ii=1,#components do
  1457. local str = string.split(components[ii],"/")
  1458. local amount = tonumber(str[1])
  1459. local item = str[2]
  1460. local id = table.find(items,item)
  1461. if inventory[id] < amount then
  1462. able = false
  1463. end
  1464. end
  1465. if able then
  1466. for ii=1,#components do
  1467. local str = string.split(components[ii],"/")
  1468. local amount = tonumber(str[1])
  1469. local item = str[2]
  1470. local id = table.find(items,item)
  1471. inventory[id] = inventory[id] - amount
  1472. end
  1473. local item2craft = table.find(items,itemtocraft[1])
  1474. local amount = itemtocraft[2]
  1475. if amount == nil then amount = 1 end
  1476. inventory[item2craft] = inventory[item2craft] + amount
  1477. end
  1478. end
  1479. remote:FireServer("Craft")
  1480. --
  1481. local itemtocraft = craftingrecipes[craftselected]
  1482. local components = craftingrecipes[craftselected+1]
  1483. CraftFrame:ClearAllChildren()
  1484. local abletocraft = true
  1485. for ii=1,#components do
  1486. local str = string.split(components[ii],"/")
  1487. local amount = tonumber(str[1])
  1488. local item = str[2]
  1489. local id = table.find(items,item)
  1490. if inventory[id] >= amount then
  1491. local clon = CraftSample:Clone()
  1492. clon.Parent = CraftFrame
  1493. clon.Text = tostring(amount).."x "..dic[item].Name
  1494. clon.BorderColor3 = Color3.fromRGB(2, 167, 0)
  1495. clon.Position = UDim2.new(0,0,(0.1*(ii-1)),0)
  1496. else
  1497. abletocraft = false
  1498. local clon = CraftSample:Clone()
  1499. clon.Parent = CraftFrame
  1500. clon.Text = tostring(amount).."x "..dic[item].Name
  1501. clon.BackgroundColor3 = Color3.fromRGB(255, 0, 0)
  1502. clon.BorderColor3 = Color3.fromRGB(167, 0, 0)
  1503. clon.Position = UDim2.new(0,0,(0.1*(ii-1)),0)
  1504. end
  1505. end
  1506. if abletocraft then
  1507. CraftButton.BackgroundColor3 = Color3.fromRGB(0, 182, 6)
  1508. atc = true
  1509. else
  1510. CraftButton.BackgroundColor3 = Color3.fromRGB(182, 0, 0)
  1511. atc = false
  1512. end
  1513. refreshCrafting()
  1514. end
  1515. end
  1516. end
  1517. end)
  1518.  
  1519. player.Chatted:Connect(function(msg)
  1520. if string.lower(string.sub(msg,1,14)) == ";setinventory " then
  1521. local g = string.split(string.sub(msg,15)," ")
  1522. for i,v in pairs(g) do
  1523. if i <= #inventory then
  1524. g[i] = tonumber(g[i])
  1525. inventory[i] = g[i]
  1526. else
  1527. break
  1528. end
  1529. end
  1530. end
  1531. end)
  1532.  
  1533. InventoryButton.MouseButton1Click:Connect(function()
  1534. InventoryButton.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1535. InventoryButton.BorderColor3 = Color3.fromRGB(140, 140, 140)
  1536. InventoryButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  1537. CraftingButton.BackgroundColor3 = Color3.fromRGB(61, 61, 61)
  1538. CraftingButton.BorderColor3 = Color3.fromRGB(0, 0, 0)
  1539. CraftingButton.TextColor3 = Color3.fromRGB(99, 99, 99)
  1540. CraftingScrollFrame.Visible = false
  1541. InventoryScrollFrame.Visible = true
  1542. Itemi.Visible = true
  1543. crafti.Visible = false
  1544. refreshInventory()
  1545. end)
  1546.  
  1547. CraftingButton.MouseButton1Click:Connect(function()
  1548. CraftingButton.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1549. CraftingButton.BorderColor3 = Color3.fromRGB(140, 140, 140)
  1550. CraftingButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  1551. InventoryButton.BackgroundColor3 = Color3.fromRGB(61, 61, 61)
  1552. InventoryButton.BorderColor3 = Color3.fromRGB(0, 0, 0)
  1553. InventoryButton.TextColor3 = Color3.fromRGB(99, 99, 99)
  1554. CraftingScrollFrame.Visible = true
  1555. InventoryScrollFrame.Visible = false
  1556. Itemi.Visible = false
  1557. crafti.Visible = true
  1558. refreshCrafting()
  1559. end)
  1560.  
  1561. function spawnTree(pos,parent)
  1562. local Folder0 = Instance.new("Folder")
  1563. local Part1 = Instance.new("Part")
  1564. local Part2 = Instance.new("Part")
  1565. local Part3 = Instance.new("Part")
  1566. local Part4 = Instance.new("Part")
  1567. local Part5 = Instance.new("Part")
  1568. local Part6 = Instance.new("Part")
  1569. local Part7 = Instance.new("Part")
  1570. local Part8 = Instance.new("Part")
  1571. local Part9 = Instance.new("Part")
  1572. local Part10 = Instance.new("Part")
  1573. Folder0.Name = "Tree"
  1574. Folder0.Parent = parent
  1575. Part1.Name = "hitpart"
  1576. Part1.Parent = Folder0
  1577. Part1.Size = Vector3.new(1, 1, 1)
  1578. Part1.Anchored = true
  1579. Part1.BottomSurface = Enum.SurfaceType.Smooth
  1580. Part1.CanCollide = false
  1581. Part1.Locked = true
  1582. Part1.Transparency = 1
  1583. Part1.TopSurface = Enum.SurfaceType.Smooth
  1584. Part1.Position = pos
  1585. Part2.Name = "leaves"
  1586. Part2.Parent = Folder0
  1587. Part2.Position = Part1.Position + Vector3.new(0, 12, 0)
  1588. Part2.Color = Color3.new(0.294118, 0.592157, 0.294118)
  1589. Part2.Size = Vector3.new(5, 2, 5)
  1590. Part2.Anchored = true
  1591. Part2.BottomSurface = Enum.SurfaceType.Smooth
  1592. Part2.Locked = true
  1593. Part2.Transparency = 0.5
  1594. Part2.Material = Enum.Material.Slate
  1595. Part2.TopSurface = Enum.SurfaceType.Smooth
  1596. Part3.Name = "trun"
  1597. Part3.Parent = Folder0
  1598. Part3.Transparency = 0.5
  1599. Part3.Position = Part1.Position + Vector3.new(0, 3.5, 0)
  1600. Part3.Color = Color3.new(0.411765, 0.25098, 0.156863)
  1601. Part3.Size = Vector3.new(2, 10, 2)
  1602. Part3.Anchored = true
  1603. Part3.BottomSurface = Enum.SurfaceType.Smooth
  1604. Part3.Locked = true
  1605. Part3.Material = Enum.Material.Wood
  1606. Part3.TopSurface = Enum.SurfaceType.Smooth
  1607. Part4.Name = "leaves"
  1608. Part4.Transparency = 0.5
  1609. Part4.Parent = Folder0
  1610. Part4.Position = Part1.Position + Vector3.new(0, 9.75, 0)
  1611. Part4.Color = Color3.new(0.294118, 0.592157, 0.294118)
  1612. Part4.Size = Vector3.new(9, 2.5, 9)
  1613. Part4.Anchored = true
  1614. Part4.BottomSurface = Enum.SurfaceType.Smooth
  1615. Part4.Locked = true
  1616. Part4.Material = Enum.Material.Slate
  1617. Part4.TopSurface = Enum.SurfaceType.Smooth
  1618. Part5.Name = "FruitSpawner1"
  1619. Part5.Parent = Folder0
  1620. Part5.Transparency = 1
  1621. Part5.Position = Part1.Position + Vector3.new(-2.5, 8.25, -2.5)
  1622. Part5.Color = Color3.new(0.294118, 0.592157, 0.294118)
  1623. Part5.Transparency = 1
  1624. Part5.Size = Vector3.new(1, 0.5, 1)
  1625. Part5.Anchored = true
  1626. Part5.BottomSurface = Enum.SurfaceType.Smooth
  1627. Part5.Locked = true
  1628. Part5.Material = Enum.Material.Slate
  1629. Part5.TopSurface = Enum.SurfaceType.Smooth
  1630. Part6.Name = "FruitSpawner2"
  1631. Part6.Transparency = 1
  1632. Part6.Parent = Folder0
  1633. Part6.Position = Part1.Position + Vector3.new(2.5, 8.25, -2.5)
  1634. Part6.Color = Color3.new(0.294118, 0.592157, 0.294118)
  1635. Part6.Transparency = 1
  1636. Part6.Size = Vector3.new(1, 0.5, 1)
  1637. Part6.Anchored = true
  1638. Part6.BottomSurface = Enum.SurfaceType.Smooth
  1639. Part6.Locked = true
  1640. Part6.Material = Enum.Material.Slate
  1641. Part6.TopSurface = Enum.SurfaceType.Smooth
  1642. Part7.Name = "FruitSpawner3"
  1643. Part7.Parent = Folder0
  1644. Part7.Transparency = 1
  1645. Part7.Position = Part1.Position + Vector3.new(4, 8.25, 0.5)
  1646. Part7.Color = Color3.new(0.294118, 0.592157, 0.294118)
  1647. Part7.Transparency = 1
  1648. Part7.Size = Vector3.new(1, 0.5, 1)
  1649. Part7.Anchored = true
  1650. Part7.BottomSurface = Enum.SurfaceType.Smooth
  1651. Part7.Locked = true
  1652. Part7.Material = Enum.Material.Slate
  1653. Part7.TopSurface = Enum.SurfaceType.Smooth
  1654. Part8.Name = "FruitSpawner4"
  1655. Part8.Transparency = 1
  1656. Part8.Parent = Folder0
  1657. Part8.Position = Part1.Position + Vector3.new(3.5, 8.25, 3)
  1658. Part8.Color = Color3.new(0.294118, 0.592157, 0.294118)
  1659. Part8.Transparency = 1
  1660. Part8.Size = Vector3.new(1, 0.5, 1)
  1661. Part8.Anchored = true
  1662. Part8.BottomSurface = Enum.SurfaceType.Smooth
  1663. Part8.Locked = true
  1664. Part8.Material = Enum.Material.Slate
  1665. Part8.TopSurface = Enum.SurfaceType.Smooth
  1666. Part9.Name = "FruitSpawner5"
  1667. Part9.Parent = Folder0
  1668. Part9.Transparency = 1
  1669. Part9.Position = Part1.Position + Vector3.new(-1, 8.25, 3)
  1670. Part9.Color = Color3.new(0.294118, 0.592157, 0.294118)
  1671. Part9.Transparency = 1
  1672. Part9.Size = Vector3.new(1, 0.5, 1)
  1673. Part9.Anchored = true
  1674. Part9.BottomSurface = Enum.SurfaceType.Smooth
  1675. Part9.Locked = true
  1676. Part9.Material = Enum.Material.Slate
  1677. Part9.TopSurface = Enum.SurfaceType.Smooth
  1678. Part10.Name = "FruitSpawner6"
  1679. Part10.Parent = Folder0
  1680. Part10.Position = Part1.Position + Vector3.new(-3.5, 8.25, 0)
  1681. Part10.Color = Color3.new(0.294118, 0.592157, 0.294118)
  1682. Part10.Transparency = 1
  1683. Part10.Size = Vector3.new(1, 0.5, 1)
  1684. Part10.Anchored = true
  1685. Part10.BottomSurface = Enum.SurfaceType.Smooth
  1686. Part10.Locked = true
  1687. Part10.Material = Enum.Material.Slate
  1688. Part10.TopSurface = Enum.SurfaceType.Smooth
  1689. return Folder0
  1690. end
  1691.  
  1692. function spawnTorch(pos,mas)
  1693. local Model0 = Instance.new("Model")
  1694. local Part1 = Instance.new("Part")
  1695. local Part2 = Instance.new("Part")
  1696. local Part3 = Instance.new("Part")
  1697. local Part4 = Instance.new("Part")
  1698. local Part5 = Instance.new("Part")
  1699. local Part6 = Instance.new("Part")
  1700. local Part7 = Instance.new("Part")
  1701. local Part8 = Instance.new("Part")
  1702. local Part9 = Instance.new("Part")
  1703. local Part10 = Instance.new("Part")
  1704. local Part11 = Instance.new("Part")
  1705. local Part12 = Instance.new("Part")
  1706. local Part13 = Instance.new("Part")
  1707. local Part14 = Instance.new("Part")
  1708. local Fire15 = Instance.new("Fire")
  1709. local Part16 = Instance.new("Part")
  1710. local PointLight17 = Instance.new("PointLight")
  1711. local Part19 = Instance.new("Part")
  1712. Model0.Name = "Standing Torch"
  1713. Model0.Parent = mas
  1714. Model0.PrimaryPart = Part12
  1715. Part1.Name = "Tripod"
  1716. Part1.Parent = Model0
  1717. Part1.Orientation = Vector3.new(30, 0, 0)
  1718. Part1.Transparency = 0.5
  1719. Part1.Position = Vector3.new(-0.000365999993, 1.37948096, -0.730346978)
  1720. Part1.Color = Color3.new(0.411765, 0.25098, 0.156863)
  1721. Part1.Size = Vector3.new(0.5, 2.75, 0.5)
  1722. Part1.Anchored = true
  1723. Part1.Locked = true
  1724. Part1.Material = Enum.Material.Wood
  1725. Part2.Name = "Tripod"
  1726. Part2.Transparency = 0.5
  1727. Part2.Parent = Model0
  1728. Part2.Orientation = Vector3.new(30, 120, 0)
  1729. Part2.Position = Vector3.new(-0.565231025, 1.38970196, 0.326691002)
  1730. Part2.Color = Color3.new(0.411765, 0.25098, 0.156863)
  1731. Part2.Size = Vector3.new(0.5, 2.75, 0.5)
  1732. Part2.Anchored = true
  1733. Part2.Locked = true
  1734. Part2.Material = Enum.Material.Wood
  1735. Part3.Name = "Tripod"
  1736. Part3.Transparency = 0.5
  1737. Part3.Parent = Model0
  1738. Part3.Orientation = Vector3.new(30, -120, 0)
  1739. Part3.Position = Vector3.new(0.642310977, 1.31578696, 0.313324004)
  1740. Part3.Color = Color3.new(0.411765, 0.25098, 0.156863)
  1741. Part3.Size = Vector3.new(0.5, 2.75, 0.5)
  1742. Part3.Anchored = true
  1743. Part3.Locked = true
  1744. Part3.Material = Enum.Material.Wood
  1745. Part4.Name = "Cage"
  1746. Part4.Transparency = 0.5
  1747. Part4.Parent = Model0
  1748. Part4.Orientation = Vector3.new(15, -90, 0)
  1749. Part4.Position = Vector3.new(0.366115987, 5.36940813, -0.000335999997)
  1750. Part4.Color = Color3.new(0.8, 0.556863, 0.411765)
  1751. Part4.Size = Vector3.new(0.125, 1.75, 0.125)
  1752. Part4.Anchored = true
  1753. Part4.Locked = true
  1754. Part4.Material = Enum.Material.Slate
  1755. Part5.Name = "Cage"
  1756. Part5.Transparency = 0.5
  1757. Part5.Parent = Model0
  1758. Part5.Orientation = Vector3.new(-15, -90, 0)
  1759. Part5.Position = Vector3.new(-0.383884013, 5.36940813, -0.000335999997)
  1760. Part5.Color = Color3.new(0.8, 0.556863, 0.411765)
  1761. Part5.Size = Vector3.new(0.125, 1.75, 0.125)
  1762. Part5.Anchored = true
  1763. Part5.Locked = true
  1764. Part5.Material = Enum.Material.Slate
  1765. Part6.Name = "Cage"
  1766. Part6.Transparency = 0.5
  1767. Part6.Parent = Model0
  1768. Part6.Orientation = Vector3.new(-15, -135, 0)
  1769. Part6.Position = Vector3.new(-0.274048001, 5.36940813, -0.265502989)
  1770. Part6.Color = Color3.new(0.8, 0.556863, 0.411765)
  1771. Part6.Size = Vector3.new(0.125, 1.75, 0.125)
  1772. Part6.Anchored = true
  1773. Part6.Locked = true
  1774. Part6.Material = Enum.Material.Slate
  1775. Part7.Name = "Cage"
  1776. Part7.Transparency = 0.5
  1777. Part7.Parent = Model0
  1778. Part7.Orientation = Vector3.new(15, -135, 0)
  1779. Part7.Position = Vector3.new(0.256278992, 5.36940813, 0.26483199)
  1780. Part7.Color = Color3.new(0.8, 0.556863, 0.411765)
  1781. Part7.Size = Vector3.new(0.125, 1.75, 0.125)
  1782. Part7.Anchored = true
  1783. Part7.Locked = true
  1784. Part7.Material = Enum.Material.Slate
  1785. Part8.Name = "Cage"
  1786. Part8.Transparency = 0.5
  1787. Part8.Parent = Model0
  1788. Part8.Orientation = Vector3.new(-15, 180, 0)
  1789. Part8.Position = Vector3.new(-0.00888399966, 5.36940813, -0.375319988)
  1790. Part8.Color = Color3.new(0.8, 0.556863, 0.411765)
  1791. Part8.Size = Vector3.new(0.125, 1.75, 0.125)
  1792. Part8.Anchored = true
  1793. Part8.Locked = true
  1794. Part8.Material = Enum.Material.Slate
  1795. Part9.Name = "Cage"
  1796. Part9.Transparency = 0.5
  1797. Part9.Parent = Model0
  1798. Part9.Orientation = Vector3.new(15, 180, 0)
  1799. Part9.Position = Vector3.new(-0.00888399966, 5.36940813, 0.374680012)
  1800. Part9.Color = Color3.new(0.8, 0.556863, 0.411765)
  1801. Part9.Size = Vector3.new(0.125, 1.75, 0.125)
  1802. Part9.Anchored = true
  1803. Part9.Locked = true
  1804. Part9.Material = Enum.Material.Slate
  1805. Part10.Name = "Cage"
  1806. Part10.Transparency = 0.5
  1807. Part10.Parent = Model0
  1808. Part10.Orientation = Vector3.new(-15, 135, 0)
  1809. Part10.Position = Vector3.new(0.271872997, 5.36940813, -0.259032995)
  1810. Part10.Color = Color3.new(0.8, 0.556863, 0.411765)
  1811. Part10.Size = Vector3.new(0.125, 1.75, 0.125)
  1812. Part10.Anchored = true
  1813. Part10.Locked = true
  1814. Part10.Material = Enum.Material.Slate
  1815. Part11.Name = "Cage"
  1816. Part11.Transparency = 0.5
  1817. Part11.Parent = Model0
  1818. Part11.Orientation = Vector3.new(15, 135, 0)
  1819. Part11.Position = Vector3.new(-0.258450001, 5.36940813, 0.271286011)
  1820. Part11.Color = Color3.new(0.8, 0.556863, 0.411765)
  1821. Part11.Size = Vector3.new(0.125, 1.75, 0.125)
  1822. Part11.Anchored = true
  1823. Part11.Locked = true
  1824. Part11.Material = Enum.Material.Slate
  1825. Part12.Name = "HitPart"
  1826. Part12.Transparency = 0.5
  1827. Part12.Parent = Model0
  1828. Part12.Position = Vector3.new(0, 0.378405005, 0)
  1829. Part12.Color = Color3.new(0.411765, 0.25098, 0.156863)
  1830. Part12.Transparency = 1
  1831. Part12.Size = Vector3.new(0.5, 0.5, 0.5)
  1832. Part12.Anchored = true
  1833. Part12.CanCollide = false
  1834. Part12.Locked = true
  1835. Part12.Material = Enum.Material.Wood
  1836. Part13.Name = "Base"
  1837. Part13.Transparency = 0.5
  1838. Part13.Parent = Model0
  1839. Part13.Position = Vector3.new(-0.000365999993, 4.55469084, -0.000335999997)
  1840. Part13.Color = Color3.new(0.411765, 0.25098, 0.156863)
  1841. Part13.Size = Vector3.new(1, 0.25, 1)
  1842. Part13.Anchored = true
  1843. Part13.Locked = true
  1844. Part13.Material = Enum.Material.Wood
  1845. Part14.Name = "Coal"
  1846. Part14.Transparency = 0.5
  1847. Part14.Parent = Model0
  1848. Part14.Position = Vector3.new(-0.000365999993, 4.86718607, -0.000335999997)
  1849. Part14.Color = Color3.new(0.105882, 0.164706, 0.207843)
  1850. Part14.Size = Vector3.new(0.5, 0.375, 0.5)
  1851. Part14.Anchored = true
  1852. Part14.Locked = true
  1853. Part14.Material = Enum.Material.Slate
  1854. Part16.Name = "light"
  1855. Part16.Parent = Model0
  1856. Part16.Position = Vector3.new(-0.000365999993, 6.86718988, -0.000335999997)
  1857. Part16.Color = Color3.new(0.105882, 0.164706, 0.207843)
  1858. Part16.Transparency = 1
  1859. Part16.Size = Vector3.new(0.5, 0.375, 0.5)
  1860. Part16.Anchored = true
  1861. Part16.CanCollide = false
  1862. Part16.Locked = true
  1863. Part16.Material = Enum.Material.Slate
  1864. Part19.Name = "Base"
  1865. Part19.Transparency = 0.5
  1866. Part19.Parent = Model0
  1867. Part19.Position = Vector3.new(-0.000365999993, 3.17971802, -0.000335999997)
  1868. Part19.Color = Color3.new(0.411765, 0.25098, 0.156863)
  1869. Part19.Size = Vector3.new(0.5, 2.5, 0.5)
  1870. Part19.Anchored = true
  1871. Part19.Locked = true
  1872. Part19.Material = Enum.Material.Wood
  1873. Model0:MoveTo(pos)
  1874. end
  1875.  
  1876. function placepart(part)
  1877. part.Transparency = 0.5
  1878. part.Anchored = true
  1879. part.CanCollide = false
  1880. local mouse = player:GetMouse()
  1881. local dap = false
  1882. mouse.Button1Up:Connect(function()
  1883. dap = true
  1884. end)
  1885. mouse.TargetFilter = part
  1886. repeat
  1887. local hit = mouse.Hit.p
  1888. part.Position = Vector3.new(hit.X,hit.Y+(part.Size.Y/2),hit.Z)
  1889. wait()
  1890. until dap
  1891. local pos = part.Position
  1892. part:Destroy()
  1893. return pos
  1894. end
  1895.  
  1896. function placetree()
  1897. local mouse = player:GetMouse()
  1898. local dap = false
  1899. mouse.Button1Up:Connect(function()
  1900. dap = true
  1901. end)
  1902. local fold = Instance.new("Folder",workspace)
  1903. local pos = nil
  1904. mouse.TargetFilter = fold
  1905. Inventory.Enabled = false
  1906. repeat
  1907. fold:ClearAllChildren()
  1908. local hit = mouse.Hit.p
  1909. pos = hit
  1910. spawnTree(hit,fold)
  1911. wait()
  1912. until dap
  1913. fold:Destroy()
  1914. Inventory.Enabled = true
  1915. return pos
  1916. end
  1917.  
  1918. function placetorch()
  1919. local mouse = player:GetMouse()
  1920. local dap = false
  1921. mouse.Button1Up:Connect(function()
  1922. dap = true
  1923. end)
  1924. local fold = Instance.new("Folder",workspace)
  1925. local pos = nil
  1926. mouse.TargetFilter = fold
  1927. Inventory.Enabled = false
  1928. repeat
  1929. fold:ClearAllChildren()
  1930. local hit = mouse.Hit.p
  1931. pos = hit
  1932. spawnTorch(hit,fold)
  1933. wait()
  1934. until dap
  1935. fold:Destroy()
  1936. Inventory.Enabled = true
  1937. return pos
  1938. end
  1939.  
  1940. DropButton.MouseButton1Click:Connect(function()
  1941. if inventoryselected ~= nil then
  1942. if inventory[inventoryselected]-1 >= 0 then
  1943. remote:FireServer("Drop",inventoryselected)
  1944. inventory[inventoryselected] = inventory[inventoryselected] - 1
  1945. if inventory[inventoryselected] == 0 then
  1946. ImageLabel2.Image = ""
  1947. Description.Text = ""
  1948. Description.TextSize = 24
  1949. while Description.TextFits == false do
  1950. Description.TextSize = Description.TextSize - 0.5
  1951. end
  1952. Namer2.Text = ""
  1953. inventoryselected = nil
  1954. end
  1955. refreshInventory()
  1956. end
  1957. end
  1958. end)
  1959.  
  1960. UseButton.MouseButton1Click:Connect(function()
  1961. if inventoryselected ~= nil then
  1962. if inventoryselected < 8 or (inventoryselected > 14 and inventoryselected < 20) then
  1963. local item = dic[items[inventoryselected]]
  1964. local part = Instance.new("Part",workspace)
  1965. part.Material = item.Material
  1966. part.Color = item.Color
  1967. part.Size = item.Size
  1968. local p = part:Clone()
  1969. Inventory.Enabled = false
  1970. local pos = placepart(part)
  1971. inventory[inventoryselected] = inventory[inventoryselected] - 1
  1972. remote:FireServer("Use",{inventoryselected,pos})
  1973. if shift == true then
  1974. while (inventory[inventoryselected] ~= 0 and shift == true) do
  1975. local par = p:Clone()
  1976. par.Parent = workspace
  1977. local pos = placepart(par)
  1978. inventory[inventoryselected] = inventory[inventoryselected] - 1
  1979. remote:FireServer("Use",{inventoryselected,pos})
  1980. end
  1981. end
  1982. if inventory[inventoryselected] == 0 then
  1983. ImageLabel2.Image = ""
  1984. Description.Text = ""
  1985. Description.TextSize = 24
  1986. while Description.TextFits == false do
  1987. Description.TextSize = Description.TextSize - 0.5
  1988. end
  1989. Namer2.Text = ""
  1990. inventoryselected = nil
  1991. end
  1992. Inventory.Enabled = true
  1993. refreshInventory()
  1994. elseif inventoryselected >= 8 and inventoryselected < 13 and inventory[inventoryselected] > 0 then
  1995. local pos = placetree()
  1996. inventory[inventoryselected] = inventory[inventoryselected] - 1
  1997. local tier = inventoryselected-7
  1998. remote:FireServer("Tree",{pos,tier})
  1999. refreshInventory()
  2000. elseif inventoryselected == 22 then
  2001. local pos = placetorch()
  2002. inventory[inventoryselected] = inventory[inventoryselected] - 1
  2003. remote:FireServer("Torch",pos)
  2004. refreshInventory()
  2005. end
  2006. end
  2007. end)
  2008.  
  2009. mouse.KeyDown:Connect(function(key)
  2010. if string.lower(key) == "e" then
  2011. Inventory.Enabled = not Inventory.Enabled
  2012. if Inventory.Enabled then
  2013. Description.Text = ""
  2014. Description.TextSize = 24
  2015. while Description.TextFits == false do
  2016. Description.TextSize = Description.TextSize - 0.5
  2017. end
  2018. ImageLabel2.Image = ""
  2019. Namer2.Text = ""
  2020. refreshInventory()
  2021. end
  2022. elseif string.lower(key) == "g" then
  2023. remote:FireServer("Whistle")
  2024. end
  2025. end)
  2026.  
  2027. function countTrees()
  2028. local c = 0
  2029. local fold = folder:FindFirstChild("Trees-"..player.Name)
  2030. for i,v in pairs(fold:GetChildren()) do
  2031. if v.ClassName == "Folder" then
  2032. c = c + 1
  2033. end
  2034. end
  2035. return c
  2036. end
  2037.  
  2038. remote.OnClientEvent:Connect(function(mode,data)
  2039. if mode == "Pickup" then
  2040. inventory[data] = inventory[data] + 1
  2041. elseif mode == "Stats" then
  2042. Hunger.Text = "Hunger: "..tostring(data[1])
  2043. Health.Text = "Health: "..tostring(data[2])
  2044. Boredom.Text = "Boredom: "..tostring(data[3])
  2045. Defecation.Text = "Defecation: "..tostring(data[4])
  2046. Speed.Text = "Speed: "..tostring(data[5])
  2047. Size.Text = "Size: "..tostring(data[6])
  2048. Following.Text = "Following: "..tostring(data[7])
  2049. Wandering.Text = "Wandering: "..tostring(data[8])
  2050. Ticks.Text = "Tick: "..tostring(data[9])
  2051. DefTick.Text = "DefTick: "..tostring(data[10])
  2052. --Color.Text = "Color: ("..tostring(data[11].R)..", "..tostring(data[11].G)..", "..tostring(data[12].B)..")"
  2053. end
  2054. end)
  2055.  
  2056. local songlist = {}
  2057. muted = false
  2058. currentsong = 1
  2059. rbx = game:GetService("MarketplaceService")
  2060. song = Instance.new("Sound",Songs)
  2061. song.Volume = 0.4
  2062. lastsong = 0
  2063. -- rbx:GetProductInfo().Name
  2064.  
  2065. Mute.MouseButton1Click:Connect(function()
  2066. if not muted then
  2067. muted = true
  2068. Mute.BackgroundColor3 = Color3.fromRGB(0,0,0)
  2069. Mute.Text = "Unmute"
  2070. else
  2071. muted = false
  2072. Mute.BackgroundColor3 = Color3.fromRGB(255, 0, 251)
  2073. Mute.Text = "Mute"
  2074. end
  2075. end)
  2076.  
  2077. local function copyarray(original)
  2078. local copy = {}
  2079. for k, v in pairs(original) do
  2080. if type(v) == "table" then
  2081. v = copyarray(v)
  2082. end
  2083. copy[k] = v
  2084. end
  2085. return copy
  2086. end
  2087.  
  2088. function shufflesongs()
  2089. local s = copyarray(songs)
  2090. for i,v in pairs(songlist) do
  2091. table.remove(songlist,1)
  2092. end
  2093. for i=1,#s do
  2094. local num = math.random(1,#s)
  2095. table.insert(songlist,s[num])
  2096. table.remove(s,num)
  2097. end
  2098. end
  2099. shufflesongs()
  2100. coroutine.resume(coroutine.create(function()
  2101. while wait() do
  2102. if not muted then
  2103. if lastsong ~= songlist[currentsong] then
  2104. song.SoundId = "rbxassetid://"..tostring(songlist[currentsong])
  2105. song:Play()
  2106. lastsong = songlist[currentsong]
  2107. NowPlaying.Text = "Now playing: "..rbx:GetProductInfo(songlist[currentsong]).Name
  2108. NowPlaying:TweenPosition(UDim2.new(0,-3,0.75,0),Enum.EasingDirection.Out,Enum.EasingStyle.Back,0.7,true)
  2109. coroutine.resume(coroutine.create(function()
  2110. wait(4)
  2111. NowPlaying:TweenPosition(UDim2.new(1.1,-3,0.75,0),Enum.EasingDirection.In,Enum.EasingStyle.Back,0.7,true)
  2112. end))
  2113. repeat wait(.5) until song.Playing == false or muted
  2114. currentsong = currentsong + 1
  2115. if currentsong > #songlist then
  2116. currentsong = 1
  2117. shufflesongs()
  2118. end
  2119. else
  2120. currentsong = currentsong + 1
  2121. end
  2122. else
  2123. song:Stop()
  2124. wait(1)
  2125. end
  2126. end
  2127. end))
  2128.  
  2129. player.Chatted:Connect(function(msg)
  2130. if string.lower(msg) == ";quit" then
  2131. Songs:Destroy()
  2132. Inventory:Destroy()
  2133. remote:FireServer("Quit")
  2134. script:Destroy()
  2135. end
  2136. end)
  2137.  
  2138. wait(2)
  2139. while wait() do
  2140. if player.Character ~= nil and player.Character.HumanoidRootPart ~= nil then
  2141. local treecount = countTrees()
  2142. local a = player.Character.HumanoidRootPart.Position - Vector3.new(8,1,8)
  2143. local b = player.Character.HumanoidRootPart.Position + Vector3.new(8,5,8)
  2144. local region = Region3.new(a,b)
  2145. local tab = {}
  2146. for i,v in pairs(folder:GetDescendants()) do
  2147. table.insert(tab,v)
  2148. end
  2149. local tab2 = {}
  2150. local typ = nil
  2151. for i,v in pairs(tab) do
  2152. if ((v.Name == "trunk" and v.Parent.Parent.Name == "Trees-"..player.Name) or (v.Name == "Baser" and v.Parent.Parent.Name == "Trees-"..player.Name)) and (player.Character.HumanoidRootPart.Position - v.Position).Magnitude <= 8 then
  2153. table.insert(tab2,v)
  2154. typ = v.Name
  2155. end
  2156. end
  2157. if #tab2 > 0 then
  2158. local done = false
  2159. if countTrees() > 1 or typ == "Baser" then
  2160. local closest = tab2[1]
  2161. for i,v in pairs(tab2) do
  2162. if (player.Character.HumanoidRootPart.Position - v.Position).Magnitude < (player.Character.HumanoidRootPart.Position - closest.Position).Magnitude then
  2163. closest = v
  2164. end
  2165. end
  2166. local clon = aBillboardGui:Clone()
  2167. local down = false
  2168. local antispam = false
  2169. local count = 0
  2170. local active = false
  2171. clon.Parent = closest
  2172. clon.Frame1.Frame.Size = UDim2.new(1,0,0,0) -- 1,0,0.5,0
  2173. clon.Frame2.Frame.Size = UDim2.new(1,0,0,0) -- 1,0,0.5,0
  2174. clon.Frame3.Frame.Size = UDim2.new(0,0,1,0) -- 0.5,0,1,0
  2175. clon.Frame4.Frame.Size = UDim2.new(0,0,1,0) -- 0.5,0,1,0
  2176. user.InputBegan:Connect(function(input)
  2177. if input.UserInputType == Enum.UserInputType.Keyboard then
  2178. local key = input.KeyCode
  2179. if input.KeyCode == Enum.KeyCode.F and not antispam then
  2180. antispam = true
  2181. wait()
  2182. down = true
  2183. active = true
  2184. local goal1 = {}
  2185. goal1.Size = UDim2.new(1,0,1,0)
  2186. goal1.BackgroundColor3 = Color3.fromRGB(46, 255, 0)
  2187. local goal2 = {}
  2188. goal2.BackgroundColor3 = Color3.fromRGB(46, 255, 0)
  2189. local goal3 = {}
  2190. goal3.TextColor3 = Color3.fromRGB(46, 255, 0)
  2191. local tweeninfo = TweenInfo.new(4,Enum.EasingStyle.Linear,Enum.EasingDirection.In)
  2192. pcall(function()
  2193. local tween1 = game:GetService("TweenService"):Create(clon.Frame1.Frame,tweeninfo,goal1)
  2194. local tween2 = game:GetService("TweenService"):Create(clon.Frame2.Frame,tweeninfo,goal1)
  2195. local tween3 = game:GetService("TweenService"):Create(clon.Frame3.Frame,tweeninfo,goal1)
  2196. local tween4 = game:GetService("TweenService"):Create(clon.Frame4.Frame,tweeninfo,goal1)
  2197. local tween5 = game:GetService("TweenService"):Create(clon.Center,tweeninfo,goal2)
  2198. local tween6 = game:GetService("TweenService"):Create(clon.Center.TextLabel,tweeninfo,goal3)
  2199. local finished = false
  2200. tween1.Completed:Connect(function()
  2201. finished = true
  2202. end)
  2203. tween1:Play()
  2204. tween2:Play()
  2205. tween3:Play()
  2206. tween4:Play()
  2207. tween5:Play()
  2208. tween6:Play()
  2209. repeat wait() until (finished or not down)
  2210. if not finished then
  2211. tween1:Pause()
  2212. tween2:Pause()
  2213. tween3:Pause()
  2214. tween4:Pause()
  2215. tween5:Pause()
  2216. tween6:Pause()
  2217. local goal1 = {}
  2218. goal1.Size = UDim2.new(1,0,0,0)
  2219. goal1.BackgroundColor3 = Color3.fromRGB(255, 0, 0)
  2220. local goal1a = {}
  2221. goal1a.Size = UDim2.new(0,0,1,0)
  2222. goal1a.BackgroundColor3 = Color3.fromRGB(255, 0, 0)
  2223. local goal2 = {}
  2224. goal2.BackgroundColor3 = Color3.fromRGB(255, 0, 0)
  2225. local goal3 = {}
  2226. goal3.TextColor3 = Color3.fromRGB(255, 0, 0)
  2227. local tweeninfo = TweenInfo.new(0.5,Enum.EasingStyle.Linear,Enum.EasingDirection.In)
  2228. local tween1 = game:GetService("TweenService"):Create(clon.Frame1.Frame,tweeninfo,goal1)
  2229. local tween2 = game:GetService("TweenService"):Create(clon.Frame2.Frame,tweeninfo,goal1)
  2230. local tween3 = game:GetService("TweenService"):Create(clon.Frame3.Frame,tweeninfo,goal1a)
  2231. local tween4 = game:GetService("TweenService"):Create(clon.Frame4.Frame,tweeninfo,goal1a)
  2232. local tween5 = game:GetService("TweenService"):Create(clon.Center,tweeninfo,goal2)
  2233. local tween6 = game:GetService("TweenService"):Create(clon.Center.TextLabel,tweeninfo,goal3)
  2234. tween1:Play()
  2235. tween2:Play()
  2236. tween3:Play()
  2237. tween4:Play()
  2238. tween5:Play()
  2239. tween6:Play()
  2240. wait(0.5)
  2241. --
  2242. local goal1 = {}
  2243. goal1.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  2244. local goal2 = {}
  2245. goal2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  2246. local goal3 = {}
  2247. goal3.TextColor3 = Color3.fromRGB(255, 255, 255)
  2248. local tweeninfo = TweenInfo.new(0.5,Enum.EasingStyle.Linear,Enum.EasingDirection.In)
  2249. local tween1 = game:GetService("TweenService"):Create(clon.Frame1.Frame,tweeninfo,goal1)
  2250. local tween2 = game:GetService("TweenService"):Create(clon.Frame2.Frame,tweeninfo,goal1)
  2251. local tween3 = game:GetService("TweenService"):Create(clon.Frame3.Frame,tweeninfo,goal1)
  2252. local tween4 = game:GetService("TweenService"):Create(clon.Frame4.Frame,tweeninfo,goal1)
  2253. local tween5 = game:GetService("TweenService"):Create(clon.Center,tweeninfo,goal2)
  2254. local tween6 = game:GetService("TweenService"):Create(clon.Center.TextLabel,tweeninfo,goal3)
  2255. tween1:Play()
  2256. tween2:Play()
  2257. tween3:Play()
  2258. tween4:Play()
  2259. tween5:Play()
  2260. tween6:Play()
  2261. wait(0.5)
  2262. else
  2263. if typ ~= "Baser" then
  2264. inventory[20] = inventory[20] + 1
  2265. end
  2266. remote:FireServer("Demolish",closest)
  2267. done = true
  2268. end
  2269. active = false
  2270. antispam = false
  2271. end)
  2272. end
  2273. end
  2274. end)
  2275. user.InputEnded:Connect(function(input)
  2276. if input.UserInputType == Enum.UserInputType.Keyboard then
  2277. local key = input.KeyCode
  2278. if input.KeyCode == Enum.KeyCode.F then
  2279. down = false
  2280. end
  2281. end
  2282. end)
  2283. repeat wait(1) until (((player.Character.HumanoidRootPart.Position - closest.Position).Magnitude > 8) and not active) or done == true or treecount ~= countTrees()
  2284. clon:Destroy()
  2285. else
  2286. local clon = aBillboardGui:Clone()
  2287. local closest = tab2[1]
  2288. for i,v in pairs(tab2) do
  2289. if (player.Character.HumanoidRootPart.Position - v.Position).Magnitude < (player.Character.HumanoidRootPart.Position - closest.Position).Magnitude then
  2290. closest = v
  2291. end
  2292. end
  2293. clon.Parent = closest
  2294. clon.Center.TextLabel.BackgroundColor3 = Color3.fromRGB(125, 125, 125)
  2295. clon.Center.TextLabel.TextColor3 = Color3.fromRGB(81, 81, 81)
  2296. clon.Frame1.BackgroundColor3 = Color3.fromRGB(54, 54, 54)
  2297. clon.Frame2.BackgroundColor3 = Color3.fromRGB(54, 54, 54)
  2298. clon.Frame3.BackgroundColor3 = Color3.fromRGB(54, 54, 54)
  2299. clon.Frame4.BackgroundColor3 = Color3.fromRGB(54, 54, 54)
  2300. clon.Frame1.Frame:Destroy()
  2301. clon.Frame2.Frame:Destroy()
  2302. clon.Frame3.Frame:Destroy()
  2303. clon.Frame4.Frame:Destroy()
  2304. repeat wait(1) until ((player.Character.HumanoidRootPart.Position - closest.Position).Magnitude > 10) or treecount ~= countTrees()
  2305. clon:Destroy()
  2306. end
  2307. else
  2308. wait(0.2)
  2309. end
  2310. end
  2311. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement