Advertisement
LeviTheOtaku

Miners Haven Rocket

Feb 23rd, 2019
75,684
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 72.68 KB | None | 0 0
  1. local version = "0.4.6"
  2.  
  3. local library = {count = 0, queue = {}, callbacks = {}, rainbowtable = {}, toggled = true, binds = {}};
  4. local defaults; do
  5. local dragger = {}; do
  6. local mouse= game:GetService("Players").LocalPlayer:GetMouse();
  7. local inputService = game:GetService('UserInputService');
  8. local heartbeat= game:GetService("RunService").Heartbeat;
  9. -- // credits to Ririchi / Inori for this cute drag function :)
  10. function dragger.new(frame)
  11. local s, event = pcall(function()
  12. return frame.MouseEnter
  13. end)
  14.  
  15. if s then
  16. frame.Active = true;
  17.  
  18. event:connect(function()
  19. local input = frame.InputBegan:connect(function(key)
  20. if key.UserInputType == Enum.UserInputType.MouseButton1 then
  21. local objectPosition = Vector2.new(mouse.X - frame.AbsolutePosition.X, mouse.Y - frame.AbsolutePosition.Y);
  22. while heartbeat:wait() and inputService:IsMouseButtonPressed(Enum.UserInputType.MouseButton1) do
  23. pcall(function()
  24. frame:TweenPosition(UDim2.new(0, mouse.X - objectPosition.X + (frame.Size.X.Offset * frame.AnchorPoint.X), 0, mouse.Y - objectPosition.Y + (frame.Size.Y.Offset * frame.AnchorPoint.Y)), 'Out', 'Linear', 0.1, true);
  25. end)
  26. end
  27. end
  28. end)
  29.  
  30. local leave;
  31. leave = frame.MouseLeave:connect(function()
  32. input:disconnect();
  33. leave:disconnect();
  34. end)
  35. end)
  36. end
  37. end
  38.  
  39. game:GetService('UserInputService').InputBegan:connect(function(key, gpe)
  40. if (not gpe) then
  41. if key.KeyCode == Enum.KeyCode.RightControl then
  42. library.toggled = not library.toggled;
  43. for i, data in next, library.queue do
  44. local pos = (library.toggled and data.p or UDim2.new(-1, 0, -0.5,0))
  45. data.w:TweenPosition(pos, (library.toggled and 'Out' or 'In'), 'Quad', 0.15, true)
  46. wait();
  47. end
  48. end
  49. end
  50. end)
  51. end
  52.  
  53. local types = {}; do
  54. types.__index = types;
  55. function types.window(name, options)
  56. library.count = library.count + 1
  57. local newWindow = library:Create('Frame', {
  58. Name = name;
  59. Size = UDim2.new(0, 190, 0, 30);
  60. BackgroundColor3 = options.topcolor;
  61. BorderSizePixel = 0;
  62. Parent = library.container;
  63. Position = UDim2.new(0, (15 + (200 * library.count) - 200), 0, 0);
  64. ZIndex = 3;
  65. library:Create('TextLabel', {
  66. Text = name;
  67. Size = UDim2.new(1, -10, 1, 0);
  68. Position = UDim2.new(0, 5, 0, 0);
  69. BackgroundTransparency = 1;
  70. Font = Enum.Font.Code;
  71. TextSize = options.titlesize;
  72. Font = options.titlefont;
  73. TextColor3 = options.titletextcolor;
  74. TextStrokeTransparency = library.options.titlestroke;
  75. TextStrokeColor3 = library.options.titlestrokecolor;
  76. ZIndex = 3;
  77. });
  78. library:Create("TextButton", {
  79. Size = UDim2.new(0, 30, 0, 30);
  80. Position = UDim2.new(1, -35, 0, 0);
  81. BackgroundTransparency = 1;
  82. Text = "-";
  83. TextSize = options.titlesize;
  84. Font = options.titlefont;--Enum.Font.Code;
  85. Name = 'window_toggle';
  86. TextColor3 = options.titletextcolor;
  87. TextStrokeTransparency = library.options.titlestroke;
  88. TextStrokeColor3 = library.options.titlestrokecolor;
  89. ZIndex = 3;
  90. });
  91. library:Create("Frame", {
  92. Name = 'Underline';
  93. Size = UDim2.new(1, 0, 0, 2);
  94. Position = UDim2.new(0, 0, 1, -2);
  95. BackgroundColor3 = (options.underlinecolor ~= "rainbow" and options.underlinecolor or Color3.new());
  96. BorderSizePixel = 0;
  97. ZIndex = 3;
  98. });
  99. library:Create('Frame', {
  100. Name = 'container';
  101. Position = UDim2.new(0, 0, 1, 0);
  102. Size = UDim2.new(1, 0, 0, 0);
  103. BorderSizePixel = 0;
  104. BackgroundColor3 = options.bgcolor;
  105. ClipsDescendants = false;
  106. library:Create('UIListLayout', {
  107. Name = 'List';
  108. SortOrder = Enum.SortOrder.LayoutOrder;
  109. })
  110. });
  111. })
  112.  
  113. if options.underlinecolor == "rainbow" then
  114. table.insert(library.rainbowtable, newWindow:FindFirstChild('Underline'))
  115. end
  116.  
  117. local window = setmetatable({
  118. count = 0;
  119. object = newWindow;
  120. container = newWindow.container;
  121. toggled = true;
  122. flags   = {};
  123.  
  124. }, types)
  125.  
  126. table.insert(library.queue, {
  127. w = window.object;
  128. p = window.object.Position;
  129. })
  130.  
  131. newWindow:FindFirstChild("window_toggle").MouseButton1Click:connect(function()
  132. window.toggled = not window.toggled;
  133. newWindow:FindFirstChild("window_toggle").Text = (window.toggled and "+" or "-")
  134. if (not window.toggled) then
  135. window.container.ClipsDescendants = true;
  136. end
  137. wait();
  138. local y = 0;
  139. for i, v in next, window.container:GetChildren() do
  140. if (not v:IsA('UIListLayout')) then
  141. y = y + v.AbsoluteSize.Y;
  142. end
  143. end
  144.  
  145. local targetSize = window.toggled and UDim2.new(1, 0, 0, y+5) or UDim2.new(1, 0, 0, 0);
  146. local targetDirection = window.toggled and "In" or "Out"
  147.  
  148. window.container:TweenSize(targetSize, targetDirection, "Quad", 0.15, true)
  149. wait(.15)
  150. if window.toggled then
  151. window.container.ClipsDescendants = false;
  152. end
  153. end)
  154.  
  155. return window;
  156. end
  157.  
  158. function types:Resize()
  159. local y = 0;
  160. for i, v in next, self.container:GetChildren() do
  161. if (not v:IsA('UIListLayout')) then
  162. y = y + v.AbsoluteSize.Y;
  163. end
  164. end
  165. self.container.Size = UDim2.new(1, 0, 0, y+5)
  166. end
  167.  
  168. function types:GetOrder()
  169. local c = 0;
  170. for i, v in next, self.container:GetChildren() do
  171. if (not v:IsA('UIListLayout')) then
  172. c = c + 1
  173. end
  174. end
  175. return c
  176. end
  177.  
  178. function types:Label(text)
  179. local v = game:GetService'TextService':GetTextSize(text, 18, Enum.Font.SourceSans, Vector2.new(math.huge, math.huge))
  180. local object = library:Create('Frame', {
  181. Size = UDim2.new(1, 0, 0, v.Y + 5);
  182. BackgroundTransparency  = 1;
  183. library:Create('TextLabel', {
  184. Size = UDim2.new(1, 0, 1, 0);
  185. Position = UDim2.new(0, 10, 0, 0);
  186. LayoutOrder = self:GetOrder();
  187.  
  188. Text = text;
  189. TextSize = 18;
  190. Font = Enum.Font.SourceSans;
  191. TextColor3 = Color3.fromRGB(255, 255, 255);
  192. BackgroundTransparency = 1;
  193. TextXAlignment = Enum.TextXAlignment.Left;
  194. TextWrapped = true;
  195. });
  196. Parent = self.container
  197. })
  198. self:Resize();
  199. end
  200.  
  201. function types:Toggle(name, options, callback)
  202. local default  = options.default or false;
  203. local location = options.location or self.flags;
  204. local flag = options.flag or "";
  205. local callback = callback or function() end;
  206.  
  207. location[flag] = default;
  208.  
  209. local check = library:Create('Frame', {
  210. BackgroundTransparency = 1;
  211. Size = UDim2.new(1, 0, 0, 25);
  212. LayoutOrder = self:GetOrder();
  213. library:Create('TextLabel', {
  214. Name = name;
  215. Text = "\r" .. name;
  216. BackgroundTransparency = 1;
  217. TextColor3 = library.options.textcolor;
  218. Position = UDim2.new(0, 5, 0, 0);
  219. Size = UDim2.new(1, -5, 1, 0);
  220. TextXAlignment = Enum.TextXAlignment.Left;
  221. Font = library.options.font;
  222. TextSize = library.options.fontsize;
  223. TextStrokeTransparency = library.options.textstroke;
  224. TextStrokeColor3 = library.options.strokecolor;
  225. library:Create('TextButton', {
  226. Text = (location[flag] and utf8.char(10003) or "");
  227. Font = library.options.font;
  228. TextSize = library.options.fontsize;
  229. Name = 'Checkmark';
  230. Size = UDim2.new(0, 20, 0, 20);
  231. Position = UDim2.new(1, -25, 0, 4);
  232. TextColor3 = library.options.textcolor;
  233. BackgroundColor3 = library.options.bgcolor;
  234. BorderColor3 = library.options.bordercolor;
  235. TextStrokeTransparency = library.options.textstroke;
  236. TextStrokeColor3 = library.options.strokecolor;
  237. })
  238. });
  239. Parent = self.container;
  240. });
  241.  
  242. local function click(t)
  243. location[flag] = not location[flag];
  244. callback(location[flag])
  245. check:FindFirstChild(name).Checkmark.Text = location[flag] and utf8.char(10003) or "";
  246. end
  247.  
  248. check:FindFirstChild(name).Checkmark.MouseButton1Click:connect(click)
  249. library.callbacks[flag] = click;
  250.  
  251. if location[flag] == true then
  252. callback(location[flag])
  253. end
  254.  
  255. self:Resize();
  256. return {
  257. Set = function(self, b)
  258. location[flag] = b;
  259. callback(location[flag])
  260. check:FindFirstChild(name).Checkmark.Text = location[flag] and utf8.char(10003) or "";
  261. end
  262. }
  263. end
  264.  
  265. function types:Button(name, callback)
  266. callback = callback or function() end;
  267.  
  268. local check = library:Create('Frame', {
  269. BackgroundTransparency = 1;
  270. Size = UDim2.new(1, 0, 0, 25);
  271. LayoutOrder = self:GetOrder();
  272. library:Create('TextButton', {
  273. Name = name;
  274. Text = name;
  275. BackgroundColor3 = library.options.btncolor;
  276. BorderColor3 = library.options.bordercolor;
  277. TextStrokeTransparency = library.options.textstroke;
  278. TextStrokeColor3 = library.options.strokecolor;
  279. TextColor3 = library.options.textcolor;
  280. Position = UDim2.new(0, 5, 0, 5);
  281. Size = UDim2.new(1, -10, 0, 20);
  282. Font = library.options.font;
  283. TextSize = library.options.fontsize;
  284. });
  285. Parent = self.container;
  286. });
  287.  
  288. check:FindFirstChild(name).MouseButton1Click:connect(callback)
  289. self:Resize();
  290.  
  291. return {
  292. Fire = function()
  293. callback();
  294. end
  295. }
  296. end
  297.  
  298. function types:Box(name, options, callback) --type, default, data, location, flag)
  299. local type   = options.type or "";
  300. local default = options.default or "";
  301. local data = options.data
  302. local location = options.location or self.flags;
  303. local flag = options.flag or "";
  304. local callback = callback or function() end;
  305. local min  = options.min or 0;
  306. local max  = options.max or 9e9;
  307.  
  308. if type == 'number' and (not tonumber(default)) then
  309. location[flag] = default;
  310. else
  311. location[flag] = "";
  312. default = "";
  313. end
  314.  
  315. local check = library:Create('Frame', {
  316. BackgroundTransparency = 1;
  317. Size = UDim2.new(1, 0, 0, 25);
  318. LayoutOrder = self:GetOrder();
  319. library:Create('TextLabel', {
  320. Name = name;
  321. Text = "\r" .. name;
  322. BackgroundTransparency = 1;
  323. TextColor3 = library.options.textcolor;
  324. TextStrokeTransparency = library.options.textstroke;
  325. TextStrokeColor3 = library.options.strokecolor;
  326. Position = UDim2.new(0, 5, 0, 0);
  327. Size = UDim2.new(1, -5, 1, 0);
  328. TextXAlignment = Enum.TextXAlignment.Left;
  329. Font = library.options.font;
  330. TextSize = library.options.fontsize;
  331. library:Create('TextBox', {
  332. TextStrokeTransparency = library.options.textstroke;
  333. TextStrokeColor3 = library.options.strokecolor;
  334. Text = tostring(default);
  335. Font = library.options.font;
  336. TextSize = library.options.fontsize;
  337. Name = 'Box';
  338. Size = UDim2.new(0, 60, 0, 20);
  339. Position = UDim2.new(1, -65, 0, 3);
  340. TextColor3 = library.options.textcolor;
  341. BackgroundColor3 = library.options.boxcolor;
  342. BorderColor3 = library.options.bordercolor;
  343. PlaceholderColor3 = library.options.placeholdercolor;
  344. })
  345. });
  346. Parent = self.container;
  347. });
  348.  
  349. local box = check:FindFirstChild(name):FindFirstChild('Box');
  350. box.FocusLost:connect(function(e)
  351. local old = location[flag];
  352. if type == "number" then
  353. local num = tonumber(box.Text)
  354. if (not num) then
  355. box.Text = tonumber(location[flag])
  356. else
  357. location[flag] = math.clamp(num, min, max)
  358. box.Text = tonumber(location[flag])
  359. end
  360. else
  361. location[flag] = tostring(box.Text)
  362. end
  363.  
  364. callback(location[flag], old, e)
  365. end)
  366.  
  367. if type == 'number' then
  368. box:GetPropertyChangedSignal('Text'):connect(function()
  369. box.Text = string.gsub(box.Text, "[%a+]", "");
  370. end)
  371. end
  372.  
  373. self:Resize();
  374. return box
  375. end
  376.  
  377. function types:Bind(name, options, callback)
  378. local location = options.location or self.flags;
  379. local keyboardOnly = options.kbonly or false
  380. local flag = options.flag or "";
  381. local callback = callback or function() end;
  382. local default  = options.default;
  383.  
  384. if keyboardOnly and (not tostring(default):find('MouseButton')) then
  385. location[flag] = default
  386. end
  387.  
  388. local banned = {
  389. Return = true;
  390. Space = true;
  391. Tab = true;
  392. Unknown = true;
  393. }
  394.  
  395. local shortNames = {
  396. RightControl = 'RightCtrl';
  397. LeftControl = 'LeftCtrl';
  398. LeftShift = 'LShift';
  399. RightShift = 'RShift';
  400. MouseButton1 = "Mouse1";
  401. MouseButton2 = "Mouse2";
  402. }
  403.  
  404. local allowed = {
  405. MouseButton1 = true;
  406. MouseButton2 = true;
  407. }  
  408.  
  409. local nm = (default and (shortNames[default.Name] or default.Name) or "None");
  410. local check = library:Create('Frame', {
  411. BackgroundTransparency = 1;
  412. Size = UDim2.new(1, 0, 0, 30);
  413. LayoutOrder = self:GetOrder();
  414. library:Create('TextLabel', {
  415. Name = name;
  416. Text = "\r" .. name;
  417. BackgroundTransparency = 1;
  418. TextColor3 = library.options.textcolor;
  419. Position = UDim2.new(0, 5, 0, 0);
  420. Size = UDim2.new(1, -5, 1, 0);
  421. TextXAlignment = Enum.TextXAlignment.Left;
  422. Font = library.options.font;
  423. TextSize = library.options.fontsize;
  424. TextStrokeTransparency = library.options.textstroke;
  425. TextStrokeColor3 = library.options.strokecolor;
  426. BorderColor3 = library.options.bordercolor;
  427. BorderSizePixel  = 1;
  428. library:Create('TextButton', {
  429. Name = 'Keybind';
  430. Text = nm;
  431. TextStrokeTransparency = library.options.textstroke;
  432. TextStrokeColor3 = library.options.strokecolor;
  433. Font = library.options.font;
  434. TextSize = library.options.fontsize;
  435. Size = UDim2.new(0, 60, 0, 20);
  436. Position = UDim2.new(1, -65, 0, 5);
  437. TextColor3 = library.options.textcolor;
  438. BackgroundColor3 = library.options.bgcolor;
  439. BorderColor3 = library.options.bordercolor;
  440. BorderSizePixel  = 1;
  441. })
  442. });
  443. Parent = self.container;
  444. });
  445.  
  446. local button = check:FindFirstChild(name).Keybind;
  447. button.MouseButton1Click:connect(function()
  448. library.binding = true
  449.  
  450. button.Text = "..."
  451. local a, b = game:GetService('UserInputService').InputBegan:wait();
  452. local name = tostring(a.KeyCode.Name);
  453. local typeName = tostring(a.UserInputType.Name);
  454.  
  455. if (a.UserInputType ~= Enum.UserInputType.Keyboard and (allowed[a.UserInputType.Name]) and (not keyboardOnly)) or (a.KeyCode and (not banned[a.KeyCode.Name])) then
  456. local name = (a.UserInputType ~= Enum.UserInputType.Keyboard and a.UserInputType.Name or a.KeyCode.Name);
  457. location[flag] = (a);
  458. button.Text = shortNames[name] or name;
  459.  
  460. else
  461. if (location[flag]) then
  462. if (not pcall(function()
  463. return location[flag].UserInputType
  464. end)) then
  465. local name = tostring(location[flag])
  466. button.Text = shortNames[name] or name
  467. else
  468. local name = (location[flag].UserInputType ~= Enum.UserInputType.Keyboard and location[flag].UserInputType.Name or location[flag].KeyCode.Name);
  469. button.Text = shortNames[name] or name;
  470. end
  471. end
  472. end
  473.  
  474. wait(0.1)  
  475. library.binding = false;
  476. end)
  477.  
  478. if location[flag] then
  479. button.Text = shortNames[tostring(location[flag].Name)] or tostring(location[flag].Name)
  480. end
  481.  
  482. library.binds[flag] = {
  483. location = location;
  484. callback = callback;
  485. };
  486.  
  487. self:Resize();
  488. end
  489.  
  490. function types:Section(name)
  491. local order = self:GetOrder();
  492. local determinedSize = UDim2.new(1, 0, 0, 25)
  493. local determinedPos = UDim2.new(0, 0, 0, 4);
  494. local secondarySize = UDim2.new(1, 0, 0, 20);
  495.  
  496. if order == 0 then
  497. determinedSize = UDim2.new(1, 0, 0, 21)
  498. determinedPos = UDim2.new(0, 0, 0, -1);
  499. secondarySize = nil
  500. end
  501.  
  502. local check = library:Create('Frame', {
  503. Name = 'Section';
  504. BackgroundTransparency = 1;
  505. Size = determinedSize;
  506. BackgroundColor3 = library.options.sectncolor;
  507. BorderSizePixel = 0;
  508. LayoutOrder = order;
  509. library:Create('TextLabel', {
  510. Name = 'section_lbl';
  511. Text = name;
  512. BackgroundTransparency = 0;
  513. BorderSizePixel = 0;
  514. BackgroundColor3 = library.options.sectncolor;
  515. TextColor3 = library.options.textcolor;
  516. Position = determinedPos;
  517. Size = (secondarySize or UDim2.new(1, 0, 1, 0));
  518. Font = library.options.font;
  519. TextSize = library.options.fontsize;
  520. TextStrokeTransparency = library.options.textstroke;
  521. TextStrokeColor3 = library.options.strokecolor;
  522. });
  523. Parent = self.container;
  524. });
  525.  
  526. self:Resize();
  527. end
  528.  
  529. function types:Slider(name, options, callback)
  530. local default = options.default or options.min;
  531. local min = options.min or 0;
  532. local max  = options.max or 1;
  533. local location = options.location or self.flags;
  534. local precise  = options.precise  or false -- e.g 0, 1 vs 0, 0.1, 0.2, ...
  535. local flag = options.flag or "";
  536. local callback = callback or function() end
  537.  
  538. location[flag] = default;
  539.  
  540. local check = library:Create('Frame', {
  541. BackgroundTransparency = 1;
  542. Size = UDim2.new(1, 0, 0, 25);
  543. LayoutOrder = self:GetOrder();
  544. library:Create('TextLabel', {
  545. Name = name;
  546. TextStrokeTransparency = library.options.textstroke;
  547. TextStrokeColor3 = library.options.strokecolor;
  548. Text = "\r" .. name;
  549. BackgroundTransparency = 1;
  550. TextColor3 = library.options.textcolor;
  551. Position = UDim2.new(0, 5, 0, 2);
  552. Size = UDim2.new(1, -5, 1, 0);
  553. TextXAlignment = Enum.TextXAlignment.Left;
  554. Font = library.options.font;
  555. TextSize = library.options.fontsize;
  556. library:Create('Frame', {
  557. Name = 'Container';
  558. Size = UDim2.new(0, 60, 0, 20);
  559. Position = UDim2.new(1, -65, 0, 3);
  560. BackgroundTransparency = 1;
  561. --BorderColor3 = library.options.bordercolor;
  562. BorderSizePixel = 0;
  563. library:Create('TextLabel', {
  564. Name = 'ValueLabel';
  565. Text = default;
  566. BackgroundTransparency = 1;
  567. TextColor3 = library.options.textcolor;
  568. Position = UDim2.new(0, -10, 0, 0);
  569. Size = UDim2.new(0, 1, 1, 0);
  570. TextXAlignment = Enum.TextXAlignment.Right;
  571. Font = library.options.font;
  572. TextSize = library.options.fontsize;
  573. TextStrokeTransparency = library.options.textstroke;
  574. TextStrokeColor3 = library.options.strokecolor;
  575. });
  576. library:Create('TextButton', {
  577. Name = 'Button';
  578. Size = UDim2.new(0, 5, 1, -2);
  579. Position = UDim2.new(0, 0, 0, 1);
  580. AutoButtonColor = false;
  581. Text = "";
  582. BackgroundColor3 = Color3.fromRGB(20, 20, 20);
  583. BorderSizePixel = 0;
  584. ZIndex = 2;
  585. TextStrokeTransparency = library.options.textstroke;
  586. TextStrokeColor3 = library.options.strokecolor;
  587. });
  588. library:Create('Frame', {
  589. Name = 'Line';
  590. BackgroundTransparency = 0;
  591. Position = UDim2.new(0, 0, 0.5, 0);
  592. Size = UDim2.new(1, 0, 0, 1);
  593. BackgroundColor3 = Color3.fromRGB(255, 255, 255);
  594. BorderSizePixel = 0;
  595. });
  596. })
  597. });
  598. Parent = self.container;
  599. });
  600.  
  601. local overlay = check:FindFirstChild(name);
  602.  
  603. local renderSteppedConnection;
  604. local inputBeganConnection;
  605. local inputEndedConnection;
  606. local mouseLeaveConnection;
  607. local mouseDownConnection;
  608. local mouseUpConnection;
  609.  
  610. check:FindFirstChild(name).Container.MouseEnter:connect(function()
  611. local function update()
  612. if renderSteppedConnection then renderSteppedConnection:disconnect() end
  613.  
  614.  
  615. renderSteppedConnection = game:GetService('RunService').RenderStepped:connect(function()
  616. local mouse = game:GetService("UserInputService"):GetMouseLocation()
  617. local percent = (mouse.X - overlay.Container.AbsolutePosition.X) / (overlay.Container.AbsoluteSize.X)
  618. percent = math.clamp(percent, 0, 1)
  619. percent = tonumber(string.format("%.2f", percent))
  620.  
  621. overlay.Container.Button.Position = UDim2.new(math.clamp(percent, 0, 0.99), 0, 0, 1)
  622.  
  623. local num = min + (max - min) * percent
  624. local value = (precise and num or math.floor(num))
  625.  
  626. overlay.Container.ValueLabel.Text = value;
  627. callback(tonumber(value))
  628. location[flag] = tonumber(value)
  629. end)
  630. end
  631.  
  632. local function disconnect()
  633. if renderSteppedConnection then renderSteppedConnection:disconnect() end
  634. if inputBeganConnection then inputBeganConnection:disconnect() end
  635. if inputEndedConnection then inputEndedConnection:disconnect() end
  636. if mouseLeaveConnection then mouseLeaveConnection:disconnect() end
  637. if mouseUpConnection then mouseUpConnection:disconnect() end
  638. end
  639.  
  640. inputBeganConnection = check:FindFirstChild(name).Container.InputBegan:connect(function(input)
  641. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  642. update()
  643. end
  644. end)
  645.  
  646. inputEndedConnection = check:FindFirstChild(name).Container.InputEnded:connect(function(input)
  647. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  648. disconnect()
  649. end
  650. end)
  651.  
  652. mouseDownConnection = check:FindFirstChild(name).Container.Button.MouseButton1Down:connect(update)
  653. mouseUpConnection   = game:GetService("UserInputService").InputEnded:connect(function(a, b)
  654. if a.UserInputType == Enum.UserInputType.MouseButton1 and (mouseDownConnection.Connected) then
  655. disconnect()
  656. end
  657. end)
  658. end)
  659.  
  660. if default ~= min then
  661. local percent = 1 - ((max - default) / (max - min))
  662. local number  = default
  663.  
  664. number = tonumber(string.format("%.2f", number))
  665. if (not precise) then
  666. number = math.floor(number)
  667. end
  668.  
  669. overlay.Container.Button.Position  = UDim2.new(math.clamp(percent, 0, 0.99), 0,  0, 1)
  670. overlay.Container.ValueLabel.Text  = number
  671. end
  672.  
  673. self:Resize();
  674. return {
  675. Set = function(self, value)
  676. local percent = 1 - ((max - value) / (max - min))
  677. local number  = value
  678.  
  679. number = tonumber(string.format("%.2f", number))
  680. if (not precise) then
  681. number = math.floor(number)
  682. end
  683.  
  684. overlay.Container.Button.Position  = UDim2.new(math.clamp(percent, 0, 0.99), 0,  0, 1)
  685. overlay.Container.ValueLabel.Text  = number
  686. location[flag] = number
  687. callback(number)
  688. end
  689. }
  690. end
  691.  
  692. function types:SearchBox(text, options, callback)
  693. local list = options.list or {};
  694. local flag = options.flag or "";
  695. local location = options.location or self.flags;
  696. local callback = callback or function() end;
  697.  
  698. local busy = false;
  699. local box = library:Create('Frame', {
  700. BackgroundTransparency = 1;
  701. Size = UDim2.new(1, 0, 0, 25);
  702. LayoutOrder = self:GetOrder();
  703. library:Create('TextBox', {
  704. Text = "";
  705. PlaceholderText = text;
  706. PlaceholderColor3 = Color3.fromRGB(60, 60, 60);
  707. Font = library.options.font;
  708. TextSize = library.options.fontsize;
  709. Name = 'Box';
  710. Size = UDim2.new(1, -10, 0, 20);
  711. Position = UDim2.new(0, 5, 0, 4);
  712. TextColor3 = library.options.textcolor;
  713. BackgroundColor3 = library.options.dropcolor;
  714. BorderColor3 = library.options.bordercolor;
  715. TextStrokeTransparency = library.options.textstroke;
  716. TextStrokeColor3 = library.options.strokecolor;
  717. library:Create('ScrollingFrame', {
  718. Position = UDim2.new(0, 0, 1, 1);
  719. Name = 'Container';
  720. BackgroundColor3 = library.options.btncolor;
  721. ScrollBarThickness = 0;
  722. BorderSizePixel = 0;
  723. BorderColor3 = library.options.bordercolor;
  724. Size = UDim2.new(1, 0, 0, 0);
  725. library:Create('UIListLayout', {
  726. Name = 'ListLayout';
  727. SortOrder = Enum.SortOrder.LayoutOrder;
  728. });
  729. ZIndex = 2;
  730. });
  731. });
  732. Parent = self.container;
  733. })
  734.  
  735. local function rebuild(text)
  736. box:FindFirstChild('Box').Container.ScrollBarThickness = 0
  737. for i, child in next, box:FindFirstChild('Box').Container:GetChildren() do
  738. if (not child:IsA('UIListLayout')) then
  739. child:Destroy();
  740. end
  741. end
  742.  
  743. if #text > 0 then
  744. for i, v in next, list do
  745. if string.sub(string.lower(v), 1, string.len(text)) == string.lower(text) then
  746. local button = library:Create('TextButton', {
  747. Text = v;
  748. Font = library.options.font;
  749. TextSize = library.options.fontsize;
  750. TextColor3 = library.options.textcolor;
  751. BorderColor3 = library.options.bordercolor;
  752. TextStrokeTransparency = library.options.textstroke;
  753. TextStrokeColor3 = library.options.strokecolor;
  754. Parent = box:FindFirstChild('Box').Container;
  755. Size = UDim2.new(1, 0, 0, 20);
  756. LayoutOrder = i;
  757. BackgroundColor3 = library.options.btncolor;
  758. ZIndex = 2;
  759. })
  760.  
  761. button.MouseButton1Click:connect(function()
  762. busy = true;
  763. box:FindFirstChild('Box').Text = button.Text;
  764. wait();
  765. busy = false;
  766.  
  767. location[flag] = button.Text;
  768. callback(location[flag])
  769.  
  770. box:FindFirstChild('Box').Container.ScrollBarThickness = 0
  771. for i, child in next, box:FindFirstChild('Box').Container:GetChildren() do
  772. if (not child:IsA('UIListLayout')) then
  773. child:Destroy();
  774. end
  775. end
  776. box:FindFirstChild('Box').Container:TweenSize(UDim2.new(1, 0, 0, 0), 'Out', 'Quad', 0.25, true)
  777. end)
  778. end
  779. end
  780. end
  781.  
  782. local c = box:FindFirstChild('Box').Container:GetChildren()
  783. local ry = (20 * (#c)) - 20
  784.  
  785. local y = math.clamp((20 * (#c)) - 20, 0, 100)
  786. if ry > 100 then
  787. box:FindFirstChild('Box').Container.ScrollBarThickness = 5;
  788. end
  789.  
  790. box:FindFirstChild('Box').Container:TweenSize(UDim2.new(1, 0, 0, y), 'Out', 'Quad', 0.25, true)
  791. box:FindFirstChild('Box').Container.CanvasSize = UDim2.new(1, 0, 0, (20 * (#c)) - 20)
  792. end
  793.  
  794. box:FindFirstChild('Box'):GetPropertyChangedSignal('Text'):connect(function()
  795. if (not busy) then
  796. rebuild(box:FindFirstChild('Box').Text)
  797. end
  798. end);
  799.  
  800. local function reload(new_list)
  801. list = new_list;
  802. rebuild("")
  803. end
  804. self:Resize();
  805. return reload, box:FindFirstChild('Box');
  806. end
  807.  
  808. function types:Dropdown(name, options, callback)
  809. local location = options.location or self.flags;
  810. local flag = options.flag or "";
  811. local callback = callback or function() end;
  812. local list = options.list or {};
  813.  
  814. location[flag] = list[1]
  815. local check = library:Create('Frame', {
  816. BackgroundTransparency = 1;
  817. Size = UDim2.new(1, 0, 0, 25);
  818. BackgroundColor3 = Color3.fromRGB(25, 25, 25);
  819. BorderSizePixel = 0;
  820. LayoutOrder = self:GetOrder();
  821. library:Create('Frame', {
  822. Name = 'dropdown_lbl';
  823. BackgroundTransparency = 0;
  824. BackgroundColor3 = library.options.dropcolor;
  825. Position = UDim2.new(0, 5, 0, 4);
  826. BorderColor3 = library.options.bordercolor;
  827. Size = UDim2.new(1, -10, 0, 20);
  828. library:Create('TextLabel', {
  829. Name = 'Selection';
  830. Size = UDim2.new(1, 0, 1, 0);
  831. Text = list[1];
  832. TextColor3 = library.options.textcolor;
  833. BackgroundTransparency = 1;
  834. Font = library.options.font;
  835. TextSize = library.options.fontsize;
  836. TextStrokeTransparency = library.options.textstroke;
  837. TextStrokeColor3 = library.options.strokecolor;
  838. });
  839. library:Create("TextButton", {
  840. Name = 'drop';
  841. BackgroundTransparency = 1;
  842. Size = UDim2.new(0, 20, 1, 0);
  843. Position = UDim2.new(1, -25, 0, 0);
  844. Text = 'v';
  845. TextColor3 = library.options.textcolor;
  846. Font = library.options.font;
  847. TextSize = library.options.fontsize;
  848. TextStrokeTransparency = library.options.textstroke;
  849. TextStrokeColor3 = library.options.strokecolor;
  850. })
  851. });
  852. Parent = self.container;
  853. });
  854.  
  855. local button = check:FindFirstChild('dropdown_lbl').drop;
  856. local input;
  857.  
  858. button.MouseButton1Click:connect(function()
  859. if (input and input.Connected) then
  860. return
  861. end
  862.  
  863. check:FindFirstChild('dropdown_lbl'):WaitForChild('Selection').TextColor3 = Color3.fromRGB(60, 60, 60);
  864. check:FindFirstChild('dropdown_lbl'):WaitForChild('Selection').Text = name;
  865. local c = 0;
  866. for i, v in next, list do
  867. c = c + 20;
  868. end
  869.  
  870. local size = UDim2.new(1, 0, 0, c)
  871.  
  872. local clampedSize;
  873. local scrollSize = 0;
  874. if size.Y.Offset > 100 then
  875. clampedSize = UDim2.new(1, 0, 0, 100)
  876. scrollSize = 5;
  877. end
  878.  
  879. local goSize = (clampedSize ~= nil and clampedSize) or size;
  880. local container = library:Create('ScrollingFrame', {
  881. TopImage = 'rbxasset://textures/ui/Scroll/scroll-middle.png';
  882. BottomImage = 'rbxasset://textures/ui/Scroll/scroll-middle.png';
  883. Name = 'DropContainer';
  884. Parent = check:FindFirstChild('dropdown_lbl');
  885. Size = UDim2.new(1, 0, 0, 0);
  886. BackgroundColor3 = library.options.bgcolor;
  887. BorderColor3 = library.options.bordercolor;
  888. Position = UDim2.new(0, 0, 1, 0);
  889. ScrollBarThickness = scrollSize;
  890. CanvasSize = UDim2.new(0, 0, 0, size.Y.Offset);
  891. ZIndex = 5;
  892. ClipsDescendants = true;
  893. library:Create('UIListLayout', {
  894. Name = 'List';
  895. SortOrder = Enum.SortOrder.LayoutOrder
  896. })
  897. })
  898.  
  899. for i, v in next, list do
  900. local btn = library:Create('TextButton', {
  901. Size = UDim2.new(1, 0, 0, 20);
  902. BackgroundColor3 = library.options.btncolor;
  903. BorderColor3 = library.options.bordercolor;
  904. Text = v;
  905. Font = library.options.font;
  906. TextSize = library.options.fontsize;
  907. LayoutOrder = i;
  908. Parent = container;
  909. ZIndex = 5;
  910. TextColor3 = library.options.textcolor;
  911. TextStrokeTransparency = library.options.textstroke;
  912. TextStrokeColor3 = library.options.strokecolor;
  913. })
  914.  
  915. btn.MouseButton1Click:connect(function()
  916. check:FindFirstChild('dropdown_lbl'):WaitForChild('Selection').TextColor3 = library.options.textcolor
  917. check:FindFirstChild('dropdown_lbl'):WaitForChild('Selection').Text = btn.Text;
  918.  
  919. location[flag] = tostring(btn.Text);
  920. callback(location[flag])
  921.  
  922. game:GetService('Debris'):AddItem(container, 0)
  923. input:disconnect();
  924. end)
  925. end
  926.  
  927. container:TweenSize(goSize, 'Out', 'Quad', 0.15, true)
  928.  
  929. local function isInGui(frame)
  930. local mloc = game:GetService('UserInputService'):GetMouseLocation();
  931. local mouse = Vector2.new(mloc.X, mloc.Y - 36);
  932.  
  933. local x1, x2 = frame.AbsolutePosition.X, frame.AbsolutePosition.X + frame.AbsoluteSize.X;
  934. local y1, y2 = frame.AbsolutePosition.Y, frame.AbsolutePosition.Y + frame.AbsoluteSize.Y;
  935.  
  936. return (mouse.X >= x1 and mouse.X <= x2) and (mouse.Y >= y1 and mouse.Y <= y2)
  937. end
  938.  
  939. input = game:GetService('UserInputService').InputBegan:connect(function(a)
  940. if a.UserInputType == Enum.UserInputType.MouseButton1 and (not isInGui(container)) then
  941. check:FindFirstChild('dropdown_lbl'):WaitForChild('Selection').TextColor3 = library.options.textcolor
  942. check:FindFirstChild('dropdown_lbl'):WaitForChild('Selection').Text   = location[flag];
  943.  
  944. container:TweenSize(UDim2.new(1, 0, 0, 0), 'In', 'Quad', 0.15, true)
  945. wait(0.15)
  946.  
  947. game:GetService('Debris'):AddItem(container, 0)
  948. input:disconnect();
  949. end
  950. end)
  951. end)
  952.  
  953. self:Resize();
  954. local function reload(self, array)
  955. options = array;
  956. location[flag] = array[1];
  957. pcall(function()
  958. input:disconnect()
  959. end)
  960. check:WaitForChild('dropdown_lbl').Selection.Text = location[flag]
  961. check:FindFirstChild('dropdown_lbl'):WaitForChild('Selection').TextColor3 = library.options.textcolor
  962. game:GetService('Debris'):AddItem(container, 0)
  963. end
  964.  
  965. return {
  966. Refresh = reload;
  967. }
  968. end
  969. end
  970.  
  971. function library:Create(class, data)
  972. local obj = Instance.new(class);
  973. for i, v in next, data do
  974. if i ~= 'Parent' then
  975.  
  976. if typeof(v) == "Instance" then
  977. v.Parent = obj;
  978. else
  979. obj[i] = v
  980. end
  981. end
  982. end
  983.  
  984. obj.Parent = data.Parent;
  985. return obj
  986. end
  987.  
  988. function library:CreateWindow(name, options)
  989. if (not library.container) then
  990. library.container = self:Create("ScreenGui", {
  991. self:Create('Frame', {
  992. Name = 'Container';
  993. Size = UDim2.new(1, -30, 1, 0);
  994. Position = UDim2.new(0, 20, 0, 20);
  995. BackgroundTransparency = 1;
  996. Active = false;
  997. });
  998. Parent = game:GetService("CoreGui");
  999. }):FindFirstChild('Container');
  1000. end
  1001.  
  1002. if (not library.options) then
  1003. library.options = setmetatable(options or {}, {__index = defaults})
  1004. end
  1005.  
  1006. local window = types.window(name, library.options);
  1007. dragger.new(window.object);
  1008. return window
  1009. end
  1010.  
  1011. default = {
  1012. topcolor   = Color3.fromRGB(30, 30, 30);
  1013. titlecolor = Color3.fromRGB(255, 255, 255);
  1014.  
  1015. underlinecolor = "rainbow";
  1016. bgcolor= Color3.fromRGB(35, 35, 35);
  1017. boxcolor   = Color3.fromRGB(35, 35, 35);
  1018. btncolor   = Color3.fromRGB(25, 25, 25);
  1019. dropcolor  = Color3.fromRGB(25, 25, 25);
  1020. sectncolor = Color3.fromRGB(25, 25, 25);
  1021. bordercolor= Color3.fromRGB(60, 60, 60);
  1022.  
  1023. font   = Enum.Font.SourceSans;
  1024. titlefont  = Enum.Font.Code;
  1025.  
  1026. fontsize   = 17;
  1027. titlesize  = 18;
  1028.  
  1029. textstroke = 1;
  1030. titlestroke= 1;
  1031.  
  1032. strokecolor= Color3.fromRGB(0, 0, 0);
  1033.  
  1034. textcolor  = Color3.fromRGB(255, 255, 255);
  1035. titletextcolor = Color3.fromRGB(255, 255, 255);
  1036.  
  1037. placeholdercolor = Color3.fromRGB(255, 255, 255);
  1038. titlestrokecolor = Color3.fromRGB(0, 0, 0);
  1039. }
  1040.  
  1041. library.options = setmetatable({}, {__index = default})
  1042.  
  1043. spawn(function()
  1044. while true do
  1045. for i=0, 1, 1 / 300 do  
  1046. for _, obj in next, library.rainbowtable do
  1047. obj.BackgroundColor3 = Color3.fromHSV(i, 1, 1);
  1048. end
  1049. wait()
  1050. end;
  1051. end
  1052. end)
  1053.  
  1054. local function isreallypressed(bind, inp)
  1055. local key = bind
  1056. if typeof(key) == "Instance" then
  1057. if key.UserInputType == Enum.UserInputType.Keyboard and inp.KeyCode == key.KeyCode then
  1058. return true;
  1059. elseif tostring(key.UserInputType):find('MouseButton') and inp.UserInputType == key.UserInputType then
  1060. return true
  1061. end
  1062. end
  1063. if tostring(key):find'MouseButton1' then
  1064. return key == inp.UserInputType
  1065. else
  1066. return key == inp.KeyCode
  1067. end
  1068. end
  1069.  
  1070. game:GetService("UserInputService").InputBegan:connect(function(input)
  1071. if (not library.binding) then
  1072. for idx, binds in next, library.binds do
  1073. local real_binding = binds.location[idx];
  1074. if real_binding and isreallypressed(real_binding, input) then
  1075. binds.callback()
  1076. end
  1077. end
  1078. end
  1079. end)
  1080. end
  1081.  
  1082.  
  1083. local w = library:CreateWindow("Rocket v" .. version)
  1084. w:Section("Crates")
  1085. local selected = "none"
  1086. w:Dropdown("Box Types", {
  1087. flag = "boxtype";
  1088. list = {
  1089. "Inferno";
  1090. "Unreal";
  1091. "Regular";
  1092. "Luxury";
  1093. "Spectral";
  1094. }
  1095. }, function(new)
  1096. selected = new
  1097. end)
  1098.  
  1099. w:Toggle("Auto Open Crates", {flag = "autocrates"})
  1100. spawn(function()
  1101. while wait(7.5) do
  1102. if w.flags.autocrates == true then
  1103. if selected ~= "none" then
  1104. if game.Players.LocalPlayer.Crates[selected].Value >= 1 then
  1105. game.ReplicatedStorage.MysteryBox:InvokeServer(selected)
  1106. end
  1107. end
  1108. end
  1109. end
  1110. end)
  1111.  
  1112. w:Section("Shops")
  1113.  
  1114. w:Button("Masked Man", function()
  1115. local gui = game.Players.LocalPlayer.PlayerGui:WaitForChild("GUI")
  1116. if gui.EventShop.Visible == false then
  1117. gui.EventShop.Visible = true
  1118. else
  1119. gui.EventShop.Visible = false
  1120. end
  1121. end)
  1122.  
  1123. w:Button("Craftsman", function()
  1124. local gui = game.Players.LocalPlayer.PlayerGui:WaitForChild("GUI")
  1125. if gui.Craftsman.Visible == false then
  1126. gui.Craftsman.Visible = true
  1127. local lock = gui.Craftsman:getDescendants()
  1128. for i=1,#lock do
  1129. if lock[i].Name == "LockedItem" then
  1130. lock[i].Visible = false
  1131. end
  1132. end
  1133. else
  1134. gui.Craftsman.Visible = false
  1135. end
  1136. end)
  1137.  
  1138. w:Button("Buy Blueprints", function()
  1139. local items = game.ReplicatedStorage.Items:getChildren()
  1140. for i=1,#items do
  1141. if items[i]:findFirstChild("BlueprintPrice") then
  1142. if items[i].BlueprintPrice.Value <= game.Players.LocalPlayer.Points.Value then
  1143. game.ReplicatedStorage.CraftsmanEvents:InvokeServer("type:buyblueprint", items[i].ItemId.Value)
  1144. end
  1145. end
  1146. end
  1147. end)
  1148.  
  1149. w:Section("Automation")
  1150. w:Toggle("Auto Rebirth", {flag = "autorebirth"})
  1151. spawn(function()
  1152. while true do
  1153. wait(1)
  1154. if w.flags.autorebirth == true then
  1155. game.ReplicatedStorage.Rebirth:InvokeServer()
  1156. end
  1157. end
  1158. end)
  1159.  
  1160. w:Toggle("Auto Remote", {flag = "autoremote"})
  1161. spawn(function()
  1162. while true do
  1163. wait()
  1164. if w.flags.autoremote == true then
  1165. game.ReplicatedStorage.RemoteDrop:FireServer()
  1166. end
  1167. end
  1168. end)
  1169.  
  1170. w:Toggle("Auto Button", {flag = "autobutton"})
  1171. spawn(function()
  1172. while true do
  1173. wait(0.1)
  1174. if w.flags.autobutton == true then
  1175. local clickymines = workspace.Tycoons[tostring(game.Players.LocalPlayer.PlayerTycoon.Value)]:GetChildren()
  1176. for i =1, #clickymines do
  1177. if clickymines[i].ClassName == "Model" then
  1178. if clickymines[i].Model:findFirstChild("Button") then
  1179. local de = clickymines[i].Model:GetChildren()
  1180. for i =1, #de do
  1181. if de[i].Name == "Button" then
  1182. game.ReplicatedStorage.Click:FireServer(de[i])
  1183. end
  1184. end
  1185. end
  1186. end
  1187. end
  1188. end
  1189. end
  1190. end)
  1191.  
  1192. w:Toggle("Auto Loadout 1", {flag = "autoloadout1"})
  1193. spawn(function()
  1194. while true do
  1195. wait(2)
  1196. if w.flags.autoloadout1 == true and #game.Players.LocalPlayer.PlayerTycoon.Value:getChildren() -4 ~= #game:GetService("HttpService"):JSONDecode(game.Players.LocalPlayer.Layouts.Layout1.Value) then
  1197. local tycoon = game.Players.LocalPlayer.PlayerTycoon.Value
  1198. game.ReplicatedStorage.Layouts:InvokeServer("Load","Layout1")
  1199. end
  1200. end
  1201. end)
  1202. w:Toggle("Auto Loadout 2", {flag = "autoloadout2"})
  1203. spawn(function()
  1204. while true do
  1205. wait(2)
  1206. if w.flags.autoloadout2 == true and #game.Players.LocalPlayer.PlayerTycoon.Value:getChildren() -4 ~= #game:GetService("HttpService"):JSONDecode(game.Players.LocalPlayer.Layouts.Layout2.Value) then
  1207. local tycoon = game.Players.LocalPlayer.PlayerTycoon.Value
  1208. game.ReplicatedStorage.Layouts:InvokeServer("Load","Layout2")
  1209. end
  1210. end
  1211. end)
  1212. w:Toggle("Auto Loadout 3", {flag = "autoloadout3"})
  1213. spawn(function()
  1214. while true do
  1215. wait(2)
  1216. if w.flags.autoloadout3 == true and #game.Players.LocalPlayer.PlayerTycoon.Value:getChildren() -4 ~= #game:GetService("HttpService"):JSONDecode(game.Players.LocalPlayer.Layouts.Layout3.Value) then
  1217. local tycoon = game.Players.LocalPlayer.PlayerTycoon.Value
  1218. game.ReplicatedStorage.Layouts:InvokeServer("Load","Layout3")
  1219. end
  1220. end
  1221. end)
  1222.  
  1223. w:Toggle("Auto Star Loop", {flag = "autostarloop"})
  1224. spawn(function()
  1225. local tycoon = game.Players.LocalPlayer.PlayerTycoon.Value
  1226.  
  1227. workspace.DroppedParts[tycoon.Name].ChildAdded:connect(function(ore)
  1228. if not ore:findFirstChild("Fuel") then
  1229. if w.flags.autostarloop then
  1230. workspace.CurrentCamera.CameraSubject = ore
  1231. local cash = ore:WaitForChild("Cash")
  1232. if ore:FindFirstChild("Cash") then
  1233.  
  1234. if tycoon:findFirstChild("Catalyzed Star") then
  1235. repeat
  1236. if ore.Cash.Value < 1e+30 then
  1237. wait(0.65)
  1238. if tycoon:findFirstChild("Morning Star") then
  1239. wait(0.25)
  1240. ore.Velocity = Vector3.new(0, -1, 0)
  1241. ore.CFrame = tycoon["Morning Star"].Model.Upgrade.CFrame
  1242. end
  1243. end
  1244. if not ore:findFirstChild("NovaStar") and tycoon:findFirstChild("Nova Star") then
  1245. ore.Velocity = Vector3.new(0, -1, 0)
  1246. ore.CFrame = tycoon["Nova Star"].Model.Upgrade.CFrame
  1247. wait(0.4)
  1248. else
  1249. wait(0.3)
  1250. end
  1251. if ore.Cash.Value > 1e+30 then
  1252. wait(0.4)
  1253. end
  1254. ore.Velocity = Vector3.new(0, -1, 0)
  1255. ore.CFrame = tycoon["Catalyzed Star"].Model.Upgrade.CFrame
  1256. wait(0.4)
  1257. until ore.Cash.Value > 1e+60
  1258.  
  1259. for i=1,2 do
  1260. local itemsParts = tycoon:getDescendants()
  1261. for i=1,#itemsParts do
  1262. if itemsParts[i].Name == "Upgrade" then
  1263. if not string.match(string.lower(itemsParts[i]:GetFullName()), "star") and not string.match(string.lower(itemsParts[i]:GetFullName()), "tesla") and not string.match(string.lower(itemsParts[i]:GetFullName()), "tracker") then
  1264. print(tostring(ore.Cash.Value) .. " from " .. itemsParts[i]:GetFullName())
  1265. ore.Velocity = Vector3.new(0, -1, 0)
  1266. ore.CFrame = itemsParts[i].CFrame
  1267. wait(0.1)
  1268. end
  1269. end
  1270. end
  1271. end
  1272.  
  1273. local itemsParts = tycoon:getDescendants()
  1274. for i=1,#itemsParts do
  1275. if itemsParts[i].Name == "Upgrade" then
  1276. if string.match(string.lower(itemsParts[i]:GetFullName()), "tesla") then
  1277. print(tostring(ore.Cash.Value) .. " from " .. itemsParts[i]:GetFullName())
  1278. ore.Velocity = Vector3.new(0, -1, 0)
  1279. ore.CFrame = itemsParts[i].CFrame
  1280. wait(0.1)
  1281. end
  1282. end
  1283. end
  1284.  
  1285.  
  1286. for i=1,2 do
  1287. local itemsParts = tycoon:getDescendants()
  1288. for i=1,#itemsParts do
  1289. if itemsParts[i].Name == "Upgrade" then
  1290. if not string.match(string.lower(itemsParts[i]:GetFullName()), "star") and not string.match(string.lower(itemsParts[i]:GetFullName()), "tesla") and not string.match(string.lower(itemsParts[i]:GetFullName()), "tracker") then
  1291. print(tostring(ore.Cash.Value) .. " from " .. itemsParts[i]:GetFullName())
  1292. ore.Velocity = Vector3.new(0, -1, 0)
  1293. ore.CFrame = itemsParts[i].CFrame
  1294. wait(0.1)
  1295. end
  1296. end
  1297. end
  1298. end
  1299.  
  1300. local furnace = tycoon:getChildren()
  1301. for i=1,#furnace do
  1302. if furnace[i]:findFirstChild("Model") then
  1303. if furnace[i].Model:findFirstChild("Lava") then
  1304. ore.CFrame = furnace[i].Model.Lava.CFrame
  1305. end
  1306. end
  1307. end
  1308. repeat wait() until ore ~= nil
  1309. wait(1)
  1310. game.ReplicatedStorage.Rebirth:InvokeServer()
  1311. wait(4)
  1312. game.ReplicatedStorage.Layouts:InvokeServer("Load","Layout1")
  1313. else
  1314. repeat
  1315. if ore.Cash.Value < 1e+30 then
  1316. if tycoon:findFirstChild("Morning Star") then
  1317. wait(0.85)
  1318. ore.Velocity = Vector3.new(0, -1, 0)
  1319. ore.CFrame = tycoon["Morning Star"].Model.Upgrade.CFrame
  1320. end
  1321. end
  1322. if not ore:findFirstChild("NovaStar") and tycoon:findFirstChild("Nova Star") then
  1323. ore.Velocity = Vector3.new(0, -1, 0)
  1324. ore.CFrame = tycoon["Nova Star"].Model.Upgrade.CFrame
  1325. wait(0.4)
  1326. else
  1327. wait(0.3)
  1328. end
  1329. if ore.Cash.Value > 1e+30 then
  1330. wait(0.4)
  1331. end
  1332. until ore.Cash.Value > 1e+30
  1333.  
  1334. for i=1,2 do
  1335. local itemsParts = tycoon:getDescendants()
  1336. for i=1,#itemsParts do
  1337. if itemsParts[i].Name == "Upgrade" then
  1338. if not string.match(string.lower(itemsParts[i]:GetFullName()), "star") and not string.match(string.lower(itemsParts[i]:GetFullName()), "tesla") and not string.match(string.lower(itemsParts[i]:GetFullName()), "tracker") then
  1339. print(tostring(ore.Cash.Value) .. " from " .. itemsParts[i]:GetFullName())
  1340. ore.Velocity = Vector3.new(0, -1, 0)
  1341. ore.CFrame = itemsParts[i].CFrame
  1342. wait(0.1)
  1343. end
  1344. end
  1345. end
  1346. end
  1347.  
  1348. local itemsParts = tycoon:getDescendants()
  1349. for i=1,#itemsParts do
  1350. if itemsParts[i].Name == "Upgrade" then
  1351. if string.match(string.lower(itemsParts[i]:GetFullName()), "tesla") then
  1352. print(tostring(ore.Cash.Value) .. " from " .. itemsParts[i]:GetFullName())
  1353. ore.Velocity = Vector3.new(0, -1, 0)
  1354. ore.CFrame = itemsParts[i].CFrame
  1355. wait(0.1)
  1356. end
  1357. end
  1358. end
  1359.  
  1360.  
  1361. for i=1,2 do
  1362. local itemsParts = tycoon:getDescendants()
  1363. for i=1,#itemsParts do
  1364. if itemsParts[i].Name == "Upgrade" then
  1365. if not string.match(string.lower(itemsParts[i]:GetFullName()), "star") and not string.match(string.lower(itemsParts[i]:GetFullName()), "tesla") and not string.match(string.lower(itemsParts[i]:GetFullName()), "tracker") then
  1366. print(tostring(ore.Cash.Value) .. " from " .. itemsParts[i]:GetFullName())
  1367. ore.Velocity = Vector3.new(0, -1, 0)
  1368. ore.CFrame = itemsParts[i].CFrame
  1369. wait(0.1)
  1370. end
  1371. end
  1372. end
  1373. end
  1374.  
  1375. local furnace = tycoon:getChildren()
  1376. for i=1,#furnace do
  1377. if furnace[i]:findFirstChild("Model") then
  1378. if furnace[i].Model:findFirstChild("Lava") then
  1379. ore.CFrame = furnace[i].Model.Lava.CFrame
  1380. end
  1381. end
  1382. end
  1383. repeat wait() until ore ~= nil
  1384. wait(1)
  1385. game.ReplicatedStorage.Rebirth:InvokeServer()
  1386. wait(4)
  1387. game.ReplicatedStorage.Layouts:InvokeServer("Load","Layout1")
  1388. end
  1389. end
  1390. end
  1391. end
  1392. end)
  1393. end)
  1394.  
  1395. w:Toggle("Auto Box Farm", {flag = "boxfarm"})
  1396. spawn(function()
  1397. while wait(0.1) do
  1398. if w.flags.boxfarm == true then
  1399. local crates = workspace:getChildren()
  1400. for i=1,#crates do
  1401. if crates[i]:findFirstChild("BoxModule") then
  1402. crates[i].Anchored = true
  1403. crates[i].CanCollide = false
  1404. crates[i].Transparency = 1
  1405. crates[i].Size = Vector3.new(50000,50000,50000)
  1406. end
  1407. end
  1408. local crates = workspace.Shadows:getChildren()
  1409. for i=1,#crates do
  1410. if crates[i]:findFirstChild("BoxModule") then
  1411. crates[i].Anchored = true
  1412. crates[i].CanCollide = false
  1413. crates[i].Transparency = 1
  1414. crates[i].Size = Vector3.new(50000,50000,50000)
  1415. end
  1416. end
  1417.  
  1418. end
  1419. end
  1420. end)
  1421.  
  1422.  
  1423.  
  1424. w:Section("Misc")
  1425.  
  1426. w:Button("TP ores to player", function()
  1427. local tycoon = game.Players.LocalPlayer.PlayerTycoon.Value
  1428. local ores = workspace.DroppedParts[tycoon.Name]:getChildren()
  1429. for i=1,#ores do
  1430. ores[i].CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame
  1431. end
  1432. end)
  1433.  
  1434.  
  1435. w:Toggle("TP ores to furnace", {flag = "tporestofurnace"})
  1436. spawn(function()
  1437. local plrbase = game.Players.LocalPlayer.PlayerTycoon.Value
  1438. workspace.DroppedParts[plrbase.Name].ChildAdded:connect(function(ore)
  1439. if w.flags.tporestofurnace == true then
  1440. local lava = plrbase:getDescendants()
  1441. for i=1,#lava do
  1442. if lava[i].Name == "Lava" then
  1443. ore.CFrame = lava[i].CFrame + Vector3.new(math.random(-1,1), math.random(-1,1), math.random(-1,1))
  1444. ore.CanCollide = false
  1445. wait(0.1)
  1446. if ore ~= nil then
  1447. ore:remove()
  1448. end
  1449. end
  1450. end
  1451. end
  1452. end)
  1453. end)
  1454.  
  1455. w:Toggle("Anti AFK", {flag = "antiafkkick"})
  1456. spawn(function()
  1457. while true do
  1458. wait(1)
  1459. if w.flags.antiafkkick == true then
  1460. wait(math.random(0.3,1.1))
  1461. local vu = game:GetService("VirtualUser")
  1462. game:GetService("Players").LocalPlayer.Idled:connect(function()
  1463. vu:Button2Down(Vector2.new(0,0),workspace.CurrentCamera.CFrame)
  1464. wait(math.random(0.3,1.1))
  1465. vu:Button2Up(Vector2.new(0,0),workspace.CurrentCamera.CFrame)
  1466. end)
  1467. end
  1468. end
  1469. end)
  1470.  
  1471.  
  1472. w:Button("Fix Camera", function()
  1473. workspace.CurrentCamera.CameraSubject = game.Players.LocalPlayer.Character.Humanoid
  1474. workspace.CurrentCamera.CameraType = "Custom"
  1475. game.Players.LocalPlayer.CameraMinZoomDistance = 0.5
  1476. game.Players.LocalPlayer.CameraMaxZoomDistance = 400
  1477. game.Players.LocalPlayer.CameraMode = "Classic"
  1478. end)
  1479.  
  1480. w:Bind("Toggle Gui", {
  1481. flag = "toggleopenclosemain";
  1482. kbonly = true;
  1483. default = Enum.KeyCode.X;
  1484. }, function()
  1485. local window = nil
  1486. local windowFinder = game.CoreGui:getDescendants()
  1487. for i=1,#windowFinder do
  1488. if windowFinder[i].Name == "Rocket v" .. version then
  1489. window = windowFinder[i]
  1490. end
  1491. end
  1492. if window.Visible == true then
  1493. window.Visible = false
  1494. else
  1495. window.Visible = true
  1496. end
  1497. end)
  1498. w:Section("Created by Levi#7059")
  1499. w:Section("LeviTheOtaku @ v3rm")
  1500.  
  1501.  
  1502. local w2 = library:CreateWindow("Universe TP")
  1503. w2:Section("Universe Teleports")
  1504. local pages = game:GetService("AssetService"):GetGamePlacesAsync()
  1505. while true do
  1506. for _,place in pairs(pages:GetCurrentPage()) do
  1507. local b = w2:Button(place.Name, function()
  1508. game:GetService("TeleportService"):Teleport(place.PlaceId, game.Players.LocalPlayer)
  1509. end)
  1510. end
  1511. if pages.IsFinished then
  1512. break
  1513. end
  1514. pages:AdvanceToNextPageAsync()
  1515. end
  1516.  
  1517.  
  1518. w2:Bind("Toggle Gui", {
  1519. flag = "toggleopenclosetp";
  1520. kbonly = true;
  1521. default = Enum.KeyCode.N;
  1522. }, function()
  1523. local window = nil
  1524. local windowFinder = game.CoreGui:getDescendants()
  1525. for i=1,#windowFinder do
  1526. if windowFinder[i].Name == "Universe TP" then
  1527. window = windowFinder[i]
  1528. end
  1529. end
  1530. if window.Visible == true then
  1531. window.Visible = false
  1532. else
  1533. window.Visible = true
  1534. end
  1535. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement