Advertisement
kenneth2231

Ninja Legends script Aug 2021

Aug 27th, 2021
3,599
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local player = game.Players.LocalPlayer
  2. local library = {count = 0, queue = {}, callbacks = {}, rainbowtable = {}, toggled = true, binds = {}};
  3. local defaults; do
  4.     local dragger = {}; do
  5.         local mouse        = game:GetService("Players").LocalPlayer:GetMouse();
  6.         local inputService = game:GetService('UserInputService');
  7.         local heartbeat    = game:GetService("RunService").Heartbeat;
  8.         -- // credits to Ririchi / Inori for this cute drag function :)
  9.         function dragger.new(frame)
  10.             local s, event = pcall(function()
  11.                 return frame.MouseEnter
  12.             end)
  13.  
  14.             if s then
  15.                 frame.Active = true;
  16.  
  17.                 event:connect(function()
  18.                     local input = frame.InputBegan:connect(function(key)
  19.                         if key.UserInputType == Enum.UserInputType.MouseButton1 then
  20.                             local objectPosition = Vector2.new(mouse.X - frame.AbsolutePosition.X, mouse.Y - frame.AbsolutePosition.Y);
  21.                             while heartbeat:wait() and inputService:IsMouseButtonPressed(Enum.UserInputType.MouseButton1) do
  22.                                 pcall(function()
  23.                                     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);
  24.                                 end)
  25.                             end
  26.                         end
  27.                     end)
  28.  
  29.                     local leave;
  30.                     leave = frame.MouseLeave:connect(function()
  31.                         input:disconnect();
  32.                         leave:disconnect();
  33.                     end)
  34.                 end)
  35.             end
  36.         end
  37.  
  38.         game:GetService('UserInputService').InputBegan:connect(function(key, gpe)
  39.             if (not gpe) then
  40.                 if key.KeyCode == Enum.KeyCode.F15 then
  41.                     library.toggled = not library.toggled;
  42.                     for i, data in next, library.queue do
  43. local pos = (library.toggled and data.p or UDim2.new(-1, 0, -0.5,0))
  44. data.w:TweenPosition(pos, (library.toggled and 'Out' or 'In'), 'Quad', 0.15, true)
  45.                         wait();
  46.                     end
  47.                 end
  48.             end
  49.         end)
  50.     end
  51.  
  52.     local types = {}; do
  53.         types.__index = types;
  54.         function types.window(name, options)
  55.             library.count = library.count + 1
  56.             local newWindow = library:Create('Frame', {
  57.                 Name = name;
  58.                 Size = UDim2.new(0, 190, 0, 30);
  59.                 BackgroundColor3 = options.topcolor;
  60.                 BorderSizePixel = 0;
  61.                 Parent = library.container;
  62.                 Position = UDim2.new(0, (15 + (200 * library.count) - 200), 0, 0);
  63.                 ZIndex = 3;
  64.                 library:Create('TextLabel', {
  65.                     Text = name;
  66.                     Size = UDim2.new(1, -10, 1, 0);
  67.                     Position = UDim2.new(0, 5, 0, 0);
  68.                     BackgroundTransparency = 1;
  69.                     Font = Enum.Font.Code;
  70.                     TextSize = options.titlesize;
  71.                     Font = options.titlefont;
  72.                     TextColor3 = options.titletextcolor;
  73.                     TextStrokeTransparency = library.options.titlestroke;
  74.                     TextStrokeColor3 = library.options.titlestrokecolor;
  75.                     ZIndex = 3;
  76.                 });
  77.                 library:Create("TextButton", {
  78.                     Size = UDim2.new(0, 30, 0, 30);
  79.                     Position = UDim2.new(1, -35, 0, 0);
  80.                     BackgroundTransparency = 1;
  81.                     Text = "-";
  82.                     TextSize = options.titlesize;
  83.                     Font = options.titlefont;--Enum.Font.Code;
  84.                     Name = 'window_toggle';
  85.                     TextColor3 = options.titletextcolor;
  86.                     TextStrokeTransparency = library.options.titlestroke;
  87.                     TextStrokeColor3 = library.options.titlestrokecolor;
  88.                     ZIndex = 3;
  89.                 });
  90.                 library:Create("Frame", {
  91.                     Name = 'Underline';
  92.                     Size = UDim2.new(1, 0, 0, 2);
  93.                     Position = UDim2.new(0, 0, 1, -2);
  94.                     BackgroundColor3 = (options.underlinecolor ~= "rainbow" and options.underlinecolor or Color3.new());
  95.                     BorderSizePixel = 0;
  96.                     ZIndex = 3;
  97.                 });
  98.                 library:Create('Frame', {
  99.                     Name = 'container';
  100.                     Position = UDim2.new(0, 0, 1, 0);
  101.                     Size = UDim2.new(1, 0, 0, 0);
  102.                     BorderSizePixel = 0;
  103.                     BackgroundColor3 = options.bgcolor;
  104.                     ClipsDescendants = false;
  105.                     library:Create('UIListLayout', {
  106.                         Name = 'List';
  107.                         SortOrder = Enum.SortOrder.LayoutOrder;
  108.                     })
  109.                 });
  110.             })
  111.  
  112.             if options.underlinecolor == "rainbow" then
  113.                 table.insert(library.rainbowtable, newWindow:FindFirstChild('Underline'))
  114.             end
  115.  
  116.             local window = setmetatable({
  117.                 count = 0;
  118.                 object = newWindow;
  119.                 container = newWindow.container;
  120.                 toggled = true;
  121.                 flags   = {};
  122.  
  123.             }, types)
  124.  
  125.             table.insert(library.queue, {
  126.                 w = window.object;
  127.                 p = window.object.Position;
  128.             })
  129.  
  130.             newWindow:FindFirstChild("window_toggle").MouseButton1Click:connect(function()
  131.                 window.toggled = not window.toggled;
  132.                 newWindow:FindFirstChild("window_toggle").Text = (window.toggled and "+" or "-")
  133.                 if (not window.toggled) then
  134.                     window.container.ClipsDescendants = true;
  135.                 end
  136.                 wait();
  137.                 local y = 0;
  138.                 for i, v in next, window.container:GetChildren() do
  139.                     if (not v:IsA('UIListLayout')) then
  140.                         y = y + v.AbsoluteSize.Y;
  141.                     end
  142.                 end
  143.  
  144.                 local targetSize = window.toggled and UDim2.new(1, 0, 0, y+5) or UDim2.new(1, 0, 0, 0);
  145.                 local targetDirection = window.toggled and "In" or "Out"
  146.  
  147.                 window.container:TweenSize(targetSize, targetDirection, "Quad", 0.15, true)
  148.                 wait(.15)
  149.                 if window.toggled then
  150.                     window.container.ClipsDescendants = false;
  151.                 end
  152.             end)
  153.  
  154.             return window;
  155.         end
  156.  
  157.         function types:Resize()
  158.             local y = 0;
  159.             for i, v in next, self.container:GetChildren() do
  160.                 if (not v:IsA('UIListLayout')) then
  161.                     y = y + v.AbsoluteSize.Y;
  162.                 end
  163.             end
  164.             self.container.Size = UDim2.new(1, 0, 0, y+5)
  165.         end
  166.  
  167.         function types:GetOrder()
  168.             local c = 0;
  169.             for i, v in next, self.container:GetChildren() do
  170.                 if (not v:IsA('UIListLayout')) then
  171.                     c = c + 1
  172.                 end
  173.             end
  174.             return c
  175.         end
  176.  
  177.         function types:Label(text)
  178.             local v = game:GetService'TextService':GetTextSize(text, 18, Enum.Font.SourceSans, Vector2.new(math.huge, math.huge))
  179.             local object = library:Create('Frame', {
  180.                 Size = UDim2.new(1, 0, 0, v.Y + 5);
  181.                 BackgroundTransparency  = 1;
  182.                 library:Create('TextLabel', {
  183.                     Size = UDim2.new(1, 0, 1, 0);
  184.                     Position = UDim2.new(0, 10, 0, 0);
  185.                     LayoutOrder = self:GetOrder();
  186.  
  187.                     Text = text;
  188.                     TextSize = 18;
  189.                     Font = Enum.Font.SourceSans;
  190.                     TextColor3 = Color3.fromRGB(255, 255, 255);
  191.                     BackgroundTransparency = 1;
  192.                     TextXAlignment = Enum.TextXAlignment.Left;
  193.                     TextWrapped = true;
  194.                 });
  195.                 Parent = self.container
  196.             })
  197.             self:Resize();
  198.         end
  199.  
  200.         function types:Toggle(name, options, callback)
  201.             local default  = options.default or false;
  202.             local location = options.location or self.flags;
  203.             local flag     = options.flag or "";
  204.             local callback = callback or function() end;
  205.  
  206.             location[flag] = default;
  207.  
  208.             local check = library:Create('Frame', {
  209.                 BackgroundTransparency = 1;
  210.                 Size = UDim2.new(1, 0, 0, 25);
  211.                 LayoutOrder = self:GetOrder();
  212.                 library:Create('TextLabel', {
  213.                     Name = name;
  214.                     Text = "\r" .. name;
  215.                     BackgroundTransparency = 1;
  216.                     TextColor3 = library.options.textcolor;
  217.                     Position = UDim2.new(0, 5, 0, 0);
  218.                     Size     = UDim2.new(1, -5, 1, 0);
  219.                     TextXAlignment = Enum.TextXAlignment.Left;
  220.                     Font = library.options.font;
  221.                     TextSize = library.options.fontsize;
  222.                     TextStrokeTransparency = library.options.textstroke;
  223.                     TextStrokeColor3 = library.options.strokecolor;
  224.                     library:Create('TextButton', {
  225.                         Text = (location[flag] and utf8.char(10003) or "");
  226.                         Font = library.options.font;
  227.                         TextSize = library.options.fontsize;
  228.                         Name = 'Checkmark';
  229.                         Size = UDim2.new(0, 20, 0, 20);
  230.                         Position = UDim2.new(1, -25, 0, 4);
  231.                         TextColor3 = library.options.textcolor;
  232.                         BackgroundColor3 = library.options.bgcolor;
  233.                         BorderColor3 = library.options.bordercolor;
  234.                         TextStrokeTransparency = library.options.textstroke;
  235.                         TextStrokeColor3 = library.options.strokecolor;
  236.                     })
  237.                 });
  238.                 Parent = self.container;
  239.             });
  240.  
  241.             local function click(t)
  242.                 location[flag] = not location[flag];
  243.                 callback(location[flag])
  244.                 check:FindFirstChild(name).Checkmark.Text = location[flag] and utf8.char(10003) or "";
  245.             end
  246.  
  247.             check:FindFirstChild(name).Checkmark.MouseButton1Click:connect(click)
  248.             library.callbacks[flag] = click;
  249.  
  250.             if location[flag] == true then
  251.                 callback(location[flag])
  252.             end
  253.  
  254.             self:Resize();
  255.             return {
  256.                 Set = function(self, b)
  257.                     location[flag] = b;
  258.                     callback(location[flag])
  259.                     check:FindFirstChild(name).Checkmark.Text = location[flag] and utf8.char(10003) or "";
  260.                 end
  261.             }
  262.         end
  263.  
  264.         function types:Button(name, callback)
  265.             callback = callback or function() end;
  266.  
  267.             local check = library:Create('Frame', {
  268.                 BackgroundTransparency = 1;
  269.                 Size = UDim2.new(1, 0, 0, 25);
  270.                 LayoutOrder = self:GetOrder();
  271.                 library:Create('TextButton', {
  272.                     Name = name;
  273.                     Text = name;
  274.                     BackgroundColor3 = library.options.btncolor;
  275.                     BorderColor3 = library.options.bordercolor;
  276.                     TextStrokeTransparency = library.options.textstroke;
  277.                     TextStrokeColor3 = library.options.strokecolor;
  278.                     TextColor3 = library.options.textcolor;
  279.                     Position = UDim2.new(0, 5, 0, 5);
  280.                     Size     = UDim2.new(1, -10, 0, 20);
  281.                     Font = library.options.font;
  282.                     TextSize = library.options.fontsize;
  283.                 });
  284.                 Parent = self.container;
  285.             });
  286.  
  287.             check:FindFirstChild(name).MouseButton1Click:connect(callback)
  288.             self:Resize();
  289.  
  290.             return {
  291.                 Fire = function()
  292.                     callback();
  293.                 end
  294.             }
  295.         end
  296.  
  297.         function types:Box(name, options, callback) --type, default, data, location, flag)
  298.             local type   = options.type or "";
  299.             local default = options.default or "";
  300.             local data = options.data
  301.             local location = options.location or self.flags;
  302.             local flag     = options.flag or "";
  303.             local callback = callback or function() end;
  304.             local min      = options.min or 0;
  305.             local max      = options.max or 9e9;
  306.  
  307.             if type == 'number' and (not tonumber(default)) then
  308.                 location[flag] = default;
  309.             else
  310.                 location[flag] = "";
  311.                 default = "";
  312.             end
  313.  
  314.             local check = library:Create('Frame', {
  315.                 BackgroundTransparency = 1;
  316.                 Size = UDim2.new(1, 0, 0, 25);
  317.                 LayoutOrder = self:GetOrder();
  318.                 library:Create('TextLabel', {
  319.                     Name = name;
  320.                     Text = "\r" .. name;
  321.                     BackgroundTransparency = 1;
  322.                     TextColor3 = library.options.textcolor;
  323.                     TextStrokeTransparency = library.options.textstroke;
  324.                     TextStrokeColor3 = library.options.strokecolor;
  325.                     Position = UDim2.new(0, 5, 0, 0);
  326.                     Size     = UDim2.new(1, -5, 1, 0);
  327.                     TextXAlignment = Enum.TextXAlignment.Left;
  328.                     Font = library.options.font;
  329.                     TextSize = library.options.fontsize;
  330.                     library:Create('TextBox', {
  331.                         TextStrokeTransparency = library.options.textstroke;
  332.                         TextStrokeColor3 = library.options.strokecolor;
  333.                         Text = tostring(default);
  334.                         Font = library.options.font;
  335.                         TextSize = library.options.fontsize;
  336.                         Name = 'Box';
  337.                         Size = UDim2.new(0, 60, 0, 20);
  338.                         Position = UDim2.new(1, -65, 0, 3);
  339.                         TextColor3 = library.options.textcolor;
  340.                         BackgroundColor3 = library.options.boxcolor;
  341.                         BorderColor3 = library.options.bordercolor;
  342.                         PlaceholderColor3 = library.options.placeholdercolor;
  343.                     })
  344.                 });
  345.                 Parent = self.container;
  346.             });
  347.  
  348.             local box = check:FindFirstChild(name):FindFirstChild('Box');
  349.             box.FocusLost:connect(function(e)
  350.                 local old = location[flag];
  351.                 if type == "number" then
  352.                     local num = tonumber(box.Text)
  353.                     if (not num) then
  354.                         box.Text = tonumber(location[flag])
  355.                     else
  356.                         location[flag] = math.clamp(num, min, max)
  357.                         box.Text = tonumber(location[flag])
  358.                     end
  359.                 else
  360.                     location[flag] = tostring(box.Text)
  361.                 end
  362.  
  363.                 callback(location[flag], old, e)
  364.             end)
  365.  
  366.             if type == 'number' then
  367.                 box:GetPropertyChangedSignal('Text'):connect(function()
  368.                     box.Text = string.gsub(box.Text, "[%a+]", "");
  369.                 end)
  370.             end
  371.  
  372.             self:Resize();
  373.             return box
  374.         end
  375.  
  376.         function types:Bind(name, options, callback)
  377.             local location     = options.location or self.flags;
  378.             local keyboardOnly = options.kbonly or false
  379.             local flag         = options.flag or "";
  380.             local callback     = callback or function() end;
  381.             local default      = options.default;
  382.  
  383.             if keyboardOnly and (not tostring(default):find('MouseButton')) then
  384.                 location[flag] = default
  385.             end
  386.  
  387.             local banned = {
  388.                 Return = true;
  389.                 Space = true;
  390.                 Tab = true;
  391.                 Unknown = true;
  392.             }
  393.  
  394.             local shortNames = {
  395.                 RightControl = 'RightCtrl';
  396.                 LeftControl = 'LeftCtrl';
  397.                 LeftShift = 'LShift';
  398.                 RightShift = 'RShift';
  399.                 MouseButton1 = "Mouse1";
  400.                 MouseButton2 = "Mouse2";
  401.             }
  402.  
  403.             local allowed = {
  404.                 MouseButton1 = true;
  405.                 MouseButton2 = true;
  406.             }      
  407.  
  408.             local nm = (default and (shortNames[default.Name] or default.Name) or "None");
  409.             local check = library:Create('Frame', {
  410.                 BackgroundTransparency = 1;
  411.                 Size = UDim2.new(1, 0, 0, 30);
  412.                 LayoutOrder = self:GetOrder();
  413.                 library:Create('TextLabel', {
  414.                     Name = name;
  415.                     Text = "\r" .. name;
  416.                     BackgroundTransparency = 1;
  417.                     TextColor3 = library.options.textcolor;
  418.                     Position = UDim2.new(0, 5, 0, 0);
  419.                     Size     = UDim2.new(1, -5, 1, 0);
  420.                     TextXAlignment = Enum.TextXAlignment.Left;
  421.                     Font = library.options.font;
  422.                     TextSize = library.options.fontsize;
  423.                     TextStrokeTransparency = library.options.textstroke;
  424.                     TextStrokeColor3 = library.options.strokecolor;
  425.                     BorderColor3     = library.options.bordercolor;
  426.                     BorderSizePixel  = 1;
  427.                     library:Create('TextButton', {
  428.                         Name = 'Keybind';
  429.                         Text = nm;
  430.                         TextStrokeTransparency = library.options.textstroke;
  431.                         TextStrokeColor3 = library.options.strokecolor;
  432.                         Font = library.options.font;
  433.                         TextSize = library.options.fontsize;
  434.                         Size = UDim2.new(0, 60, 0, 20);
  435.                         Position = UDim2.new(1, -65, 0, 5);
  436.                         TextColor3 = library.options.textcolor;
  437.                         BackgroundColor3 = library.options.bgcolor;
  438.                         BorderColor3     = library.options.bordercolor;
  439.                         BorderSizePixel  = 1;
  440.                     })
  441.                 });
  442.                 Parent = self.container;
  443.             });
  444.  
  445.             local button = check:FindFirstChild(name).Keybind;
  446.             button.MouseButton1Click:connect(function()
  447.                 library.binding = true
  448.  
  449.                 button.Text = "..."
  450.                 local a, b = game:GetService('UserInputService').InputBegan:wait();
  451.                 local name = tostring(a.KeyCode.Name);
  452.                 local typeName = tostring(a.UserInputType.Name);
  453.  
  454.                 if (a.UserInputType ~= Enum.UserInputType.Keyboard and (allowed[a.UserInputType.Name]) and (not keyboardOnly)) or (a.KeyCode and (not banned[a.KeyCode.Name])) then
  455.                     local name = (a.UserInputType ~= Enum.UserInputType.Keyboard and a.UserInputType.Name or a.KeyCode.Name);
  456.                     location[flag] = (a);
  457.                     button.Text = shortNames[name] or name;
  458.  
  459.                 else
  460.                     if (location[flag]) then
  461.                         if (not pcall(function()
  462.                             return location[flag].UserInputType
  463.                         end)) then
  464.                             local name = tostring(location[flag])
  465.                             button.Text = shortNames[name] or name
  466.                         else
  467.                             local name = (location[flag].UserInputType ~= Enum.UserInputType.Keyboard and location[flag].UserInputType.Name or location[flag].KeyCode.Name);
  468.                             button.Text = shortNames[name] or name;
  469.                         end
  470.                     end
  471.                 end
  472.  
  473.                 wait(0.1)  
  474.                 library.binding = false;
  475.             end)
  476.  
  477.             if location[flag] then
  478.                 button.Text = shortNames[tostring(location[flag].Name)] or tostring(location[flag].Name)
  479.             end
  480.  
  481.             library.binds[flag] = {
  482.                 location = location;
  483.                 callback = callback;
  484.             };
  485.  
  486.             self:Resize();
  487.         end
  488.  
  489.         function types:Section(name)
  490.             local order = self:GetOrder();
  491.             local determinedSize = UDim2.new(1, 0, 0, 25)
  492.             local determinedPos = UDim2.new(0, 0, 0, 4);
  493.             local secondarySize = UDim2.new(1, 0, 0, 20);
  494.  
  495.             if order == 0 then
  496.                 determinedSize = UDim2.new(1, 0, 0, 21)
  497.                 determinedPos = UDim2.new(0, 0, 0, -1);
  498.                 secondarySize = nil
  499.             end
  500.  
  501.             local check = library:Create('Frame', {
  502.                 Name = 'Section';
  503.                 BackgroundTransparency = 1;
  504.                 Size = determinedSize;
  505.                 BackgroundColor3 = library.options.sectncolor;
  506.                 BorderSizePixel = 0;
  507.                 LayoutOrder = order;
  508.                 library:Create('TextLabel', {
  509.                     Name = 'section_lbl';
  510.                     Text = name;
  511.                     BackgroundTransparency = 0;
  512.                     BorderSizePixel = 0;
  513.                     BackgroundColor3 = library.options.sectncolor;
  514.                     TextColor3 = library.options.textcolor;
  515.                     Position = determinedPos;
  516.                     Size     = (secondarySize or UDim2.new(1, 0, 1, 0));
  517.                     Font = library.options.font;
  518.                     TextSize = library.options.fontsize;
  519.                     TextStrokeTransparency = library.options.textstroke;
  520.                     TextStrokeColor3 = library.options.strokecolor;
  521.                 });
  522.                 Parent = self.container;
  523.             });
  524.  
  525.             self:Resize();
  526.         end
  527.  
  528.         function types:Slider(name, options, callback)
  529.             local default = options.default or options.min;
  530.             local min     = options.min or 0;
  531.             local max      = options.max or 1;
  532.             local location = options.location or self.flags;
  533.             local precise  = options.precise  or false -- e.g 0, 1 vs 0, 0.1, 0.2, ...
  534.             local flag     = options.flag or "";
  535.             local callback = callback or function() end
  536.  
  537.             location[flag] = default;
  538.  
  539.             local check = library:Create('Frame', {
  540.                 BackgroundTransparency = 1;
  541.                 Size = UDim2.new(1, 0, 0, 25);
  542.                 LayoutOrder = self:GetOrder();
  543.                 library:Create('TextLabel', {
  544.                     Name = name;
  545.                     TextStrokeTransparency = library.options.textstroke;
  546.                     TextStrokeColor3 = library.options.strokecolor;
  547.                     Text = "\r" .. name;
  548.                     BackgroundTransparency = 1;
  549.                     TextColor3 = library.options.textcolor;
  550.                     Position = UDim2.new(0, 5, 0, 2);
  551.                     Size     = UDim2.new(1, -5, 1, 0);
  552.                     TextXAlignment = Enum.TextXAlignment.Left;
  553.                     Font = library.options.font;
  554.                     TextSize = library.options.fontsize;
  555.                     library:Create('Frame', {
  556.                         Name = 'Container';
  557.                         Size = UDim2.new(0, 60, 0, 20);
  558.                         Position = UDim2.new(1, -65, 0, 3);
  559.                         BackgroundTransparency = 1;
  560.                         --BorderColor3 = library.options.bordercolor;
  561.                         BorderSizePixel = 0;
  562.                         library:Create('TextLabel', {
  563.                             Name = 'ValueLabel';
  564.                             Text = default;
  565.                             BackgroundTransparency = 1;
  566.                             TextColor3 = library.options.textcolor;
  567.                             Position = UDim2.new(0, -10, 0, 0);
  568.                             Size     = UDim2.new(0, 1, 1, 0);
  569.                             TextXAlignment = Enum.TextXAlignment.Right;
  570.                             Font = library.options.font;
  571.                             TextSize = library.options.fontsize;
  572.                             TextStrokeTransparency = library.options.textstroke;
  573.                             TextStrokeColor3 = library.options.strokecolor;
  574.                         });
  575.                         library:Create('TextButton', {
  576.                             Name = 'Button';
  577.                             Size = UDim2.new(0, 5, 1, -2);
  578.                             Position = UDim2.new(0, 0, 0, 1);
  579.                             AutoButtonColor = false;
  580.                             Text = "";
  581.                             BackgroundColor3 = Color3.fromRGB(20, 20, 20);
  582.                             BorderSizePixel = 0;
  583.                             ZIndex = 2;
  584.                             TextStrokeTransparency = library.options.textstroke;
  585.                             TextStrokeColor3 = library.options.strokecolor;
  586.                         });
  587.                         library:Create('Frame', {
  588.                             Name = 'Line';
  589.                             BackgroundTransparency = 0;
  590.                             Position = UDim2.new(0, 0, 0.5, 0);
  591.                             Size     = UDim2.new(1, 0, 0, 1);
  592.                             BackgroundColor3 = Color3.fromRGB(255, 255, 255);
  593.                             BorderSizePixel = 0;
  594.                         });
  595.                     })
  596.                 });
  597.                 Parent = self.container;
  598.             });
  599.  
  600.             local overlay = check:FindFirstChild(name);
  601.  
  602.             local renderSteppedConnection;
  603.             local inputBeganConnection;
  604.             local inputEndedConnection;
  605.             local mouseLeaveConnection;
  606.             local mouseDownConnection;
  607.             local mouseUpConnection;
  608.  
  609.             check:FindFirstChild(name).Container.MouseEnter:connect(function()
  610.                 local function update()
  611.                     if renderSteppedConnection then renderSteppedConnection:disconnect() end
  612.  
  613.  
  614.                     renderSteppedConnection = game:GetService('RunService').RenderStepped:connect(function()
  615.                         local mouse = game:GetService("UserInputService"):GetMouseLocation()
  616.                         local percent = (mouse.X - overlay.Container.AbsolutePosition.X) / (overlay.Container.AbsoluteSize.X)
  617.                         percent = math.clamp(percent, 0, 1)
  618.                         percent = tonumber(string.format("%.2f", percent))
  619.  
  620.                         overlay.Container.Button.Position = UDim2.new(math.clamp(percent, 0, 0.99), 0, 0, 1)
  621.  
  622.                         local num = min + (max - min) * percent
  623.                         local value = (precise and num or math.floor(num))
  624.  
  625.                         overlay.Container.ValueLabel.Text = value;
  626.                         callback(tonumber(value))
  627.                         location[flag] = tonumber(value)
  628.                     end)
  629.                 end
  630.  
  631.                 local function disconnect()
  632.                     if renderSteppedConnection then renderSteppedConnection:disconnect() end
  633.                     if inputBeganConnection then inputBeganConnection:disconnect() end
  634.                     if inputEndedConnection then inputEndedConnection:disconnect() end
  635.                     if mouseLeaveConnection then mouseLeaveConnection:disconnect() end
  636.                     if mouseUpConnection then mouseUpConnection:disconnect() end
  637.                 end
  638.  
  639.                 inputBeganConnection = check:FindFirstChild(name).Container.InputBegan:connect(function(input)
  640.                     if input.UserInputType == Enum.UserInputType.MouseButton1 then
  641.                         update()
  642.                     end
  643.                 end)
  644.  
  645.                 inputEndedConnection = check:FindFirstChild(name).Container.InputEnded:connect(function(input)
  646.                     if input.UserInputType == Enum.UserInputType.MouseButton1 then
  647.                         disconnect()
  648.                     end
  649.                 end)
  650.  
  651.                 mouseDownConnection = check:FindFirstChild(name).Container.Button.MouseButton1Down:connect(update)
  652.                 mouseUpConnection   = game:GetService("UserInputService").InputEnded:connect(function(a, b)
  653.                     if a.UserInputType == Enum.UserInputType.MouseButton1 and (mouseDownConnection.Connected) then
  654.                         disconnect()
  655.                     end
  656.                 end)
  657.             end)    
  658.  
  659.             if default ~= min then
  660.                 local percent = 1 - ((max - default) / (max - min))
  661.                 local number  = default
  662.  
  663.                 number = tonumber(string.format("%.2f", number))
  664.                 if (not precise) then
  665.                     number = math.floor(number)
  666.                 end
  667.  
  668.                 overlay.Container.Button.Position  = UDim2.new(math.clamp(percent, 0, 0.99), 0,  0, 1)
  669.                 overlay.Container.ValueLabel.Text  = number
  670.             end
  671.  
  672.             self:Resize();
  673.             return {
  674.                 Set = function(self, value)
  675.                     local percent = 1 - ((max - value) / (max - min))
  676.                     local number  = value
  677.  
  678.                     number = tonumber(string.format("%.2f", number))
  679.                     if (not precise) then
  680.                         number = math.floor(number)
  681.                     end
  682.  
  683.                     overlay.Container.Button.Position  = UDim2.new(math.clamp(percent, 0, 0.99), 0,  0, 1)
  684.                     overlay.Container.ValueLabel.Text  = number
  685.                     location[flag] = number
  686.                     callback(number)
  687.                 end
  688.             }
  689.         end
  690.  
  691.         function types:SearchBox(text, options, callback)
  692.             local list = options.list or {};
  693.             local flag = options.flag or "";
  694.             local location = options.location or self.flags;
  695.             local callback = callback or function() end;
  696.  
  697.             local busy = false;
  698.             local box = library:Create('Frame', {
  699.                 BackgroundTransparency = 1;
  700.                 Size = UDim2.new(1, 0, 0, 25);
  701.                 LayoutOrder = self:GetOrder();
  702.                 library:Create('TextBox', {
  703.                     Text = "";
  704.                     PlaceholderText = text;
  705.                     PlaceholderColor3 = Color3.fromRGB(60, 60, 60);
  706.                     Font = library.options.font;
  707.                     TextSize = library.options.fontsize;
  708.                     Name = 'Box';
  709.                     Size = UDim2.new(1, -10, 0, 20);
  710.                     Position = UDim2.new(0, 5, 0, 4);
  711.                     TextColor3 = library.options.textcolor;
  712.                     BackgroundColor3 = library.options.dropcolor;
  713.                     BorderColor3 = library.options.bordercolor;
  714.                     TextStrokeTransparency = library.options.textstroke;
  715.                     TextStrokeColor3 = library.options.strokecolor;
  716.                     library:Create('ScrollingFrame', {
  717.                         Position = UDim2.new(0, 0, 1, 1);
  718.                         Name = 'Container';
  719.                         BackgroundColor3 = library.options.btncolor;
  720.                         ScrollBarThickness = 0;
  721.                         BorderSizePixel = 0;
  722.                         BorderColor3 = library.options.bordercolor;
  723.                         Size = UDim2.new(1, 0, 0, 0);
  724.                         library:Create('UIListLayout', {
  725.                             Name = 'ListLayout';
  726.                             SortOrder = Enum.SortOrder.LayoutOrder;
  727.                         });
  728.                         ZIndex = 2;
  729.                     });
  730.                 });
  731.                 Parent = self.container;
  732.             })
  733.  
  734.             local function rebuild(text)
  735.                 box:FindFirstChild('Box').Container.ScrollBarThickness = 0
  736.                 for i, child in next, box:FindFirstChild('Box').Container:GetChildren() do
  737.                     if (not child:IsA('UIListLayout')) then
  738.                         child:Destroy();
  739.                     end
  740.                 end
  741.  
  742.                 if #text > 0 then
  743.                     for i, v in next, list do
  744.                         if string.sub(string.lower(v), 1, string.len(text)) == string.lower(text) then
  745.                             local button = library:Create('TextButton', {
  746.                                 Text = v;
  747.                                 Font = library.options.font;
  748.                                 TextSize = library.options.fontsize;
  749.                                 TextColor3 = library.options.textcolor;
  750.                                 BorderColor3 = library.options.bordercolor;
  751.                                 TextStrokeTransparency = library.options.textstroke;
  752.                                 TextStrokeColor3 = library.options.strokecolor;
  753.                                 Parent = box:FindFirstChild('Box').Container;
  754.                                 Size = UDim2.new(1, 0, 0, 20);
  755.                                 LayoutOrder = i;
  756.                                 BackgroundColor3 = library.options.btncolor;
  757.                                 ZIndex = 2;
  758.                             })
  759.  
  760.                             button.MouseButton1Click:connect(function()
  761.                                 busy = true;
  762.                                 box:FindFirstChild('Box').Text = button.Text;
  763.                                 wait();
  764.                                 busy = false;
  765.  
  766.                                 location[flag] = button.Text;
  767.                                 callback(location[flag])
  768.  
  769.                                 box:FindFirstChild('Box').Container.ScrollBarThickness = 0
  770.                                 for i, child in next, box:FindFirstChild('Box').Container:GetChildren() do
  771.                                     if (not child:IsA('UIListLayout')) then
  772.                                         child:Destroy();
  773.                                     end
  774.                                 end
  775.                                 box:FindFirstChild('Box').Container:TweenSize(UDim2.new(1, 0, 0, 0), 'Out', 'Quad', 0.25, true)
  776.                             end)
  777.                         end
  778.                     end
  779.                 end
  780.  
  781.                 local c = box:FindFirstChild('Box').Container:GetChildren()
  782.                 local ry = (20 * (#c)) - 20
  783.  
  784.                 local y = math.clamp((20 * (#c)) - 20, 0, 100)
  785.                 if ry > 100 then
  786.                     box:FindFirstChild('Box').Container.ScrollBarThickness = 5;
  787.                 end
  788.  
  789.                 box:FindFirstChild('Box').Container:TweenSize(UDim2.new(1, 0, 0, y), 'Out', 'Quad', 0.25, true)
  790.                 box:FindFirstChild('Box').Container.CanvasSize = UDim2.new(1, 0, 0, (20 * (#c)) - 20)
  791.             end
  792.  
  793.             box:FindFirstChild('Box'):GetPropertyChangedSignal('Text'):connect(function()
  794.                 if (not busy) then
  795.                     rebuild(box:FindFirstChild('Box').Text)
  796.                 end
  797.             end);
  798.  
  799.             local function reload(new_list)
  800.                 list = new_list;
  801.                 rebuild("")
  802.             end
  803.             self:Resize();
  804.             return reload, box:FindFirstChild('Box');
  805.         end
  806.  
  807.         function types:Dropdown(name, options, callback)
  808.             local location = options.location or self.flags;
  809.             local flag = options.flag or "";
  810.             local callback = callback or function() end;
  811.             local list = options.list or {};
  812.  
  813.             location[flag] = list[1]
  814.             local check = library:Create('Frame', {
  815.                 BackgroundTransparency = 1;
  816.                 Size = UDim2.new(1, 0, 0, 25);
  817.                 BackgroundColor3 = Color3.fromRGB(25, 25, 25);
  818.                 BorderSizePixel = 0;
  819.                 LayoutOrder = self:GetOrder();
  820.                 library:Create('Frame', {
  821.                     Name = 'dropdown_lbl';
  822.                     BackgroundTransparency = 0;
  823.                     BackgroundColor3 = library.options.dropcolor;
  824.                     Position = UDim2.new(0, 5, 0, 4);
  825.                     BorderColor3 = library.options.bordercolor;
  826.                     Size     = UDim2.new(1, -10, 0, 20);
  827.                     library:Create('TextLabel', {
  828.                         Name = 'Selection';
  829.                         Size = UDim2.new(1, 0, 1, 0);
  830.                         Text = list[1];
  831.                         TextColor3 = library.options.textcolor;
  832.                         BackgroundTransparency = 1;
  833.                         Font = library.options.font;
  834.                         TextSize = library.options.fontsize;
  835.                         TextStrokeTransparency = library.options.textstroke;
  836.                         TextStrokeColor3 = library.options.strokecolor;
  837.                     });
  838.                     library:Create("TextButton", {
  839.                         Name = 'drop';
  840.                         BackgroundTransparency = 1;
  841.                         Size = UDim2.new(0, 20, 1, 0);
  842.                         Position = UDim2.new(1, -25, 0, 0);
  843.                         Text = 'v';
  844.                         TextColor3 = library.options.textcolor;
  845.                         Font = library.options.font;
  846.                         TextSize = library.options.fontsize;
  847.                         TextStrokeTransparency = library.options.textstroke;
  848.                         TextStrokeColor3 = library.options.strokecolor;
  849.                     })
  850.                 });
  851.                 Parent = self.container;
  852.             });
  853.  
  854.             local button = check:FindFirstChild('dropdown_lbl').drop;
  855.             local input;
  856.  
  857.             button.MouseButton1Click:connect(function()
  858.                 if (input and input.Connected) then
  859.                     return
  860.                 end
  861.  
  862.                 check:FindFirstChild('dropdown_lbl'):WaitForChild('Selection').TextColor3 = Color3.fromRGB(60, 60, 60);
  863.                 check:FindFirstChild('dropdown_lbl'):WaitForChild('Selection').Text = name;
  864.                 local c = 0;
  865.                 for i, v in next, list do
  866.                     c = c + 20;
  867.                 end
  868.  
  869.                 local size = UDim2.new(1, 0, 0, c)
  870.  
  871.                 local clampedSize;
  872.                 local scrollSize = 0;
  873.                 if size.Y.Offset > 100 then
  874.                     clampedSize = UDim2.new(1, 0, 0, 100)
  875.                     scrollSize = 5;
  876.                 end
  877.  
  878.                 local goSize = (clampedSize ~= nil and clampedSize) or size;    
  879.                 local container = library:Create('ScrollingFrame', {
  880.                     TopImage = 'rbxasset://textures/ui/Scroll/scroll-middle.png';
  881.                     BottomImage = 'rbxasset://textures/ui/Scroll/scroll-middle.png';
  882.                     Name = 'DropContainer';
  883.                     Parent = check:FindFirstChild('dropdown_lbl');
  884.                     Size = UDim2.new(1, 0, 0, 0);
  885.                     BackgroundColor3 = library.options.bgcolor;
  886.                     BorderColor3 = library.options.bordercolor;
  887.                     Position = UDim2.new(0, 0, 1, 0);
  888.                     ScrollBarThickness = scrollSize;
  889.                     CanvasSize = UDim2.new(0, 0, 0, size.Y.Offset);
  890.                     ZIndex = 5;
  891.                     ClipsDescendants = true;
  892.                     library:Create('UIListLayout', {
  893.                         Name = 'List';
  894.                         SortOrder = Enum.SortOrder.LayoutOrder
  895.                     })
  896.                 })
  897.  
  898.                 for i, v in next, list do
  899.                     local btn = library:Create('TextButton', {
  900.                         Size = UDim2.new(1, 0, 0, 20);
  901.                         BackgroundColor3 = library.options.btncolor;
  902.                         BorderColor3 = library.options.bordercolor;
  903.                         Text = v;
  904.                         Font = library.options.font;
  905.                         TextSize = library.options.fontsize;
  906.                         LayoutOrder = i;
  907.                         Parent = container;
  908.                         ZIndex = 5;
  909.                         TextColor3 = library.options.textcolor;
  910.                         TextStrokeTransparency = library.options.textstroke;
  911.                         TextStrokeColor3 = library.options.strokecolor;
  912.                     })
  913.  
  914.                     btn.MouseButton1Click:connect(function()
  915.                         check:FindFirstChild('dropdown_lbl'):WaitForChild('Selection').TextColor3 = library.options.textcolor
  916.                         check:FindFirstChild('dropdown_lbl'):WaitForChild('Selection').Text = btn.Text;
  917.  
  918.                         location[flag] = tostring(btn.Text);
  919.                         callback(location[flag])
  920.  
  921.                         game:GetService('Debris'):AddItem(container, 0)
  922.                         input:disconnect();
  923.                     end)
  924.                 end
  925.  
  926.                 container:TweenSize(goSize, 'Out', 'Quad', 0.15, true)
  927.  
  928.                 local function isInGui(frame)
  929.                     local mloc = game:GetService('UserInputService'):GetMouseLocation();
  930.                     local mouse = Vector2.new(mloc.X, mloc.Y - 36);
  931.  
  932.                     local x1, x2 = frame.AbsolutePosition.X, frame.AbsolutePosition.X + frame.AbsoluteSize.X;
  933.                     local y1, y2 = frame.AbsolutePosition.Y, frame.AbsolutePosition.Y + frame.AbsoluteSize.Y;
  934.  
  935.                     return (mouse.X >= x1 and mouse.X <= x2) and (mouse.Y >= y1 and mouse.Y <= y2)
  936.                 end
  937.  
  938.                 input = game:GetService('UserInputService').InputBegan:connect(function(a)
  939.                     if a.UserInputType == Enum.UserInputType.MouseButton1 and (not isInGui(container)) then
  940.                         check:FindFirstChild('dropdown_lbl'):WaitForChild('Selection').TextColor3 = library.options.textcolor
  941.                         check:FindFirstChild('dropdown_lbl'):WaitForChild('Selection').Text       = location[flag];
  942.  
  943.                         container:TweenSize(UDim2.new(1, 0, 0, 0), 'In', 'Quad', 0.15, true)
  944.                         wait(0.15)
  945.  
  946.                         game:GetService('Debris'):AddItem(container, 0)
  947.                         input:disconnect();
  948.                     end
  949.                 end)
  950.             end)
  951.  
  952.             self:Resize();
  953.             local function reload(self, array)
  954.                 options = array;
  955.                 location[flag] = array[1];
  956.                 pcall(function()
  957.                     input:disconnect()
  958.                 end)
  959.                 check:WaitForChild('dropdown_lbl').Selection.Text = location[flag]
  960.                 check:FindFirstChild('dropdown_lbl'):WaitForChild('Selection').TextColor3 = library.options.textcolor
  961.                 game:GetService('Debris'):AddItem(container, 0)
  962.             end
  963.  
  964.             return {
  965.                 Refresh = reload;
  966.             }
  967.         end
  968.     end
  969.  
  970.     function library:Create(class, data)
  971.         local obj = Instance.new(class);
  972.         for i, v in next, data do
  973.             if i ~= 'Parent' then
  974.  
  975.                 if typeof(v) == "Instance" then
  976.                     v.Parent = obj;
  977.                 else
  978.                     obj[i] = v
  979.                 end
  980.             end
  981.         end
  982.  
  983.         obj.Parent = data.Parent;
  984.         return obj
  985.     end
  986.  
  987.     function library:CreateWindow(name, options)
  988.         if (not library.container) then
  989.             library.container = self:Create("ScreenGui", {
  990.                 self:Create('Frame', {
  991.                     Name = 'Container';
  992.                     Size = UDim2.new(1, -30, 1, 0);
  993.                     Position = UDim2.new(0, 20, 0, 20);
  994.                     BackgroundTransparency = 1;
  995.                     Active = false;
  996.                 });
  997.                 Parent = game:GetService("CoreGui");
  998.             }):FindFirstChild('Container');
  999.         end
  1000.  
  1001.         if (not library.options) then
  1002.             library.options = setmetatable(options or {}, {__index = defaults})
  1003.         end
  1004.  
  1005.         local window = types.window(name, library.options);
  1006.         dragger.new(window.object);
  1007.         return window
  1008.     end
  1009.  
  1010.     default = {
  1011.         topcolor       = Color3.fromRGB(30, 30, 30);
  1012.         titlecolor     = Color3.fromRGB(255, 255, 255);
  1013.  
  1014.         underlinecolor = Color3.fromRGB(0, 255, 140);
  1015.         bgcolor        = Color3.fromRGB(35, 35, 35);
  1016.         boxcolor       = Color3.fromRGB(35, 35, 35);
  1017.         btncolor       = Color3.fromRGB(25, 25, 25);
  1018.         dropcolor      = Color3.fromRGB(25, 25, 25);
  1019.         sectncolor     = Color3.fromRGB(25, 25, 25);
  1020.         bordercolor    = Color3.fromRGB(80, 80, 80);
  1021.  
  1022.         font           = Enum.Font.SourceSans;
  1023.         titlefont      = Enum.Font.Code;
  1024.  
  1025.         fontsize       = 17;
  1026.         titlesize      = 18;
  1027.  
  1028.         textstroke     = 1;
  1029.         titlestroke    = 1;
  1030.  
  1031.         strokecolor    = Color3.fromRGB(0, 0, 0);
  1032.  
  1033.         textcolor      = Color3.fromRGB(255, 255, 255);
  1034.         titletextcolor = Color3.fromRGB(255, 255, 255);
  1035.  
  1036.         placeholdercolor = Color3.fromRGB(255, 255, 255);
  1037.         titlestrokecolor = Color3.fromRGB(0, 0, 0);
  1038.     }
  1039.  
  1040.     library.options = setmetatable({}, {__index = default})
  1041.  
  1042.     spawn(function()
  1043.         while true do
  1044.             for i=0, 1, 1 / 300 do              
  1045.                 for _, obj in next, library.rainbowtable do
  1046.                     obj.BackgroundColor3 = Color3.fromHSV(i, 1, 1);
  1047.                 end
  1048.                 wait()
  1049.             end;
  1050.         end
  1051.     end)
  1052.  
  1053.     local function isreallypressed(bind, inp)
  1054.         local key = bind
  1055.         if typeof(key) == "Instance" then
  1056.             if key.UserInputType == Enum.UserInputType.Keyboard and inp.KeyCode == key.KeyCode then
  1057.                 return true;
  1058.             elseif tostring(key.UserInputType):find('MouseButton') and inp.UserInputType == key.UserInputType then
  1059.                 return true
  1060.             end
  1061.         end
  1062.         if tostring(key):find'MouseButton1' then
  1063.             return key == inp.UserInputType
  1064.         else
  1065.             return key == inp.KeyCode
  1066.         end
  1067.     end
  1068.  
  1069.     game:GetService("UserInputService").InputBegan:connect(function(input)
  1070.         if (not library.binding) then
  1071.             for idx, binds in next, library.binds do
  1072.                 local real_binding = binds.location[idx];
  1073.                 if real_binding and isreallypressed(real_binding, input) then
  1074.                     binds.callback()
  1075.                 end
  1076.             end
  1077.         end
  1078.     end)
  1079. end
  1080. library.options.underlinecolor = "rainbow"
  1081.  
  1082. -- Farming Tab
  1083. local Farming = library:CreateWindow("Farming")
  1084. Farming:Section("- Karma Farms -")
  1085. local GK = Farming:Toggle("Auto-Good Karma", {flag = "GK"})
  1086. local BK = Farming:Toggle("Auto-Bad Karma", {flag = "BK"})
  1087. Farming:Section("- Ultra Coins -")
  1088. local Swing = Farming:Toggle("Auto-Swing", {flag = "Swing"})
  1089. local Sell = Farming:Toggle("Auto-Sell", {flag = "Sell"})
  1090. local BackpackFull = Farming:Toggle("Auto-Full Sell", {flag = "FullSell"})
  1091. Farming:Section("- Ultra Chi -")
  1092. local Chi = Farming:Toggle("Auto-Chi", {flag = "Chi"})
  1093. Farming:Section("- Boss Farms -")
  1094. local Boss = Farming:Toggle("Auto-Robot Boss", {flag = "Boss"})
  1095. local ETBoss = Farming:Toggle("Auto-Eternal Boss", {flag = "EBoss"})
  1096. local AMBoss = Farming:Toggle("Auto-Ancient Boss", {flag = "ABoss"})
  1097. local SNB = Farming:Toggle("Auto-Santa Boss", {flag = "SBoss"})
  1098. local AllBoss = Farming:Toggle("Auto-All Bosses", {flag = "AllBosses"})
  1099. Farming:Section("- Give Pet Levels -")
  1100. local EAR = Farming:Toggle("Auto-Pet Levels", {flag = "L"})
  1101.  
  1102. -- Auto-Buy Tab
  1103. local AutoBuy = library:CreateWindow("Auto-Buy")
  1104. AutoBuy:Section("- Auto-Buy Stuff -")
  1105. local Rank = AutoBuy:Toggle("Auto-Rank", {flag = "Rank"})
  1106. local Sword = AutoBuy:Toggle("Auto-Sword", {flag = "Sword"})
  1107. local Belt = AutoBuy:Toggle("Auto-Belt", {flag = "Belt"})
  1108. local Skill = AutoBuy:Toggle("Auto-Skills", {flag = "Skill"})
  1109. local Shuriken = AutoBuy:Toggle("Auto-Shurikens", {flag = "Shurikens"})
  1110. _G.Enabled = AutoBuy.flags.Purchase
  1111. _G.Sword = AutoBuy.flags.Sword
  1112. _G.Belt = AutoBuy.flags.Belt
  1113. _G.Rank = AutoBuy.flags.Rank
  1114. _G.Skill = AutoBuy.flags.Skill
  1115.  
  1116. local Pets = library:CreateWindow("Pet Stuff")
  1117. -- Open Pets
  1118. Pets:Section("- Open Pets -")
  1119. local Settings = {}
  1120. local Crystals = {}
  1121. for i,v in next, game.workspace.mapCrystalsFolder:GetChildren() do
  1122. if v then
  1123. table.insert(Crystals,v.Name)
  1124. end
  1125. end
  1126. Pets:Dropdown('Crystals', {location = Settings, flag = "Crystal", list = Crystals})
  1127. Pets:Toggle("Open Eggs", {location = Settings, flag = "TEgg"})
  1128.  
  1129. -- Pet Options
  1130. Pets:Section("- Pet Options -")
  1131. local Evolve = Pets:Toggle("Auto-Evolve", {flag = "Evolve"})
  1132. local Eternalise = Pets:Toggle("Auto-Eternalise", {flag = "Eternalise"})
  1133. local Immortalize = Pets:Toggle("Auto-Immortalize", {flag = "Immortalize"})
  1134. local Legend = Pets:Toggle("Auto-Legend", {flag = "Legend"})
  1135. local Elemental = Pets:Toggle("Auto-Elementalize", {flag = "Elemental"})
  1136.  
  1137. -- Sell Pets
  1138. Pets:Section("- Sell Pets -")
  1139. local Basic = Pets:Toggle("Sell All Basic", {flag = "SBasic"})
  1140. local Advanced = Pets:Toggle("Sell All Advanced", {flag = "SAdvanced"})
  1141. local Rare = Pets:Toggle("Sell All Rare", {flag = "SRare"})
  1142. local Epic = Pets:Toggle("Sell All Epic", {flag = "SEpic"})
  1143. local Unique = Pets:Toggle("Sell All Unique", {flag = "SUnique"})
  1144. local Omega = Pets:Toggle("Sell All Omega", {flag = "SOmega"})
  1145. local Elite = Pets:Toggle("Sell All Elite", {flag = "SElite"})
  1146. local Infinity = Pets:Toggle("Sell All Infinity", {flag = "SInfinity"})
  1147.  
  1148. -- Sell Seperate Pets Tab
  1149. local Pets2 = library:CreateWindow("More Pet Stuff")
  1150. Pets2:Section("- Sell Separate Pets -")
  1151. local Pet1 = Pets2:Toggle("Sell All Winter Kitty", {flag = "S1"})
  1152. local Pet2 = Pets2:Toggle("Sell All Polar Bear", {flag = "S2"})
  1153. local Pet3 = Pets2:Toggle("Sell All Sensei Reindeer", {flag = "S3"})
  1154. local Pet4 = Pets2:Toggle("Sell All Dark Penguin", {flag = "S4"})
  1155. local Pet5 = Pets2:Toggle("Sell All Sleigh Rider", {flag = "S5"})
  1156. -- Misc
  1157. local Misc = library:CreateWindow("Misc")
  1158. Misc:Section("- Other OP Scripts -")
  1159. local Shuriken = Misc:Toggle("Fast Shuriken", {flag = "Fast"})
  1160. local Shuriken2 = Misc:Toggle("Slow Shuriken", {flag = "Slow"})
  1161. local Invis = Misc:Toggle("Invisibility", {flag = "Invis"})
  1162.  
  1163. -- Collect All Chest
  1164. local ChestCollect = Misc:Button("Collect All Chest", function()
  1165. game:GetService("Workspace").mythicalChest["circleInner"].CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame
  1166. wait(3.5)
  1167. game:GetService("Workspace").goldenChest["circleInner"].CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame
  1168. wait(3.5)
  1169. game:GetService("Workspace").enchantedChest["circleInner"].CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame
  1170. wait(3.5)
  1171. game:GetService("Workspace").magmaChest["circleInner"].CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame
  1172. wait(3.5)
  1173. game:GetService("Workspace").legendsChest["circleInner"].CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame
  1174. wait(3.5)
  1175. game:GetService("Workspace").eternalChest["circleInner"].CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame
  1176. wait(3.5)
  1177. game:GetService("Workspace").saharaChest["circleInner"].CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame
  1178. wait(3.5)
  1179. game:GetService("Workspace").thunderChest["circleInner"].CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame
  1180. wait(3.5)
  1181. game:GetService("Workspace").ancientChest["circleInner"].CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame
  1182. wait(3.5)
  1183. game:GetService("Workspace").midnightShadowChest["circleInner"].CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame
  1184. wait(3.5)
  1185. game:GetService("Workspace").groupRewardsCircle["circleInner"].CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame
  1186. wait(3.5)
  1187. game:GetService("Workspace")["Daily Chest"].circleInner.CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame
  1188. wait(3.5)
  1189. game:GetService("Workspace")["wonderChest"].circleInner.CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame
  1190. wait(3.5)
  1191. game:GetService("Workspace").wonderChest["circleInner"].CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame
  1192. game:GetService("Workspace").midnightShadowChest["circleInner"].CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame
  1193. game:GetService("Workspace").ancientChest["circleInner"].CFrame = game.Workspace.Part.CFrame
  1194. game:GetService("Workspace").midnightShadowChest["circleInner"].CFrame = game.Workspace.Part.CFrame
  1195. game:GetService("Workspace").thunderChest["circleInner"].CFrame = game.Workspace.Part.CFrame
  1196. game:GetService("Workspace").saharaChest["circleInner"].CFrame = game.Workspace.Part.CFrame
  1197. game:GetService("Workspace").eternalChest["circleInner"].CFrame = game.Workspace.Part.CFrame
  1198. game:GetService("Workspace").legendsChest["circleInner"].CFrame = game.Workspace.Part.CFrame
  1199. game:GetService("Workspace").magmaChest["circleInner"].CFrame = game.Workspace.Part.CFrame
  1200. game:GetService("Workspace").enchantedChest["circleInner"].CFrame = game.Workspace.Part.CFrame
  1201. game:GetService("Workspace").goldenChest["circleInner"].CFrame = game.Workspace.Part.CFrame
  1202. game:GetService("Workspace").mythicalChest["circleInner"].CFrame = game.Workspace.Part.CFrame
  1203. game:GetService("Workspace").groupRewardsCircle["circleInner"].CFrame = game.Workspace.Part.CFrame
  1204. game:GetService("Workspace")["Daily Chest"].circleInner.CFrame = game.Workspace.Part.CFrame
  1205. end)
  1206.  
  1207. -- Collect Light Karma Chest
  1208. local LightKarma = Misc:Button("Collect Light Chest", function()
  1209. game:GetService("Workspace").lightKarmaChest["circleInner"].CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame
  1210. wait(5)
  1211. game:GetService("Workspace").lightKarmaChest["circleInner"].CFrame = game.Workspace.Part.CFrame
  1212. end)
  1213.  
  1214. -- Collect Dark Karma Chest
  1215. local ChestCollect = Misc:Button("Collect Evil Chest", function()
  1216. game:GetService("Workspace").evilKarmaChest["circleInner"].CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame
  1217. wait(5)
  1218. game:GetService("Workspace").evilKarmaChest["circleInner"].CFrame = game.Workspace.Part.CFrame
  1219. end)
  1220.  
  1221. -- Unlock All Islands
  1222. local UnlockIsland = Misc:Button("Unlock Islands", function()
  1223. for i,v in next, game.workspace.islandUnlockParts:GetChildren() do
  1224. if v then
  1225. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = v.islandSignPart.CFrame;
  1226. wait(.5)
  1227. end
  1228. end
  1229. end)
  1230.  
  1231. -- Max Jump
  1232. local MaxJP = Misc:Button("Max Jumps", function()
  1233. while wait(.0001) do
  1234. game.Players.LocalPlayer.multiJumpCount.Value = "50"
  1235. end
  1236. end)
  1237.  
  1238. -- Hide Name
  1239. local HideName = Misc:Button("Hide Name", function()
  1240. local plrname = game.Players.LocalPlayer.Name
  1241. workspace[plrname].Head.nameGui:Destroy()
  1242. end)
  1243.  
  1244. -- ESP
  1245. local ESP = Misc:Button("ESP", function()
  1246. function isnil(thing)
  1247. return (thing == nil)
  1248. end
  1249. local function round(n)
  1250. return math.floor(tonumber(n) + 0.5)
  1251. end
  1252. function UpdatePlayerChams()
  1253. for i,v in pairs(game:GetService'Players':GetChildren()) do
  1254. pcall(function()
  1255. if not isnil(v.Character) then
  1256. for _,k in pairs(v.Character:GetChildren()) do
  1257. if k:IsA'BasePart' and not k:FindFirstChild'Cham' then
  1258. local cham = Instance.new('BoxHandleAdornment',k)
  1259. cham.ZIndex= 10
  1260. cham.Adornee=k
  1261. cham.AlwaysOnTop=true
  1262. cham.Size=k.Size
  1263. cham.Transparency=.8
  1264. cham.Color3=Color3.new(0,0,1)
  1265. cham.Name = 'Cham'
  1266. end
  1267. end
  1268. if not isnil(v.Character.Head) and not v.Character.Head:FindFirstChild'NameEsp' then
  1269. local bill = Instance.new('BillboardGui',v.Character.Head)
  1270. bill.Name = 'NameEsp'
  1271. bill.Size=UDim2.new(1,200,1,30)
  1272. bill.Adornee=v.Character.Head
  1273. bill.AlwaysOnTop=true
  1274. local name = Instance.new('TextLabel',bill)
  1275. name.TextWrapped=true
  1276. name.Text = (v.Name ..' '.. round((game:GetService('Players').LocalPlayer.Character.Head.Position - v.Character.Head.Position).Magnitude/3) ..'m')
  1277. name.Size = UDim2.new(1,0,1,0)
  1278. name.TextYAlignment='Top'
  1279. name.TextColor3=Color3.new(1,1,1)
  1280. name.BackgroundTransparency=1
  1281. else
  1282. v.Character.Head.NameEsp.TextLabel.Text = (v.Name ..' '.. round((game:GetService('Players').LocalPlayer.Character.Head.Position - v.Character.Head.Position).Magnitude/3) ..'m')
  1283. end
  1284. end
  1285. end)
  1286. end
  1287. end
  1288. while wait() do
  1289. UpdatePlayerChams()
  1290. end
  1291. end)
  1292.  
  1293. -- Toggle Popups (Chi/Coin thigns)
  1294. Misc:Bind("Toggle Popups",
  1295. {flag = "pop", owo = true},
  1296. function()
  1297. game:GetService("Players").LocalPlayer.PlayerGui.statEffectsGui.Enabled = not game:GetService("Players").LocalPlayer.PlayerGui.statEffectsGui.Enabled
  1298. game:GetService("Players").LocalPlayer.PlayerGui.hoopGui.Enabled = not game:GetService("Players").LocalPlayer.PlayerGui.hoopGui.Enabled
  1299. end)
  1300.  
  1301. -- Toggable GUI Key
  1302. Misc:Bind("Toggle GUI Key",
  1303. {flag = "Toggle", owo = true},
  1304. function()
  1305. library.toggled = not library.toggled;
  1306. for i, data in next, library.queue do
  1307. local pos = (library.toggled and data.p or UDim2.new(-1, 0, -0.5,0))
  1308. data.w:TweenPosition(pos, (library.toggled and 'Out' or 'In'), 'Quad', 0.15, true)
  1309. wait();
  1310. end
  1311. end)
  1312.  
  1313. -- Destroy GUI
  1314. local Kill = Misc:Button("Destroy GUI", function()
  1315. game:GetService("CoreGui").ScreenGui:Destroy()
  1316. end)
  1317.  
  1318. local Teleports = library:CreateWindow("Teleports")
  1319.  
  1320. -- World/Island Teleports
  1321. Teleports:Section("- Islands -")
  1322. local Islands = {}
  1323. for i,v in next, game.workspace.islandUnlockParts:GetChildren() do
  1324. if v then
  1325. table.insert(Islands, v.Name)
  1326. end
  1327. end
  1328. Teleports:Dropdown('Teleports', {list = Islands}, function(a)
  1329.     game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = game.Workspace.islandUnlockParts[a].islandSignPart.CFrame
  1330. end)
  1331.  
  1332. -- Utilitys
  1333. Teleports:Section("- Utilitys -")
  1334. local Shop = Teleports:Button("Shop", function()
  1335. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = game:GetService("Workspace").shopAreaCircles["shopAreaCircle11"].circleInner.CFrame
  1336. end)
  1337. local Skills = Teleports:Button("Skills Shop", function()
  1338. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = game:GetService("Workspace").skillAreaCircles["skillsAreaCircle11"].circleInner.CFrame
  1339. end)
  1340. local Skills1 = Teleports:Button("Light Skills Shop", function()
  1341. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(-116.49514, 3.24800324, 0.0838552266)
  1342. end)
  1343. local Skills2 = Teleports:Button("Dark Skills Shop", function()
  1344. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(-116.549767, 3.24800324, 58.087841)
  1345. end)
  1346. local KOTH = Teleports:Button("KOTH", function()
  1347. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = game:GetService("Workspace").kingOfTheHillPart.CFrame
  1348. end)
  1349.  
  1350. -- Training Area Teleports
  1351. Teleports:Section("- Training Areas -")
  1352. local a1 = Teleports:Button("Mystical Waters (Good)", function()
  1353. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(347.74881, 8824.53809, 114.271019)
  1354. end)
  1355. local a2 = Teleports:Button("Sword of Legends (Good)", function()
  1356. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(1834.15967, 38.704483, -141.375641)
  1357. end)
  1358. local a5 = Teleports:Button("Elemental Tornado (Good)", function()
  1359. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(299.758484, 30383.0957, -90.1542206)
  1360. end)
  1361. local a3 = Teleports:Button("Lava Pit (Bad)", function()
  1362. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(-116.631485, 12952.5381, 271.14624)
  1363. end)
  1364. local a4 = Teleports:Button("Tornado (Bad)", function()
  1365. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(325.641174, 16872.0938, -9.9906435)
  1366. end)
  1367. local a6 = Teleports:Button("Swords Of Ancients (Bad)", function()
  1368. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(648.365662, 38.704483, 2409.72266)
  1369. end)
  1370.  
  1371. if _G.PlaceLoopTP == true then
  1372. local Teleports2 = library:CreateWindow("More Teleports")
  1373. Teleports2:Section("- Training Areas (Looped) -")
  1374. local avh = Teleports2:Button("Mystical Waters (Good)", function()
  1375. while true do
  1376. wait(.001)
  1377. if game.Players.LocalPlayer.Character:WaitForChild("HumanoidRootPart") then
  1378. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(347.74881, 8824.53809, 114.271019)
  1379. end
  1380. end
  1381. end)
  1382. local sdgy6 = Teleports2:Button("Sword of Legends (Good)", function()
  1383. while true do
  1384. wait(.001)
  1385. if game.Players.LocalPlayer.Character:WaitForChild("HumanoidRootPart") then
  1386. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(1834.15967, 38.704483, -141.375641)
  1387. end
  1388. end
  1389. end)
  1390. local asdy = Teleports2:Button("Elemental Tornado (Good)", function()
  1391. while true do
  1392. wait(.001)
  1393. if game.Players.LocalPlayer.Character:WaitForChild("HumanoidRootPart") then
  1394. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(299.758484, 30383.0957, -90.1542206)
  1395. end
  1396. end
  1397. end)
  1398. local yassf = Teleports2:Button("Lava Pit (Bad)", function()
  1399. while true do
  1400. wait(.001)
  1401. if game.Players.LocalPlayer.Character:WaitForChild("HumanoidRootPart") then
  1402. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(-116.631485, 12952.5381, 271.14624)
  1403. end
  1404. end
  1405. end)
  1406. local sdfj = Teleports2:Button("Tornado (Bad)", function()
  1407. while true do
  1408. wait(.001)
  1409. if game.Players.LocalPlayer.Character:WaitForChild("HumanoidRootPart") then
  1410. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(325.641174, 16872.0938, -9.9906435)
  1411. end
  1412. end
  1413. end)
  1414. local jhas = Teleports2:Button("Swords Of Ancients (Bad)", function()
  1415. while true do
  1416. wait(.001)
  1417. if game.Players.LocalPlayer.Character:WaitForChild("HumanoidRootPart") then
  1418. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(648.365662, 38.704483, 2409.72266)
  1419. end
  1420. end
  1421. end)
  1422. end
  1423.  
  1424.  
  1425.  
  1426. -- Open Crystals
  1427. spawn(function()
  1428. while wait(.01) do
  1429. if Settings.TEgg then
  1430. local oh1 = "openCrystal"
  1431. local oh2 = Settings.Crystal
  1432. game:GetService("ReplicatedStorage").rEvents.openCrystalRemote:InvokeServer(oh1, oh2)
  1433. end
  1434. end
  1435. end)
  1436.  
  1437. -- Auto-Swing
  1438. spawn(function()
  1439. while wait() do
  1440. if Farming.flags.Swing then
  1441. if game.Players.LocalPlayer.Character:WaitForChild("HumanoidRootPart") then
  1442. if game.Players.LocalPlayer.Character:FindFirstChildOfClass("Tool") then
  1443. game.Players.LocalPlayer.ninjaEvent:FireServer("swingKatana")
  1444. else
  1445. for i,v in pairs(game.Players.LocalPlayer.Backpack:GetChildren()) do
  1446. if v.ClassName == "Tool" and v:FindFirstChild("attackShurikenScript") then
  1447. game.Players.LocalPlayer.Character.Humanoid:EquipTool(v)
  1448. wait()
  1449. if v.ClassName == "Tool" and v:FindFirstChild("attackKatanaScript") then
  1450. game.Players.LocalPlayer.Character.Humanoid:EquipTool(v)                            
  1451. end
  1452. end
  1453. end
  1454. end
  1455. end
  1456. end
  1457. end
  1458. end)
  1459.  
  1460. -- Auto-Sell
  1461. spawn(function()
  1462. while wait(0.01) do
  1463. if Farming.flags.Sell then
  1464. if game.Players.LocalPlayer.Character:WaitForChild("HumanoidRootPart") then
  1465. game.workspace.sellAreaCircles["sellAreaCircle7"].circleInner.CFrame = game.Players.LocalPlayer.Character:WaitForChild("HumanoidRootPart").CFrame
  1466. wait(.1)
  1467. game.workspace.sellAreaCircles["sellAreaCircle7"].circleInner.CFrame = game.Workspace.Part.CFrame
  1468. end
  1469. end
  1470. end
  1471. end)
  1472.  
  1473. -- Auto-Full Sell
  1474. spawn(function()
  1475. while wait(0.01) do
  1476. if Farming.flags.FullSell then
  1477. if game.Players.LocalPlayer.Character:WaitForChild("HumanoidRootPart") then
  1478. if player.PlayerGui.gameGui.maxNinjitsuMenu.Visible == true then
  1479. game.workspace.sellAreaCircles["sellAreaCircle7"].circleInner.CFrame = game.Players.LocalPlayer.Character:WaitForChild("HumanoidRootPart").CFrame
  1480. wait(.05)
  1481. game.workspace.sellAreaCircles["sellAreaCircle7"].circleInner.CFrame = game.Workspace.Part.CFrame
  1482. end
  1483. end
  1484. end
  1485. end
  1486. end)
  1487.  
  1488. -- Invisibility
  1489. spawn(function()
  1490. while wait(0.001) do
  1491. if Misc.flags.Invis then
  1492. local A_1 = "goInvisible"
  1493. local Event = game.Players.LocalPlayer.ninjaEvent
  1494. Event:FireServer(A_1)
  1495. end
  1496. end
  1497. end)
  1498.  
  1499. -- Auto-Pet Levels
  1500. spawn(function()
  1501. while wait(0.00011) do
  1502. if Farming.flags.L then
  1503. local plr = game.Players.LocalPlayer
  1504. for _,v in pairs(workspace.Hoops:GetDescendants()) do
  1505. if v.ClassName == "MeshPart" then
  1506. v.touchPart.CFrame = plr.Character.HumanoidRootPart.CFrame
  1507. end
  1508. end
  1509. end
  1510. end
  1511. end)
  1512.  
  1513. -- Good Karma Farm
  1514. spawn(function()
  1515. while wait(0.4) do
  1516. if Farming.flags.GK then
  1517. loadstring(game:HttpGet(('https://pastebin.com/raw/AaqHqPyw'),true))()
  1518. end
  1519. end
  1520. end)
  1521.  
  1522. -- Bad Karma Farm
  1523. spawn(function()
  1524. while wait(0.4) do
  1525. if Farming.flags.BK then
  1526. loadstring(game:HttpGet(('https://pastebin.com/raw/wEEB3nQt'),true))()  
  1527. end
  1528. end
  1529. end)
  1530.  
  1531. -- Auto-Normal Boss
  1532. spawn(function()
  1533. while wait(.001) do
  1534. if Farming.flags.Boss then
  1535. if game.Players.LocalPlayer.Character:WaitForChild("HumanoidRootPart") then
  1536. if game:GetService("Workspace").bossFolder:WaitForChild("RobotBoss"):WaitForChild("HumanoidRootPart") then
  1537. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = game.Workspace.bossFolder.RobotBoss.HumanoidRootPart.CFrame
  1538. if player.Character:FindFirstChildOfClass("Tool") then
  1539. player.Character:FindFirstChildOfClass("Tool"):Activate()
  1540. else
  1541. for i,v in pairs(player.Backpack:GetChildren()) do
  1542. if v.ClassName == "Tool" and v:FindFirstChild("attackKatanaScript") then
  1543. v.attackTime.Value = 0.2
  1544. player.Character.Humanoid:EquipTool(v)
  1545. if attackfar then
  1546. for i,v in pairs(player.Backpack:GetChildren()) do
  1547. if v.ClassName == "Tool" and v:FindFirstChild("attackShurikenScript") then
  1548. player.Character.Humanoid:EquipTool(v)
  1549. end
  1550. end
  1551. end            
  1552. end
  1553. end
  1554. end
  1555. end
  1556. end
  1557. end
  1558. end
  1559. end)
  1560.  
  1561. -- Auto-Eternal Boss
  1562. spawn(function()
  1563. while wait(.001) do
  1564. if Farming.flags.EBoss then
  1565. if game.Players.LocalPlayer.Character:WaitForChild("HumanoidRootPart") then
  1566. if game:GetService("Workspace").bossFolder:WaitForChild("EternalBoss"):WaitForChild("HumanoidRootPart") then
  1567. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = game.Workspace.bossFolder.EternalBoss.HumanoidRootPart.CFrame
  1568. if player.Character:FindFirstChildOfClass("Tool") then
  1569. player.Character:FindFirstChildOfClass("Tool"):Activate()
  1570. else
  1571. for i,v in pairs(player.Backpack:GetChildren()) do
  1572. if v.ClassName == "Tool" and v:FindFirstChild("attackKatanaScript") then
  1573. v.attackTime.Value = 0.2
  1574. player.Character.Humanoid:EquipTool(v)
  1575. if attackfar then
  1576. for i,v in pairs(player.Backpack:GetChildren()) do
  1577. if v.ClassName == "Tool" and v:FindFirstChild("attackShurikenScript") then
  1578. player.Character.Humanoid:EquipTool(v)
  1579. end
  1580. end
  1581. end      
  1582. end      
  1583. end
  1584. end
  1585. end
  1586. end
  1587. end
  1588. end
  1589. end)
  1590.  
  1591. -- Auto-Anchient Boss
  1592. spawn(function()
  1593. while wait(.001) do
  1594. if Farming.flags.ABoss then
  1595. if game.Players.LocalPlayer.Character:WaitForChild("HumanoidRootPart") then
  1596. if game:GetService("Workspace").bossFolder:WaitForChild("AncientMagmaBoss"):WaitForChild("HumanoidRootPart") then
  1597. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = game.Workspace.bossFolder.AncientMagmaBoss.HumanoidRootPart.CFrame
  1598. if player.Character:FindFirstChildOfClass("Tool") then
  1599. player.Character:FindFirstChildOfClass("Tool"):Activate()
  1600. else
  1601. for i,v in pairs(player.Backpack:GetChildren()) do
  1602. if v.ClassName == "Tool" and v:FindFirstChild("attackKatanaScript") then
  1603. v.attackTime.Value = 0.2
  1604. player.Character.Humanoid:EquipTool(v)
  1605. if attackfar then
  1606. for i,v in pairs(player.Backpack:GetChildren()) do
  1607. if v.ClassName == "Tool" and v:FindFirstChild("attackShurikenScript") then
  1608. player.Character.Humanoid:EquipTool(v)
  1609. end
  1610. end
  1611. end      
  1612. end      
  1613. end
  1614. end
  1615. end
  1616. end
  1617. end
  1618. end
  1619. end)
  1620.  
  1621. spawn(function()
  1622. while wait(.001) do
  1623. if Farming.flags.SBoss then
  1624. if game.Players.LocalPlayer.Character:WaitForChild("HumanoidRootPart") then
  1625. if game:GetService("Workspace").bossFolder:WaitForChild("Samurai Santa"):WaitForChild("HumanoidRootPart") then
  1626. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = game.Workspace.bossFolder["Samurai Santa"].HumanoidRootPart.CFrame
  1627. if player.Character:FindFirstChildOfClass("Tool") then
  1628. player.Character:FindFirstChildOfClass("Tool"):Activate()
  1629. else
  1630. for i,v in pairs(player.Backpack:GetChildren()) do
  1631. if v.ClassName == "Tool" and v:FindFirstChild("attackKatanaScript") then
  1632. v.attackTime.Value = 0.2
  1633. player.Character.Humanoid:EquipTool(v)
  1634. if attackfar then
  1635. for i,v in pairs(player.Backpack:GetChildren()) do
  1636. if v.ClassName == "Tool" and v:FindFirstChild("attackShurikenScript") then
  1637. player.Character.Humanoid:EquipTool(v)
  1638. end
  1639. end
  1640. end      
  1641. end      
  1642. end
  1643. end
  1644. end
  1645. end
  1646. end
  1647. end
  1648. end)
  1649.  
  1650. -- Auto-All Bosses
  1651. spawn(function()
  1652. while wait(.001) do
  1653. if Farming.flags.AllBosses then
  1654. if game.Players.LocalPlayer.Character:WaitForChild("HumanoidRootPart") then
  1655. if game.Workspace.bossFolder:FindFirstChild("Samurai Santa") then
  1656. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = game.Workspace.bossFolder["Samurai Santa"].HumanoidRootPart.CFrame
  1657. else
  1658. if not game.Workspace.bossFolder:FindFirstChild("Samurai Santa") then
  1659. if game.Workspace.bossFolder:FindFirstChild("AncientMagmaBoss") then
  1660. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = game.Workspace.bossFolder.AncientMagmaBoss.HumanoidRootPart.CFrame
  1661. else
  1662. if not game.Workspace.bossFolder:FindFirstChild("AncientMagmaBoss") then
  1663. if game.Workspace.bossFolder:FindFirstChild("EternalBoss") then
  1664. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = game.Workspace.bossFolder.EternalBoss.HumanoidRootPart.CFrame
  1665. else
  1666. if not game.Workspace.bossFolder:FindFirstChild("EternalBoss") then
  1667. if game.Workspace.bossFolder:FindFirstChild("RobotBoss") then
  1668. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = game.Workspace.bossFolder.RobotBoss.HumanoidRootPart.CFrame
  1669. end
  1670. end
  1671. end
  1672. end
  1673. end
  1674. end
  1675. end
  1676. if player.Character:FindFirstChildOfClass("Tool") then
  1677. player.Character:FindFirstChildOfClass("Tool"):Activate()
  1678. else
  1679. for i,v in pairs(player.Backpack:GetChildren()) do
  1680. if v.ClassName == "Tool" and v:FindFirstChild("attackKatanaScript") then
  1681. v.attackTime.Value = 0.2
  1682. player.Character.Humanoid:EquipTool(v)
  1683. if attackfar then
  1684. for i,v in pairs(player.Backpack:GetChildren()) do
  1685. if v.ClassName == "Tool" and v:FindFirstChild("attackShurikenScript") then
  1686. player.Character.Humanoid:EquipTool(v)
  1687. end
  1688. end
  1689. end
  1690. end
  1691. end
  1692. end
  1693. end
  1694. end
  1695. end
  1696. end)
  1697.  
  1698. -- Auto-Buy Swords
  1699. spawn(function()
  1700. while wait(0.5) do
  1701. if AutoBuy.flags.Sword then
  1702. if game.Players.LocalPlayer.Character:WaitForChild("HumanoidRootPart") then
  1703. local oh1 = "buyAllSwords"
  1704. local oh2 = {"Ground", "Astral Island", "Space Island","Tundra Island", "Eternal Island", "Sandstorm", "Thunderstorm", "Ancient Inferno Island", "Midnight Shadow Island", "Mythical Souls Island", "Winter Wonder Island"}
  1705. for i = 1,#oh2 do
  1706. game:GetService("Players").LocalPlayer.ninjaEvent:FireServer(oh1, oh2[i])
  1707. end
  1708. end
  1709. end
  1710. end
  1711. end)
  1712.  
  1713. -- Auto-Buy Belts
  1714. spawn(function()
  1715. while wait(0.5) do
  1716. if AutoBuy.flags.Belt then
  1717. if game.Players.LocalPlayer.Character:WaitForChild("HumanoidRootPart") then
  1718. local oh1 = "buyAllBelts"
  1719. local oh2 = {"Ground", "Astral Island", "Space Island","Tundra Island", "Eternal Island", "Sandstorm", "Thunderstorm", "Ancient Inferno Island", "Midnight Shadow Island", "Mythical Souls Island", "Winter Wonder Island"}
  1720. for i = 1,#oh2 do
  1721. game:GetService("Players").LocalPlayer.ninjaEvent:FireServer(oh1, oh2[i])
  1722. end
  1723. end
  1724. end
  1725. end
  1726. end)
  1727.  
  1728. -- Auto-Buy Skills
  1729. spawn(function()
  1730. while wait(0.5) do
  1731. if AutoBuy.flags.Skill then
  1732. if game.Players.LocalPlayer.Character:WaitForChild("HumanoidRootPart") then
  1733. local oh1 = "buyAllSkills"
  1734. local oh2 = {"Ground", "Astral Island", "Space Island","Tundra Island", "Eternal Island", "Sandstorm", "Thunderstorm", "Ancient Inferno Island", "Midnight Shadow Island", "Mythical Souls Island", "Winter Wonder Island"}
  1735. for i = 1,#oh2 do
  1736. game:GetService("Players").LocalPlayer.ninjaEvent:FireServer(oh1, oh2[i])
  1737. end
  1738. end
  1739. end
  1740. end
  1741. end)
  1742.  
  1743. -- Auto-Buy Ranks
  1744. spawn(function()
  1745. while wait(0.5) do
  1746. if AutoBuy.flags.Rank then
  1747. if game.Players.LocalPlayer.Character:WaitForChild("HumanoidRootPart") then
  1748. local oh1 = "buyRank"
  1749. local oh2 = game:GetService("ReplicatedStorage").Ranks.Ground:GetChildren()
  1750. for i = 1,#oh2 do
  1751. game:GetService("Players").LocalPlayer.ninjaEvent:FireServer(oh1, oh2[i].Name)
  1752. end
  1753. end
  1754. end
  1755. end
  1756. end)
  1757.  
  1758. -- Auto-Buy Shurikens
  1759. spawn(function()
  1760. while wait(0.5) do
  1761. if AutoBuy.flags.Shurikens then
  1762. if game.Players.LocalPlayer.Character:WaitForChild("HumanoidRootPart") then
  1763. local oh1 = "buyAllShurikens"
  1764. local oh2 = {"Ground", "Astral Island", "Space Island","Tundra Island", "Eternal Island", "Sandstorm", "Thunderstorm", "Ancient Inferno Island", "Midnight Shadow Island", "Mythical Souls Island", "Winter Wonder Island"}
  1765. for i = 1,#oh2 do
  1766. game:GetService("Players").LocalPlayer.ninjaEvent:FireServer(oh1, oh2[i])
  1767. end
  1768. end
  1769. end
  1770. end
  1771. end)
  1772.  
  1773. -- Auto-Chi
  1774. spawn(function()
  1775. while wait(0.033) do
  1776. if game.Players.LocalPlayer.Character:WaitForChild("HumanoidRootPart") then
  1777. if Farming.flags.Chi then
  1778. for i,v in pairs(game.Workspace.spawnedCoins.Valley:GetChildren()) do
  1779. if v.Name == "Blue Chi Crate" then
  1780. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(v.Position)
  1781. wait(.16)
  1782. end
  1783. end
  1784. end
  1785. end
  1786. end
  1787. end)
  1788.  
  1789. -- Auto Evolve Pet
  1790. spawn(function()
  1791. while wait(3) do
  1792. if Pets.flags.Evolve then
  1793. if game.Players.LocalPlayer.Character:WaitForChild("HumanoidRootPart") then
  1794. for i,v in pairs(game:GetService("Players").LocalPlayer.petsFolder:GetChildren()) do
  1795. for i,x in pairs(v:GetChildren()) do
  1796. local oh1 = "evolvePet"
  1797. local oh2 = x.Name
  1798. game:GetService("ReplicatedStorage").rEvents.petEvolveEvent:FireServer(oh1, oh2)
  1799. end
  1800. end
  1801. end
  1802. end
  1803. end
  1804. end)
  1805.  
  1806. -- Auto-Eternalize Pet
  1807. spawn(function()
  1808. while wait(3) do
  1809. if Pets.flags.Eternalise then
  1810. if game.Players.LocalPlayer.Character:WaitForChild("HumanoidRootPart") then
  1811. for i,v in pairs(game:GetService("Players").LocalPlayer.petsFolder:GetChildren()) do
  1812. for i,x in pairs(v:GetChildren()) do
  1813. local oh1 = "eternalizePet"
  1814. local oh2 = x.Name
  1815. game:GetService("ReplicatedStorage").rEvents.petEternalizeEvent:FireServer(oh1, oh2)
  1816. end
  1817. end
  1818. end
  1819. end
  1820. end
  1821. end)
  1822.  
  1823. -- Auto-Immortalize Pet
  1824. spawn(function()
  1825. while wait(3) do
  1826. if Pets.flags.Immortalize then
  1827. if game.Players.LocalPlayer.Character:WaitForChild("HumanoidRootPart") then
  1828. for i,v in pairs(game:GetService("Players").LocalPlayer.petsFolder:GetChildren()) do
  1829. for i,x in pairs(v:GetChildren()) do
  1830. local oh1 = "immortalizePet"
  1831. local oh2 = x.Name
  1832. game:GetService("ReplicatedStorage").rEvents.petImmortalizeEvent:FireServer(oh1, oh2)
  1833. end
  1834. end
  1835. end
  1836. end
  1837. end
  1838. end)
  1839.  
  1840. -- Auto-Legend Pet
  1841. spawn(function()
  1842. while wait(3) do
  1843. if Pets.flags.Legend then
  1844. if game.Players.LocalPlayer.Character:WaitForChild("HumanoidRootPart") then
  1845. for i,v in pairs(game:GetService("Players").LocalPlayer.petsFolder:GetChildren()) do
  1846. for i,x in pairs(v:GetChildren()) do
  1847. local oh1 = "legendizePet"
  1848. local oh2 = x.Name
  1849. game:GetService("ReplicatedStorage").rEvents.petLegendEvent:FireServer(oh1, oh2)
  1850. end
  1851. end
  1852. end
  1853. end
  1854. end
  1855. end)
  1856.  
  1857. spawn(function()
  1858. while wait(3) do
  1859. if Pets.flags.Elemental then
  1860. if game.Players.LocalPlayer.Character:WaitForChild("HumanoidRootPart") then
  1861. for i,v in pairs(game:GetService("Players").LocalPlayer.petsFolder:GetChildren()) do
  1862. for i,x in pairs(v:GetChildren()) do
  1863. local oh1 = "elementalizePet"
  1864. local oh2 = x.Name
  1865. game:GetService("ReplicatedStorage").rEvents.petLegendEvent:FireServer(oh1, oh2)
  1866. end
  1867. end
  1868. end
  1869. end
  1870. end
  1871. end)
  1872.  
  1873. -- Sell All Basics
  1874. spawn(function()
  1875. while wait(1) do
  1876. if Pets.flags.SBasic then
  1877. if game.Players.LocalPlayer.Character:WaitForChild("HumanoidRootPart") then
  1878. for i,v in pairs(game.Players.LocalPlayer.petsFolder.Basic:GetChildren()) do
  1879. game.ReplicatedStorage.rEvents.sellPetEvent:FireServer("sellPet", v)
  1880. end
  1881. end
  1882. end
  1883. end
  1884. end)
  1885.  
  1886. -- Sell All Advanced
  1887. spawn(function()
  1888. while wait(1) do
  1889. if Pets.flags.SAdvanced then
  1890. if game.Players.LocalPlayer.Character:WaitForChild("HumanoidRootPart") then
  1891. for i,v in pairs(game.Players.LocalPlayer.petsFolder.Advanced:GetChildren()) do
  1892. game.ReplicatedStorage.rEvents.sellPetEvent:FireServer("sellPet", v)
  1893. end
  1894. end
  1895. end
  1896. end
  1897. end)
  1898.  
  1899. -- Sell All Rares
  1900. spawn(function()
  1901. while wait(1) do
  1902. if Pets.flags.SRare then
  1903. if game.Players.LocalPlayer.Character:WaitForChild("HumanoidRootPart") then
  1904. for i,v in pairs(game.Players.LocalPlayer.petsFolder.Rare:GetChildren()) do
  1905. game.ReplicatedStorage.rEvents.sellPetEvent:FireServer("sellPet", v)
  1906. end
  1907. end
  1908. end
  1909. end
  1910. end)
  1911.  
  1912.  
  1913. -- Sell All Epics
  1914. spawn(function()
  1915. while wait(1) do
  1916. if Pets.flags.SEpic then
  1917. if game.Players.LocalPlayer.Character:WaitForChild("HumanoidRootPart") then
  1918. for i,v in pairs(game.Players.LocalPlayer.petsFolder.Epic:GetChildren()) do
  1919. game.ReplicatedStorage.rEvents.sellPetEvent:FireServer("sellPet", v)
  1920. end
  1921. end
  1922. end
  1923. end
  1924. end)
  1925.  
  1926. -- Sell All Uniques
  1927. spawn(function()
  1928. while wait(1) do
  1929. if Pets.flags.SUnique then
  1930. if game.Players.LocalPlayer.Character:WaitForChild("HumanoidRootPart") then
  1931. for i,v in pairs(game.Players.LocalPlayer.petsFolder.Unique:GetChildren()) do
  1932. game.ReplicatedStorage.rEvents.sellPetEvent:FireServer("sellPet", v)
  1933. end
  1934. end
  1935. end
  1936. end
  1937. end)
  1938.  
  1939. -- Sell All Omegas
  1940. spawn(function()
  1941. while wait(1) do
  1942. if Pets.flags.SOmega then
  1943. if game.Players.LocalPlayer.Character:WaitForChild("HumanoidRootPart") then
  1944. for i,v in pairs(game.Players.LocalPlayer.petsFolder.Omega:GetChildren()) do
  1945. game.ReplicatedStorage.rEvents.sellPetEvent:FireServer("sellPet", v)
  1946. end
  1947. end
  1948. end
  1949. end
  1950. end)
  1951.  
  1952. -- Sell All Elites
  1953. spawn(function()
  1954. while wait(1) do
  1955. if Pets.flags.SElite then
  1956. if game.Players.LocalPlayer.Character:WaitForChild("HumanoidRootPart") then
  1957. for i,v in pairs(game.Players.LocalPlayer.petsFolder.Elite:GetChildren()) do
  1958. game.ReplicatedStorage.rEvents.sellPetEvent:FireServer("sellPet", v)
  1959. end
  1960. end
  1961. end
  1962. end
  1963. end)
  1964.  
  1965.  
  1966. -- Sell All Infinites
  1967. spawn(function()
  1968. while wait(1) do
  1969. if Pets.flags.SInfinity then
  1970. if game.Players.LocalPlayer.Character:WaitForChild("HumanoidRootPart") then
  1971. for i,v in pairs(game.Players.LocalPlayer.petsFolder.Infinity:GetChildren()) do
  1972. game.ReplicatedStorage.rEvents.sellPetEvent:FireServer("sellPet", v)
  1973. end
  1974. end
  1975. end
  1976. end
  1977. end)
  1978.  
  1979. -- Second Pet Stuff Tab
  1980. spawn(function()
  1981. while wait(1) do
  1982. if Pets2.flags.S1 then
  1983. if game.Players.LocalPlayer.Character:WaitForChild("HumanoidRootPart") then
  1984. for i,v in pairs(game.Players.LocalPlayer.petsFolder.Infinity:GetChildren()) do
  1985. if v.Name == "Winter Wonder Kitty" then
  1986. game.ReplicatedStorage.rEvents.sellPetEvent:FireServer("sellPet", v)
  1987. end
  1988. end
  1989. end
  1990. end
  1991. end
  1992. end)
  1993.  
  1994. spawn(function()
  1995. while wait(1) do
  1996. if Pets2.flags.S2 then
  1997. if game.Players.LocalPlayer.Character:WaitForChild("HumanoidRootPart") then
  1998. for i,v in pairs(game.Players.LocalPlayer.petsFolder.Infinity:GetChildren()) do
  1999. if v.Name == "Winter Legends Polar Bear" then
  2000. game.ReplicatedStorage.rEvents.sellPetEvent:FireServer("sellPet", v)
  2001. end
  2002. end
  2003. end
  2004. end
  2005. end
  2006. end)
  2007.  
  2008. spawn(function()
  2009. while wait(1) do
  2010. if Pets2.flags.S3 then
  2011. if game.Players.LocalPlayer.Character:WaitForChild("HumanoidRootPart") then
  2012. for i,v in pairs(game.Players.LocalPlayer.petsFolder.Infinity:GetChildren()) do
  2013. if v.Name == "Christmas Sensei Reindeer" then
  2014. game.ReplicatedStorage.rEvents.sellPetEvent:FireServer("sellPet", v)
  2015. end
  2016. end
  2017. end
  2018. end
  2019. end
  2020. end)
  2021.  
  2022. spawn(function()
  2023. while wait(1) do
  2024. if Pets2.flags.S4 then
  2025. if game.Players.LocalPlayer.Character:WaitForChild("HumanoidRootPart") then
  2026. for i,v in pairs(game.Players.LocalPlayer.petsFolder.Infinity:GetChildren()) do
  2027. if v.Name == "Dark Blizzard Master Penguin" then
  2028. game.ReplicatedStorage.rEvents.sellPetEvent:FireServer("sellPet", v)
  2029. end
  2030. end
  2031. end
  2032. end
  2033. end
  2034. end)
  2035.  
  2036. spawn(function()
  2037. while wait(1) do
  2038. if Pets2.flags.S5 then
  2039. if game.Players.LocalPlayer.Character:WaitForChild("HumanoidRootPart") then
  2040. for i,v in pairs(game.Players.LocalPlayer.petsFolder.Infinity:GetChildren()) do
  2041. if v.Name == "Cybernetic Sleigh Rider" then
  2042. game.ReplicatedStorage.rEvents.sellPetEvent:FireServer("sellPet", v)
  2043. end
  2044. end
  2045. end
  2046. end
  2047. end
  2048. end)
  2049.  
  2050. -- Fast Shuriken
  2051. spawn(function()
  2052. while wait(.001) do
  2053. if Misc.flags.Fast then
  2054. if game.Players.LocalPlayer.Character:WaitForChild("HumanoidRootPart") then
  2055. local plr = game.Players.LocalPlayer
  2056. local Mouse = plr:GetMouse()
  2057. local velocity = 1000
  2058. for _,p in pairs(game.Workspace.shurikensFolder:GetChildren()) do
  2059. if p.Name == "Handle" then
  2060. if p:FindFirstChild("BodyVelocity") then
  2061. local bv = p:FindFirstChildOfClass("BodyVelocity")
  2062. bv.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  2063. bv.Velocity = Mouse.Hit.lookVector * velocity
  2064. end
  2065. end
  2066. end
  2067. end
  2068. end
  2069. end
  2070. end)
  2071.  
  2072. -- Slow Shuriken
  2073. spawn(function()
  2074. while wait(.001) do
  2075. if Misc.flags.Slow then
  2076. if game.Players.LocalPlayer.Character:WaitForChild("HumanoidRootPart") then
  2077. local plr = game.Players.LocalPlayer
  2078. local Mouse = plr:GetMouse()
  2079. local velocity = 35
  2080. for _,p in pairs(game.Workspace.shurikensFolder:GetChildren()) do
  2081. if p.Name == "Handle" then
  2082. if p:FindFirstChild("BodyVelocity") then
  2083. local bv = p:FindFirstChildOfClass("BodyVelocity")
  2084. bv.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  2085. bv.Velocity = Mouse.Hit.lookVector * velocity
  2086. end
  2087. end
  2088. end
  2089. end
  2090. end
  2091. end
  2092. end)
  2093.  
  2094. -- Anti-AFK
  2095. local vu = game:GetService("VirtualUser")
  2096. game:GetService("Players").LocalPlayer.Idled:connect(
  2097. function()
  2098. vu:Button2Down(Vector2.new(0, 0), workspace.CurrentCamera.CFrame)
  2099. wait(1)
  2100. vu:Button2Up(Vector2.new(0, 0), workspace.CurrentCamera.CFrame)
  2101. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement