Advertisement
Guest User

Miner Heaven GUI Script

a guest
Apr 7th, 2019
3,304
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 51.58 KB | None | 0 0
  1. defaultdropper = "symmetrium" -- Mine used. Choose between symmetrium or symmetryte --
  2. oretime = "30" -- Time in seconds ore drops before it starts looping. More time equals more ore --
  3. loopnumber = "1000" -- Number of loops. About 850 is right but you can go higher --
  4. turnminesoff = true -- Turn mines off when ores go to loop. Set to true or false --
  5.  
  6. smallsetupactive = false
  7. mediumsetupactive = false
  8. bigsetupactive = false
  9. customsetupactive = false
  10. rebirthactive = false
  11. setuptimeactive = false
  12. remoteclickstarted = false
  13. remoteclickactive = false
  14. oregatetoggleactive = false
  15. upgraderclickstarted = false
  16. upgraderclickactive = false
  17.  
  18. local player = game:GetService'Players'.LocalPlayer
  19. local factorye = player.PlayerTycoon.Value
  20. local Factory = tostring(factorye)
  21.  
  22. mouse = game.Players.LocalPlayer:GetMouse()
  23.  
  24. local MainGUI = Instance.new("ScreenGui")
  25. local MainFrame = Instance.new("Frame")
  26. local CloseMH = Instance.new("TextButton")
  27. local Label = Instance.new("TextLabel")
  28. local SmallSetup = Instance.new("TextButton")
  29. local MediumSetup = Instance.new("TextButton")
  30. local BigSetup = Instance.new("TextButton")
  31. local SmallSetupText = Instance.new("TextLabel")
  32. local MediumSetupText = Instance.new("TextLabel")
  33. local BigSetupText = Instance.new("TextLabel")
  34. local CustomSetup = Instance.new("TextButton")
  35. local CustomSetupText = Instance.new("TextLabel")
  36. local LoopFrame = Instance.new("Frame")
  37. local LoopItem = Instance.new("TextBox")
  38. local TPLoopNumber = Instance.new("TextBox")
  39. local LoopButton = Instance.new("TextButton")
  40. local Rebirth = Instance.new("TextButton")
  41. local TPCrates = Instance.new("TextButton")
  42. local CountTpCrates = Instance.new("TextLabel")
  43.  
  44. MainGUI.Name = "MainGUI"
  45. MainGUI.Parent = game.CoreGui
  46. local MainCORE = game.CoreGui["MainGUI"]
  47.  
  48. MainFrame.Name = "MainFrame"
  49. MainFrame.Parent = MainGUI
  50. MainFrame.BackgroundColor3 = Color3.new(1, 1, 1)
  51. MainFrame.BorderColor3 = Color3.new(0, 0, 0)
  52. MainFrame.Position = UDim2.new(1, -170, 0, 0)
  53. MainFrame.Size = UDim2.new(0, 170, 0, 300)
  54. MainFrame.Selectable = true
  55. MainFrame.Active = true
  56. MainFrame.Draggable = true
  57.  
  58. CloseMH.Name = "CloseMH"
  59. CloseMH.Parent = MainFrame
  60. CloseMH.BackgroundColor3 = Color3.new(0.5, 0.5, 0.5)
  61. CloseMH.BorderColor3 = Color3.new(0, 0, 0)
  62. CloseMH.Position = UDim2.new(0, 10, 0, 8)
  63. CloseMH.Size = UDim2.new(0, 19, 0, 19)
  64. CloseMH.Font = Enum.Font.SourceSans
  65. CloseMH.Text = "X"
  66. CloseMH.TextColor3 = Color3.new(1, 0, 0)
  67. CloseMH.TextScaled = true
  68. CloseMH.TextSize = 17
  69.  
  70. Label.Name = "Label"
  71. Label.Parent = MainFrame
  72. Label.BackgroundColor3 = Color3.new(1, 1, 1)
  73. Label.BackgroundTransparency = 1
  74. Label.BorderSizePixel = 0
  75. Label.Position = UDim2.new(0, 31, 0, 4)
  76. Label.Size = UDim2.new(0, 130, 0, 24)
  77. Label.Font = Enum.Font.SourceSans
  78. Label.Text = "Star Loop GUI"
  79. Label.TextColor3 = Color3.new(0, 0, 0)
  80. Label.TextSize = 22
  81.  
  82. SmallSetup.Name = "SmallSetup"
  83. SmallSetup.Parent = MainFrame
  84. SmallSetup.BackgroundColor3 = Color3.new(0.8, 0.8, 0.8)
  85. SmallSetup.Position = UDim2.new(0, 10, 0, 35)
  86. SmallSetup.Size = UDim2.new(0, 150, 0, 25)
  87. SmallSetup.Font = Enum.Font.SourceSans
  88. SmallSetup.Text = "SMALL SETUP: OFF\nMorning Star"
  89. SmallSetup.TextColor3 = Color3.new(0, 0, 0)
  90. SmallSetup.TextSize = 18
  91. SmallSetup.TextWrapped = true
  92.  
  93. SmallSetupText.Name = "SmallSetupText"
  94. SmallSetupText.Parent = MainFrame
  95. SmallSetupText.BackgroundColor3 = Color3.new(0.2, 0.2, 0.2)
  96. SmallSetupText.Position = UDim2.new(0, 10, 0, 70)
  97. SmallSetupText.Size = UDim2.new(0, 150, 0, 60)
  98. SmallSetupText.Font = Enum.Font.SourceSans
  99. SmallSetupText.Text = "Need Symmetrium Mine and a Morning Star. Everything is Automatic."
  100. SmallSetupText.TextColor3 = Color3.new(1, 1, 1)
  101. SmallSetupText.TextSize = 16
  102. SmallSetupText.ZIndex = 6
  103. SmallSetupText.Visible = false
  104. SmallSetupText.TextWrapped = true
  105.  
  106. MediumSetup.Name = "MediumSetup"
  107. MediumSetup.Parent = MainFrame
  108. MediumSetup.BackgroundColor3 = Color3.new(0.8, 0.8, 0.8)
  109. MediumSetup.Position = UDim2.new(0, 10, 0, 70)
  110. MediumSetup.Size = UDim2.new(0, 150, 0, 25)
  111. MediumSetup.Font = Enum.Font.SourceSans
  112. MediumSetup.Text = "MEDIUM SETUP: OFF"
  113. MediumSetup.TextColor3 = Color3.new(0, 0, 0)
  114. MediumSetup.TextSize = 18
  115. MediumSetup.TextWrapped = true
  116.  
  117. MediumSetupText.Name = "MediumSetupText"
  118. MediumSetupText.Parent = MainFrame
  119. MediumSetupText.BackgroundColor3 = Color3.new(0.2, 0.2, 0.2)
  120. MediumSetupText.Position = UDim2.new(0, 10, 0, 105)
  121. MediumSetupText.Size = UDim2.new(0, 150, 0, 60)
  122. MediumSetupText.Font = Enum.Font.SourceSans
  123. MediumSetupText.Text = "Need Symmetrium Mine and a Neutron Star. Everything is Automatic."
  124. MediumSetupText.TextColor3 = Color3.new(1, 1, 1)
  125. MediumSetupText.TextSize = 16
  126. MediumSetupText.ZIndex = 6
  127. MediumSetupText.Visible = false
  128. MediumSetupText.TextWrapped = true
  129.  
  130. BigSetup.Name = "BigSetup"
  131. BigSetup.Parent = MainFrame
  132. BigSetup.BackgroundColor3 = Color3.new(0.8, 0.8, 0.8)
  133. BigSetup.Position = UDim2.new(0, 10, 0, 105)
  134. BigSetup.Size = UDim2.new(0, 150, 0, 25)
  135. BigSetup.Font = Enum.Font.SourceSans
  136. BigSetup.Text = "BIG SETUP: OFF"
  137. BigSetup.TextColor3 = Color3.new(0, 0, 0)
  138. BigSetup.TextSize = 18
  139. BigSetup.TextWrapped = true
  140.  
  141. BigSetupText.Name = "BigSetupText"
  142. BigSetupText.Parent = MainFrame
  143. BigSetupText.BackgroundColor3 = Color3.new(0.2, 0.2, 0.2)
  144. BigSetupText.Position = UDim2.new(0, 10, 0, 35)
  145. BigSetupText.Size = UDim2.new(0, 150, 0, 60)
  146. BigSetupText.Font = Enum.Font.SourceSans
  147. BigSetupText.Text = "Need Symmetrium Mine Neutron Star and Reborn Items. Fully Automatic."
  148. BigSetupText.TextColor3 = Color3.new(1, 1, 1)
  149. BigSetupText.TextSize = 16
  150. BigSetupText.ZIndex = 6
  151. BigSetupText.Visible = false
  152. BigSetupText.TextWrapped = true
  153.  
  154. CustomSetup.Name = "CustomSetup"
  155. CustomSetup.Parent = MainFrame
  156. CustomSetup.BackgroundColor3 = Color3.new(0.8, 0.8, 0.8)
  157. CustomSetup.Position = UDim2.new(0, 10, 0, 140)
  158. CustomSetup.Size = UDim2.new(0, 150, 0, 25)
  159. CustomSetup.Font = Enum.Font.SourceSans
  160. CustomSetup.Text = "CUSTOM SETUP: OFF"
  161. CustomSetup.TextColor3 = Color3.new(0, 0, 0)
  162. CustomSetup.TextSize = 18
  163. CustomSetup.TextWrapped = true
  164.  
  165. CustomSetupText.Name = "CustomSetupText"
  166. CustomSetupText.Parent = MainFrame
  167. CustomSetupText.BackgroundColor3 = Color3.new(0.2, 0.2, 0.2)
  168. CustomSetupText.Position = UDim2.new(0, 10, 0, 35)
  169. CustomSetupText.Size = UDim2.new(0, 150, 0, 95)
  170. CustomSetupText.Font = Enum.Font.SourceSans
  171. CustomSetupText.Text = "Save a good dropper and furnace to Layout1 and a setup with 1 Neutron Star OR 1 Morning Star to Layout2"
  172. CustomSetupText.TextColor3 = Color3.new(1, 1, 1)
  173. CustomSetupText.TextSize = 16
  174. CustomSetupText.ZIndex = 6
  175. CustomSetupText.Visible = false
  176. CustomSetupText.TextWrapped = true
  177.  
  178. LoopFrame.Name = "LoopFrame"
  179. LoopFrame.Parent = MainFrame
  180. LoopFrame.BackgroundColor3 = Color3.new(0.3, 0.3, 0.9)
  181. LoopFrame.BorderColor3 = Color3.new(0, 0, 0)
  182. LoopFrame.Position = UDim2.new(0, 0, 0, 170)
  183. LoopFrame.Size = UDim2.new(0, 170, 0, 55)
  184.  
  185. LoopItem.Name = "LoopItem"
  186. LoopItem.Parent = MainFrame
  187. LoopItem.BackgroundColor3 = Color3.new(0.7, 0.7, 0.7)
  188. LoopItem.Position = UDim2.new(0, 10, 0, 175)
  189. LoopItem.Size = UDim2.new(0, 150, 0, 20)
  190. LoopItem.Font = Enum.Font.SourceSans
  191. LoopItem.Text = "TYPE LOOP ITEM"
  192. LoopItem.TextColor3 = Color3.new(0, 0, 0)
  193. LoopItem.TextSize = 18
  194. LoopItem.TextWrapped = true
  195. LoopItem.ZIndex = 7
  196.  
  197. TPLoopNumber.Name = "TPLoopNumber"
  198. TPLoopNumber.Parent = MainFrame
  199. TPLoopNumber.BackgroundColor3 = Color3.new(0.7, 0.7, 0.7)
  200. TPLoopNumber.Position = UDim2.new(0, 10, 0, 200)
  201. TPLoopNumber.Size = UDim2.new(0, 50, 0, 20)
  202. TPLoopNumber.Font = Enum.Font.SourceSans
  203. TPLoopNumber.Text = "1000"
  204. TPLoopNumber.TextColor3 = Color3.new(0, 0, 0)
  205. TPLoopNumber.TextSize = 18
  206. TPLoopNumber.TextWrapped = true
  207. TPLoopNumber.ZIndex = 7
  208.  
  209. LoopButton.Name = "LoopButton"
  210. LoopButton.Parent = MainFrame
  211. LoopButton.BackgroundColor3 = Color3.new(0.7, 0.7, 0.7)
  212. LoopButton.Position = UDim2.new(0, 65, 0, 200)
  213. LoopButton.Size = UDim2.new(0, 95, 0, 20)
  214. LoopButton.Font = Enum.Font.SourceSans
  215. LoopButton.Text = "LOOP"
  216. LoopButton.TextColor3 = Color3.new(0, 0, 0)
  217. LoopButton.TextSize = 18
  218. LoopButton.TextWrapped = true
  219. LoopButton.ZIndex = 7
  220.  
  221. Rebirth.Name = "Rebirth"
  222. Rebirth.Parent = MainFrame
  223. Rebirth.BackgroundColor3 = Color3.new(0.8, 0.8, 0.8)
  224. Rebirth.Position = UDim2.new(0, 10, 0, 230)
  225. Rebirth.Size = UDim2.new(0, 150, 0, 25)
  226. Rebirth.Font = Enum.Font.SourceSans
  227. Rebirth.Text = "AUTO REBIRTH: OFF"
  228. Rebirth.TextColor3 = Color3.new(0, 0, 0)
  229. Rebirth.TextSize = 18
  230. Rebirth.TextWrapped = true
  231.  
  232. TPCrates.Name = "TPCrates"
  233. TPCrates.Parent = MainFrame
  234. TPCrates.BackgroundColor3 = Color3.new(0.8, 0.8, 0.8)
  235. TPCrates.Position = UDim2.new(0, 10, 0, 265)
  236. TPCrates.Size = UDim2.new(0, 130, 0, 25)
  237. TPCrates.Font = Enum.Font.SourceSans
  238. TPCrates.Text = "TP TO CRATES: OFF"
  239. TPCrates.TextColor3 = Color3.new(0, 0, 0)
  240. TPCrates.TextSize = 18
  241. TPCrates.TextWrapped = true
  242.  
  243. CountTpCrates.Name = "CountTpCrates"
  244. CountTpCrates.Parent = MainFrame
  245. CountTpCrates.BackgroundColor3 = Color3.new(0.8, 0.8, 0.8)
  246. CountTpCrates.Position = UDim2.new(0, 140, 0, 265)
  247. CountTpCrates.Size = UDim2.new(0, 20, 0, 25)
  248. CountTpCrates.Font = Enum.Font.SourceSans
  249. CountTpCrates.Text = "0"
  250. CountTpCrates.TextColor3 = Color3.new(0, 0, 0)
  251. CountTpCrates.TextSize = 18
  252. CountTpCrates.TextWrapped = true
  253.  
  254. game.Lighting.Changed:connect(function()
  255. game.Lighting.TimeOfDay = "12:00:00"
  256. game.Lighting.FogEnd = 9999
  257. game.Lighting.Brightness = 1
  258. game.Lighting.ColorCorrection.Brightness = 0
  259. game.Lighting.ColorCorrection.Saturation = 0
  260. game.Lighting.Bloom.Intensity = 0
  261. end)
  262.  
  263. local function addtptool()
  264. local Tele = Instance.new("Tool", game.Players.LocalPlayer.Backpack)
  265. Tele.RequiresHandle = false
  266. Tele.RobloxLocked = true
  267. Tele.Name = "TP Tool"
  268. Tele.ToolTip = "Teleport Tool"
  269. Tele.Equipped:connect(function(Mouse)
  270. Mouse.Button1Down:connect(function()
  271. if Mouse.Target then
  272. game.Workspace:FindFirstChild(game.Players.LocalPlayer.Name).HumanoidRootPart.CFrame = (CFrame.new(Mouse.Hit.x, Mouse.Hit.y + 5, Mouse.Hit.z))
  273. end
  274. end)
  275. end)
  276. end
  277. addtptool()
  278.  
  279. function notify(msg)
  280. game.StarterGui:SetCore('SendNotification', {
  281. Title = 'Miner\'s Haven';
  282. Text = msg;
  283. Duration = 5;
  284. })
  285. end
  286.  
  287. CloseMH.MouseButton1Down:connect(function()
  288. MainGUI:Destroy()
  289. end)
  290.  
  291. SmallSetup.MouseEnter:connect(function()
  292. SmallSetupText.Visible = true
  293. end)
  294.  
  295. SmallSetup.MouseLeave:connect(function()
  296. SmallSetupText.Visible = false
  297. end)
  298.  
  299. MediumSetup.MouseEnter:connect(function()
  300. MediumSetupText.Visible = true
  301. end)
  302.  
  303. MediumSetup.MouseLeave:connect(function()
  304. MediumSetupText.Visible = false
  305. end)
  306.  
  307. BigSetup.MouseEnter:connect(function()
  308. BigSetupText.Visible = true
  309. end)
  310.  
  311. BigSetup.MouseLeave:connect(function()
  312. BigSetupText.Visible = false
  313. end)
  314.  
  315. CustomSetup.MouseEnter:connect(function()
  316. CustomSetupText.Visible = true
  317. end)
  318.  
  319. CustomSetup.MouseLeave:connect(function()
  320. CustomSetupText.Visible = false
  321. end)
  322.  
  323. spawn (function()
  324. while true do
  325. wait(0.1)
  326. if tpcratesactive == true then
  327. local player = game:GetService'Players'.LocalPlayer
  328. local children = game.Workspace:GetChildren()
  329. for i =1, #children do
  330. wait(0.1)
  331. if children[i] ~= nil then
  332. for x in string.gmatch(children[i].Name, "Crate") do
  333. if children[i].Parent then
  334. if children[i].Name ~= "GiftCrate" then
  335. player.Character:MoveTo(children[i].Position)
  336. wait(1)
  337. end
  338. end
  339. end
  340. end
  341. end
  342. local children = game.Workspace.Shadows:GetChildren()
  343. for i =1, #children do
  344. wait(0.1)
  345. if children[i] ~= nil then
  346. for x in string.gmatch(children[i].Name, "Crate") do
  347. if children[i].Parent then
  348. player.Character:MoveTo(children[i].Position)
  349. wait(1)
  350. end
  351. end
  352. end
  353. end
  354. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(LocationX, LocationY, LocationZ)
  355. end
  356. end
  357. end)
  358.  
  359. TPCrates.MouseButton1Down:connect(function()
  360. if tpcratesstarted == true then
  361. tpcratesstarted = false
  362. tpcratesactive = false
  363. TPCrates.Text = "TP TO CRATES: OFF"
  364. TPCrates.TextColor3 = Color3.new(0, 0, 0)
  365. else
  366. tpcratesstarted = true
  367. tpcratesactive = true
  368. TPCrates.Text = "TP TO CRATES: ON"
  369. TPCrates.TextColor3 = Color3.new(1, 0, 0)
  370. LocationX = game.Players.LocalPlayer.Character.HumanoidRootPart.Position.x
  371. LocationY = game.Players.LocalPlayer.Character.HumanoidRootPart.Position.y
  372. LocationZ = game.Players.LocalPlayer.Character.HumanoidRootPart.Position.z
  373. end
  374. end)
  375.  
  376. SmallSetup.MouseButton1Down:connect(function()
  377. if smallsetupactive ~= true then
  378. smallsetupactive = true
  379. rebirthactive = true
  380. bigsetupactive = false
  381. layoutempty = false
  382. SmallSetup.Text = "SMALL SETUP: ON"
  383. mediumsetupactive = false
  384. MediumSetup.Text = "MEDIUM SETUP: OFF"
  385. MediumSetup.TextColor3 = Color3.new(0, 0, 0)
  386. BigSetup.Text = "BIG SETUP: OFF"
  387. SmallSetup.TextColor3 = Color3.new(1, 0, 0)
  388. BigSetup.TextColor3 = Color3.new(0, 0, 0)
  389. customsetupactive = false
  390. setupinuse = false
  391. CustomSetup.Text = "CUSTOM SETUP: OFF"
  392. CustomSetup.TextColor3 = Color3.new(0, 0, 0)
  393. Rebirth.Text = "AUTO REBIRTH: ON"
  394. Rebirth.TextColor3 = Color3.new(1, 0, 0)
  395. print("Morning Star Loop (SMALL) setup started on " ..Factory.. ", sit back and relax")
  396.  
  397. loopsetupstart()
  398. else
  399. smallsetupactive = false
  400. rebirthactive = false
  401. setuptimeactive = false
  402. SmallSetup.Text = "SMALL SETUP: OFF"
  403. SmallSetup.TextColor3 = Color3.new(0, 0, 0)
  404. Rebirth.Text = "AUTO REBIRTH: OFF"
  405. Rebirth.TextColor3 = Color3.new(0, 0, 0)
  406. end
  407. end)
  408.  
  409. MediumSetup.MouseButton1Down:connect(function()
  410. if mediumsetupactive ~= true then
  411. mediumsetupactive = true
  412. rebirthactive = true
  413. smallsetupactive = false
  414. bigsetupactive = false
  415. layoutempty = false
  416. mediumsetupactive = true
  417. setupinuse = false
  418. MediumSetup.Text = "MEDIUM SETUP: ON"
  419. MediumSetup.TextColor3 = Color3.new(1, 0, 0)
  420. SmallSetup.Text = "SMALL SETUP: OFF"
  421. BigSetup.Text = "BIG SETUP: OFF"
  422. SmallSetup.TextColor3 = Color3.new(0, 0, 0)
  423. customsetupactive = false
  424. CustomSetup.Text = "CUSTOM SETUP: OFF"
  425. CustomSetup.TextColor3 = Color3.new(0, 0, 0)
  426. BigSetup.TextColor3 = Color3.new(0, 0, 0)
  427. Rebirth.Text = "AUTO REBIRTH: ON"
  428. Rebirth.TextColor3 = Color3.new(1, 0, 0)
  429. print("Neutron Star Loop (MEDIUM) setup started on " ..Factory.. ", sit back and relax")
  430.  
  431. loopsetupstart()
  432. else
  433. mediumsetupactive = false
  434. rebirthactive = false
  435. setuptimeactive = false
  436. MediumSetup.Text = "MEDIUM SETUP: OFF"
  437. MediumSetup.TextColor3 = Color3.new(0, 0, 0)
  438. Rebirth.Text = "AUTO REBIRTH: OFF"
  439. Rebirth.TextColor3 = Color3.new(0, 0, 0)
  440. end
  441. end)
  442.  
  443. BigSetup.MouseButton1Down:connect(function()
  444. if bigsetupactive ~= true then
  445. bigsetupactive = true
  446. rebirthactive = true
  447. smallsetupactive = false
  448. layoutempty = false
  449. mediumsetupactive = false
  450. setupinuse = false
  451. MediumSetup.Text = "MEDIUM SETUP: OFF"
  452. MediumSetup.TextColor3 = Color3.new(0, 0, 0)
  453. SmallSetup.Text = "SMALL SETUP: OFF"
  454. BigSetup.Text = "BIG SETUP: ON"
  455. SmallSetup.TextColor3 = Color3.new(0, 0, 0)
  456. BigSetup.TextColor3 = Color3.new(1, 0, 0)
  457. customsetupactive = false
  458. CustomSetup.Text = "CUSTOM SETUP: OFF"
  459. CustomSetup.TextColor3 = Color3.new(0, 0, 0)
  460. Rebirth.Text = "AUTO REBIRTH: ON"
  461. Rebirth.TextColor3 = Color3.new(1, 0, 0)
  462. print("Neutron Star Loop {BIG) setup started on " ..Factory.. ", sit back and relax")
  463.  
  464. loopsetupstart()
  465. else
  466. bigsetupactive = false
  467. rebirthactive = false
  468. setuptimeactive = false
  469. BigSetup.Text = "BIG SETUP: OFF"
  470. BigSetup.TextColor3 = Color3.new(0, 0, 0)
  471. Rebirth.Text = "AUTO REBIRTH: OFF"
  472. Rebirth.TextColor3 = Color3.new(0, 0, 0)
  473. end
  474. end)
  475.  
  476. CustomSetup.MouseButton1Down:connect(function()
  477. if customsetupactive ~= true then
  478. customsetupactive = true
  479. rebirthactive = true
  480. smallsetupactive = false
  481. layoutempty = false
  482. CustomSetup.Text = "CUSTOM SETUP: ON"
  483. CustomSetup.TextColor3 = Color3.new(1, 0, 0)
  484. mediumsetupactive = false
  485. setupinuse = false
  486. MediumSetup.Text = "MEDIUM SETUP: OFF"
  487. MediumSetup.TextColor3 = Color3.new(0, 0, 0)
  488. SmallSetup.Text = "SMALL SETUP: OFF"
  489. BigSetup.Text = "BIG SETUP: OFF"
  490. SmallSetup.TextColor3 = Color3.new(0, 0, 0)
  491. BigSetup.TextColor3 = Color3.new(0, 0, 0)
  492. Rebirth.Text = "AUTO REBIRTH: ON"
  493. Rebirth.TextColor3 = Color3.new(1, 0, 0)
  494. print("Custom setup started using Layouts1/2 on " ..Factory.. ", sit back and relax")
  495.  
  496. loopsetupstart()
  497. else
  498. customsetupactive = false
  499. CustomSetup.Text = "CUSTOM SETUP: OFF"
  500. CustomSetup.TextColor3 = Color3.new(0, 0, 0)
  501. rebirthactive = false
  502. setuptimeactive = false
  503. Rebirth.Text = "AUTO REBIRTH: OFF"
  504. Rebirth.TextColor3 = Color3.new(0, 0, 0)
  505. game.Players.LocalPlayer.PlayerGui.GUI.Menu.Menu.Sounds.Message.Volume = 0.5
  506. game.Players.LocalPlayer.PlayerGui.GUI.Notifications.Visible = true
  507. end
  508. end)
  509. Rebirth.MouseButton1Down:connect(function()
  510. if rebirthactive ~= true then
  511. rebirthactive = true
  512. Rebirth.Text = "AUTO REBIRTH: ON"
  513. Rebirth.TextColor3 = Color3.new(1, 0, 0)
  514. else
  515. rebirthactive = false
  516. Rebirth.Text = "AUTO REBIRTH: OFF"
  517. Rebirth.TextColor3 = Color3.new(0, 0, 0)
  518. end
  519. end)
  520.  
  521. spawn(function()
  522. while true do
  523. wait(0.01)
  524. if remoteclickactive == true then
  525. while remoteclickactive == true do
  526. game:GetService("ReplicatedStorage").RemoteDrop:FireServer()
  527. wait(0.2)
  528. end
  529. end
  530. end
  531. end)
  532.  
  533. spawn(function()
  534. while true do
  535. wait(0.01)
  536. if pulseclickactive == true then
  537. while pulseclickactive == true do
  538. game:GetService("ReplicatedStorage").Pulse:FireServer()
  539. wait(0.2)
  540. end
  541. end
  542. end
  543. end)
  544.  
  545. spawn(function()
  546. while true do
  547. wait(0.25)
  548. if upgraderclickactive == true then
  549. while upgraderclickactive == true do
  550. local ClickEvent = game:GetService("ReplicatedStorage"):WaitForChild('Click');
  551.  
  552. local CheckFactory = function()
  553. for i,v in pairs(workspace.Tycoons:GetChildren()) do
  554. if v:FindFirstChild('Owner') then
  555. if v.Owner.Value == game.Players.LocalPlayer.Name then
  556. return v
  557. end
  558. end
  559. end
  560. end
  561.  
  562. local Factory = tostring(CheckFactory())
  563. local basepart = workspace.Tycoons[Factory]:GetChildren()
  564.  
  565. for i,v in pairs(basepart) do
  566. if v.Name ~= "Ore Gate" then
  567. if v.Name ~= "Reversible Conveyor" then
  568. for _,desc in pairs(v:GetDescendants()) do
  569. if desc:IsA("ClickDetector") then
  570. if desc.Parent:IsA('Part') then
  571. ClickEvent:FireServer(desc.Parent)
  572. end
  573. end
  574. end
  575. end
  576. end
  577. end
  578. wait(0.2)
  579. end
  580. end
  581. end
  582. end)
  583.  
  584. spawn(function()
  585. while true do
  586. wait(0.01)
  587. if customsetupactive == true then setuptimeout = "600" else setuptimeout = "300" end
  588. if rebirthactive == true then
  589. rebirthcashvalue = game.Players.LocalPlayer.leaderstats.Cash.Value
  590. rebirthcashvalue1 = tostring(rebirthcashvalue)
  591. game:GetService'ReplicatedStorage'.Rebirth:InvokeServer()
  592. wait(5)
  593. if bigsetupactive == true or customsetupactive == true then wait(5) end
  594. rebirthilfe = game.Players.LocalPlayer.leaderstats.Life.Value
  595. rebirthilfe = tostring(rebirthilfe)
  596.  
  597. factoryitems = workspace.Tycoons[tostring(game.Players.LocalPlayer.PlayerTycoon.Value)]:GetChildren()
  598. for i =1, #factoryitems do
  599. if factoryitems[i].ClassName == "Model" then
  600. layoutempty = false
  601. break
  602. end
  603. layoutempty = true
  604. end
  605. --if layoutempty == true then print("base empty") else print("base not empty") end--
  606.  
  607. if layoutempty == true then
  608. if game.Players.LocalPlayer.MinesActivated.Value ~= true then
  609. game:GetService("ReplicatedStorage").ToggleMines:InvokeServer()
  610. -- print("Turning mines back ON") --
  611. end
  612. if smallsetupactive == true or mediumsetupactive == true or bigsetupactive == true or customsetupactive == true then
  613. if setupinuse == true then
  614. print("ReBirthed to ".. rebirthilfe .. " Life at ".. rebirthcashvalue1)
  615. wait(0.5)
  616. loopsetupstart()
  617. end
  618. end
  619. end
  620. if setuptimeactive == true then
  621. if smallsetupactive == true or mediumsetupactive == true then
  622. setuptime = setuptime + 5
  623. end
  624. if bigsetupactive == true or customsetupactive == true then
  625. setuptime = setuptime + 10
  626. end
  627. if tonumber(setuptime) >= tonumber(setuptimeout) then
  628. print("Something went wrong with Setup or Ore. Restarting..")
  629. if smallsetupactive == true then
  630. smallsetupactive = false
  631. wait(1)
  632. smallsetupactive = true
  633. loopsetupstart()
  634. end
  635. if mediumsetupactive == true then
  636. mediumsetupactive = false
  637. wait(1)
  638. mediumsetupactive = true
  639. loopsetupstart()
  640. end
  641. if bigsetupactive == true then
  642. bigsetupactive = false
  643. wait(1)
  644. bigsetupactive = true
  645. loopsetupstart()
  646. end
  647. if customsetupactive == true then
  648. customsetupactive = false
  649. wait(1)
  650. customsetupactive = true
  651. loopsetupstart()
  652. end
  653. end
  654. end
  655. end
  656. end
  657. end)
  658.  
  659. function loopsetupstart()
  660. setupinuse = false
  661. remoteclickactive = false
  662. upgraderclickactive = false
  663. setuptimeactive = true
  664. setuptime = 0
  665. if game.Players.LocalPlayer.MinesActivated.Value ~= true then
  666. game:GetService("ReplicatedStorage").ToggleMines:InvokeServer()
  667. -- print("Turning mines back ON") --
  668. end
  669. if layoutempty ~= true then
  670. game:GetService("ReplicatedStorage").DestroyAll:InvokeServer()
  671. wait(2)
  672. end
  673. setupinuse = true
  674.  
  675. if tpcratesstarted == true then
  676. tpcratesactive = false
  677. wait(2)
  678. end
  679. if customsetupactive == true then
  680. game.Players.LocalPlayer.PlayerGui.GUI.Notifications.Visible = false
  681. game.Players.LocalPlayer.PlayerGui.GUI.Menu.Menu.Sounds.Message.Volume = 0
  682. game:GetService("ReplicatedStorage").Layouts:InvokeServer("Load", "Layout1")
  683. else
  684. if defaultdropper == "symmetrium" then
  685. local Tycoon = workspace.Tycoons:FindFirstChild(tostring(game.Players.LocalPlayer.PlayerTycoon.Value))
  686. local Event = game:GetService("ReplicatedStorage").PlaceItem
  687. local A_1 = CFrame.new(-15, 6.5, 67.4999847, 0.000140138043, 1.86660731e-09, 1, -4.3159529e-05, 1, 4.18168433e-09, -1, -4.3159529e-05, 0.000140138043) + Tycoon:FindFirstChild("Base").Position
  688. Event:InvokeServer("Symmetrium Mine", A_1)
  689.  
  690. layoutempty = false
  691.  
  692. local A_1 = CFrame.new(-18, 5, 53.9999847, -1, 3.05171125e-05, 3.05180438e-05, 3.05180438e-05, 1, 3.05171125e-05, -3.05171125e-05, 3.05180438e-05, -1) + Tycoon:FindFirstChild("Base").Position
  693. Event:InvokeServer("Nature's Grip", A_1)
  694.  
  695. end
  696.  
  697. if defaultdropper == "symmetryte" then
  698. local Tycoon = workspace.Tycoons:FindFirstChild(tostring(game.Players.LocalPlayer.PlayerTycoon.Value))
  699. local Event = game:GetService("ReplicatedStorage").PlaceItem
  700. local A_1 = CFrame.new(-15, 6.5, 69, 5.34659193e-05, 9.31346444e-10, 1, -4.31585977e-05, 1, 1.37616774e-09, -1, -4.31585977e-05, 5.34659193e-05) + Tycoon:FindFirstChild("Base").Position
  701. Event:InvokeServer("Symmetryte Mine", A_1)
  702.  
  703. layoutempty = false
  704.  
  705. local A_1 = CFrame.new(-18, 5, 50.9999847, -1, 3.05171125e-05, 3.05180438e-05, 3.05180438e-05, 1, 3.05171125e-05, -3.05171125e-05, 3.05180438e-05, -1) + Tycoon:FindFirstChild("Base").Position
  706. Event:InvokeServer("Nature's Grip", A_1)
  707.  
  708. end
  709. end
  710.  
  711. if tpcratesstarted == true then
  712. tpcratesactive = true
  713. end
  714.  
  715. wait(4)
  716.  
  717. game.ReplicatedStorage.BuyItem:InvokeServer('Basic Conveyor', 99)
  718. wait(0.5)
  719. game.ReplicatedStorage.BuyItem:InvokeServer('Raised Shielded Conveyor', 99)
  720. wait(0.5)
  721. game.ReplicatedStorage.BuyItem:InvokeServer('Centering Conveyor', 40)
  722. wait(0.5)
  723. game.ReplicatedStorage.BuyItem:InvokeServer('Conveyor Wall', 40)
  724. wait(0.5)
  725. game.ReplicatedStorage.BuyItem:InvokeServer('Military-Grade Conveyor', 90)
  726. wait(0.5)
  727. game.ReplicatedStorage.BuyItem:InvokeServer('Pink Teleporter (Receiver)', 1)
  728. wait(0.5)
  729. game.ReplicatedStorage.BuyItem:InvokeServer('Pink Teleporter (Sender)', 4)
  730. wait(0.5)
  731. game.ReplicatedStorage.BuyItem:InvokeServer('Ore Replicator', 2)
  732. wait(0.5)
  733. game.ReplicatedStorage.BuyItem:InvokeServer('Shrine of Penitence', 1)
  734. wait(0.5)
  735.  
  736. if customsetupactive == true then
  737. game.ReplicatedStorage.BuyItem:InvokeServer('Raised Mini Conveyor', 99)
  738. wait(0.5)
  739. game.ReplicatedStorage.BuyItem:InvokeServer('Conveyor Converter', 10)
  740. wait(0.5)
  741. game.ReplicatedStorage.BuyItem:InvokeServer('Basic Conveyor', 99)
  742. wait(0.5)
  743. game.ReplicatedStorage.BuyItem:InvokeServer('Ore Teleporter (Receiver)', 1)
  744. wait(0.5)
  745. game.ReplicatedStorage.BuyItem:InvokeServer('Ore Teleporter (Sender)', 4)
  746. wait(0.5)
  747. game.ReplicatedStorage.BuyItem:InvokeServer('Raised Mini Conveyor', 99)
  748. wait(0.5)
  749. game.ReplicatedStorage.BuyItem:InvokeServer('Walled Conveyor', 99)
  750. wait(0.5)
  751. game.ReplicatedStorage.BuyItem:InvokeServer('Raised-ier Conveyor', 99)
  752. wait(0.5)
  753. game.ReplicatedStorage.BuyItem:InvokeServer('Steel Wall', 20)
  754. wait(0.5)
  755. game.ReplicatedStorage.BuyItem:InvokeServer('Metal Wall Segment', 30)
  756. wait(0.5)
  757. game.ReplicatedStorage.BuyItem:InvokeServer('Slanted Wall', 20)
  758. wait(0.5)
  759. game.ReplicatedStorage.BuyItem:InvokeServer('Controlled Gate', 99)
  760. wait(0.5)
  761. game.ReplicatedStorage.BuyItem:InvokeServer('Ore Cannon', 2)
  762. wait(0.5)
  763. game.ReplicatedStorage.BuyItem:InvokeServer('Ore Pulsar', 1)
  764. wait(0.5)
  765. game.ReplicatedStorage.BuyItem:InvokeServer('Satellite Beam', 1)
  766. wait(0.5)
  767. game.ReplicatedStorage.BuyItem:InvokeServer('Spectral Upgrader', 3)
  768. wait(0.5)
  769. game.ReplicatedStorage.BuyItem:InvokeServer('Flaming Ore Scanner', 3)
  770. wait(0.5)
  771. game.ReplicatedStorage.BuyItem:InvokeServer('Endpoint Refiner', 1)
  772. wait(0.5)
  773. game.ReplicatedStorage.BuyItem:InvokeServer('Ore Elevator', 3)
  774. wait(0.5)
  775. game.ReplicatedStorage.BuyItem:InvokeServer('Ore Hoister', 3)
  776. wait(0.5)
  777. game.ReplicatedStorage.BuyItem:InvokeServer('Ore Winder', 3)
  778. wait(0.5)
  779. game.ReplicatedStorage.BuyItem:InvokeServer('Ore Steamer', 4)
  780. wait(0.5)
  781. game.ReplicatedStorage.BuyItem:InvokeServer('Portable Ore Advancer', 30)
  782. wait(0.5)
  783. game.ReplicatedStorage.BuyItem:InvokeServer('Portable Ore Stopper', 30)
  784. wait(0.5)
  785. game.ReplicatedStorage.BuyItem:InvokeServer('Industrial Ore Welder', 4)
  786. wait(0.5)
  787. game.ReplicatedStorage.BuyItem:InvokeServer('Nuclear Conveyor', 20)
  788. wait(0.5)
  789. game.ReplicatedStorage.BuyItem:InvokeServer('Freon-Blast Upgrader', 2)
  790. wait(0.5)
  791. game.ReplicatedStorage.BuyItem:InvokeServer('Plasma Conveyor', 30)
  792. wait(0.5)
  793. game.ReplicatedStorage.BuyItem:InvokeServer('Tiny Conveyor', 40)
  794. wait(0.5)
  795. game.ReplicatedStorage.BuyItem:InvokeServer('Ladder', 99)
  796. wait(0.5)
  797. game.ReplicatedStorage.BuyItem:InvokeServer('Advanced Ore Scanner', 3)
  798. wait(0.5)
  799. game.ReplicatedStorage.BuyItem:InvokeServer('Heat Condenser', 4)
  800. wait(0.5)
  801. game.ReplicatedStorage.BuyItem:InvokeServer('Ore Roaster', 3)
  802. wait(0.5)
  803. game.ReplicatedStorage.BuyItem:InvokeServer('Overhang Upgrader', 3)
  804. wait(0.5)
  805. game.ReplicatedStorage.BuyItem:InvokeServer('Overhang Upgrader', 3)
  806. wait(0.5)
  807. game.ReplicatedStorage.BuyItem:InvokeServer('Ore Zapper', 3)
  808. wait(0.5)
  809. game.ReplicatedStorage.BuyItem:InvokeServer('Ore Collider', 2)
  810. wait(0.5)
  811. game.ReplicatedStorage.BuyItem:InvokeServer('Ore Illuminator', 1)
  812. wait(0.5)
  813. game.ReplicatedStorage.BuyItem:InvokeServer('Ore Gate', 4)
  814. wait(0.5)
  815. game.ReplicatedStorage.BuyItem:InvokeServer('Large Conveyor Ramp', 15)
  816. wait(0.5)
  817. game.ReplicatedStorage.BuyItem:InvokeServer('Conveyor Ramp', 99)
  818. wait(0.5)
  819. game.ReplicatedStorage.BuyItem:InvokeServer('Fine-Point Upgrader', 4)
  820. wait(0.5)
  821. game.ReplicatedStorage.BuyItem:InvokeServer('Ore Recliner', 5)
  822. wait(0.5)
  823. game.ReplicatedStorage.BuyItem:InvokeServer('Ore Zapper', 4)
  824. wait(0.5)
  825. game.ReplicatedStorage.BuyItem:InvokeServer('Portable Ore Stopper', 30)
  826. wait(0.5)
  827. game.ReplicatedStorage.BuyItem:InvokeServer('Orbitable Upgrader', 3)
  828. wait(0.5)
  829. game.ReplicatedStorage.BuyItem:InvokeServer('Coal Mine', 15)
  830. wait(0.5)
  831. game.ReplicatedStorage.BuyItem:InvokeServer('Plasma Iron Polisher', 3)
  832. wait(0.5)
  833. game.ReplicatedStorage.BuyItem:InvokeServer('Ion Field', 1)
  834. wait(0.5)
  835. game.ReplicatedStorage.BuyItem:InvokeServer('Way-Up-High Upgrader', 3)
  836. wait(0.5)
  837. game.ReplicatedStorage.BuyItem:InvokeServer('Precision Refiner', 1)
  838. wait(0.5)
  839. game.ReplicatedStorage.BuyItem:InvokeServer('Drone Upgrader', 2)
  840. wait(0.5)
  841. game.ReplicatedStorage.BuyItem:InvokeServer('Flaming Ore Scanner', 2)
  842. wait(0.5)
  843. game.ReplicatedStorage.BuyItem:InvokeServer('Half Conveyor', 6)
  844. wait(0.5)
  845. end
  846.  
  847. wait(4)
  848. loopsetupstart2()
  849. end
  850.  
  851. function loopsetupstart2()
  852. setupinuse = false
  853. if smallsetupactive == true or mediumsetupactive == true or bigsetupactive == true or customsetupactive == true then
  854.  
  855. game:GetService("ReplicatedStorage").DestroyAll:InvokeServer()
  856. wait(2)
  857.  
  858. if game.Players.LocalPlayer.MinesActivated.Value ~= true then
  859. game:GetService("ReplicatedStorage").ToggleMines:InvokeServer()
  860. -- print("Turning mines back ON") --
  861. end
  862.  
  863. if tpcratesstarted == true then
  864. tpcratesactive = false
  865. wait(2)
  866. end
  867.  
  868. if customsetupactive == true then
  869. game.Players.LocalPlayer.PlayerGui.GUI.Notifications.Visible = false
  870. game.Players.LocalPlayer.PlayerGui.GUI.Menu.Menu.Sounds.Message.Volume = 0
  871. game:GetService("ReplicatedStorage").Layouts:InvokeServer("Load", "Layout2")
  872. starloopend()
  873. else
  874. if defaultdropper == "symmetrium" then
  875. local Tycoon = workspace.Tycoons:FindFirstChild(tostring(game.Players.LocalPlayer.PlayerTycoon.Value))
  876. local Event = game:GetService("ReplicatedStorage").PlaceItem
  877. local A_1 = CFrame.new(78, 6.5, 76.5, 0.000140138043, 1.86660731e-09, 1, -4.3159529e-05, 1, 4.18168433e-09, -1, -4.3159529e-05, 0.000140138043) + Tycoon:FindFirstChild("Base").Position
  878. Event:InvokeServer("Symmetrium Mine", A_1)
  879.  
  880. local A_1 = CFrame.new(66, 6.5, 76.5, 0.000140138043, 1.86660731e-09, 1, -4.3159529e-05, 1, 4.18168433e-09, -1, -4.3159529e-05, 0.000140138043) + Tycoon:FindFirstChild("Base").Position
  881. Event:InvokeServer("Symmetrium Mine", A_1)
  882.  
  883. local A_1 = CFrame.new(79.5, 5, 55.5, -3.26636873e-05, 4.31581502e-05, -1, 9.29513355e-10, 1, 4.31581502e-05, 1, 4.80190998e-10, -3.26636873e-05) + Tycoon:FindFirstChild("Base").Position
  884. Event:InvokeServer("Ore Replicator", A_1)
  885.  
  886. local A_1 = CFrame.new(67.5, 5, 55.5, -3.26636873e-05, 4.31581502e-05, -1, 9.29513355e-10, 1, 4.31581502e-05, 1, 4.80190998e-10, -3.26636873e-05) + Tycoon:FindFirstChild("Base").Position
  887. Event:InvokeServer("Ore Replicator", A_1)
  888.  
  889. local A_1 = CFrame.new(81, 2, 61.5, -3.26636873e-05, 4.31581502e-05, -1, 9.29513355e-10, 1, 4.31581502e-05, 1, 4.80190998e-10, -3.26636873e-05) + Tycoon:FindFirstChild("Base").Position
  890. Event:InvokeServer("Raised Shielded Conveyor", A_1)
  891.  
  892. local A_1 = CFrame.new(75, 2, 61.5, -3.26636873e-05, 4.31581502e-05, -1, 9.29513355e-10, 1, 4.31581502e-05, 1, 4.80190998e-10, -3.26636873e-05) + Tycoon:FindFirstChild("Base").Position
  893. Event:InvokeServer("Raised Shielded Conveyor", A_1)
  894.  
  895. local A_1 = CFrame.new(69, 2, 61.5, -3.26636873e-05, 4.31581502e-05, -1, 9.29513355e-10, 1, 4.31581502e-05, 1, 4.80190998e-10, -3.26636873e-05) + Tycoon:FindFirstChild("Base").Position
  896. Event:InvokeServer("Raised Shielded Conveyor", A_1)
  897.  
  898. local A_1 = CFrame.new(63, 2, 61.5, -3.26636873e-05, 4.31581502e-05, -1, 9.29513355e-10, 1, 4.31581502e-05, 1, 4.80190998e-10, -3.26636873e-05) + Tycoon:FindFirstChild("Base").Position
  899. Event:InvokeServer("Raised Shielded Conveyor", A_1)
  900.  
  901. local A_1 = CFrame.new(57, 2, 60, -3.26636873e-05, 4.31581502e-05, -1, 9.29513355e-10, 1, 4.31581502e-05, 1, 4.80190998e-10, -3.26636873e-05) + Tycoon:FindFirstChild("Base").Position
  902. Event:InvokeServer("Basic Conveyor", A_1)
  903.  
  904. local A_1 = CFrame.new(51, 2, 60, 1, 3.05180438e-05, -3.05171125e-05, -3.05171125e-05, 1, 3.05180438e-05, 3.05180438e-05, -3.05171125e-05, 1) + Tycoon:FindFirstChild("Base").Position
  905. Event:InvokeServer("Basic Conveyor", A_1)
  906.  
  907. local A_1 = CFrame.new(51, 2, 66, 0.000140138043, 1.86660731e-09, 1, -4.3159529e-05, 1, 4.18168433e-09, -1, -4.3159529e-05, 0.000140138043) + Tycoon:FindFirstChild("Base").Position
  908. Event:InvokeServer("Basic Conveyor", A_1)
  909.  
  910. local A_1 = CFrame.new(57, 2, 66, -1, 3.05171125e-05, 3.05180438e-05, 3.05180438e-05, 1, 3.05171125e-05, -3.05171125e-05, 3.05180438e-05, -1) + Tycoon:FindFirstChild("Base").Position
  911. Event:InvokeServer("Basic Conveyor", A_1)
  912. end
  913. if defaultdropper == "symmetryte" then
  914. local Tycoon = workspace.Tycoons:FindFirstChild(tostring(game.Players.LocalPlayer.PlayerTycoon.Value))
  915. local Event = game:GetService("ReplicatedStorage").PlaceItem
  916. local A_1 = CFrame.new(75, 6.5, 72, 5.34659193e-05, 9.31346444e-10, 1, -4.31585977e-05, 1, 1.37616774e-09, -1, -4.31585977e-05, 5.34659193e-05) + Tycoon:FindFirstChild("Base").Position
  917. Event:InvokeServer("Symmetryte Mine", A_1)
  918.  
  919. local A_1 = CFrame.new(78, 2, 57, -1, 3.05171125e-05, 3.05180438e-05, 3.05180438e-05, 1, 3.05171125e-05, -3.05171125e-05, 3.05180438e-05, -1) + Tycoon:FindFirstChild("Base").Position
  920. Event:InvokeServer("Basic Conveyor", A_1)
  921.  
  922. local A_1 = CFrame.new(78, 2, 51, -3.26636873e-05, 4.31581502e-05, -1, 9.29513355e-10, 1, 4.31581502e-05, 1, 4.80190998e-10, -3.26636873e-05) + Tycoon:FindFirstChild("Base").Position
  923. Event:InvokeServer("Basic Conveyor", A_1)
  924.  
  925. local A_1 = CFrame.new(72, 2, 51, 1, 3.05180438e-05, -3.05171125e-05, -3.05171125e-05, 1, 3.05180438e-05, 3.05180438e-05, -3.05171125e-05, 1) + Tycoon:FindFirstChild("Base").Position
  926. Event:InvokeServer("Basic Conveyor", A_1)
  927.  
  928. local A_1 = CFrame.new(72, 2, 57, 0.000140138043, 1.86660731e-09, 1, -4.3159529e-05, 1, 4.18168433e-09, -1, -4.3159529e-05, 0.000140138043) + Tycoon:FindFirstChild("Base").Position
  929. Event:InvokeServer("Basic Conveyor", A_1)
  930. end
  931. if smallsetupactive == true then
  932. morningstarloop()
  933. end
  934. if mediumsetupactive == true then
  935. neutronstarloop1()
  936. end
  937. if bigsetupactive == true then
  938. neutronstarloop2()
  939. end
  940. end
  941. end
  942. end
  943.  
  944. function morningstarloop()
  945. tptarget = "Morning Star"
  946.  
  947. local Tycoon = workspace.Tycoons:FindFirstChild(tostring(game.Players.LocalPlayer.PlayerTycoon.Value))
  948. local Event = game:GetService("ReplicatedStorage").PlaceItem
  949. local A_1 = CFrame.new(27, 6.5, 62.9999847, 1, 3.05180438e-05, -3.05171125e-05, -3.05171125e-05, 1, 3.05180438e-05, 3.05180438e-05, -3.05171125e-05, 1) + Tycoon:FindFirstChild("Base").Position
  950. Event:InvokeServer("Morning Star", A_1)
  951.  
  952. local A_1 = CFrame.new(27, 2, 54, -1, 3.05171125e-05, 3.05180438e-05, 3.05180438e-05, 1, 3.05171125e-05, -3.05171125e-05, 3.05180438e-05, -1) + Tycoon:FindFirstChild("Base").Position
  953. Event:InvokeServer("Military-Grade Conveyor", A_1)
  954.  
  955. local A_1 = CFrame.new(27, 2, 48, -1, 3.05171125e-05, 3.05180438e-05, 3.05180438e-05, 1, 3.05171125e-05, -3.05171125e-05, 3.05180438e-05, -1) + Tycoon:FindFirstChild("Base").Position
  956. Event:InvokeServer("Military-Grade Conveyor", A_1)
  957.  
  958. local A_1 = CFrame.new(27, 5, 39, 5.34659193e-05, 9.31346444e-10, 1, -4.31585977e-05, 1, 1.37616774e-09, -1, -4.31585977e-05, 5.34659193e-05) + Tycoon:FindFirstChild("Base").Position
  959. Event:InvokeServer("Shrine of Penitence", A_1)
  960.  
  961. starloopend()
  962. end
  963.  
  964. function neutronstarloop1()
  965. tptarget = "Neutron Star"
  966.  
  967. local Tycoon = workspace.Tycoons:FindFirstChild(tostring(game.Players.LocalPlayer.PlayerTycoon.Value))
  968. local Event = game:GetService("ReplicatedStorage").PlaceItem
  969. local A_1 = CFrame.new(21, 6.5, 78, 1, 3.05180438e-05, -3.05171125e-05, -3.05171125e-05, 1, 3.05180438e-05, 3.05180438e-05, -3.05171125e-05, 1) + Tycoon:FindFirstChild("Base").Position
  970. Event:InvokeServer("Neutron Star", A_1)
  971.  
  972. local A_1 = CFrame.new(21, 2, 69, -1, 3.05171125e-05, 3.05180438e-05, 3.05180438e-05, 1, 3.05171125e-05, -3.05171125e-05, 3.05180438e-05, -1) + Tycoon:FindFirstChild("Base").Position
  973. Event:InvokeServer("Military-Grade Conveyor", A_1)
  974.  
  975. local A_1 = CFrame.new(21, 2, 63, -1, 3.05171125e-05, 3.05180438e-05, 3.05180438e-05, 1, 3.05171125e-05, -3.05171125e-05, 3.05180438e-05, -1) + Tycoon:FindFirstChild("Base").Position
  976. Event:InvokeServer("Military-Grade Conveyor", A_1)
  977.  
  978. local A_1 = CFrame.new(21, 5, 54, 5.34659193e-05, 9.31346444e-10, 1, -4.31585977e-05, 1, 1.37616774e-09, -1, -4.31585977e-05, 5.34659193e-05) + Tycoon:FindFirstChild("Base").Position
  979. Event:InvokeServer("Shrine of Penitence", A_1)
  980.  
  981. starloopend()
  982. end
  983.  
  984. function neutronstarloop2()
  985. tptarget = "Neutron Star"
  986.  
  987. local Tycoon = workspace.Tycoons:FindFirstChild(tostring(game.Players.LocalPlayer.PlayerTycoon.Value))
  988. local Event = game:GetService("ReplicatedStorage").PlaceItem
  989. local A_1 = CFrame.new(21, 6.5, 78, 1, 3.05180438e-05, -3.05171125e-05, -3.05171125e-05, 1, 3.05180438e-05, 3.05180438e-05, -3.05171125e-05, 1) + Tycoon:FindFirstChild("Base").Position
  990. Event:InvokeServer("Neutron Star", A_1)
  991.  
  992. local A_1 = CFrame.new(20.999939, 2, 69, -1, 3.05171125e-05, 3.05180438e-05, 3.05180438e-05, 1, 3.05171125e-05, -3.05171125e-05, 3.05180438e-05, -1) + Tycoon:FindFirstChild("Base").Position
  993. Event:InvokeServer("Centering Conveyor", A_1)
  994.  
  995. local A_1 = CFrame.new(21, 2, 63, -1, 3.05171125e-05, 3.05180438e-05, 3.05180438e-05, 1, 3.05171125e-05, -3.05171125e-05, 3.05180438e-05, -1) + Tycoon:FindFirstChild("Base").Position
  996. Event:InvokeServer("Centering Conveyor", A_1)
  997.  
  998. local A_1 = CFrame.new(25.500061, 1.89996338, 69, 1, 3.05180438e-05, -3.05171125e-05, -3.05171125e-05, 1, 3.05180438e-05, 3.05180438e-05, -3.05171125e-05, 1) + Tycoon:FindFirstChild("Base").Position
  999. Event:InvokeServer("Conveyor Wall", A_1)
  1000.  
  1001. local A_1 = CFrame.new(16.499939, 1.89996338, 69, -1, 3.05171125e-05, 3.05180438e-05, 3.05180438e-05, 1, 3.05171125e-05, -3.05171125e-05, 3.05180438e-05, -1) + Tycoon:FindFirstChild("Base").Position
  1002. Event:InvokeServer("Conveyor Wall", A_1)
  1003.  
  1004. local A_1 = CFrame.new(25.500061, 1.89996338, 63, 1, 3.05180438e-05, -3.05171125e-05, -3.05171125e-05, 1, 3.05180438e-05, 3.05180438e-05, -3.05171125e-05, 1) + Tycoon:FindFirstChild("Base").Position
  1005. Event:InvokeServer("Conveyor Wall", A_1)
  1006.  
  1007. local A_1 = CFrame.new(16.499939, 1.89996338, 63, -1, 3.05171125e-05, 3.05180438e-05, 3.05180438e-05, 1, 3.05171125e-05, -3.05171125e-05, 3.05180438e-05, -1) + Tycoon:FindFirstChild("Base").Position
  1008. Event:InvokeServer("Conveyor Wall", A_1)
  1009.  
  1010. local A_1 = CFrame.new(21, 3.5, 54, -1, 3.05171125e-05, 3.05180438e-05, 3.05180438e-05, 1, 3.05171125e-05, -3.05171125e-05, 3.05180438e-05, -1) + Tycoon:FindFirstChild("Base").Position
  1011. Event:InvokeServer("Quantum Clockwork", A_1)
  1012.  
  1013. local A_1 = CFrame.new(21, 5, 39, -1, 3.05171125e-05, 3.05180438e-05, 3.05180438e-05, 1, 3.05171125e-05, -3.05171125e-05, 3.05180438e-05, -1) + Tycoon:FindFirstChild("Base").Position
  1014. Event:InvokeServer("True Overlord Device", A_1)
  1015.  
  1016. local A_1 = CFrame.new(20.9999695, 8, 19.5, -1, 3.05171125e-05, 3.05180438e-05, 3.05180438e-05, 1, 3.05171125e-05, -3.05171125e-05, 3.05180438e-05, -1) + Tycoon:FindFirstChild("Base").Position
  1017. Event:InvokeServer("Saturated Catalyst", A_1)
  1018.  
  1019. local A_1 = CFrame.new(21, 8, -6.10351563e-05, -1, 3.05171125e-05, 3.05180438e-05, 3.05180438e-05, 1, 3.05171125e-05, -3.05171125e-05, 3.05180438e-05, -1) + Tycoon:FindFirstChild("Base").Position
  1020. Event:InvokeServer("Azure Spore", A_1)
  1021.  
  1022. local A_1 = CFrame.new(21.0000305, 3.5, -16.5, -1, 3.05171125e-05, 3.05180438e-05, 3.05180438e-05, 1, 3.05171125e-05, -3.05171125e-05, 3.05180438e-05, -1) + Tycoon:FindFirstChild("Base").Position
  1023. Event:InvokeServer("Quantum Ore Polisher", A_1)
  1024.  
  1025. local A_1 = CFrame.new(21, 5, -31.5, 1, 3.05180438e-05, -3.05171125e-05, -3.05171125e-05, 1, 3.05180438e-05, 3.05180438e-05, -3.05171125e-05, 1) + Tycoon:FindFirstChild("Base").Position
  1026. Event:InvokeServer("Tesla Refuter", A_1)
  1027.  
  1028. local A_1 = CFrame.new(21, 3.5, -45, -1, 3.05171125e-05, 3.05180438e-05, 3.05180438e-05, 1, 3.05171125e-05, -3.05171125e-05, 3.05180438e-05, -1) + Tycoon:FindFirstChild("Base").Position
  1029. Event:InvokeServer("Quantum Clockwork", A_1)
  1030.  
  1031. local A_1 = CFrame.new(21, 5, -59.9999695, -1, 3.05171125e-05, 3.05180438e-05, 3.05180438e-05, 1, 3.05171125e-05, -3.05171125e-05, 3.05180438e-05, -1) + Tycoon:FindFirstChild("Base").Position
  1032. Event:InvokeServer("True Overlord Device", A_1)
  1033.  
  1034. local A_1 = CFrame.new(21, 3.5, -72, -1, 3.05171125e-05, 3.05180438e-05, 3.05180438e-05, 1, 3.05171125e-05, -3.05171125e-05, 3.05180438e-05, -1) + Tycoon:FindFirstChild("Base").Position
  1035. Event:InvokeServer("Pink Teleporter (Sender)", A_1)
  1036.  
  1037. local A_1 = CFrame.new(-19.5, 3.5, -75, 1, 3.05180438e-05, -3.05171125e-05, -3.05171125e-05, 1, 3.05180438e-05, 3.05180438e-05, -3.05171125e-05, 1) + Tycoon:FindFirstChild("Base").Position
  1038. Event:InvokeServer("Pink Teleporter (Receiver)", A_1)
  1039.  
  1040. local A_1 = CFrame.new(-21, 2.00006104, -66, 0.000226440417, 4.66035299e-09, 1, -4.31585977e-05, 1, 5.11249842e-09, -1, -4.31585977e-05, 0.000226440417) + Tycoon:FindFirstChild("Base").Position
  1041. Event:InvokeServer("Basic Conveyor", A_1)
  1042.  
  1043. local A_1 = CFrame.new(-15, 2, -66, 1, 3.05180438e-05, -3.05171125e-05, -3.05171125e-05, 1, 3.05180438e-05, 3.05180438e-05, -3.05171125e-05, 1) + Tycoon:FindFirstChild("Base").Position
  1044. Event:InvokeServer("Centering Conveyor", A_1)
  1045.  
  1046. local A_1 = CFrame.new(-10.5, 1.90002441, -66, 1, 3.05180438e-05, -3.05171125e-05, -3.05171125e-05, 1, 3.05180438e-05, 3.05180438e-05, -3.05171125e-05, 1) + Tycoon:FindFirstChild("Base").Position
  1047. Event:InvokeServer("Conveyor Wall", A_1)
  1048.  
  1049. local A_1 = CFrame.new(-25.5, 1.89996338, -66, -1, 3.05171125e-05, 3.05180438e-05, 3.05180438e-05, 1, 3.05171125e-05, -3.05171125e-05, 3.05180438e-05, -1) + Tycoon:FindFirstChild("Base").Position
  1050. Event:InvokeServer("Conveyor Wall", A_1)
  1051.  
  1052. local A_1 = CFrame.new(-16.5, 5, -52.5, 1, 3.05180438e-05, -3.05171125e-05, -3.05171125e-05, 1, 3.05180438e-05, 3.05180438e-05, -3.05171125e-05, 1) + Tycoon:FindFirstChild("Base").Position
  1053. Event:InvokeServer("The Final Upgrader", A_1)
  1054.  
  1055. local A_1 = CFrame.new(-15, 2, -39, 1, 3.05180438e-05, -3.05171125e-05, -3.05171125e-05, 1, 3.05180438e-05, 3.05180438e-05, -3.05171125e-05, 1) + Tycoon:FindFirstChild("Base").Position
  1056. Event:InvokeServer("Centering Conveyor", A_1)
  1057.  
  1058. local A_1 = CFrame.new(-21, 2.00006104, -39, 0.000140138043, 1.86660731e-09, 1, -4.3159529e-05, 1, 4.18168433e-09, -1, -4.3159529e-05, 0.000140138043) + Tycoon:FindFirstChild("Base").Position
  1059. Event:InvokeServer("Basic Conveyor", A_1)
  1060.  
  1061. local A_1 = CFrame.new(-25.5, 1.90002441, -39, -1, 3.05171125e-05, 3.05180438e-05, 3.05180438e-05, 1, 3.05171125e-05, -3.05171125e-05, 3.05180438e-05, -1) + Tycoon:FindFirstChild("Base").Position
  1062. Event:InvokeServer("Conveyor Wall", A_1)
  1063.  
  1064. local A_1 = CFrame.new(-10.5, 1.90002441, -39, 1, 3.05180438e-05, -3.05171125e-05, -3.05171125e-05, 1, 3.05180438e-05, 3.05180438e-05, -3.05171125e-05, 1) + Tycoon:FindFirstChild("Base").Position
  1065. Event:InvokeServer("Conveyor Wall", A_1)
  1066.  
  1067. local A_1 = CFrame.new(-15, 5, -27, 1, 3.05180438e-05, -3.05171125e-05, -3.05171125e-05, 1, 3.05180438e-05, 3.05180438e-05, -3.05171125e-05, 1) + Tycoon:FindFirstChild("Base").Position
  1068. Event:InvokeServer("True Overlord Device", A_1)
  1069.  
  1070. local A_1 = CFrame.new(-15, 3.5, -12, 1, 3.05180438e-05, -3.05171125e-05, -3.05171125e-05, 1, 3.05180438e-05, 3.05180438e-05, -3.05171125e-05, 1) + Tycoon:FindFirstChild("Base").Position
  1071. Event:InvokeServer("Quantum Clockwork", A_1)
  1072.  
  1073. local A_1 = CFrame.new(-15, 8, 3, 1, 3.05180438e-05, -3.05171125e-05, -3.05171125e-05, 1, 3.05180438e-05, 3.05180438e-05, -3.05171125e-05, 1) + Tycoon:FindFirstChild("Base").Position
  1074. Event:InvokeServer("Azure Spore", A_1)
  1075.  
  1076. local A_1 = CFrame.new(-15, 7.99993896, 21, 1, 3.05180438e-05, -3.05171125e-05, -3.05171125e-05, 1, 3.05180438e-05, 3.05180438e-05, -3.05171125e-05, 1) + Tycoon:FindFirstChild("Base").Position
  1077. Event:InvokeServer("The Catalyst", A_1)
  1078.  
  1079. local A_1 = CFrame.new(-15, 3.5, 37.5, 1, 3.05180438e-05, -3.05171125e-05, -3.05171125e-05, 1, 3.05180438e-05, 3.05180438e-05, -3.05171125e-05, 1) + Tycoon:FindFirstChild("Base").Position
  1080. Event:InvokeServer("Quantum Ore Polisher", A_1)
  1081.  
  1082. local A_1 = CFrame.new(-15, 12.5700073, 60, 0.000226440417, 4.66035299e-09, 1, -4.31585977e-05, 1, 5.11249842e-09, -1, -4.31585977e-05, 0.000226440417) + Tycoon:FindFirstChild("Base").Position
  1083. Event:InvokeServer("Sage King", A_1)
  1084.  
  1085. starloopend()
  1086. end
  1087.  
  1088. function starloopend()
  1089. setupinuse = true
  1090. if tpcratesstarted == true then
  1091. tpcratesactive = true
  1092. end
  1093. if remoteclickstarted == true then
  1094. remoteclickactive = true
  1095. end
  1096. if upgraderclickstarted == true then
  1097. upgraderclickactive = true
  1098. end
  1099. wait(oretime)
  1100.  
  1101. if smallsetupactive == true or mediumsetupactive == true or bigsetupactive == true or customsetupactive == true then
  1102.  
  1103. if turnminesoff then
  1104. if game.Players.LocalPlayer.MinesActivated.Value == true then
  1105. game:GetService("ReplicatedStorage").ToggleMines:InvokeServer()
  1106. -- print("Turning mines OFF") --
  1107. end
  1108. end
  1109.  
  1110. if customsetupactive == true then
  1111. local player = game:GetService'Players'.LocalPlayer
  1112. local factorye = player.PlayerTycoon.Value
  1113. local Factory = tostring(factorye)
  1114. local basepart = workspace.Tycoons[Factory]:GetChildren()
  1115. for i=1,#basepart do
  1116. if basepart[i].Name == "Morning Star" then
  1117. tptarget = "Morning Star"
  1118. targeterror = false
  1119. break
  1120. end
  1121. if basepart[i].Name == "Neutron Star" then
  1122. tptarget = "Neutron Star"
  1123. targeterror = false
  1124. break
  1125. end
  1126. targeterror = true
  1127. end
  1128. if targeterror == true then
  1129. print("Error. No Morning Star or Neutron Star found on base.")
  1130. print("Restarting setup to try and fix the problem")
  1131. wait(1)
  1132. customsetupactive = false
  1133. wait(1)
  1134. customsetupactive = true
  1135. loopsetupstart()
  1136. else
  1137. -- print("Target set: " ..tptarget) --
  1138. starloopend2()
  1139. end
  1140. else
  1141. starloopend2()
  1142. end
  1143. end
  1144. end
  1145.  
  1146. function starloopend2()
  1147. local player = game:GetService'Players'.LocalPlayer
  1148. local factorye = player.PlayerTycoon.Value
  1149. local Factory = tostring(factorye)
  1150. thing = game.Workspace.Tycoons[Factory][tptarget].Model.Upgrade
  1151.  
  1152. for n = 1,loopnumber do
  1153. wait(.04)
  1154. for i,v in pairs(game.Workspace.DroppedParts[Factory]:getChildren()) do
  1155. if v.Name ~= "Triple Coal Mine" then
  1156. if v.Name ~= "Coal Mine" then
  1157. local p= CFrame.new(thing.Position.x, thing.Position.y, thing.Position.z)
  1158. v.CFrame = p
  1159. end
  1160. if smallsetupactive == true then
  1161. SmallSetup.Text = "SMALL - LOOPS("..tostring(n)..")"
  1162. elseif mediumsetupactive == true then
  1163. MediumSetup.Text = "MEDIUM - LOOPS("..tostring(n)..")"
  1164. elseif bigsetupactive == true then
  1165. BigSetup.Text = "BIG - LOOPS("..tostring(n)..")"
  1166. elseif customsetupactive == true then
  1167. CustomSetup.Text = "CUSTOM - LOOPS("..tostring(n)..")"
  1168. end
  1169. end
  1170. end
  1171. end
  1172. wait(3)
  1173. if smallsetupactive == true then
  1174. SmallSetup.Text = "SMALL SETUP: ON"
  1175. elseif mediumsetupactive == true then
  1176. MediumSetup.Text = "MEDIUM SETUP: ON"
  1177. elseif bigsetupactive == true then
  1178. BigSetup.Text = "BIG SETUP: ON"
  1179. elseif customsetupactive == true then
  1180. CustomSetup.Text = "CUSTOM SETUP: ON"
  1181. end
  1182. end
  1183.  
  1184. LoopButton.MouseButton1Down:connect(function()
  1185. local player = game:GetService'Players'.LocalPlayer
  1186. local factorye = player.PlayerTycoon.Value
  1187. local Factory = tostring(factorye)
  1188. thing = game.Workspace.Tycoons[Factory][tostring(LoopItem.Text)].Model.Upgrade
  1189.  
  1190. for n = 1,tonumber(TPLoopNumber.Text) do
  1191. wait(.04)
  1192. for i,v in pairs(game.Workspace.DroppedParts[Factory]:getChildren()) do
  1193. if v.Name ~= "Triple Coal Mine" then
  1194. if v.Name ~= "Coal Mine" then
  1195. local p= CFrame.new(thing.Position.x, thing.Position.y, thing.Position.z)
  1196. v.CFrame = p
  1197. end
  1198. end
  1199. end
  1200. LoopButton.Text = "LOOPS("..tostring(n)..")"
  1201. LoopButton.TextColor3 = Color3.new(1, 0, 0)
  1202. end
  1203. wait(3)
  1204. LoopButton.Text = "LOOP"
  1205. LoopButton.TextColor3 = Color3.new(0, 0, 0)
  1206. end)
  1207.  
  1208. mouse.KeyDown:connect(function(key)
  1209. if key == "b" then
  1210. local player = game:GetService'Players'.LocalPlayer
  1211. local factorynumber = player.PlayerTycoon.Value
  1212. local Factory = tostring(factorynumber)
  1213. for i,v in pairs(game.Workspace.DroppedParts[Factory]:getChildren()) do
  1214. if v.Name ~= "Triple Coal Mine" then
  1215. if v.Name ~= "Coal Mine" then
  1216. local p= CFrame.new(game.Players.LocalPlayer.Character.Head.Position.x, game.Players.LocalPlayer.Character.Head.Position.y -1, game.Players.LocalPlayer.Character.Head.Position.z -1)
  1217. v.CFrame = p
  1218. end
  1219. end
  1220. end
  1221. end
  1222. end)
  1223.  
  1224. mouse.KeyDown:connect(function(key)
  1225. if key == "m" then
  1226. if game.Players.LocalPlayer.MinesActivated.Value == true then
  1227. game:GetService("ReplicatedStorage").ToggleMines:InvokeServer()
  1228. notify'Turning all mines OFF'
  1229. else
  1230. game:GetService("ReplicatedStorage").ToggleMines:InvokeServer()
  1231. notify'Turning all mines ON'
  1232. end
  1233. end
  1234. end)
  1235.  
  1236. mouse.KeyDown:connect(function(key)
  1237. if key == "n" then
  1238. local ClickEvent = game:GetService("ReplicatedStorage"):WaitForChild('Click');
  1239. local CheckFactory = function()
  1240. for i,v in pairs(workspace.Tycoons:GetChildren()) do
  1241. if v:FindFirstChild('Owner') then
  1242. if v.Owner.Value == game.Players.LocalPlayer.Name then
  1243. return v
  1244. end
  1245. end
  1246. end
  1247. end
  1248.  
  1249. local Factory = tostring(CheckFactory())
  1250. local basepart = workspace.Tycoons[Factory]:GetChildren()
  1251.  
  1252. if toggleoregate == true then
  1253. toggleoregate = false
  1254. notify'Closing ALL Ore Gates'
  1255. for i,v in pairs(basepart) do
  1256. if v.Name == "Ore Gate" then
  1257. for _,desc in pairs(v:GetDescendants()) do
  1258. if desc:IsA("ClickDetector") then
  1259. if desc.Parent:IsA("Part") then
  1260. ClickEvent:FireServer(desc.Parent)
  1261. break
  1262. end
  1263. end
  1264. end
  1265. end
  1266. end
  1267. else
  1268. toggleoregate = true
  1269. notify'Opening ALL Ore Gates'
  1270. for i,v in pairs(basepart) do
  1271. if v.Name == "Ore Gate" then
  1272. for _,desc in pairs(v:GetDescendants()) do
  1273. if desc:IsA("ClickDetector") then
  1274. if desc.Parent:IsA("Part") then
  1275. ClickEvent:FireServer(desc.Parent)
  1276. end
  1277. end
  1278. end
  1279. end
  1280. end
  1281. end
  1282. end
  1283. end)
  1284.  
  1285. mouse.KeyDown:connect(function(key)
  1286. if key == "k" then
  1287. local ClickEvent = game:GetService("ReplicatedStorage"):WaitForChild('Click');
  1288. local CheckFactory = function()
  1289. for i,v in pairs(workspace.Tycoons:GetChildren()) do
  1290. if v:FindFirstChild('Owner') then
  1291. if v.Owner.Value == game.Players.LocalPlayer.Name then
  1292. return v
  1293. end
  1294. end
  1295. end
  1296. end
  1297.  
  1298. local Factory = tostring(CheckFactory())
  1299. local basepart = workspace.Tycoons[Factory]:GetChildren()
  1300.  
  1301. for i,v in pairs(basepart) do
  1302. if v.Name == "Reversible Conveyor" then
  1303. for _,desc in pairs(v:GetDescendants()) do
  1304. if desc:IsA("ClickDetector") then
  1305. if desc.Parent:IsA('Part') then
  1306. ClickEvent:FireServer(desc.Parent)
  1307. end
  1308. end
  1309. end
  1310. end
  1311. end
  1312. notify'Switching ALL Reversible Conveyors'
  1313. end
  1314. end)
  1315.  
  1316. mouse.KeyDown:connect(function(key)
  1317. if key == "j" then
  1318. if remoteclickstarted == true then
  1319. remoteclickstarted = false
  1320. remoteclickactive = false
  1321. notify'Remote Clicking turned OFF'
  1322. else
  1323. remoteclickstarted = true
  1324. remoteclickactive = true
  1325. notify'Remote Clicking turned ON'
  1326. end
  1327. end
  1328. end)
  1329.  
  1330. mouse.KeyDown:connect(function(key)
  1331. if key == "h" then
  1332. if upgraderclickstarted == true then
  1333. upgraderclickstarted = false
  1334. upgraderclickactive = false
  1335. notify'Clicking Upgraders turned OFF'
  1336. else
  1337. upgraderclickstarted = true
  1338. upgraderclickactive = true
  1339. notify'Clicking Upgraders turned ON'
  1340. end
  1341. end
  1342. end)
  1343.  
  1344. function CountBricks()
  1345. local count = 0
  1346. for i,v in pairs(workspace:GetChildren()) do
  1347. for x in string.gmatch(v.Name, "Crate") do
  1348. if v.Name ~= "GiftCrate" then
  1349. wait(0.1)
  1350. count = count + 1
  1351. end
  1352. end
  1353. end
  1354. for i,v in pairs(workspace.Shadows:GetChildren()) do
  1355. for x in string.gmatch(v.Name, "Crate") do
  1356. wait(0.1)
  1357. count = count + 1
  1358. end
  1359. end
  1360. return count
  1361. end
  1362.  
  1363. spawn (function()
  1364. while true do
  1365. wait(0.1)
  1366. CountTpCrates.Text = CountBricks()
  1367. end
  1368. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement