Advertisement
KoxMati

Miners Haven

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