Advertisement
Stefanuk12

Miner's Haven Rebirthing Tool

Apr 1st, 2019
15,786
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 13.27 KB | None | 0 0
  1. -- Credit to Bork for the scripts!
  2.  
  3.  
  4. local MinersHavenGUI = Instance.new("ScreenGui")
  5. local MainFrame = Instance.new("Frame")
  6. local BodyFrame = Instance.new("Frame")
  7. local AutoRebirth = Instance.new("TextButton")
  8. local AutoRemote = Instance.new("TextButton")
  9. local TPUpgraders = Instance.new("TextButton")
  10. local Instructions = Instance.new("TextButton")
  11. local Credits = Instance.new("TextLabel")
  12. local Divider = Instance.new("TextLabel")
  13. local InstructionSteps = Instance.new("Frame")
  14. local Step1 = Instance.new("TextLabel")
  15. local Step2 = Instance.new("TextLabel")
  16. local Step0 = Instance.new("TextLabel")
  17. local Step3 = Instance.new("TextLabel")
  18. local Step4 = Instance.new("TextLabel")
  19. local AutoLayout1 = Instance.new("TextButton")
  20. local AutoLayout2 = Instance.new("TextButton")
  21. local AutoLayout3 = Instance.new("TextButton")
  22. local AutoLayout = Instance.new("TextLabel")
  23. local Destroy = Instance.new("TextButton")
  24. local Mini = Instance.new("TextButton")
  25. local Name = Instance.new("TextLabel")
  26. --Properties:
  27. MinersHavenGUI.Name = "MinersHavenGUI"
  28. MinersHavenGUI.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  29. MinersHavenGUI.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  30.  
  31. MainFrame.Name = "MainFrame"
  32. MainFrame.Parent = MinersHavenGUI
  33. MainFrame.Active = true
  34. MainFrame.BackgroundColor3 = Color3.new(0.784314, 0.784314, 0.784314)
  35. MainFrame.BorderSizePixel = 0
  36. MainFrame.Position = UDim2.new(0.108695649, 0, 0.18427518, 0)
  37. MainFrame.Selectable = true
  38. MainFrame.Size = UDim2.new(0, 323, 0, 40)
  39. MainFrame.Draggable = true
  40.  
  41. BodyFrame.Name = "BodyFrame"
  42. BodyFrame.Parent = MainFrame
  43. BodyFrame.BackgroundColor3 = Color3.new(1, 1, 1)
  44. BodyFrame.BorderSizePixel = 0
  45. BodyFrame.Position = UDim2.new(0, 0, 1, 0)
  46. BodyFrame.Size = UDim2.new(0, 323, 0, 162)
  47.  
  48. AutoRebirth.Name = "AutoRebirth"
  49. AutoRebirth.Parent = BodyFrame
  50. AutoRebirth.BackgroundColor3 = Color3.new(0.956863, 0.956863, 0.956863)
  51. AutoRebirth.BorderSizePixel = 0
  52. AutoRebirth.Size = UDim2.new(0, 166, 0, 43)
  53. AutoRebirth.Font = Enum.Font.SourceSans
  54. AutoRebirth.Text = "Auto Rebirth: OFF"
  55. AutoRebirth.TextColor3 = Color3.new(0, 0, 0)
  56. AutoRebirth.TextSize = 14
  57.  
  58. AutoRemote.Name = "AutoRemote"
  59. AutoRemote.Parent = BodyFrame
  60. AutoRemote.BackgroundColor3 = Color3.new(0.956863, 0.956863, 0.956863)
  61. AutoRemote.BorderSizePixel = 0
  62. AutoRemote.Position = UDim2.new(0.4860681, 0, 0, 0)
  63. AutoRemote.Size = UDim2.new(0, 166, 0, 43)
  64. AutoRemote.Font = Enum.Font.SourceSans
  65. AutoRemote.Text = "Auto Remote: OFF"
  66. AutoRemote.TextColor3 = Color3.new(0, 0, 0)
  67. AutoRemote.TextSize = 14
  68.  
  69. TPUpgraders.Name = "TPUpgraders"
  70. TPUpgraders.Parent = BodyFrame
  71. TPUpgraders.BackgroundColor3 = Color3.new(0.956863, 0.956863, 0.956863)
  72. TPUpgraders.BorderSizePixel = 0
  73. TPUpgraders.Position = UDim2.new(0.241486058, 0, 0.415868074, 0)
  74. TPUpgraders.Size = UDim2.new(0, 166, 0, 43)
  75. TPUpgraders.Font = Enum.Font.SourceSans
  76. TPUpgraders.Text = "Upgrader CFrame"
  77. TPUpgraders.TextColor3 = Color3.new(0, 0, 0)
  78. TPUpgraders.TextSize = 14
  79.  
  80. Instructions.Name = "Instructions"
  81. Instructions.Parent = BodyFrame
  82. Instructions.BackgroundColor3 = Color3.new(0.956863, 0.956863, 0.956863)
  83. Instructions.BorderSizePixel = 0
  84. Instructions.Position = UDim2.new(0.365325123, 0, 0.722740173, 0)
  85. Instructions.Size = UDim2.new(0, 87, 0, 25)
  86. Instructions.Font = Enum.Font.SourceSans
  87. Instructions.Text = "Instructions: OFF"
  88. Instructions.TextColor3 = Color3.new(0, 0, 0)
  89. Instructions.TextSize = 14
  90.  
  91. Credits.Name = "Credits"
  92. Credits.Parent = BodyFrame
  93. Credits.BackgroundColor3 = Color3.new(1, 1, 1)
  94. Credits.BackgroundTransparency = 1
  95. Credits.BorderSizePixel = 0
  96. Credits.Position = UDim2.new(0.662538707, 0, 0.74125874, 0)
  97. Credits.Size = UDim2.new(0, 109, 0, 37)
  98. Credits.Font = Enum.Font.SourceSans
  99. Credits.Text = "by Stefanuk12"
  100. Credits.TextColor3 = Color3.new(0, 0, 0)
  101. Credits.TextSize = 14
  102.  
  103. Divider.Name = "Divider"
  104. Divider.Parent = BodyFrame
  105. Divider.BackgroundColor3 = Color3.new(1, 1, 1)
  106. Divider.BorderColor3 = Color3.new(0, 0, 0)
  107. Divider.Position = UDim2.new(0, 0, 0.263662249, 0)
  108. Divider.Size = UDim2.new(0, 323, 0, 0)
  109. Divider.Font = Enum.Font.SourceSans
  110. Divider.Text = " "
  111. Divider.TextColor3 = Color3.new(0, 0, 0)
  112. Divider.TextSize = 14
  113.  
  114. InstructionSteps.Name = "InstructionSteps"
  115. InstructionSteps.Parent = BodyFrame
  116. InstructionSteps.BackgroundColor3 = Color3.new(1, 1, 1)
  117. InstructionSteps.BorderSizePixel = 0
  118. InstructionSteps.Position = UDim2.new(1, 0, 0, 0)
  119. InstructionSteps.Size = UDim2.new(0, 323, 0, 162)
  120. InstructionSteps.Visible = false
  121.  
  122. Step1.Name = "Step1"
  123. Step1.Parent = InstructionSteps
  124. Step1.BackgroundColor3 = Color3.new(1, 1, 1)
  125. Step1.BorderSizePixel = 0
  126. Step1.Position = UDim2.new(0, 0, 0.240740746, 0)
  127. Step1.Size = UDim2.new(0, 323, 0, 29)
  128. Step1.Font = Enum.Font.SourceSansLight
  129. Step1.Text = "1. Make a layout - Look at thread for more info"
  130. Step1.TextColor3 = Color3.new(0, 0, 0)
  131. Step1.TextSize = 14
  132.  
  133. Step2.Name = "Step2"
  134. Step2.Parent = InstructionSteps
  135. Step2.BackgroundColor3 = Color3.new(1, 1, 1)
  136. Step2.BorderSizePixel = 0
  137. Step2.Position = UDim2.new(0, 0, 0.419753045, 0)
  138. Step2.Size = UDim2.new(0, 323, 0, 29)
  139. Step2.Font = Enum.Font.SourceSansLight
  140. Step2.Text = "2. Turn AutoRebirth/Remote ON"
  141. Step2.TextColor3 = Color3.new(0, 0, 0)
  142. Step2.TextSize = 14
  143.  
  144. Step0.Name = "Step0"
  145. Step0.Parent = InstructionSteps
  146. Step0.BackgroundColor3 = Color3.new(1, 1, 1)
  147. Step0.BorderSizePixel = 0
  148. Step0.Position = UDim2.new(0, 0, 0.0679011345, 0)
  149. Step0.Size = UDim2.new(0, 323, 0, 29)
  150. Step0.Font = Enum.Font.SourceSansLight
  151. Step0.Text = "0. Find a game with people that have very high rebirths"
  152. Step0.TextColor3 = Color3.new(0, 0, 0)
  153. Step0.TextSize = 14
  154.  
  155. Step3.Name = "Step3"
  156. Step3.Parent = InstructionSteps
  157. Step3.BackgroundColor3 = Color3.new(1, 1, 1)
  158. Step3.BorderSizePixel = 0
  159. Step3.Position = UDim2.new(0, 0, 0.598765433, 0)
  160. Step3.Size = UDim2.new(0, 323, 0, 29)
  161. Step3.Font = Enum.Font.SourceSansLight
  162. Step3.Text = "3. Press the Upgrader CFrame button and load the layout"
  163. Step3.TextColor3 = Color3.new(0, 0, 0)
  164. Step3.TextSize = 14
  165.  
  166. Step4.Name = "Step4"
  167. Step4.Parent = InstructionSteps
  168. Step4.BackgroundColor3 = Color3.new(1, 1, 1)
  169. Step4.BorderSizePixel = 0
  170. Step4.Position = UDim2.new(0, 0, 0.746913552, 0)
  171. Step4.Size = UDim2.new(0, 323, 0, 29)
  172. Step4.Font = Enum.Font.SourceSansLight
  173. Step4.Text = "4. Once you've rebirthed, Repeat from Step 3"
  174. Step4.TextColor3 = Color3.new(0, 0, 0)
  175. Step4.TextSize = 14
  176.  
  177. AutoLayout1.Name = "AutoLayout1"
  178. AutoLayout1.Parent = BodyFrame
  179. AutoLayout1.BackgroundColor3 = Color3.new(0.956863, 0.956863, 0.956863)
  180. AutoLayout1.BorderSizePixel = 0
  181. AutoLayout1.Position = UDim2.new(0, 0, 0.839506149, 0)
  182. AutoLayout1.Size = UDim2.new(0, 22, 0, 26)
  183. AutoLayout1.Font = Enum.Font.SourceSans
  184. AutoLayout1.Text = "1"
  185. AutoLayout1.TextColor3 = Color3.new(0, 0, 0)
  186. AutoLayout1.TextSize = 14
  187.  
  188. AutoLayout2.Name = "AutoLayout2"
  189. AutoLayout2.Parent = BodyFrame
  190. AutoLayout2.BackgroundColor3 = Color3.new(0.956863, 0.956863, 0.956863)
  191. AutoLayout2.BorderSizePixel = 0
  192. AutoLayout2.Position = UDim2.new(0.067079477, 0, 0.839506149, 0)
  193. AutoLayout2.Size = UDim2.new(0, 22, 0, 26)
  194. AutoLayout2.Font = Enum.Font.SourceSans
  195. AutoLayout2.Text = "2"
  196. AutoLayout2.TextColor3 = Color3.new(0, 0, 0)
  197. AutoLayout2.TextSize = 14
  198.  
  199. AutoLayout3.Name = "AutoLayout3"
  200. AutoLayout3.Parent = BodyFrame
  201. AutoLayout3.BackgroundColor3 = Color3.new(0.956863, 0.956863, 0.956863)
  202. AutoLayout3.BorderSizePixel = 0
  203. AutoLayout3.Position = UDim2.new(0.134158954, 0, 0.839506149, 0)
  204. AutoLayout3.Size = UDim2.new(0, 22, 0, 26)
  205. AutoLayout3.Font = Enum.Font.SourceSans
  206. AutoLayout3.Text = "3"
  207. AutoLayout3.TextColor3 = Color3.new(0, 0, 0)
  208. AutoLayout3.TextSize = 14
  209.  
  210. AutoLayout.Name = "AutoLayout"
  211. AutoLayout.Parent = BodyFrame
  212. AutoLayout.BackgroundColor3 = Color3.new(1, 1, 1)
  213. AutoLayout.BackgroundTransparency = 1
  214. AutoLayout.BorderSizePixel = 0
  215. AutoLayout.Position = UDim2.new(0, 0, 0.697530866, 0)
  216. AutoLayout.Size = UDim2.new(0, 65, 0, 29)
  217. AutoLayout.Font = Enum.Font.SourceSans
  218. AutoLayout.Text = "Auto Layout"
  219. AutoLayout.TextColor3 = Color3.new(0, 0, 0)
  220. AutoLayout.TextSize = 14
  221.  
  222. Destroy.Name = "Destroy"
  223. Destroy.Parent = MainFrame
  224. Destroy.BackgroundColor3 = Color3.new(1, 1, 1)
  225. Destroy.BackgroundTransparency = 1
  226. Destroy.BorderSizePixel = 0
  227. Destroy.Position = UDim2.new(0.801857591, 0, 0, 0)
  228. Destroy.Size = UDim2.new(0, 64, 0, 40)
  229. Destroy.Font = Enum.Font.SourceSans
  230. Destroy.Text = "X"
  231. Destroy.TextColor3 = Color3.new(0, 0, 0)
  232. Destroy.TextSize = 14
  233.  
  234. Mini.Name = "Mini"
  235. Mini.Parent = MainFrame
  236. Mini.BackgroundColor3 = Color3.new(1, 1, 1)
  237. Mini.BackgroundTransparency = 1
  238. Mini.BorderSizePixel = 0
  239. Mini.Position = UDim2.new(0.603715181, 0, 0, 0)
  240. Mini.Size = UDim2.new(0, 64, 0, 40)
  241. Mini.Font = Enum.Font.SourceSans
  242. Mini.Text = "_"
  243. Mini.TextColor3 = Color3.new(0, 0, 0)
  244. Mini.TextSize = 14
  245.  
  246. Name.Name = "Name"
  247. Name.Parent = MainFrame
  248. Name.BackgroundColor3 = Color3.new(1, 1, 1)
  249. Name.BackgroundTransparency = 1
  250. Name.BorderSizePixel = 0
  251. Name.Size = UDim2.new(0, 195, 0, 40)
  252. Name.Font = Enum.Font.SourceSansLight
  253. Name.Text = "Rebirthing Tool - Miners Haven"
  254. Name.TextColor3 = Color3.new(0, 0, 0)
  255. Name.TextSize = 14
  256.  
  257. -- Scripts:
  258.  
  259. _G.AutoRebirth = false
  260. _G.AutoRemote = false
  261.  
  262.  
  263. Destroy.MouseButton1Click:connect(function() -- Destory GUI
  264.     MinersHavenGUI:Destroy()
  265. end)
  266.  
  267. Mini.MouseButton1Click:connect(function() -- Minimise/Restore GUI
  268.     if BodyFrame.Visible == true then
  269.         BodyFrame.Visible = false
  270.         else BodyFrame.Visible = true
  271.     end
  272. end)
  273.  
  274. Instructions.MouseButton1Click:connect(function() -- Minimise/Restore Instructions
  275.     if InstructionSteps.Visible == false then
  276.         InstructionSteps.Visible = true
  277.         Instructions.Text = "Instructions: ON"
  278.     else InstructionSteps.Visible = false
  279.         Instructions.Text = "Instructions: OFF"
  280.     end
  281. end)
  282.  
  283. AutoRebirth.MouseButton1Click:connect(function() -- Toggle work for AutoRebirth
  284.     if _G.AutoRebirth == false then
  285.         _G.AutoRebirth = true
  286.         AutoRebirth.Text = "Auto Rebirth: ON"
  287.     else _G.AutoRebirth = false
  288.         AutoRebirth.Text = "Auto Rebirth: OFF"
  289.     end
  290.     while _G.AutoRebirth == true do wait()
  291.         game.ReplicatedStorage.Rebirth:InvokeServer()
  292.     end
  293. end)
  294.  
  295. AutoRemote.MouseButton1Click:connect(function() -- Toggle work for AutoRemote
  296.     if _G.AutoRemote == false then
  297.         _G.AutoRemote = true
  298.         AutoRemote.Text = "Auto Remote: ON"
  299.     else _G.AutoRemote = false
  300.         AutoRemote.Text = "Auto Remote: OFF"
  301.     end
  302.     while _G.AutoRemote == true do wait()
  303.         game.ReplicatedStorage.RemoteDrop:FireServer()
  304.     end
  305. end)
  306.  
  307. TPUpgraders.MouseButton1Click:connect(function() -- Teleports all of the upgraders into the conveyor
  308.     game.ReplicatedStorage.DestroyAll:InvokeServer()
  309. local Tycoon = workspace.Tycoons:FindFirstChild(tostring(game.Players.LocalPlayer.PlayerTycoon.Value))
  310. local PlaceItem = game.ReplicatedStorage.PlaceItem
  311. local placehere = CFrame.new(0, 2, 0, -1, 0, 0, 0, 1, 0, 0, 0, -1) + Tycoon:FindFirstChild("Base").Position
  312. PlaceItem:InvokeServer("Basic Conveyor",  placehere)
  313. wait(0.01)
  314. local pt = game.Players.LocalPlayer.PlayerTycoon.Value
  315. local cv = game.Players.LocalPlayer.PlayerTycoon.Value["Basic Conveyor"].Hitbox
  316. for i,v in pairs(game.Workspace.Tycoons:GetDescendants()) do
  317. if v.Name == "Big Bad Blaster" or v.Name == "Flaming Schrodinger" or v.Name == "Schrodinger Evaluator" or v.Name == "Super Schrodinger" or v.Name == "Ore Illuminator" or v.Name == "Ore Crane" or v.Name == "Portable Flamethrower" or v.Name == "Flaming Ore Scanner" or v.Name == "Chemical Refiner" or v.Name == "Pirate Cove" or v.Name == "Dragonglass Blaster" or v.Name == "Dragon Blaster" or v.Name == "Clover Blaster" or v.Name == "Hydra Blaster" or v.Name == "Aether Schrodinger" or v.Name == "Ore Indoctrinator" or v.Name == "Arcane Lightning" then
  318. v:Remove()
  319. end
  320. end
  321. for i,v in pairs(game.Workspace.Tycoons:GetDescendants()) do
  322. if v.Name == "Upgrade" then
  323. v.Transparency = 1
  324. v.CFrame = cv.CFrame*CFrame.new(0,100,0)
  325. end
  326. end
  327. for i,v in pairs(game.Workspace.Tycoons:GetDescendants()) do
  328. if v.Name == "Morning Star" or v.Name == "Nova Star" then
  329. v:Remove()
  330. elseif v.Name == "Tesla Resetter" or v.Name == "Tesla Refuter" then
  331. v.Model.Upgrade.CFrame = cv.CFrame*CFrame.new(0,50,0)
  332. elseif v.Name == "The Final Upgrader" or v.Name == "The Ultimate Sacrifice" then
  333. v.Model.Upgrade.CFrame = cv.CFrame*CFrame.new(0,75,0)
  334. end
  335. end
  336. pt["Basic Conveyor"].Hitbox.Touched:connect(function(hit)
  337.     if hit:FindFirstChild("Cash") then
  338. if hit:FindFirstChild("Bork") then
  339. local variable = true
  340. else
  341. local int = Instance.new("IntValue")
  342. int.Parent = hit
  343. int.Name = "Bork"
  344. hit.CFrame = cv.CFrame*CFrame.new(0,100,0)
  345. wait(0.05)
  346. hit.CFrame = cv.CFrame*CFrame.new(0,50,0)
  347. wait(0.05)
  348. hit.CFrame = cv.CFrame*CFrame.new(0,100,0)
  349. wait(0.05)
  350. hit.CFrame = cv.CFrame*CFrame.new(0,75,0)
  351. wait(0.05)
  352. hit.CFrame = cv.CFrame*CFrame.new(0,100,0)
  353. wait(0.5)
  354. hit.CFrame = pt["Basic Furnace"].Model.Lava.CFrame
  355. end
  356. end
  357. end)
  358. end)
  359.  
  360. AutoLayout2.MouseButton1Down:connect(function() -- Layout 2 gets placed after Rebirth
  361. game.Players.LocalPlayer.leaderstats.Life.Changed:connect(function(plr)
  362. delay(7, function()
  363. game.ReplicatedStorage.Layouts:InvokeServer("Load", "Layout2")
  364. end)
  365. end)
  366. end)
  367.  
  368. AutoLayout3.MouseButton1Down:connect(function() -- Layout 3 gets placed after Rebirth
  369. game.Players.LocalPlayer.leaderstats.Life.Changed:connect(function(plr)
  370. delay(7, function()
  371. game.ReplicatedStorage.Layouts:InvokeServer("Load", "Layout3")
  372. end)
  373. end)
  374. end)
  375.  
  376.  
  377. print("Rebirthing Tool by Stefanuk12. Scripts by Bork")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement