Advertisement
marcelslibrary

AURORAHUB_MH

Nov 4th, 2019
203
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 29.22 KB | None | 0 0
  1. if getgenv().aurora then return end
  2.  
  3.  
  4. local r = game:GetService("RunService")
  5. local Players = game:GetService("Players") or game.Players
  6. local WS = game:GetService("Workspace") or workspace or game.Workspace
  7. local L = game:GetService("Lighting") or game.Lighting
  8. local http = game:GetService("HttpService")
  9. local user = game:GetService("UserInputService")
  10. local RS = game:GetService("ReplicatedStorage") or game.ReplicatedStorage
  11. local TS = game:GetService("TweenService")
  12. local CG = game:GetService("CoreGui")
  13. local Teams = game:GetService("Teams") or game.Teams
  14. local Camera = WS.CurrentCamera or WS:FindFirstChild("Camera")
  15. local RandomStr = http:GenerateGUID(false)
  16. local GameFor = {a = "258258996"}
  17. local Hint = Instance.new("Hint",CG)
  18. Hint.Text = "Loading Services"
  19.  
  20. local LP = Players.LocalPlayer
  21. local Mouse = LP:GetMouse()
  22. local Character = LP:FindFirstChild("Character") or LP.Character
  23.  
  24.  
  25. local default_colors = {
  26. Purple = Color3.fromRGB(85, 0, 255),
  27. Pink = Color3.fromRGB(170, 0, 127),
  28. Grey = Color3.fromRGB(56, 56, 56),
  29. }
  30.  
  31. local getupval = debug.getupvalue or getupvalue
  32. local getupvals = debug.getupvalues or getupvalues or secret953
  33. local getreg = debug.getregistry or getregistry or getreg
  34. local setupval = debug.setupvalue or setupvalue or secret500
  35. local getlocal = debug.getlocal or getlocal or secret234
  36. local getlocals = debug.getlocals or getlocals
  37. local setlocal = debug.setlocal or setlocal
  38. local mt = getrawmetatable(game)
  39. local setreadonly = make_writeable or setreadonly
  40. local touch = firetouchinterest
  41. local click = fireclickdetector
  42. local Copy = setclipboard or clipboard.set or copystring
  43.  
  44. local oldnamecall = mt.__namecall
  45. local oldindex = mt.__index
  46.  
  47.  
  48. if syn == nil then
  49. LP:Kick("Exploit not supported.")
  50. end
  51.  
  52. if game.PlaceId ~= tonumber(GameFor.a) then
  53. LP:Kick("[ERROR]: GAMEID: "..tonumber(GameFor.a).." ~= "..game.PlaceId)
  54. end
  55.  
  56. local mainui = loadstring(game:HttpGet("https://pastebin.com/raw/iK6wvr5U", true))()
  57. local visuals = loadstring(game:HttpGet("https://pastebin.com/raw/cv4Amr2p", true))()
  58. local Console = rconsolename("Aurora Console")
  59. local main = { }
  60. local functions = { }
  61. local backups = { }
  62. local loops = { }
  63. local autotable = { }
  64. local boostertable = { }
  65.  
  66.  
  67. do--rconsole
  68.  
  69. do--hook
  70. Hint.Text = "Loading rconsole"
  71. hookfunction(warn, function(t)
  72. rconsolewarn(" [WARN]"..t)
  73. end)
  74.  
  75. hookfunction(print, function(t)
  76. rconsolewarn(" [PRINT]"..t)
  77. end)
  78.  
  79.  
  80. hookfunction(error, function(t)
  81. rconsoleerr(" [ERROR]"..t)
  82. end)
  83. end--kook
  84.  
  85. local function logo()
  86. rconsoleprint(" ______ __ __ ______ \n")
  87. rconsoleprint(" / \\ / | / | / \\ \n")
  88. rconsoleprint(" /$$$$$$ | __ __ ______ ______ ______ ______ $$ | $$ |/$$$$$$ | \n")
  89. rconsoleprint(" $$ |__$$ |/ | / | / \\ / \\ / \\ / \\ $$ | $$ |$$ ___$$ | \n")
  90. rconsoleprint(" $$ $$ |$$ | $$ |/$$$$$$ |/$$$$$$ |/$$$$$$ |$$$$$$ | $$ \\ /$$/ / $$< \n")
  91. rconsoleprint(" $$$$$$$$ |$$ | $$ |$$ | $$/ $$ | $$ |$$ | $$/ / $$ | $$ /$$/ _$$$$$ | \n")
  92. rconsoleprint(" $$ | $$ |$$ \\__$$ |$$ | $$ \\__$$ |$$ | /$$$$$$$ | $$ $$/ / \\__$$ | \n")
  93. rconsoleprint(" $$ | $$ |$$ $$/ $$ | $$ $$/ $$ | $$ $$ | $$$/ $$ $$/ \n")
  94. rconsoleprint(" $$/ $$/ $$$$$$/ $$/ $$$$$$/ $$/ $$$$$$$/ $/ $$$$$$/ \n")
  95. rconsoleprint("\n Aurora loaded, Do not close this menu just minimize it.\n\n ALL ERRORS/WARNS/PRINTS WILL BE BELOW HERE!\n\n\n")
  96. end
  97. logo()
  98.  
  99.  
  100. end--rconsole
  101.  
  102. local settings = {
  103. CrateColored = true,
  104. CrateChams = false,
  105. }
  106.  
  107. do --functions
  108. Hint.Text = "Loading Functions"
  109.  
  110. function GetColor(obj)
  111. if settings.CrateColored then
  112. if obj.Name == "ResearchCrate" then
  113. return Color3.fromRGB(255,255,255)
  114. elseif obj.Name == "GoldenCrate" then
  115. return Color3.fromRGB(255,255,0)
  116. elseif obj.Name == "DiamondCrate" then
  117. return Color3.fromRGB(0,150,255)
  118. elseif obj.Name == "LuckyCrate" then
  119. return Color3.fromRGB(0,255,100)
  120. elseif obj.Name == "CrystalCrate" then
  121. return Color3.fromRGB("255,0,255")
  122. elseif obj.Name == "ShadowCrate" then
  123. return Color3.fromRGB(255,0,255)
  124. elseif obj.Name == "MegaPumpkin" then
  125. return Color3.fromRGB(255,69,0)
  126. elseif obj.Name == "CandyCrate" then
  127. return Color3.fromRGB(255,69,0)
  128. end
  129. return Color3.fromRGB(0,0,0)
  130. else
  131. return Color3.fromRGB(255,0,255)
  132. end
  133. end
  134.  
  135.  
  136. function CreateBox(obj)
  137. local x = Instance.new("BoxHandleAdornment",obj)
  138. x.Color3 = GetColor(obj)
  139. x.Adornee = obj
  140. x.AlwaysOnTop = true
  141. x.Transparency = 0.4
  142. x.ZIndex = 5
  143. x.Size = Vector3.new(10,10,10)
  144. x.Visible = true
  145. x.Name = "fuck"
  146. return x
  147. end
  148.  
  149. function functions:TeamColor(x)
  150. if x.Team == P.Team then
  151. return Color3.fromRGB(0,255,0)
  152. else
  153. return Color3.fromRGB(255,0,0)
  154. end
  155. end
  156.  
  157. function functions:CreateWarn(t)
  158. warn(string.rep("-",25))
  159. warn(t)
  160. end
  161.  
  162. function functions:CheckSyn()
  163. if syn == nil then
  164. return false
  165. else
  166. return true
  167. end
  168. end
  169.  
  170. function functions:GetSize(p)
  171. if p:isA ("BasePart") then
  172. return p.Size
  173. end
  174. if p:IsA ("MeshPart") then
  175. return p.Size
  176. end
  177. end
  178.  
  179. function functions:WarnTable(t)
  180. for a,b in next, t do
  181. if type(b)=="table" then
  182. functions:CreateWarn("[TABLE] "..tostring(a))
  183. functions:WarnTable(b)
  184. end
  185. functions:CreateWarn("[VALUE] "..a,b)
  186. end
  187. end
  188.  
  189. function functions:GetReplicatedScripts()
  190. local x = {}
  191. for i,v in pairs(RS:GetDescendants()) do
  192. if v:isA("LocalScript") or v:isA("ModuleScript") then
  193. table.insert(x,v)
  194. end
  195. end
  196. return x
  197. end
  198.  
  199. function functions:CreateFolder(n,p)
  200. local p = n or "Folder"
  201. local Folder = Instance.new("Folder",p)
  202. Folder.Name = p
  203. return Folder
  204. end
  205.  
  206. function functions:RandomizeName(obj)
  207. if obj:isA("ScreenGui") or obj:isA("Model") then
  208. for i,v in pairs(obj:GetDescendants()) do
  209. v.Name = RandomStr
  210. end
  211. end
  212. if obj:isA("Part") or obj:isA("MeshPart") or obj:isA("UnionOperation") then
  213. obj.Name = RandomStr
  214. end
  215. end
  216.  
  217. function functions:FindWSObj(name,class)
  218. for i,v in pairs(WS:GetDescendants())do
  219. if v.Name == name and v:isA(class) then
  220. return v
  221. end
  222. end
  223. end
  224.  
  225. function functions:deepcopy(y)
  226. local orig_type = type(y)
  227. local copy
  228. if orig_type == 'table' then
  229. copy = {}
  230. for orig_key, orig_value in next, y, nil do
  231. copy[functions:deepcopy(orig_key)] = functions:deepcopy(orig_value)
  232. end
  233. setmetatable(copy, functions:deepcopy(getmetatable(y)))
  234. else
  235. copy = y
  236. end
  237. return copy
  238. end
  239.  
  240. function functions:CreateLoop(name, func, waitt, canBeDestroyed, ...)
  241. if loops[name] ~= nil then return end
  242.  
  243. loops[name] = { }
  244. loops[name].Running = false
  245. loops[name].Destroy = false
  246. loops[name].CanBeDestroyed = canBeDestroyed
  247. loops[name].Loop = coroutine.create(function(...)
  248. while true do
  249. if loops[name].Running then
  250. func(...)
  251. end
  252.  
  253. if loops[name].Destroy then
  254. break
  255. end
  256.  
  257. if type(wait) == "userdata" then
  258. waitt:wait()
  259. else
  260. wait(waitt)
  261. end
  262. end
  263. end)
  264. end
  265.  
  266. function functions:RunLoop(name, func, waitt, canBeDestroyed, ...)
  267. if loops[name] == nil then
  268. if func ~= nil then
  269. self:CreateLoop(name, func, waitt, canBeDestroyed, ...)
  270. end
  271. end
  272.  
  273. loops[name].Running = true
  274. local succ, out = coroutine.resume(loops[name].Loop)
  275. if not succ then
  276. warn("Loop: " .. tostring(name) .. " ERROR: " .. tostring(out))
  277. end
  278. end
  279.  
  280. function functions:StopLoop(name)
  281. if loops[name] == nil then return end
  282.  
  283. loops[name].Running = false
  284. end
  285.  
  286. function functions:DestroyLoop(name)
  287. if loops[name] == nil then return end
  288.  
  289. self:StopLoop(name)
  290. loops[name].Destroy = true
  291.  
  292. loops[name] = nil
  293. end
  294.  
  295. function functions:DestroyAllLoops()
  296. for i, v in next, loops do
  297. self:DestroyLoop(i)
  298. end
  299. end
  300.  
  301. function functions:Teleport(cf)
  302. local char = LP.Character
  303. if char then
  304. local hum = char:FindFirstChild("HumanoidRootPart")
  305. if hum then
  306. hum.CFrame = cf
  307. end
  308. end
  309. end
  310.  
  311. function functions:GetPlayerTycoon(plr)
  312. for i,v in pairs(Workspace.Tycoons:GetChildren()) do
  313. for ii,vv in pairs(v:GetChildren()) do
  314. if vv.Name == "Owner" then
  315. if vv.Value == plr.Name then
  316. return v
  317. end
  318. end
  319. end
  320. end
  321. end
  322.  
  323. function functions:getUpgrader(upgr)
  324. local base = self:GetPlayerTycoon(LP)
  325. if base:FindFirstChild(upgr) then
  326. return true
  327. else
  328. return false
  329. end
  330. end
  331.  
  332. function functions:getUpgraderMax(upgr)
  333. if tostring(upgr) == "Suspended Refiner" then
  334. return 1e+18
  335. elseif tostring(upgr) == "Suspended Lava Refiner" then
  336. return 1e+27
  337. elseif tostring(upgr) == "Advanced Ore Atomizer" then
  338. return 1e+21
  339. elseif tostring(upgr) == "Freon Supressor" then
  340. return 1e+23
  341. elseif tostring(upgr) == "Ore Thermocrusher" then
  342. return 1e+25
  343. elseif tostring(upgr) == "Ore Transistor" then
  344. return 1e+30
  345. elseif tostring(upgr) == "Ore Transponder" then
  346. return 1e+33
  347. elseif tostring(upgr) == "Molten Upgrader" then
  348. return 1e+18
  349. end
  350. end
  351.  
  352. end--functions
  353.  
  354.  
  355. do--table
  356. main.settings = {
  357. char = {
  358. clicktp = false,
  359. walkspeedval = 16,
  360. walkspeed = false,
  361. jumppowerval = 50,
  362. jumppower = false,
  363. },
  364. tycoon = {
  365. startmode = "Cheaper",
  366. auto = false,
  367. slot = 3,
  368. autoc = 0,
  369. boxitems = false,
  370. shopitems = true,
  371. moneystart = true,
  372. starwait = 60,
  373. autostar = false,
  374. autolayout = false,
  375. clickbuttons = false,
  376. oreamount = 70,
  377. loopactive = false,
  378. loopupgrader = "",
  379. },
  380. }
  381. end
  382.  
  383.  
  384.  
  385. function main:Init()
  386. Hint.Text = "Loading Game Function"
  387.  
  388. functions:CreateLoop("Box Chams",function()
  389. for i,v in pairs(Workspace:GetChildren()) do
  390. if v:FindFirstChild("ResearchCrateScript") and v.Name ~= "GiftCrate" and not v:FindFirstChild("Cham") and settings.CrateChams then
  391. CreateBox(v)
  392. local a = Instance.new("Model",v)
  393. a.Name = "Cham"
  394. end
  395. end
  396. for i,v in pairs(Workspace.Shadows:GetChildren()) do
  397. if v:FindFirstChild("ResearchCrateScript") and not v:FindFirstChild("Cham") and settings.CrateChams then
  398. CreateBox(v)
  399. local a = Instance.new("Model",v)
  400. a.Name = "Cham"
  401. end
  402. end
  403. end,0.5)
  404.  
  405.  
  406.  
  407. function RemoveChams()
  408. for i,v in pairs(Workspace:GetChildren()) do
  409. if v:FindFirstChild("fuck") then
  410. v.fuck:Destroy()
  411. v.Cham:Destroy()
  412. end
  413. end
  414. end
  415.  
  416. function functions:TeleportCrates()
  417. local oldpos = LP.Character.HumanoidRootPart.CFrame
  418. for i,v in pairs(Workspace:GetDescendants()) do
  419. if v:FindFirstChild("ResearchCrateScript") and v.Name ~= "GiftCrate" then
  420. if v.Parent.Name == "Workspace" or v.Parent.Name == "Shadows" then
  421. functions:Teleport(v.CFrame)
  422. wait(1)
  423. end
  424. end
  425. functions:Teleport(oldpos)
  426. end
  427. end
  428.  
  429. functions:CreateLoop("Crate TP",function()
  430. functions:TeleportCrates()
  431. end,20)
  432.  
  433.  
  434. do--auto
  435. autotable = {
  436.  
  437. items = {
  438. dragonglass = CFrame.new(-90, 11, 81, -4.37113883e-08, 0, 1, 0, 1, 0, -1, 0, -4.37113883e-08),
  439. anguishevol = CFrame.new(-64.5, 12.5, 81, 1.3907092e-07, 0, 1, 0, 1, 0, -1, 0, 1.3907092e-07),
  440.  
  441. anguish = CFrame.new(51, 5, -40.5, 1, 0, 1.74845553e-07, 0, 1, 0, -1.74845553e-07, 0, 1),
  442. yunium = CFrame.new(51, 8, -55.5, 1.19248806e-08, 0, -1, 0, 1, 0, 1, 0, 1.19248806e-08),
  443. },
  444.  
  445. buyitems = {
  446. {"Conveyor Ramp",99},
  447. {"Basic Conveyor",99},
  448. {"Centering Conveyor",99},
  449. {"Large Converter Ramp",99},
  450. {"Raised Mini Conveyor",99},
  451. {"Orbitable Upgrader",99},
  452. {"Advanced Ore Scanner",99},
  453. {"Wood Wall Segment",99},
  454. {"Ore Elevator",99},
  455. {"Ore Cannon",99},
  456. {"Ore Replicator",99},
  457. },
  458. buycrate = {
  459. {"Ore Zapper",99},
  460. {"Ore Winder",99},
  461. {"Ore Steamer",99},
  462. {"Portable Ore Stopper",99},
  463. {"Ore Hoister",99},
  464. {"Rush Upgrader",99},
  465. {"Ore Recliner",99},
  466. {"Satellite Beam",99},
  467. {"Endpoint Refiner",99},
  468. {"Heat Condenser",99},
  469. {"Industrial Ore Welder",99},
  470. {"Ore Crane",99},
  471. },
  472. }
  473. local PlaceEvent = RS.PlaceItem
  474. local RemoveAll = RS.DestroyAll
  475. local HasItem = RS.HasItem
  476. local Rebirth = RS.Rebirth
  477. local Layout = RS.Layouts
  478. local Click = RS.Click
  479. local Remote = RS.RemoteDrop
  480. local LayoutsFolder = LP.Layouts
  481. local Buy = RS.BuyItem
  482. local ToggleMines = RS.ToggleMines
  483. local Pulse = RS.Pulse
  484.  
  485.  
  486. function autotable:DestroyItem(name)
  487. local base = functions:GetPlayerTycoon(LP)
  488. if base:FindFirstChild(name) then
  489. local item = base[name]
  490. RS.DestroyItem:InvokeServer(item)
  491. end
  492. end
  493.  
  494.  
  495. function autotable:ClickButtons()
  496. local base = functions:GetPlayerTycoon(LP)
  497. if base ~= nil then
  498. for i,v in pairs(base:GetChildren()) do
  499. if v:isA("Model") then
  500. for ii,vv in pairs(v:GetDescendants()) do
  501. if vv:isA("ClickDetector") and v.Name == "Arcane Lightning" or v.Name == "Lightningbolt Refiner" then
  502. if vv.Parent:isA("Part") then
  503. Click:FireServer(vv.Parent)
  504. end
  505. end
  506. end
  507. end
  508. end
  509. end
  510. end
  511.  
  512.  
  513. functions:CreateLoop("Click Buttons",function()
  514. if main.settings.tycoon.clickbuttons then
  515. autotable:ClickButtons()
  516. end
  517. end,0.25)
  518.  
  519. functions:CreateLoop("Click Remote",function()
  520. Remote:FireServer()
  521. end,0.2)
  522.  
  523. functions:CreateLoop("Reborn",function()
  524. Rebirth:InvokeServer()
  525. end,1)
  526.  
  527. function autotable:BuyItems()
  528. for i,v in pairs(autotable.buyitems) do
  529. Buy:InvokeServer(unpack(v))
  530. wait(0.5)
  531. end
  532. end
  533.  
  534.  
  535. function autotable:BuyCrateItems()
  536. for i,v in pairs(autotable.buycrate) do
  537. Buy:InvokeServer(unpack(v))
  538. wait(0.5)
  539. end
  540. end
  541.  
  542. function autotable:StartForMoney()
  543. if main.settings.tycoon.startmode == "Expensive" then
  544. PlaceEvent:InvokeServer("Draconicglass Mine",self.items.dragonglass + functions:GetPlayerTycoon(LP).Base.Position)
  545. PlaceEvent:InvokeServer("Dreamer's Nightmare",self.items.anguishevol + functions:GetPlayerTycoon(LP).Base.Position)
  546. elseif main.settings.tycoon.startmode == "Cheaper" then
  547. PlaceEvent:InvokeServer("Yunium Mine",self.items.yunium + functions:GetPlayerTycoon(LP).Base.Position)
  548. PlaceEvent:InvokeServer("Dreamer's Anguish",self.items.anguish + functions:GetPlayerTycoon(LP).Base.Position)
  549. end
  550. wait(1)
  551. functions:RunLoop("Click Remote")
  552. wait(8)
  553. functions:StopLoop("Click Remote")
  554. wait(1)
  555. RemoveAll:InvokeServer()
  556. wait(0.5)
  557. end
  558.  
  559. function autotable:AutoStar()
  560. if main.settings.tycoon.auto then return end
  561. if main.settings.tycoon.auto == false then
  562. main.settings.tycoon.auto = true
  563. local currlife = LP.leaderstats.Life.Value
  564. local lay = "Layout"..main.settings.tycoon.slot
  565.  
  566. warn("Star start")
  567.  
  568. if main.settings.tycoon.moneystart then
  569. self:StartForMoney()
  570. else
  571. wait(3)
  572. end
  573.  
  574. if main.settings.tycoon.shopitems then
  575. self:BuyItems()
  576. wait(0.5)
  577. Buy:InvokeServer("Full Shield Conveyor",99)
  578. wait(0.5)
  579. end
  580.  
  581. if main.settings.tycoon.boxitems then
  582. self:BuyCrateItems()
  583. end
  584.  
  585. wait(1)
  586. Layout:InvokeServer("Load",lay)
  587.  
  588. warn("Star fase 1")
  589. repeat
  590. local oretext = game.Players.LocalPlayer.PlayerGui.GUI.HUDTop.Money.OreLimit.Amount
  591. local orespli = string.split(oretext.Text,"/")
  592. local orec = string.match(orespli[1],"%d+")
  593. wait()
  594. until tonumber(orec) >= main.settings.tycoon.oreamount
  595. warn("Star fase 2")
  596. autotable:DestroyItem("Symmetryte Mine")
  597.  
  598.  
  599. local count = 0
  600. repeat
  601. count = count +1
  602. wait(1)
  603. until count == main.settings.tycoon.starwait
  604. count = 0
  605. Pulse:FireServer()
  606. warn("Star fase 3")
  607.  
  608. functions:RunLoop("Reborn")
  609.  
  610. repeat
  611. wait()
  612. until LP.leaderstats.Life.Value > currlife
  613. wait(1)
  614. functions:StopLoop("Reborn")
  615. wait(4)
  616. main.settings.tycoon.auto = false
  617. warn("Star complete")
  618. end
  619. end
  620.  
  621. function autotable:AutoLayout()
  622. if main.settings.tycoon.auto then return end
  623. if main.settings.tycoon.auto == false then
  624. main.settings.tycoon.auto = true
  625. local currlife = LP.leaderstats.Life.Value
  626. local lay = "Layout"..main.settings.tycoon.slot
  627.  
  628. if main.settings.tycoon.moneystart then
  629. self:StartForMoney()
  630. else
  631. wait(3)
  632. end
  633.  
  634. if main.settings.tycoon.shopitems then
  635. self:BuyItems()
  636. end
  637.  
  638. if main.settings.tycoon.boxitems then
  639. self:BuyCrateItems()
  640. end
  641. wait(1)
  642. Layout:InvokeServer("Load",lay)
  643. functions:RunLoop("Reborn")
  644. repeat
  645. main.settings.tycoon.autoc = main.settings.tycoon.autoc + 1
  646. if main.settings.tycoon.autoc == 300 then
  647. if main.settings.tycoon.auto then
  648. RemoveAll:InvokeServer()
  649. functions:StopLoop("Reborn")
  650. wait(2)
  651. main.settings.tycoon.auto = false
  652. main.settings.tycoon.autoc = 0
  653. break
  654. else
  655. main.settings.tycoon.autoc = 0
  656. end
  657. end
  658. wait(1)
  659. until LP.leaderstats.Life.Value > currlife
  660. functions:StopLoop("Reborn")
  661. wait(4)
  662. main.settings.tycoon.auto = false
  663. main.settings.tycoon.autoc = 0
  664. end
  665.  
  666. function autotable:LoopUpgrader(item)
  667.  
  668. end
  669. end--auto
  670.  
  671.  
  672. do--ore booster
  673. boostertable = {
  674. schrod = true,
  675. blaster = true,
  676. stars = true,
  677. illuminator = true,
  678. azure = true,
  679. fire = true,
  680. reset = true,
  681. mode = "all",
  682. conveyor = "Ancient Conveyor",
  683. }
  684. local upgrs = {}
  685.  
  686.  
  687.  
  688. function boostertable:filterItem(vv)
  689. if not self.schrod and string.find(tostring(vv),"Schrodinger") then
  690. return
  691. elseif not self.blaster and string.find(tostring(vv),"Blaster") then
  692. return
  693. elseif not self.stars and string.find(tostring(vv),"Star") or tostring(vv) == "Blue Supergiant" then
  694. return
  695. elseif not self.illuminator and tostring(vv) == "Ore Illuminator" or tostring(vv) == "Ore Indoctrinator" then
  696. return
  697. elseif not self.azure and tostring(vv) == "Azure Refiner" then
  698. return
  699. elseif not self.reset and tostring(vv) == "Tesla Resetter" or tostring(vv) == "The Final Upgrader" or tostring(vv) == "The Ultimate Sacrifice" or tostring(vv) == "Black Dwarf" or tostring(vv) == "Void Star" then
  700. return
  701. elseif not self.fire and tostring(vv) == "Portable Flamethrower" or tostring(vv) == "Flaming Ore Scanner" then
  702. return
  703. end
  704. return "good"
  705. end
  706.  
  707. function boostertable:SetUpgraders()
  708. local mybase = functions:GetPlayerTycoon(LP)
  709. if not mybase:FindFirstChild(self.conveyor) then return end
  710. for i,v in pairs(Workspace.Tycoons:GetChildren()) do
  711. if v.Name ~= mybase.Name then
  712. for i,vv in pairs(v:GetChildren()) do
  713. if vv:isA("Model") and self:filterItem(vv) == "good" then
  714. if vv.Model:FindFirstChild("Upgrade") then
  715. vv.Model.Upgrade.CFrame = mybase[self.conveyor].Hitbox.CFrame
  716. end
  717. end
  718. end
  719. end
  720. end
  721. end--
  722.  
  723.  
  724. end--booster
  725.  
  726.  
  727. functions:CreateLoop("AutoLayout",function()
  728. if not main.settings.tycoon.autolayout then return end
  729. autotable:AutoLayout()
  730. end,1)
  731. functions:CreateLoop("AutoStar",function()
  732. if not main.settings.tycoon.autostar then return end
  733. autotable:AutoStar()
  734. end,1)
  735.  
  736. functions:CreateLoop("Walkspeed",function()
  737. if not main.settings.char.walkspeed then return end
  738. local char = LP.Character
  739. if char then
  740. local hum = char:FindFirstChild("Humanoid")
  741. if hum then
  742. hum.WalkSpeed = main.settings.char.walkspeedval
  743. end
  744. end
  745. end,1)
  746.  
  747. functions:CreateLoop("Jumppower",function()
  748. if not main.settings.char.jumppower then return end
  749. local char = LP.Character
  750. if char then
  751. local hum = char:FindFirstChild("Humanoid")
  752. if hum then
  753. hum.JumpPower = main.settings.char.jumppowerval
  754. end
  755. end
  756. end,1)
  757.  
  758. functions:RunLoop("Box Chams")
  759. functions:RunLoop("AutoLayout")
  760. functions:RunLoop("AutoStar")
  761. functions:RunLoop("Walkspeed")
  762. functions:RunLoop("Jumppower")
  763. functions:RunLoop("Click Buttons")
  764.  
  765. Mouse.Button1Down:connect(function()
  766. if main.settings.char.clicktp then
  767. local tar = Mouse.Hit
  768. local xx,yy,zz = tar.p.X,tar.p.Y,tar.p.Z
  769. functions:Teleport(CFrame.new(xx,yy,zz))
  770. end
  771. end)
  772.  
  773. end
  774. end
  775.  
  776.  
  777.  
  778.  
  779.  
  780.  
  781.  
  782.  
  783.  
  784.  
  785.  
  786.  
  787.  
  788.  
  789. function mainui:Init()
  790. Hint.Text = "Loading UI"
  791. do--visuals
  792.  
  793. local vis = mainui:CreateWindow("Visuals")
  794. vis:AddToggle("Crate Chams",function(state)
  795. settings.CrateChams = not settings.CrateChams
  796. if state == false then
  797. RemoveChams()
  798. end
  799. end)
  800. vis:AddDevider("Settings")
  801. vis:AddToggle("Pink Crates",function(state)
  802. if state then
  803. if settings.CrateChams then
  804. settings.CrateChams = false
  805. wait(1)
  806. RemoveChams()
  807. settings.CrateColored = false
  808. settings.CrateChams = true
  809. else
  810. settings.CrateColored = false
  811. end
  812. else
  813. if settings.CrateChams then
  814. settings.CrateChams = false
  815. wait(1)
  816. RemoveChams()
  817. settings.CrateColored = true
  818. settings.CrateChams = true
  819. else
  820. settings.CrateColored = true
  821. end
  822. end
  823. end)
  824.  
  825. end
  826.  
  827. do--character
  828. local char = mainui:CreateWindow("Character")
  829. char:AddToggle("Walkspeed",function(state)
  830. main.settings.char.walkspeed = not main.settings.char.walkspeed
  831. end)
  832. char:AddToggle("Jumppower",function(state)
  833. main.settings.char.jumppower = not main.settings.char.jumppower
  834. end)
  835. char:AddToggle("Click Teleport",function(state)
  836. main.settings.char.clicktp = not main.settings.char.clicktp
  837. end)
  838. char:AddDevider("Settings")
  839.  
  840. char:AddSlider("Walkspeed",16,300,function(val)
  841. main.settings.char.walkspeedval = val
  842. end)
  843. char:AddSlider("Jumppower",50,300,function(val)
  844. main.settings.char.jumppowerval = val
  845. end)
  846. end
  847.  
  848. do--tycoon
  849. local ty = mainui:CreateWindow("Tycoon")
  850. ty:AddToggle("Click Buttons",function(state)
  851. main.settings.tycoon.clickbuttons = not main.settings.tycoon.clickbuttons
  852. end)
  853. ty:AddToggle("Click Remote",function(state)
  854. if state then
  855. functions:RunLoop("Click Remote")
  856. else
  857. functions:StopLoop("Click Remote")
  858. end
  859. end)
  860. ty:AddToggle("Auto Reborn",function(state)
  861. if state then
  862. if main.settings.auto == false then
  863. functions:RunLoop("Reborn")
  864. end
  865. else
  866. if main.settings.auto == false then
  867. functions:StopLoop("Reborn")
  868. end
  869. end
  870. end)
  871. ty:AddToggle("Auto Layout",function(state)
  872. main.settings.tycoon.autolayout = not main.settings.tycoon.autolayout
  873. end)
  874. ty:AddToggle("Auto Star Layout",function(state)
  875. main.settings.tycoon.autostar = not main.settings.tycoon.autostar
  876. end)
  877. ty:AddDevider("Settings")
  878. ty:AddToggle("Expensive Start",function(state)
  879. if state then
  880. main.settings.tycoon.startmode = "Expensive"
  881. else
  882. main.settings.tycoon.startmode = "Cheaper"
  883. end
  884. end)
  885. ty:AddToggle("Crate Items",function(state)
  886. main.settings.tycoon.boxitems = not main.settings.tycoon.boxitems
  887. end)
  888. ty:AddToggle("No Shop Items",function(state)
  889. main.settings.tycoon.shopitems = not main.settings.tycoon.shopitems
  890. end)
  891. ty:AddToggle("No Money Start",function(state)
  892. main.settings.tycoon.moneystart = not main.settings.tycoon.moneystart
  893. end)
  894. ty:AddBox("Layout Slot",function(obj,fo)
  895. if fo then
  896. main.settings.tycoon.slot = tonumber(obj.Text)
  897. end
  898. end)
  899. ty:AddBox("Star Loop Wait",function(obj,fo)
  900. if fo then
  901. main.settings.tycoon.starwait = tonumber(obj.Text)
  902. end
  903. end)
  904. ty:AddBox("Ore Amount",function(obj,fo)
  905. if fo then
  906. main.settings.tycoon.oreamount = tonumber(obj.Text)
  907. end
  908. end)
  909.  
  910.  
  911. --[[ty:AddButton("Setup Start",function()
  912. autotable:StartForMoney()
  913. end)]]
  914. end--
  915.  
  916. do--ore booster
  917. local booster = mainui:CreateWindow("Ore Booster")
  918. booster:AddButton("Get Upgraders",function()
  919. boostertable:SetUpgraders()
  920. end)
  921. --[[booster:AddToggle("Serverwide",function(state)
  922. if state then
  923. boostertable.mode = "all"
  924. else
  925. boostertable.mode = "client"
  926. end
  927. end)]]
  928. booster:AddDevider("Settings")
  929. booster:AddBox("Conveyor Type",function(obj,fo)
  930. if fo then
  931. boostertable.conveyor = obj.Text
  932. end
  933. end)
  934.  
  935. booster:AddDevider("Blacklist Items")
  936. booster:AddToggle("No Blasters",function(state)
  937. boostertable.blaster = not boostertable.blaster
  938. end)
  939. booster:AddToggle("No Schrodingers",function(state)
  940. boostertable.schrod = not boostertable.schrod
  941. end)
  942. booster:AddToggle("No Stars",function(state)
  943. boostertable.stars = not boostertable.stars
  944. end)
  945. booster:AddToggle("No Illuminators",function(state)
  946. boostertable.illuminator = not boostertable.illuminator
  947. end)
  948. booster:AddToggle("No Azure Refiner",function(state)
  949. boostertable.azure = not boostertable.azure
  950. end)
  951. booster:AddToggle("No Fire Items",function(state)
  952. boostertable.fire = not boostertable.fire
  953. end)
  954. booster:AddToggle("No Reset Items",function(state)
  955. boostertable.reset = not boostertable.reset
  956. end)
  957. end
  958. do--loops
  959. local loop = mainui:CreateWindow("Loops")
  960. loop:AddBox("Upgrader",function(obj,fo)
  961. if fo then
  962. if functions:getUpgrader(obj.Text) then
  963. main.settings.tycoon.loopupgrader = obj.Text
  964. local base = functions:GetPlayerTycoon(LP)
  965. local upgr = base[obj.Text]
  966. upgr.Hitbox.Touched:connect(function(prt)
  967. if prt:FindFirstChild("Cash") then
  968. if prt.Cash.Value < functions:getUpgraderMax(upgr) then
  969. prt.CFrame = base[obj.Text].Model.Upgrade.CFrame
  970. end
  971. end
  972. end)
  973. else
  974. obj.Text = "No upgrader found!"
  975. wait(2)
  976. obj.Text = "Upgrader"
  977. end
  978. end
  979. end)
  980.  
  981. end
  982. do--NPC
  983. local npc = mainui:CreateWindow("NPCs")
  984. npc:AddButton("Masked Man",function()
  985. LP.PlayerGui.GUI.EventShop.Visible = true
  986. end)
  987. npc:AddButton("Box Man",function()
  988. RS.Click:FireServer(Workspace.Map.Boxman.Hitbox)
  989. end)
  990. npc:AddButton("Enchanter",function()
  991. LP.PlayerGui.GUI.Craftsman.Visible = true
  992. end)
  993. npc:AddButton("Click All NPCs",function()
  994. for i,v in pairs(Workspace.Map:GetChildren()) do
  995. if v:FindFirstChild("SantaScript") then
  996. RS.Click:FireServer(v.Hitfox)
  997. end
  998. end
  999. end)
  1000.  
  1001. end
  1002.  
  1003. do--misc
  1004. local misc = mainui:CreateWindow("Miscellaneous")
  1005. misc:AddButton("Teleport To Crates",function()
  1006. functions:TeleportCrates()
  1007. end)
  1008. misc:AddButton("Buy Crate Items",function()
  1009. autotable:BuyCrateItems()
  1010. end)
  1011. misc:AddButton("Buy Basic Items",function()
  1012. autotable:BuyItems()
  1013. end)
  1014. end
  1015.  
  1016. end
  1017.  
  1018.  
  1019. main:Init()
  1020. mainui:Init()
  1021. Hint.Text = "Loaded"
  1022. wait(1)
  1023. Hint.Text = "Right shift to toggle UI."
  1024. wait(3)
  1025. Hint:Destroy()
  1026. getgenv().aurora = true
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement