Advertisement
VicyX

Auto Skyblock v1

Jun 3rd, 2020
25,430
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 35.68 KB | None | 0 0
  1. -- Global Vars
  2.  
  3. _G.ToggleAll = false
  4. _G.StoneDeposit = false
  5. _G.MaxBrick = 64
  6. _G.WoodDeposit = false
  7. _G.MaxPlanks = 64
  8. _G.OreDeposit = false
  9. _G.TeleportPlayer = false
  10. _G.Regular = false
  11. _G.Pine = false
  12. _G.Birch = false
  13. _G.Maple = false
  14.  
  15. -- Gui
  16.  
  17. -- Instances:
  18.  
  19. local SkyblockGui = Instance.new("ScreenGui")
  20. local Main = Instance.new("Frame")
  21. local TopBar = Instance.new("TextLabel")
  22. local Items = Instance.new("Frame")
  23. local ToggleAll = Instance.new("TextLabel")
  24. local Check = Instance.new("TextButton")
  25. local PlayerTele = Instance.new("TextLabel")
  26. local Check_2 = Instance.new("TextButton")
  27. local Ore = Instance.new("TextLabel")
  28. local Check_3 = Instance.new("TextButton")
  29. local Wood = Instance.new("TextLabel")
  30. local Check_4 = Instance.new("TextButton")
  31. local Stone = Instance.new("TextLabel")
  32. local Check_5 = Instance.new("TextButton")
  33. local MaxPlank = Instance.new("TextLabel")
  34. local Max = Instance.new("TextBox")
  35. local MaxStone = Instance.new("TextLabel")
  36. local Max_2 = Instance.new("TextBox")
  37. local WoodChoice = Instance.new("Frame")
  38. local Regular = Instance.new("TextLabel")
  39. local Check_6 = Instance.new("TextButton")
  40. local Pine = Instance.new("TextLabel")
  41. local Check_7 = Instance.new("TextButton")
  42. local Birch = Instance.new("TextLabel")
  43. local Check_8 = Instance.new("TextButton")
  44. local Maple = Instance.new("TextLabel")
  45. local Check_9 = Instance.new("TextButton")
  46. local LoadingAnim = Instance.new("Frame")
  47. local TopHide = Instance.new("Frame")
  48. local Title = Instance.new("TextLabel")
  49. local BottomHide = Instance.new("Frame")
  50. local LoadingBar = Instance.new("Frame")
  51. local Bar = Instance.new("Frame")
  52.  
  53. --Properties:
  54.  
  55. SkyblockGui.Name = "SkyblockGui"
  56. SkyblockGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  57. SkyblockGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  58.  
  59. Main.Name = "Main"
  60. Main.Parent = SkyblockGui
  61. Main.BackgroundColor3 = Color3.fromRGB(76, 76, 76)
  62. Main.BorderSizePixel = 0
  63. Main.Position = UDim2.new(0.5, -150, 0.226999968, 0)
  64. Main.Size = UDim2.new(0, 300, 0, 267)
  65. Main.Visible = false
  66.  
  67. TopBar.Name = "TopBar"
  68. TopBar.Parent = Main
  69. TopBar.BackgroundColor3 = Color3.fromRGB(0, 206, 110)
  70. TopBar.BorderSizePixel = 0
  71. TopBar.ClipsDescendants = true
  72. TopBar.Position = UDim2.new(0, 0, -0.113101058, 0)
  73. TopBar.Size = UDim2.new(1, 0, 0.113101117, 0)
  74. TopBar.Font = Enum.Font.GothamSemibold
  75. TopBar.Text = "  Auto Skyblock v1.0 | By Vick on V3rm"
  76. TopBar.TextColor3 = Color3.fromRGB(255, 255, 255)
  77. TopBar.TextSize = 14.000
  78. TopBar.TextWrapped = true
  79. TopBar.TextXAlignment = Enum.TextXAlignment.Left
  80.  
  81. Items.Name = "Items"
  82. Items.Parent = Main
  83. Items.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  84. Items.BackgroundTransparency = 1.000
  85. Items.ClipsDescendants = true
  86. Items.Size = UDim2.new(1, 0, 1, 0)
  87.  
  88. ToggleAll.Name = "ToggleAll"
  89. ToggleAll.Parent = Items
  90. ToggleAll.BackgroundColor3 = Color3.fromRGB(76, 76, 76)
  91. ToggleAll.BorderColor3 = Color3.fromRGB(43, 43, 43)
  92. ToggleAll.BorderSizePixel = 2
  93. ToggleAll.Size = UDim2.new(1, 0, 0.143999994, 0)
  94. ToggleAll.Font = Enum.Font.GothamSemibold
  95. ToggleAll.Text = "  Master Toggle:"
  96. ToggleAll.TextColor3 = Color3.fromRGB(255, 255, 255)
  97. ToggleAll.TextSize = 14.000
  98. ToggleAll.TextXAlignment = Enum.TextXAlignment.Left
  99.  
  100. Check.Name = "Check"
  101. Check.Parent = ToggleAll
  102. Check.BackgroundColor3 = Color3.fromRGB(43, 43, 43)
  103. Check.BorderColor3 = Color3.fromRGB(43, 43, 43)
  104. Check.BorderSizePixel = 2
  105. Check.Position = UDim2.new(0.896666646, 0, 0.17220968, 0)
  106. Check.Size = UDim2.new(0.0700000003, 0, 0.599999845, 0)
  107. Check.AutoButtonColor = false
  108. Check.Font = Enum.Font.GothamSemibold
  109. Check.Text = ""
  110. Check.TextColor3 = Color3.fromRGB(255, 255, 255)
  111. Check.TextScaled = true
  112. Check.TextSize = 14.000
  113. Check.TextWrapped = true
  114.  
  115. PlayerTele.Name = "PlayerTele"
  116. PlayerTele.Parent = Items
  117. PlayerTele.BackgroundColor3 = Color3.fromRGB(76, 76, 76)
  118. PlayerTele.BorderColor3 = Color3.fromRGB(43, 43, 43)
  119. PlayerTele.BorderSizePixel = 2
  120. PlayerTele.Position = UDim2.new(0, 0, 0.143415764, 0)
  121. PlayerTele.Size = UDim2.new(1, 0, 0.143999994, 0)
  122. PlayerTele.Font = Enum.Font.GothamSemibold
  123. PlayerTele.Text = "  Teleport Player:"
  124. PlayerTele.TextColor3 = Color3.fromRGB(255, 255, 255)
  125. PlayerTele.TextSize = 14.000
  126. PlayerTele.TextXAlignment = Enum.TextXAlignment.Left
  127.  
  128. Check_2.Name = "Check"
  129. Check_2.Parent = PlayerTele
  130. Check_2.BackgroundColor3 = Color3.fromRGB(43, 43, 43)
  131. Check_2.BorderColor3 = Color3.fromRGB(43, 43, 43)
  132. Check_2.BorderSizePixel = 2
  133. Check_2.Position = UDim2.new(0.896666646, 0, 0.17220968, 0)
  134. Check_2.Size = UDim2.new(0.0700000003, 0, 0.599999845, 0)
  135. Check_2.AutoButtonColor = false
  136. Check_2.Font = Enum.Font.GothamSemibold
  137. Check_2.Text = ""
  138. Check_2.TextColor3 = Color3.fromRGB(255, 255, 255)
  139. Check_2.TextScaled = true
  140. Check_2.TextSize = 14.000
  141. Check_2.TextWrapped = true
  142.  
  143. Ore.Name = "Ore"
  144. Ore.Parent = Items
  145. Ore.BackgroundColor3 = Color3.fromRGB(76, 76, 76)
  146. Ore.BorderColor3 = Color3.fromRGB(43, 43, 43)
  147. Ore.BorderSizePixel = 2
  148. Ore.Position = UDim2.new(0, 0, 0.286831468, 0)
  149. Ore.Size = UDim2.new(1, 0, 0.143999994, 0)
  150. Ore.Font = Enum.Font.GothamSemibold
  151. Ore.Text = "  Toggle Ore Smelting:"
  152. Ore.TextColor3 = Color3.fromRGB(255, 255, 255)
  153. Ore.TextSize = 14.000
  154. Ore.TextXAlignment = Enum.TextXAlignment.Left
  155.  
  156. Check_3.Name = "Check"
  157. Check_3.Parent = Ore
  158. Check_3.BackgroundColor3 = Color3.fromRGB(43, 43, 43)
  159. Check_3.BorderColor3 = Color3.fromRGB(43, 43, 43)
  160. Check_3.BorderSizePixel = 2
  161. Check_3.Position = UDim2.new(0.896666646, 0, 0.17220968, 0)
  162. Check_3.Size = UDim2.new(0.0700000003, 0, 0.599999845, 0)
  163. Check_3.AutoButtonColor = false
  164. Check_3.Font = Enum.Font.GothamSemibold
  165. Check_3.Text = ""
  166. Check_3.TextColor3 = Color3.fromRGB(255, 255, 255)
  167. Check_3.TextScaled = true
  168. Check_3.TextSize = 14.000
  169. Check_3.TextWrapped = true
  170.  
  171. Wood.Name = "Wood"
  172. Wood.Parent = Items
  173. Wood.BackgroundColor3 = Color3.fromRGB(76, 76, 76)
  174. Wood.BorderColor3 = Color3.fromRGB(43, 43, 43)
  175. Wood.BorderSizePixel = 2
  176. Wood.Position = UDim2.new(0, 0, 0.430247188, 0)
  177. Wood.Size = UDim2.new(1, 0, 0.143999994, 0)
  178. Wood.Font = Enum.Font.GothamSemibold
  179. Wood.Text = "  Toggle Wood:"
  180. Wood.TextColor3 = Color3.fromRGB(255, 255, 255)
  181. Wood.TextSize = 14.000
  182. Wood.TextXAlignment = Enum.TextXAlignment.Left
  183.  
  184. Check_4.Name = "Check"
  185. Check_4.Parent = Wood
  186. Check_4.BackgroundColor3 = Color3.fromRGB(43, 43, 43)
  187. Check_4.BorderColor3 = Color3.fromRGB(43, 43, 43)
  188. Check_4.BorderSizePixel = 2
  189. Check_4.Position = UDim2.new(0.896666646, 0, 0.17220968, 0)
  190. Check_4.Size = UDim2.new(0.0700000003, 0, 0.599999845, 0)
  191. Check_4.AutoButtonColor = false
  192. Check_4.Font = Enum.Font.GothamSemibold
  193. Check_4.Text = ""
  194. Check_4.TextColor3 = Color3.fromRGB(255, 255, 255)
  195. Check_4.TextScaled = true
  196. Check_4.TextSize = 14.000
  197. Check_4.TextWrapped = true
  198.  
  199. Stone.Name = "Stone"
  200. Stone.Parent = Items
  201. Stone.BackgroundColor3 = Color3.fromRGB(76, 76, 76)
  202. Stone.BorderColor3 = Color3.fromRGB(43, 43, 43)
  203. Stone.BorderSizePixel = 2
  204. Stone.Position = UDim2.new(0, 0, 0.573662937, 0)
  205. Stone.Size = UDim2.new(1, 0, 0.143999994, 0)
  206. Stone.Font = Enum.Font.GothamSemibold
  207. Stone.Text = "  Toggle Stone Bricks:"
  208. Stone.TextColor3 = Color3.fromRGB(255, 255, 255)
  209. Stone.TextSize = 14.000
  210. Stone.TextXAlignment = Enum.TextXAlignment.Left
  211.  
  212. Check_5.Name = "Check"
  213. Check_5.Parent = Stone
  214. Check_5.BackgroundColor3 = Color3.fromRGB(43, 43, 43)
  215. Check_5.BorderColor3 = Color3.fromRGB(43, 43, 43)
  216. Check_5.BorderSizePixel = 2
  217. Check_5.Position = UDim2.new(0.896666646, 0, 0.17220968, 0)
  218. Check_5.Size = UDim2.new(0.0700000003, 0, 0.599999845, 0)
  219. Check_5.AutoButtonColor = false
  220. Check_5.Font = Enum.Font.GothamSemibold
  221. Check_5.Text = ""
  222. Check_5.TextColor3 = Color3.fromRGB(255, 255, 255)
  223. Check_5.TextScaled = true
  224. Check_5.TextSize = 14.000
  225. Check_5.TextWrapped = true
  226.  
  227. MaxPlank.Name = "MaxPlank"
  228. MaxPlank.Parent = Items
  229. MaxPlank.BackgroundColor3 = Color3.fromRGB(76, 76, 76)
  230. MaxPlank.BorderColor3 = Color3.fromRGB(43, 43, 43)
  231. MaxPlank.BorderSizePixel = 2
  232. MaxPlank.Position = UDim2.new(0, 0, 0.717078686, 0)
  233. MaxPlank.Size = UDim2.new(1, 0, 0.143999994, 0)
  234. MaxPlank.Font = Enum.Font.GothamSemibold
  235. MaxPlank.Text = "  Maximum Planks:"
  236. MaxPlank.TextColor3 = Color3.fromRGB(255, 255, 255)
  237. MaxPlank.TextSize = 14.000
  238. MaxPlank.TextXAlignment = Enum.TextXAlignment.Left
  239.  
  240. Max.Name = "Max"
  241. Max.Parent = MaxPlank
  242. Max.BackgroundColor3 = Color3.fromRGB(43, 43, 43)
  243. Max.BorderColor3 = Color3.fromRGB(43, 43, 43)
  244. Max.BorderSizePixel = 2
  245. Max.Position = UDim2.new(0.76366657, 0, 0.17200014, 0)
  246. Max.Size = UDim2.new(0.203333333, 0, 0.600000024, 0)
  247. Max.Font = Enum.Font.GothamSemibold
  248. Max.PlaceholderText = "Enter Value"
  249. Max.Text = ""
  250. Max.TextColor3 = Color3.fromRGB(255, 255, 255)
  251. Max.TextScaled = true
  252. Max.TextSize = 14.000
  253. Max.TextWrapped = true
  254.  
  255. MaxStone.Name = "MaxStone"
  256. MaxStone.Parent = Items
  257. MaxStone.BackgroundColor3 = Color3.fromRGB(76, 76, 76)
  258. MaxStone.BorderColor3 = Color3.fromRGB(43, 43, 43)
  259. MaxStone.BorderSizePixel = 2
  260. MaxStone.Position = UDim2.new(0, 0, 0.864239693, 0)
  261. MaxStone.Size = UDim2.new(1, 0, 0.143999994, 0)
  262. MaxStone.Font = Enum.Font.GothamSemibold
  263. MaxStone.Text = "  Maximum Stone Bricks:"
  264. MaxStone.TextColor3 = Color3.fromRGB(255, 255, 255)
  265. MaxStone.TextSize = 14.000
  266. MaxStone.TextXAlignment = Enum.TextXAlignment.Left
  267.  
  268. Max_2.Name = "Max"
  269. Max_2.Parent = MaxStone
  270. Max_2.BackgroundColor3 = Color3.fromRGB(43, 43, 43)
  271. Max_2.BorderColor3 = Color3.fromRGB(43, 43, 43)
  272. Max_2.BorderSizePixel = 2
  273. Max_2.Position = UDim2.new(0.76366657, 0, 0.17200014, 0)
  274. Max_2.Size = UDim2.new(0.203333333, 0, 0.600000024, 0)
  275. Max_2.Font = Enum.Font.GothamSemibold
  276. Max_2.PlaceholderText = "Enter Value"
  277. Max_2.Text = ""
  278. Max_2.TextColor3 = Color3.fromRGB(255, 255, 255)
  279. Max_2.TextScaled = true
  280. Max_2.TextSize = 14.000
  281. Max_2.TextWrapped = true
  282.  
  283. WoodChoice.Name = "WoodChoice"
  284. WoodChoice.Parent = Main
  285. WoodChoice.BackgroundColor3 = Color3.fromRGB(76, 76, 76)
  286. WoodChoice.BorderSizePixel = 0
  287. WoodChoice.ClipsDescendants = true
  288. WoodChoice.Position = UDim2.new(0.996999979, -185, 0.430000007, -3)
  289. WoodChoice.Size = UDim2.new(0.616666675, 0, 0.581235886, 0)
  290. WoodChoice.Visible = false
  291. WoodChoice.ZIndex = 0
  292.  
  293. Regular.Name = "Regular"
  294. Regular.Parent = WoodChoice
  295. Regular.BackgroundColor3 = Color3.fromRGB(76, 76, 76)
  296. Regular.BorderColor3 = Color3.fromRGB(43, 43, 43)
  297. Regular.BorderSizePixel = 2
  298. Regular.Position = UDim2.new(0, 0, 0.0189172029, 0)
  299. Regular.Size = UDim2.new(1, 0, 0.261000007, -2)
  300. Regular.ZIndex = 0
  301. Regular.Font = Enum.Font.GothamSemibold
  302. Regular.Text = "  Regular"
  303. Regular.TextColor3 = Color3.fromRGB(255, 255, 255)
  304. Regular.TextSize = 14.000
  305. Regular.TextXAlignment = Enum.TextXAlignment.Left
  306.  
  307. Check_6.Name = "Check"
  308. Check_6.Parent = Regular
  309. Check_6.BackgroundColor3 = Color3.fromRGB(43, 43, 43)
  310. Check_6.BorderColor3 = Color3.fromRGB(43, 43, 43)
  311. Check_6.BorderSizePixel = 2
  312. Check_6.Position = UDim2.new(0.842612445, 0, 0.172209397, 0)
  313. Check_6.Size = UDim2.new(0.124054097, 0, 0.599999845, 0)
  314. Check_6.AutoButtonColor = false
  315. Check_6.Font = Enum.Font.GothamSemibold
  316. Check_6.Text = ""
  317. Check_6.TextColor3 = Color3.fromRGB(255, 255, 255)
  318. Check_6.TextScaled = true
  319. Check_6.TextSize = 14.000
  320. Check_6.TextWrapped = true
  321.  
  322. Pine.Name = "Pine"
  323. Pine.Parent = WoodChoice
  324. Pine.BackgroundColor3 = Color3.fromRGB(76, 76, 76)
  325. Pine.BorderColor3 = Color3.fromRGB(43, 43, 43)
  326. Pine.BorderSizePixel = 2
  327. Pine.Position = UDim2.new(0, 0, 0.264803201, 0)
  328. Pine.Size = UDim2.new(1, 0, 0.261000007, -2)
  329. Pine.ZIndex = 0
  330. Pine.Font = Enum.Font.GothamSemibold
  331. Pine.Text = "  Pine"
  332. Pine.TextColor3 = Color3.fromRGB(255, 255, 255)
  333. Pine.TextSize = 14.000
  334. Pine.TextXAlignment = Enum.TextXAlignment.Left
  335.  
  336. Check_7.Name = "Check"
  337. Check_7.Parent = Pine
  338. Check_7.BackgroundColor3 = Color3.fromRGB(43, 43, 43)
  339. Check_7.BorderColor3 = Color3.fromRGB(43, 43, 43)
  340. Check_7.BorderSizePixel = 2
  341. Check_7.Position = UDim2.new(0.842612445, 0, 0.172209397, 0)
  342. Check_7.Size = UDim2.new(0.124054097, 0, 0.599999845, 0)
  343. Check_7.AutoButtonColor = false
  344. Check_7.Font = Enum.Font.GothamSemibold
  345. Check_7.Text = ""
  346. Check_7.TextColor3 = Color3.fromRGB(255, 255, 255)
  347. Check_7.TextScaled = true
  348. Check_7.TextSize = 14.000
  349. Check_7.TextWrapped = true
  350.  
  351. Birch.Name = "Birch"
  352. Birch.Parent = WoodChoice
  353. Birch.BackgroundColor3 = Color3.fromRGB(76, 76, 76)
  354. Birch.BorderColor3 = Color3.fromRGB(43, 43, 43)
  355. Birch.BorderSizePixel = 2
  356. Birch.Position = UDim2.new(0, 0, 0.514247119, 0)
  357. Birch.Size = UDim2.new(1, 0, 0.265068799, -2)
  358. Birch.ZIndex = 0
  359. Birch.Font = Enum.Font.GothamSemibold
  360. Birch.Text = "  Birch"
  361. Birch.TextColor3 = Color3.fromRGB(255, 255, 255)
  362. Birch.TextSize = 14.000
  363. Birch.TextXAlignment = Enum.TextXAlignment.Left
  364.  
  365. Check_8.Name = "Check"
  366. Check_8.Parent = Birch
  367. Check_8.BackgroundColor3 = Color3.fromRGB(43, 43, 43)
  368. Check_8.BorderColor3 = Color3.fromRGB(43, 43, 43)
  369. Check_8.BorderSizePixel = 2
  370. Check_8.Position = UDim2.new(0.842612445, 0, 0.172209397, 0)
  371. Check_8.Size = UDim2.new(0.124054097, 0, 0.599999845, 0)
  372. Check_8.AutoButtonColor = false
  373. Check_8.Font = Enum.Font.GothamSemibold
  374. Check_8.Text = ""
  375. Check_8.TextColor3 = Color3.fromRGB(255, 255, 255)
  376. Check_8.TextScaled = true
  377. Check_8.TextSize = 14.000
  378. Check_8.TextWrapped = true
  379.  
  380. Maple.Name = "Maple"
  381. Maple.Parent = WoodChoice
  382. Maple.BackgroundColor3 = Color3.fromRGB(76, 76, 76)
  383. Maple.BorderColor3 = Color3.fromRGB(43, 43, 43)
  384. Maple.BorderSizePixel = 2
  385. Maple.Position = UDim2.new(0, 0, 0.766428411, 0)
  386. Maple.Size = UDim2.new(1, 0, 0.240836442, -2)
  387. Maple.ZIndex = 0
  388. Maple.Font = Enum.Font.GothamSemibold
  389. Maple.Text = "  Maple"
  390. Maple.TextColor3 = Color3.fromRGB(255, 255, 255)
  391. Maple.TextSize = 14.000
  392. Maple.TextXAlignment = Enum.TextXAlignment.Left
  393.  
  394. Check_9.Name = "Check"
  395. Check_9.Parent = Maple
  396. Check_9.BackgroundColor3 = Color3.fromRGB(43, 43, 43)
  397. Check_9.BorderColor3 = Color3.fromRGB(43, 43, 43)
  398. Check_9.BorderSizePixel = 2
  399. Check_9.Position = UDim2.new(0.842612445, 0, 0.172209397, 0)
  400. Check_9.Size = UDim2.new(0.124054097, 0, 0.599999845, 0)
  401. Check_9.AutoButtonColor = false
  402. Check_9.Font = Enum.Font.GothamSemibold
  403. Check_9.Text = ""
  404. Check_9.TextColor3 = Color3.fromRGB(255, 255, 255)
  405. Check_9.TextScaled = true
  406. Check_9.TextSize = 14.000
  407. Check_9.TextWrapped = true
  408.  
  409. LoadingAnim.Name = "LoadingAnim"
  410. LoadingAnim.Parent = SkyblockGui
  411. LoadingAnim.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  412. LoadingAnim.BackgroundTransparency = 1.000
  413. LoadingAnim.Position = UDim2.new(0.5, -175, 0.308999985, 0)
  414. LoadingAnim.Size = UDim2.new(0, 350, 0, 350)
  415.  
  416. TopHide.Name = "TopHide"
  417. TopHide.Parent = LoadingAnim
  418. TopHide.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  419. TopHide.BackgroundTransparency = 1.000
  420. TopHide.ClipsDescendants = true
  421. TopHide.Size = UDim2.new(1, 0, 0.5, 0)
  422. TopHide.ZIndex = 0
  423.  
  424. Title.Name = "Title"
  425. Title.Parent = TopHide
  426. Title.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  427. Title.BackgroundTransparency = 1.000
  428. Title.Size = UDim2.new(1, 0, 1, 0)
  429. Title.Font = Enum.Font.Gotham
  430. Title.Text = "Loading..."
  431. Title.TextColor3 = Color3.fromRGB(0, 206, 110)
  432. Title.TextSize = 40.000
  433. Title.TextWrapped = true
  434. Title.TextYAlignment = Enum.TextYAlignment.Bottom
  435.  
  436. BottomHide.Name = "BottomHide"
  437. BottomHide.Parent = LoadingAnim
  438. BottomHide.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  439. BottomHide.BackgroundTransparency = 1.000
  440. BottomHide.ClipsDescendants = true
  441. BottomHide.Position = UDim2.new(0, 0, 0.498717517, 0)
  442. BottomHide.Size = UDim2.new(1, 0, 0.5, 0)
  443. BottomHide.ZIndex = 0
  444.  
  445. LoadingBar.Name = "LoadingBar"
  446. LoadingBar.Parent = BottomHide
  447. LoadingBar.BackgroundColor3 = Color3.fromRGB(76, 76, 76)
  448. LoadingBar.BorderSizePixel = 0
  449. LoadingBar.Position = UDim2.new(0, 0, 1.73938858e-07, 0)
  450. LoadingBar.Size = UDim2.new(1, 0, 0.0367626697, 0)
  451.  
  452. Bar.Name = "Bar"
  453. Bar.Parent = LoadingBar
  454. Bar.BackgroundColor3 = Color3.fromRGB(0, 206, 110)
  455. Bar.BorderColor3 = Color3.fromRGB(27, 42, 53)
  456. Bar.BorderSizePixel = 0
  457. Bar.Size = UDim2.new(0, 0, 1, 0)
  458.  
  459. -- Scripts:
  460.  
  461. local function FPOJ_fake_script() -- Main.AnimHandler
  462.     local script = Instance.new('LocalScript', Main)
  463.  
  464.     local TS = game:GetService("TweenService")
  465.     local UIS = game:GetService("UserInputService")
  466.     local Menu = script.Parent
  467.    
  468.     local Playing = false
  469.    
  470.     local TI = TweenInfo.new(
  471.         .7,
  472.         Enum.EasingStyle.Quart,
  473.         Enum.EasingDirection.Out
  474.     )
  475.    
  476.     local TweenParams = {}
  477.    
  478.     UIS.InputBegan:Connect(function(Input)
  479.         if Input.KeyCode == Enum.KeyCode.M then
  480.             if Playing == false then
  481.                 if Menu.Visible == false then
  482.                     Playing = true
  483.                     Menu.Visible = true
  484.                     TweenParams = {
  485.                         Size = UDim2.fromOffset(300,267)
  486.                     }
  487.                     local Tween = TS:Create(Menu,TI,TweenParams)
  488.                     Tween:Play()
  489.                     Tween.Completed:wait()
  490.                 else
  491.                     Playing = true
  492.                     TweenParams = {
  493.                         Size = UDim2.fromOffset(1,1)
  494.                     }
  495.                     local Tween = TS:Create(Menu,TI,TweenParams)
  496.                     Tween:Play()
  497.                     Tween.Completed:wait()
  498.                     Menu.Visible = false
  499.                 end
  500.                 Playing = false
  501.             end
  502.         end
  503.     end)
  504. end
  505. coroutine.wrap(FPOJ_fake_script)()
  506. local function ODLOUEL_fake_script() -- Check.Control
  507.     local script = Instance.new('LocalScript', Check)
  508.  
  509.     local Butt = script.Parent
  510.     local TS = game:GetService("TweenService")
  511.     local Toggle = false
  512.    
  513.     local TI = TweenInfo.new(
  514.         .2,
  515.         Enum.EasingStyle.Quart,
  516.         Enum.EasingDirection.Out
  517.     )
  518.    
  519.     local TweenParams = {}
  520.    
  521.     script.Parent.MouseButton1Down:Connect(function()
  522.         if Toggle == false then
  523.             Toggle = true
  524.             TweenParams = {
  525.                 BackgroundColor3 = Color3.fromRGB(0,255,0)
  526.             }
  527.         else
  528.             Toggle = false
  529.             TweenParams = {
  530.                 BackgroundColor3 = Color3.fromRGB(43, 43, 43)
  531.             }
  532.         end
  533.         local Tween = TS:Create(Butt,TI,TweenParams)
  534.         Tween:Play()
  535.         _G.ToggleAll = Toggle
  536.     end)
  537.    
  538. end
  539. coroutine.wrap(ODLOUEL_fake_script)()
  540. local function OPYQAV_fake_script() -- Check_2.Control
  541.     local script = Instance.new('LocalScript', Check_2)
  542.  
  543.     local Butt = script.Parent
  544.     local TS = game:GetService("TweenService")
  545.     local Toggle = false
  546.    
  547.     local TI = TweenInfo.new(
  548.         .2,
  549.         Enum.EasingStyle.Quart,
  550.         Enum.EasingDirection.Out
  551.     )
  552.    
  553.     local TweenParams = {}
  554.    
  555.     script.Parent.MouseButton1Down:Connect(function()
  556.         if Toggle == false then
  557.             Toggle = true
  558.             TweenParams = {
  559.                 BackgroundColor3 = Color3.fromRGB(0,255,0)
  560.             }
  561.         else
  562.             Toggle = false
  563.             TweenParams = {
  564.                 BackgroundColor3 = Color3.fromRGB(43, 43, 43)
  565.             }
  566.         end
  567.         local Tween = TS:Create(Butt,TI,TweenParams)
  568.         Tween:Play()
  569.         _G.TeleportPlayer = Toggle
  570.     end)
  571. end
  572. coroutine.wrap(OPYQAV_fake_script)()
  573. local function WOMV_fake_script() -- Check_3.Control
  574.     local script = Instance.new('LocalScript', Check_3)
  575.  
  576.     local Butt = script.Parent
  577.     local TS = game:GetService("TweenService")
  578.     local Toggle = false
  579.    
  580.     local TI = TweenInfo.new(
  581.         .2,
  582.         Enum.EasingStyle.Quart,
  583.         Enum.EasingDirection.Out
  584.     )
  585.    
  586.     local TweenParams = {}
  587.    
  588.     script.Parent.MouseButton1Down:Connect(function()
  589.         if Toggle == false then
  590.             Toggle = true
  591.             TweenParams = {
  592.                 BackgroundColor3 = Color3.fromRGB(0,255,0)
  593.             }
  594.         else
  595.             Toggle = false
  596.             TweenParams = {
  597.                 BackgroundColor3 = Color3.fromRGB(43, 43, 43)
  598.             }
  599.         end
  600.         local Tween = TS:Create(Butt,TI,TweenParams)
  601.         Tween:Play()
  602.         _G.OreDeposit = Toggle
  603.     end)
  604. end
  605. coroutine.wrap(WOMV_fake_script)()
  606. local function REYSCYW_fake_script() -- Check_4.Control
  607.     local script = Instance.new('LocalScript', Check_4)
  608.  
  609.     local Butt = script.Parent
  610.     local TS = game:GetService("TweenService")
  611.     local Toggle = false
  612.     local WC = script.Parent.Parent.Parent.Parent.WoodChoice
  613.    
  614.     local TI = TweenInfo.new(
  615.         .2,
  616.         Enum.EasingStyle.Quart,
  617.         Enum.EasingDirection.Out
  618.     )
  619.    
  620.     local TweenParams = {}
  621.    
  622.     script.Parent.MouseButton1Down:Connect(function()
  623.         if Toggle == false then
  624.             Toggle = true
  625.             TweenParams = {
  626.                 BackgroundColor3 = Color3.fromRGB(0,255,0)
  627.             }
  628.         else
  629.             Toggle = false
  630.             TweenParams = {
  631.                 BackgroundColor3 = Color3.fromRGB(43, 43, 43)
  632.             }
  633.         end
  634.         local Tween = TS:Create(Butt,TI,TweenParams)
  635.         Tween:Play()
  636.         if Toggle == false then
  637.             TweenParams = {
  638.                 Position = UDim2.new(0.997, -185,0.43, -3)
  639.             }
  640.         else
  641.             WC.Visible = true
  642.             TweenParams = {
  643.                 Position = UDim2.new(1.614, -185,0.43, -3)
  644.             }
  645.         end
  646.         local Tween = TS:Create(WC,TI,TweenParams)
  647.         Tween:Play()
  648.         Tween.Completed:wait()
  649.         WC.Visible = Toggle
  650.         _G.WoodDeposit = Toggle
  651.     end)
  652.    
  653. end
  654. coroutine.wrap(REYSCYW_fake_script)()
  655. local function XGSGNU_fake_script() -- Check_5.Control
  656.     local script = Instance.new('LocalScript', Check_5)
  657.  
  658.     local Butt = script.Parent
  659.     local TS = game:GetService("TweenService")
  660.     local Toggle = false
  661.    
  662.     local TI = TweenInfo.new(
  663.         .2,
  664.         Enum.EasingStyle.Quart,
  665.         Enum.EasingDirection.Out
  666.     )
  667.    
  668.     local TweenParams = {}
  669.    
  670.     script.Parent.MouseButton1Down:Connect(function()
  671.         if Toggle == false then
  672.             Toggle = true
  673.             TweenParams = {
  674.                 BackgroundColor3 = Color3.fromRGB(0,255,0)
  675.             }
  676.         else
  677.             Toggle = false
  678.             TweenParams = {
  679.                 BackgroundColor3 = Color3.fromRGB(43, 43, 43)
  680.             }
  681.         end
  682.         local Tween = TS:Create(Butt,TI,TweenParams)
  683.         Tween:Play()
  684.         _G.StoneDeposit = Toggle
  685.     end)
  686. end
  687. coroutine.wrap(XGSGNU_fake_script)()
  688. local function WRNJBJ_fake_script() -- Max.Control
  689.     local script = Instance.new('LocalScript', Max)
  690.  
  691.     local Box = script.Parent
  692.     local DefVal = _G.MaxPlanks
  693.    
  694.     Box.Changed:Connect(function()
  695.         local Succ, Fail = pcall(function()
  696.             tostring(Box.Text)
  697.         end)
  698.         if Succ then
  699.             if tonumber(Box.Text) ~= nil then
  700.                 _G.MaxPlanks = tonumber(Box.Text)
  701.             end
  702.         else
  703.             Box.Text = 64
  704.         end
  705.     end)
  706. end
  707. coroutine.wrap(WRNJBJ_fake_script)()
  708. local function GCOLAWT_fake_script() -- Max_2.Control
  709.     local script = Instance.new('LocalScript', Max_2)
  710.  
  711.     local Box = script.Parent
  712.     local DefVal = _G.MaxBrick
  713.    
  714.     Box.Changed:Connect(function()
  715.         local Succ, Fail = pcall(function()
  716.             tostring(Box.Text)
  717.         end)
  718.         if Succ then
  719.             if tonumber(Box.Text) ~= nil then
  720.                 _G.MaxBrick = tonumber(Box.Text)
  721.             end
  722.         else
  723.             Box.Text = 64
  724.         end
  725.     end)
  726. end
  727. coroutine.wrap(GCOLAWT_fake_script)()
  728. local function RZOK_fake_script() -- Check_6.Control
  729.     local script = Instance.new('LocalScript', Check_6)
  730.  
  731.     local Butt = script.Parent
  732.     local TS = game:GetService("TweenService")
  733.     local Toggle = false
  734.    
  735.     local TI = TweenInfo.new(
  736.         .2,
  737.         Enum.EasingStyle.Quart,
  738.         Enum.EasingDirection.Out
  739.     )
  740.    
  741.     local TweenParams = {}
  742.    
  743.     script.Parent.MouseButton1Down:Connect(function()
  744.         if Toggle == false then
  745.             Toggle = true
  746.             TweenParams = {
  747.                 BackgroundColor3 = Color3.fromRGB(0,255,0)
  748.             }
  749.         else
  750.             Toggle = false
  751.             TweenParams = {
  752.                 BackgroundColor3 = Color3.fromRGB(43, 43, 43)
  753.             }
  754.         end
  755.         local Tween = TS:Create(Butt,TI,TweenParams)
  756.         Tween:Play()
  757.         _G.Regular = Toggle
  758.     end)
  759. end
  760. coroutine.wrap(RZOK_fake_script)()
  761. local function VSQU_fake_script() -- Check_7.Control
  762.     local script = Instance.new('LocalScript', Check_7)
  763.  
  764.     local Butt = script.Parent
  765.     local TS = game:GetService("TweenService")
  766.     local Toggle = false
  767.    
  768.     local TI = TweenInfo.new(
  769.         .2,
  770.         Enum.EasingStyle.Quart,
  771.         Enum.EasingDirection.Out
  772.     )
  773.    
  774.     local TweenParams = {}
  775.    
  776.     script.Parent.MouseButton1Down:Connect(function()
  777.         if Toggle == false then
  778.             Toggle = true
  779.             TweenParams = {
  780.                 BackgroundColor3 = Color3.fromRGB(0,255,0)
  781.             }
  782.         else
  783.             Toggle = false
  784.             TweenParams = {
  785.                 BackgroundColor3 = Color3.fromRGB(43, 43, 43)
  786.             }
  787.         end
  788.         local Tween = TS:Create(Butt,TI,TweenParams)
  789.         Tween:Play()
  790.         _G.Pine = Toggle
  791.     end)
  792. end
  793. coroutine.wrap(VSQU_fake_script)()
  794. local function XAPXATH_fake_script() -- Check_8.Control
  795.     local script = Instance.new('LocalScript', Check_8)
  796.  
  797.     local Butt = script.Parent
  798.     local TS = game:GetService("TweenService")
  799.     local Toggle = false
  800.    
  801.     local TI = TweenInfo.new(
  802.         .2,
  803.         Enum.EasingStyle.Quart,
  804.         Enum.EasingDirection.Out
  805.     )
  806.    
  807.     local TweenParams = {}
  808.    
  809.     script.Parent.MouseButton1Down:Connect(function()
  810.         if Toggle == false then
  811.             Toggle = true
  812.             TweenParams = {
  813.                 BackgroundColor3 = Color3.fromRGB(0,255,0)
  814.             }
  815.         else
  816.             Toggle = false
  817.             TweenParams = {
  818.                 BackgroundColor3 = Color3.fromRGB(43, 43, 43)
  819.             }
  820.         end
  821.         local Tween = TS:Create(Butt,TI,TweenParams)
  822.         Tween:Play()
  823.         _G.Birch = Toggle
  824.     end)
  825. end
  826. coroutine.wrap(XAPXATH_fake_script)()
  827. local function ITSHJ_fake_script() -- Check_9.Control
  828.     local script = Instance.new('LocalScript', Check_9)
  829.  
  830.     local Butt = script.Parent
  831.     local TS = game:GetService("TweenService")
  832.     local Toggle = false
  833.    
  834.     local TI = TweenInfo.new(
  835.         .2,
  836.         Enum.EasingStyle.Quart,
  837.         Enum.EasingDirection.Out
  838.     )
  839.    
  840.     local TweenParams = {}
  841.    
  842.     script.Parent.MouseButton1Down:Connect(function()
  843.         if Toggle == false then
  844.             Toggle = true
  845.             TweenParams = {
  846.                 BackgroundColor3 = Color3.fromRGB(0,255,0)
  847.             }
  848.         else
  849.             Toggle = false
  850.             TweenParams = {
  851.                 BackgroundColor3 = Color3.fromRGB(43, 43, 43)
  852.             }
  853.         end
  854.         local Tween = TS:Create(Butt,TI,TweenParams)
  855.         Tween:Play()
  856.         _G.Maple = Toggle
  857.     end)
  858. end
  859. coroutine.wrap(ITSHJ_fake_script)()
  860. local function BZCH_fake_script() -- Main.SmoothDrag
  861.     local script = Instance.new('LocalScript', Main)
  862.  
  863.     local UserInputService = game:GetService("UserInputService")
  864.    
  865.     local gui = script.Parent
  866.     local Bar = script.Parent.TopBar
  867.    
  868.     local dragging
  869.     local dragInput
  870.     local dragStart
  871.     local startPos
  872.    
  873.     local function update(input)
  874.         local delta = input.Position - dragStart
  875.         gui.Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y)
  876.     end
  877.    
  878.     Bar.InputBegan:Connect(function(input)
  879.         if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
  880.             dragging = true
  881.             dragStart = input.Position
  882.             startPos = gui.Position
  883.            
  884.             input.Changed:Connect(function()
  885.                 if input.UserInputState == Enum.UserInputState.End then
  886.                     dragging = false
  887.                 end
  888.             end)
  889.         end
  890.     end)
  891.    
  892.     Bar.InputChanged:Connect(function(input)
  893.         if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then
  894.             dragInput = input
  895.         end
  896.     end)
  897.    
  898.     UserInputService.InputChanged:Connect(function(input)
  899.         if input == dragInput and dragging then
  900.             update(input)
  901.         end
  902.     end)
  903. end
  904. coroutine.wrap(BZCH_fake_script)()
  905. local function NAODXW_fake_script() -- Title.Anim
  906.     local script = Instance.new('LocalScript', Title)
  907.  
  908.     while wait() do
  909.         script.Parent.Text = 'Loading'
  910.         wait(.2)
  911.         script.Parent.Text = 'Loading'..'.'
  912.         wait(.2)
  913.         script.Parent.Text = 'Loading'..'..'
  914.         wait(.2)
  915.         script.Parent.Text = 'Loading'..'...'
  916.         wait(.2)
  917.     end
  918. end
  919. coroutine.wrap(NAODXW_fake_script)()
  920. local function QIXOWWG_fake_script() -- LoadingAnim.AnimControl
  921.     local script = Instance.new('LocalScript', LoadingAnim)
  922.  
  923.     local Title = script.Parent.TopHide.Title
  924.     local BarBG = script.Parent.BottomHide.LoadingBar
  925.     local Bar = BarBG.Bar
  926.     local TS = game:GetService("TweenService")
  927.     local Menu = script.Parent.Parent.Main
  928.    
  929.     local TI = TweenInfo.new(
  930.         1.5,
  931.         Enum.EasingStyle.Quart,
  932.         Enum.EasingDirection.Out
  933.     )
  934.    
  935.     local TargSize = UDim2.fromScale(1,1)
  936.     local TweenParams = {
  937.         Size = TargSize
  938.     }
  939.     local Tween = TS:Create(Bar,TI,TweenParams)
  940.     Tween:Play()
  941.    
  942.     wait(1.5)
  943.    
  944.     local TargPos1 = UDim2.fromScale(0,1)
  945.     local TargPos2 = UDim2.fromScale(0,-1)
  946.    
  947.     TweenParams = {
  948.         Position = TargPos1
  949.     }
  950.     local Tween = TS:Create(Title,TI,TweenParams)
  951.     Tween:Play()
  952.    
  953.     TweenParams = {
  954.         Position = TargPos2
  955.     }
  956.     local Tween = TS:Create(BarBG,TI,TweenParams)
  957.     Tween:Play()
  958.    
  959.     wait(.5)
  960.    
  961.     Menu.Visible = true
  962.     Menu.Size = UDim2.fromOffset(1,1)
  963.    
  964.     TargSize = UDim2.fromOffset(300,267)
  965.     TweenParams = {
  966.         Size = TargSize
  967.     }
  968.     local Tween = TS:Create(Menu,TI,TweenParams)
  969.     Tween:Play()
  970. end
  971. coroutine.wrap(QIXOWWG_fake_script)()
  972.  
  973. -- Core Script
  974.  
  975. local Player = game:GetService('Players').LocalPlayer
  976. local ID = Player.UserId
  977. local Island = workspace.Islands:FindFirstChild(ID..'-island')
  978. local RS = game:GetService('ReplicatedStorage')
  979. local DepEvent = RS.Remotes.Functions['BLOCK_WORKER_DEPOSIT_TOOL_REQUEST']
  980. local PickEvent = RS.Remotes.Functions['TOOL_PICKUP_REQUEST']
  981. local Inv = Player.Backpack
  982.  
  983. function Refuel()
  984.     for i,v in pairs(Island.Blocks:GetChildren()) do
  985.         local Coal
  986.         if Player.Character and Player.Character:FindFirstChild('coal') then
  987.             if Player.Character:FindFirstChild('coal').Amount.Value > 1 then
  988.                 Coal = Player.Character:FindFirstChild('coal')
  989.             end
  990.         elseif Inv:FindFirstChild('coal') then
  991.             if Inv:FindFirstChild('coal').Amount.Value > 1 then
  992.                 Coal = Inv:FindFirstChild('coal')
  993.             end
  994.         end
  995.  
  996.         if Coal and v:FindFirstChild(v.Name) and v:FindFirstChild(v.Name):FindFirstChild('WorkerFuel') then
  997.             if #v[v.Name]:FindFirstChild('WorkerFuel'):GetChildren() == 0 and #v[v.Name]:FindFirstChild('WorkerContents'):GetChildren() > 0 then
  998.                 for i=1,v[v.Name].WorkerMaxFuel.Value do
  999.                     DepEvent:InvokeServer({
  1000.                         ["block"] = v[v.Name],
  1001.                         ["amount"] = 1,
  1002.                         ["toolName"] = "coal"
  1003.                     })
  1004.                 end
  1005.             end
  1006.             if #v[v.Name]:FindFirstChild('WorkerFuel'):GetChildren() > 0 and #v[v.Name]:FindFirstChild('WorkerContents'):GetChildren() == 0 then
  1007.                 for i2,v2 in pairs(v[v.Name]:FindFirstChild('WorkerFuel'):GetChildren()) do
  1008.                     PickEvent:InvokeServer({
  1009.                         ['tool'] = v2
  1010.                     })
  1011.                 end
  1012.             end
  1013.         end
  1014.     end
  1015. end
  1016.  
  1017. function depStone()
  1018.     local Cutters = {}
  1019.     for i,v in pairs(Island.Blocks:GetChildren()) do
  1020.         if v.Name == 'stonecutter' then
  1021.             table.insert(Cutters,v)
  1022.         end
  1023.     end
  1024.     for i2,v2 in pairs(Cutters) do
  1025.         local Stone
  1026.         local BrickAmnt = 0
  1027.         if Player.Character and Player.Character:FindFirstChild('stone') then
  1028.             if Player.Character:FindFirstChild('stone').Amount.Value > 1 then
  1029.                 Stone = Player.Character:FindFirstChild('stone')
  1030.             end
  1031.         elseif Inv:FindFirstChild('stone') then
  1032.             if Inv:FindFirstChild('stone').Amount.Value > 1 then
  1033.                 Stone = Inv:FindFirstChild('stone')
  1034.             end
  1035.         end
  1036.        
  1037.         if Player.Character and Player.Character:FindFirstChild('stoneBrick') then
  1038.             BrickAmnt = Player.Character:FindFirstChild('stoneBrick').Amount.Value
  1039.         end
  1040.         if Inv:FindFirstChild('stoneBrick') then
  1041.             BrickAmnt = Inv:FindFirstChild('stoneBrick').Amount.Value
  1042.         end
  1043.         if Stone and BrickAmnt + 2 <= _G.MaxBrick then
  1044.             for i=1,v2[v2.Name].WorkerMaxContents.Value do
  1045.                 DepEvent:InvokeServer({
  1046.                     ["block"] = v2[v2.Name],
  1047.                     ["amount"] = 1,
  1048.                     ["toolName"] = "stone"
  1049.                 })
  1050.             end
  1051.         end
  1052.     end
  1053. end
  1054.  
  1055. function depOre()
  1056.     local Furnaces = {}
  1057.     for i,v in pairs(Island.Blocks:GetChildren()) do
  1058.         if v.Name == 'smallFurnace' then
  1059.             table.insert(Furnaces,v)
  1060.         end
  1061.     end
  1062.     for i2,v2 in pairs(Furnaces) do
  1063.         local Ore = {}
  1064.        
  1065.         if Player.Character then
  1066.             for i3,v3 in pairs(Player.Character:GetChildren()) do
  1067.                 if string.find(v3.Name, 'Ore') then
  1068.                     local Found = false
  1069.                     for i4,v4 in pairs(Ore) do
  1070.                         if v3 == v4 then
  1071.                             Found = true
  1072.                         end
  1073.                     end
  1074.                     if Found == false then
  1075.                         table.insert(Ore, v3)
  1076.                     end
  1077.                 end
  1078.             end
  1079.         end
  1080.        
  1081.         for i5,v5 in pairs(Inv:GetChildren()) do
  1082.             if string.find(v5.Name, 'Ore') then
  1083.                 local Found = false
  1084.                 for i6,v6 in pairs(Ore) do
  1085.                     if v5 == v6 then
  1086.                         Found = true
  1087.                     end
  1088.                 end
  1089.                 if Found == false then
  1090.                     table.insert(Ore, v5)
  1091.                 end
  1092.             end
  1093.         end
  1094.        
  1095.         if #Ore > 0 then
  1096.             for i=1,v2[v2.Name].WorkerMaxContents.Value do
  1097.                 DepEvent:InvokeServer({
  1098.                     ["block"] = v2[v2.Name],
  1099.                     ["amount"] = 1,
  1100.                     ["toolName"] = Ore[1].Name
  1101.                 })
  1102.             end
  1103.         end
  1104.     end
  1105. end
  1106.  
  1107. function depWood()
  1108.     local Sawmills = {}
  1109.     for i,v in pairs(Island.Blocks:GetChildren()) do
  1110.         if v.Name == 'sawmill' then
  1111.             table.insert(Sawmills,v)
  1112.         end
  1113.     end
  1114.     for i2,v2 in pairs(Sawmills) do
  1115.         local Wood = {}
  1116.         local WoodPlankAmnt = 0
  1117.         local PinePlankAmnt = 0
  1118.         local BirchPlankAmnt = 0
  1119.         local MaplePlankAmnt = 0
  1120.         if Player.Character then
  1121.             for i3,v3 in pairs(Player.Character:GetChildren()) do
  1122.                 if v3.Name == 'wood' or v3.Name == 'woodPine' or v3.Name == 'woodBirch' or v3.Name == 'woodMaple' then
  1123.                     local Found = false
  1124.                     for i4,v4 in pairs(Wood) do
  1125.                         if v3 == v4 then
  1126.                             Found = true
  1127.                         end
  1128.                     end
  1129.                     if Found == false then
  1130.                         table.insert(Wood, v3)
  1131.                     end
  1132.                 end
  1133.             end
  1134.         end
  1135.        
  1136.         for i4,v4 in pairs(Inv:GetChildren()) do
  1137.             if v4.Name == 'wood' or v4.Name == 'woodPine' or v4.Name == 'woodBirch' or v4.Name == 'woodMaple' then
  1138.                 local Found = false
  1139.                 for i5,v5 in pairs(Wood) do
  1140.                     if v4 == v5 then
  1141.                         Found = true
  1142.                     end
  1143.                 end
  1144.                 if Found == false then
  1145.                     table.insert(Wood, v4)
  1146.                 end
  1147.             end
  1148.         end
  1149.        
  1150.         if Player.Character then
  1151.             for i6,v6 in pairs(Player.Character:GetChildren()) do
  1152.                 if v6.Name == 'woodPlank' then
  1153.                     WoodPlankAmnt = WoodPlankAmnt + v6.Amount.value
  1154.                 elseif v6.Name == 'pinePlank' then
  1155.                     PinePlankAmnt = PinePlankAmnt + v6.Amount.value
  1156.                 elseif v6.Name == 'birchPlank' then
  1157.                     BirchPlankAmnt = BirchPlankAmnt + v6.Amount.value
  1158.                 elseif v6.Name == 'maplePlank' then
  1159.                     MaplePlankAmnt = MaplePlankAmnt + v6.Amount.value
  1160.                 end
  1161.             end
  1162.         end
  1163.        
  1164.         for i7,v7 in pairs(Inv:GetChildren()) do
  1165.             if v7.Name == 'woodPlank' then
  1166.                 WoodPlankAmnt = WoodPlankAmnt + v7.Amount.value
  1167.             elseif v7.Name == 'pinePlank' then
  1168.                 PinePlankAmnt = PinePlankAmnt + v7.Amount.value
  1169.             elseif v7.Name == 'birchPlank' then
  1170.                 BirchPlankAmnt = BirchPlankAmnt + v7.Amount.value
  1171.             elseif v7.Name == 'maplePlank' then
  1172.                 MaplePlankAmnt = MaplePlankAmnt + v7.Amount.value
  1173.             end
  1174.         end
  1175.        
  1176.         if #Wood > 0 then
  1177.             if WoodPlankAmnt + 3 <= _G.MaxPlanks and _G.Regular == true then
  1178.                 for i=1,v2[v2.Name].WorkerMaxContents.Value do
  1179.                     DepEvent:InvokeServer({
  1180.                         ["block"] = v2[v2.Name],
  1181.                         ["amount"] = 1,
  1182.                         ["toolName"] = 'wood'
  1183.                     })
  1184.                 end
  1185.             elseif PinePlankAmnt + 3 <= _G.MaxPlanks and _G.Pine == true then
  1186.                 for i=1,v2[v2.Name].WorkerMaxContents.Value do
  1187.                     DepEvent:InvokeServer({
  1188.                         ["block"] = v2[v2.Name],
  1189.                         ["amount"] = 1,
  1190.                         ["toolName"] = 'woodPine'
  1191.                     })
  1192.                 end
  1193.             elseif BirchPlankAmnt + 3 <= _G.MaxPlanks and _G.Birch == true then
  1194.                 for i=1,v2[v2.Name].WorkerMaxContents.Value do
  1195.                     DepEvent:InvokeServer({
  1196.                         ["block"] = v2[v2.Name],
  1197.                         ["amount"] = 1,
  1198.                         ["toolName"] = 'woodBirch'
  1199.                     })
  1200.                 end
  1201.             elseif MaplePlankAmnt + 3 <= _G.MaxPlanks and _G.Maple == true then
  1202.                 for i=1,v2[v2.Name].WorkerMaxContents.Value do
  1203.                     DepEvent:InvokeServer({
  1204.                         ["block"] = v2[v2.Name],
  1205.                         ["amount"] = 1,
  1206.                         ["toolName"] = 'woodMaple'
  1207.                     })
  1208.                 end
  1209.             end
  1210.         end
  1211.     end
  1212. end
  1213.  
  1214. function teleportToStation(StationPart)
  1215.     if Player.Character then
  1216.         local Hum = Player.Character.HumanoidRootPart
  1217.         StationPart.CanCollide = false
  1218.         if StationPart.Parent.Parent.Root:FindFirstChild('MeshPart') then
  1219.             StationPart.Parent.Parent.Root.MeshPart.CanCollide = false
  1220.         end
  1221.         Hum.CFrame = StationPart.CFrame
  1222.     end
  1223. end
  1224.  
  1225. function Pick()
  1226.     local Picks = {}
  1227.     for i,v in pairs(Island.Blocks:GetChildren()) do
  1228.         if v:FindFirstChild(v.Name) and v:FindFirstChild(v.Name):FindFirstChild('WorkerContents') then
  1229.             if #v[v.Name].WorkerContents:GetChildren() > 0 then
  1230.                 for i,v in pairs(v[v.Name].WorkerContents:GetChildren()) do
  1231.                     if v.Name == 'stoneBrick' or v.Name == 'gold' or v.Name == 'iron' or string.find(v.Name,'Plank') then
  1232.                         table.insert(Picks,v)
  1233.                     end
  1234.                 end
  1235.             end
  1236.         end
  1237.     end
  1238.     for i2,v2 in pairs(Picks) do
  1239.         if _G.TeleportPlayer == true then
  1240.             teleportToStation(v2.Parent.Parent.CollisionBoxes:FindFirstChildOfClass('Part'))
  1241.         end
  1242.         PickEvent:InvokeServer({
  1243.             ['tool'] = v2
  1244.         })
  1245.     end
  1246. end
  1247.  
  1248. while wait(1) do
  1249.     Pick()
  1250.     Refuel()
  1251.     if _G.ToggleAll == true then
  1252.         if _G.StoneDeposit == true then
  1253.             depStone()
  1254.         end
  1255.         if _G.OreDeposit == true then
  1256.             depOre()
  1257.         end
  1258.         if _G.WoodDeposit == true then
  1259.             depWood()
  1260.         end
  1261.     end
  1262. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement