Advertisement
Guest User

GUI - turtletowerz @ Verm

a guest
Jun 26th, 2017
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.41 KB | None | 0 0
  1. warn('Miners Haven Gui by turtletowerz @Verm')
  2. local player = game.Players.LocalPlayer
  3. local mouse = player:GetMouse()
  4. local RepStorage = game.ReplicatedStorage
  5. local MysteryBox = RepStorage:FindFirstChild'MysteryBox'
  6. local RemoteDrop = RepStorage:FindFirstChild'RemoteDrop'
  7. local HasItem = RepStorage:FindFirstChild'HasItem'
  8. local Factory = player:FindFirstChild'PlayerTycoon'
  9. local RepStorage = game:GetService'ReplicatedStorage'
  10. local PlaceItem = RepStorage:FindFirstChild'PlaceItem'
  11. local Rebirth = RepStorage:FindFirstChild'Rebirth'
  12. local Click = RepStorage:FindFirstChild'Click'
  13. local cf, vec = CFrame.new, Vector3.new
  14. local allitems = {}
  15. local isdropping = false
  16. local autocrate = false
  17. local autosetup = false
  18.  
  19. local MinerLux = Instance.new("ScreenGui", game.CoreGui)
  20. MinerLux.Name = "MinerLux"
  21. MinerLux.ResetOnSpawn = false
  22. local LuxOpen = Instance.new("TextButton", MinerLux)
  23. local Main = Instance.new("ScrollingFrame", MinerLux)
  24. local Speed = Instance.new("TextButton", Main)
  25. local JumpPower = Instance.new("TextButton", Main)
  26. local MaskedMan = Instance.new("TextButton", Main)
  27. local Clovers = Instance.new("TextButton", Main)
  28. local TwitchCoins = Instance.new("TextButton", Main)
  29. local Regular = Instance.new("TextButton", Main)
  30. local Unreal = Instance.new("TextButton", Main)
  31. local Inferno = Instance.new("TextButton", Main)
  32. local AutoTPCrate = Instance.new("TextButton", Main)
  33. local ToggleRemote = Instance.new("TextButton", Main)
  34. local AutoSetup = Instance.new("TextButton", Main)
  35.  
  36. LuxOpen.Name = "LuxOpen"
  37. LuxOpen.BackgroundColor3 = Color3.new(1, 1, 1)
  38. LuxOpen.BorderColor3 = Color3.new(0, 0, 0)
  39. LuxOpen.Position = UDim2.new(0, 5, 0.75, -20)
  40. LuxOpen.Size = UDim2.new(0, 180, 0, 40)
  41. LuxOpen.Style = Enum.ButtonStyle.RobloxRoundDropdownButton
  42. LuxOpen.Font = Enum.Font.SciFi
  43. LuxOpen.FontSize = Enum.FontSize.Size36
  44. LuxOpen.Text = "MinerLux"
  45. LuxOpen.TextColor3 = Color3.new(1, 1, 1)
  46. LuxOpen.TextSize = 36
  47. LuxOpen.TextStrokeTransparency = 0
  48. LuxOpen.TextWrapped = true
  49.  
  50. Main.BackgroundColor3 = Color3.new(0, 0, 0)
  51. Main.BackgroundTransparency = 0.4
  52. Main.Position = UDim2.new(0, 190, 0.75, -125)
  53. Main.Size = UDim2.new(0, 200, 0, 250)
  54. Main.CanvasSize = UDim2.new(0, 0, 0.625, 0)
  55. Main.ScrollBarThickness = 15
  56.  
  57. Speed.Name = "Speed"
  58. Speed.BackgroundColor3 = Color3.new(1, 1, 1)
  59. Speed.BorderColor3 = Color3.new(0, 0, 0)
  60. Speed.Position = UDim2.new(0, 1, 0, 5)
  61. Speed.Size = UDim2.new(0.9, 0, 0, 40)
  62. Speed.Style = Enum.ButtonStyle.RobloxRoundDropdownButton
  63. Speed.Font = Enum.Font.SciFi
  64. Speed.FontSize = Enum.FontSize.Size36
  65. Speed.Text = "Increase Speed"
  66. Speed.TextColor3 = Color3.new(1, 1, 1)
  67. Speed.TextScaled = true
  68. Speed.TextSize = 36
  69. Speed.TextStrokeTransparency = 0
  70. Speed.TextWrapped = true
  71.  
  72. JumpPower.Name = "JumpPower"
  73. JumpPower.BackgroundColor3 = Color3.new(1, 1, 1)
  74. JumpPower.BorderColor3 = Color3.new(0, 0, 0)
  75. JumpPower.Position = UDim2.new(0, 1, 0, 45)
  76. JumpPower.Size = UDim2.new(0.9, 0, 0, 40)
  77. JumpPower.Style = Enum.ButtonStyle.RobloxRoundDropdownButton
  78. JumpPower.Font = Enum.Font.SciFi
  79. JumpPower.FontSize = Enum.FontSize.Size36
  80. JumpPower.Text = "Increase JumpPower"
  81. JumpPower.TextColor3 = Color3.new(1, 1, 1)
  82. JumpPower.TextScaled = true
  83. JumpPower.TextSize = 36
  84. JumpPower.TextStrokeTransparency = 0
  85. JumpPower.TextWrapped = true
  86.  
  87. MaskedMan.Name = "MaskedMan"
  88. MaskedMan.BackgroundColor3 = Color3.new(1, 1, 1)
  89. MaskedMan.BorderColor3 = Color3.new(0, 0, 0)
  90. MaskedMan.Position = UDim2.new(0, 1, 0, 85)
  91. MaskedMan.Size = UDim2.new(0.9, 0, 0, 40)
  92. MaskedMan.Style = Enum.ButtonStyle.RobloxRoundDropdownButton
  93. MaskedMan.Font = Enum.Font.SciFi
  94. MaskedMan.FontSize = Enum.FontSize.Size36
  95. MaskedMan.Text = "Teleport to Masked Man"
  96. MaskedMan.TextColor3 = Color3.new(1, 1, 1)
  97. MaskedMan.TextScaled = true
  98. MaskedMan.TextSize = 36
  99. MaskedMan.TextStrokeTransparency = 0
  100. MaskedMan.TextWrapped = true
  101.  
  102. Clovers.Name = "Clovers"
  103. Clovers.BackgroundColor3 = Color3.new(1, 1, 1)
  104. Clovers.BorderColor3 = Color3.new(0, 0, 0)
  105. Clovers.Position = UDim2.new(0, 1, 0, 125)
  106. Clovers.Size = UDim2.new(0.9, 0, 0, 40)
  107. Clovers.Style = Enum.ButtonStyle.RobloxRoundDropdownButton
  108. Clovers.Font = Enum.Font.SciFi
  109. Clovers.FontSize = Enum.FontSize.Size36
  110. Clovers.Text = "Give Clovers"
  111. Clovers.TextColor3 = Color3.new(1, 1, 1)
  112. Clovers.TextScaled = true
  113. Clovers.TextSize = 36
  114. Clovers.TextStrokeTransparency = 0
  115. Clovers.TextWrapped = true
  116.  
  117. TwitchCoins.Name = "TwitchCoins"
  118. TwitchCoins.BackgroundColor3 = Color3.new(1, 1, 1)
  119. TwitchCoins.BorderColor3 = Color3.new(0, 0, 0)
  120. TwitchCoins.Position = UDim2.new(0, 1, 0, 165)
  121. TwitchCoins.Size = UDim2.new(0.9, 0, 0, 40)
  122. TwitchCoins.Style = Enum.ButtonStyle.RobloxRoundDropdownButton
  123. TwitchCoins.Font = Enum.Font.SciFi
  124. TwitchCoins.FontSize = Enum.FontSize.Size36
  125. TwitchCoins.Text = "Give Twitch Coins"
  126. TwitchCoins.TextColor3 = Color3.new(1, 1, 1)
  127. TwitchCoins.TextScaled = true
  128. TwitchCoins.TextSize = 36
  129. TwitchCoins.TextStrokeTransparency = 0
  130. TwitchCoins.TextWrapped = true
  131.  
  132. Regular.Name = "Regular"
  133. Regular.BackgroundColor3 = Color3.new(1, 1, 1)
  134. Regular.BorderColor3 = Color3.new(0, 0, 0)
  135. Regular.Position = UDim2.new(0, 1, 0, 205)
  136. Regular.Size = UDim2.new(0.9, 0, 0, 40)
  137. Regular.Style = Enum.ButtonStyle.RobloxRoundDropdownButton
  138. Regular.Font = Enum.Font.SciFi
  139. Regular.FontSize = Enum.FontSize.Size36
  140. Regular.Text = "Open Regular Box"
  141. Regular.TextColor3 = Color3.new(1, 1, 1)
  142. Regular.TextScaled = true
  143. Regular.TextSize = 36
  144. Regular.TextStrokeTransparency = 0
  145. Regular.TextWrapped = true
  146.  
  147. Unreal.Name = "Unreal"
  148. Unreal.BackgroundColor3 = Color3.new(1, 1, 1)
  149. Unreal.BorderColor3 = Color3.new(0, 0, 0)
  150. Unreal.Position = UDim2.new(0, 1, 0, 245)
  151. Unreal.Size = UDim2.new(0.9, 0, 0, 40)
  152. Unreal.Style = Enum.ButtonStyle.RobloxRoundDropdownButton
  153. Unreal.Font = Enum.Font.SciFi
  154. Unreal.FontSize = Enum.FontSize.Size36
  155. Unreal.Text = "Open Unreal Box"
  156. Unreal.TextColor3 = Color3.new(1, 1, 1)
  157. Unreal.TextScaled = true
  158. Unreal.TextSize = 36
  159. Unreal.TextStrokeTransparency = 0
  160. Unreal.TextWrapped = true
  161.  
  162. Inferno.Name = "Inferno"
  163. Inferno.BackgroundColor3 = Color3.new(1, 1, 1)
  164. Inferno.BorderColor3 = Color3.new(0, 0, 0)
  165. Inferno.Position = UDim2.new(0, 1, 0, 285)
  166. Inferno.Size = UDim2.new(0.9, 0, 0, 40)
  167. Inferno.Style = Enum.ButtonStyle.RobloxRoundDropdownButton
  168. Inferno.Font = Enum.Font.SciFi
  169. Inferno.FontSize = Enum.FontSize.Size36
  170. Inferno.Text = "Open Inferno Box"
  171. Inferno.TextColor3 = Color3.new(1, 1, 1)
  172. Inferno.TextScaled = true
  173. Inferno.TextSize = 36
  174. Inferno.TextStrokeTransparency = 0
  175. Inferno.TextWrapped = true
  176.  
  177. AutoTPCrate.Name = "AutoTPCrate"
  178. AutoTPCrate.BackgroundColor3 = Color3.new(1, 1, 1)
  179. AutoTPCrate.BorderColor3 = Color3.new(0, 0, 0)
  180. AutoTPCrate.Position = UDim2.new(0, 1, 0, 325)
  181. AutoTPCrate.Size = UDim2.new(0.9, 0, 0, 40)
  182. AutoTPCrate.Style = Enum.ButtonStyle.RobloxRoundDropdownButton
  183. AutoTPCrate.Font = Enum.Font.SciFi
  184. AutoTPCrate.FontSize = Enum.FontSize.Size36
  185. AutoTPCrate.Text = "Auto-TP Crates: OFF"
  186. AutoTPCrate.TextColor3 = Color3.new(1, 1, 1)
  187. AutoTPCrate.TextScaled = true
  188. AutoTPCrate.TextSize = 36
  189. AutoTPCrate.TextStrokeTransparency = 0
  190. AutoTPCrate.TextWrapped = true
  191.  
  192. ToggleRemote.Name = "ToggleRemote"
  193. ToggleRemote.BackgroundColor3 = Color3.new(1, 1, 1)
  194. ToggleRemote.BorderColor3 = Color3.new(0, 0, 0)
  195. ToggleRemote.Position = UDim2.new(0, 1, 0, 370)
  196. ToggleRemote.Size = UDim2.new(0.9, 0, 0, 40)
  197. ToggleRemote.Style = Enum.ButtonStyle.RobloxRoundDropdownButton
  198. ToggleRemote.Font = Enum.Font.SciFi
  199. ToggleRemote.FontSize = Enum.FontSize.Size36
  200. ToggleRemote.Text = "Toggle Drop: OFF"
  201. ToggleRemote.TextColor3 = Color3.new(1, 1, 1)
  202. ToggleRemote.TextScaled = true
  203. ToggleRemote.TextSize = 36
  204. ToggleRemote.TextStrokeTransparency = 0
  205. ToggleRemote.TextWrapped = true
  206.  
  207. AutoSetup.Name = "AutoSetup"
  208. AutoSetup.BackgroundColor3 = Color3.new(1, 1, 1)
  209. AutoSetup.BorderColor3 = Color3.new(0, 0, 0)
  210. AutoSetup.Position = UDim2.new(0, 1, 0, 415)
  211. AutoSetup.Size = UDim2.new(0.9, 0, 0, 40)
  212. AutoSetup.Style = Enum.ButtonStyle.RobloxRoundDropdownButton
  213. AutoSetup.Font = Enum.Font.SciFi
  214. AutoSetup.FontSize = Enum.FontSize.Size36
  215. AutoSetup.Text = "Auto-Setup: OFF"
  216. AutoSetup.TextColor3 = Color3.new(1, 1, 1)
  217. AutoSetup.TextScaled = true
  218. AutoSetup.TextSize = 36
  219. AutoSetup.TextStrokeTransparency = 0
  220. AutoSetup.TextWrapped = true
  221.  
  222. local function OnClick(btt, func) btt.MouseButton1Click:connect(function() func() end) end
  223. local function Place(ItemName, cf) PlaceItem:InvokeServer(ItemName, Factory.Value, cf) end
  224.  
  225. local function GetTycoon(place)
  226. if place ~= nil then return workspace.Tycoons:FindFirstChild(place) end
  227. for _, tyc in pairs(workspace.Tycoons:GetChildren()) do
  228. local owner = tyc:FindFirstChild'Owner'
  229. if tyc.Name:sub(1, 7) == "Factory" and tyc:IsA'Model' and owner.Value == player.Name then
  230. return tyc
  231. end
  232. end
  233. return nil
  234. end
  235. local droppedfolder = workspace.DroppedParts:FindFirstChild(GetTycoon().Name)
  236.  
  237. local function HandleCrates()
  238. if not autocrate then return end
  239. local crates = {DiamondCrate=true, ResearchCrate=true, GoldenCrate=true, CrystalCrate=true, LuckyCrate=true, ExecutiveCrate=true, GiftCrate=true}
  240. local halloween = {Pumpkin=true, MegaPumpkin=true, ShadowCrate=true}
  241. for _,z in pairs(workspace:GetChildren()) do
  242. if crates[z.name] or halloween[z.Name] then
  243. z.CFrame = player.Character.HumanoidRootPart.CFrame+Vector3.new(0, 0, 0)
  244. z.CanCollide = false
  245. z.Transparency = 1
  246. for _,v in pairs(workspace.Shadows:GetChildren()) do
  247. if halloween[v.Name] then
  248. v.CFrame = player.Character.HumanoidRootPart.CFrame + Vector3.new(0, 0, 0)
  249. v.CanCollide = false
  250. v.Transparency = 1
  251. end
  252. end
  253. end
  254. end
  255. end
  256.  
  257. local function GetReversible()
  258. local reverse = GetTycoon():FindFirstChild'Reversible Conveyor'
  259. local part = reverse.Model:FindFirstChild'Part'
  260. if part then
  261. return part
  262. end
  263. return nil
  264. end
  265.  
  266. local function PlaceAll()
  267. for _, itm in pairs(allitems) do
  268. if itm[3] == nil then
  269. Place(itm[1], itm[2])
  270. else
  271. Place(itm[1], itm[3])
  272. end
  273. wait(0.1)
  274. end
  275. end
  276. local function DoIt() PlaceAll() wait(1) Click:FireServer(GetReversible()) end
  277.  
  278. local function SetUpList()
  279. local Factory1 = GetTycoon('Factory1')
  280. local CurrentTycoon = GetTycoon(nil)
  281. if Factory1 == nil or CurrentTycoon == nil then return end
  282. local isfactory1 = (Factory1.Name == CurrentTycoon.Name)
  283. local CurrBase, Fac1Base = CurrentTycoon.Base, Factory1.Base
  284. local CurrTopLeft = CurrBase.CFrame * cf(vec(CurrBase.Size.x / 2, 0, CurrBase.Size.z / 2))
  285. local Fac1TopLeft = Fac1Base.CFrame * cf(vec(Fac1Base.Size.x / 2, 0, Fac1Base.Size.z / 2))
  286. local items = {
  287. {'Symcorpium Mine', CFrame.new(-497.5, 704.2, 633.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)},
  288. {"Orange Teleporter (Receiver)", CFrame.new(-482.5, 704.2, 638, 0, 0, 1, 0, 1, 0, -1, 0, 0)},
  289. {"Basic Conveyor", CFrame.new(-473.5, 702.7, 639.5, -1, 0, 0, 0, 1, 0, 0, 0, -1)},
  290. {"Basic Conveyor", CFrame.new(-473.5, 702.7, 633.5, 0, 0, 1, 0, 1, 0, -1, 0, 0)},
  291. {"Premium Tracker", CFrame.new(-467.5, 704.2, 633.5, 0, 0, 1, 0, 1, 0, -1, 0, 0)},
  292. {"Catalyzed Star", CFrame.new(-455.5, 705.7, 633.5, 0, 0, 1, 0, 1, 0, -1, 0, 0)},
  293. {"Reversible Conveyor", CFrame.new(-442, 702.7, 633.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)},
  294. {"Orange Teleporter (Sender)", CFrame.new(-443.5, 704.2, 627.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)},
  295. {"Basic Conveyor", CFrame.new(-443.5, 702.7, 639.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)},
  296. {"Aether Refiner", CFrame.new(-443.5, 705.8, 650, 0, 0, -1, 0, 1, 0, 1, 0, 0)},
  297. }
  298. for _, itm in pairs(items) do
  299. if isfactory1 then
  300. allitems[#allitems + 1] = {itm[1], itm[2], nil}
  301. else
  302. local fac1diff = (itm[2] - Fac1TopLeft.p)
  303. local currbasepos = (fac1diff - (CurrTopLeft.p * Vector3.new(-1, -1, -1)))
  304. allitems[#allitems + 1] = {itm[1], itm[2], currbasepos}
  305. end
  306. end
  307. end
  308. SetUpList()
  309.  
  310. OnClick(Speed, function() player.Character:FindFirstChild'Humanoid'.WalkSpeed = 80 end)
  311. OnClick(JumpPower, function() player.Character:FindFirstChild'Humanoid'.JumpPower = 180 end)
  312. OnClick(Clovers, function() player.Clovers.Value = player.Clovers.Value + 50 end)
  313. OnClick(TwitchCoins, function() player.TwitchPoints.Value = player.TwitchPoints.Value + 50 end)
  314. OnClick(Regular, function() MysteryBox:InvokeServer("Regular") end)
  315. OnClick(Unreal, function() MysteryBox:InvokeServer("Unreal") end)
  316. OnClick(Inferno, function() MysteryBox:InvokeServer("Inferno") end)
  317. OnClick(MaskedMan, function() player.Character.HumanoidRootPart.CFrame = workspace.Market.Torso.CFrame end)
  318. OnClick(LuxOpen, function() Main.Visible = not Main.Visible end)
  319. OnClick(ToggleRemote, function()
  320. isdropping = not isdropping
  321. if isdropping then
  322. ToggleRemote.Text = "Toggle Drop: ON"
  323. else
  324. ToggleRemote.Text = "Toggle Drop: OFF"
  325. end
  326. end)
  327.  
  328. OnClick(AutoTPCrate, function()
  329. autocrate = not autocrate
  330. if autocrate then
  331. AutoTPCrate.Text = "Auto-TP Crates: ON"
  332. else
  333. AutoTPCrate.Text = "Auto-TP Crates: OFF"
  334. end
  335. HandleCrates()
  336. end)
  337.  
  338. OnClick(AutoSetup, function()
  339. autosetup = not autosetup
  340. if autosetup then
  341. AutoSetup.Text = "Auto-Setup: ON"
  342. else
  343. AutoSetup.Text = "Auto-Setup: OFF"
  344. end
  345. DoIt()
  346. end)
  347.  
  348. workspace.ChildAdded:connect(HandleCrates)
  349. workspace.Shadows.ChildAdded:connect(HandleCrates)
  350. mouse.KeyDown:connect(function(key) if key:byte() == 92 then DoIt() end end)
  351.  
  352. while wait(0.1) do
  353. if isdropping then RemoteDrop:FireServer() end
  354. local bop = Rebirth:InvokeServer()
  355. if bop == true and autosetup then wait(3) DoIt() end
  356. local droppedpart = droppedfolder:FindFirstChild'DroppedPart'
  357. if droppedpart then
  358. if droppedpart.Cash.Value > 1e+33 then
  359. Click:FireServer(GetReversible())
  360. end
  361. end
  362. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement