Advertisement
MFCMaster1234

Untitled

Jan 25th, 2020
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 86.24 KB | None | 0 0
  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.  
  1081. return library
  1082. library.options.underlinecolor = "rainbow"
  1083.  
  1084. -- Farming Tab
  1085. local Farming = library:CreateWindow("Farming")
  1086. Farming:Section("- Karma Farms -")
  1087. local GK = Farming:Toggle("Auto-Good Karma", {flag = "GK"})
  1088. local BK = Farming:Toggle("Auto-Bad Karma", {flag = "BK"})
  1089. Farming:Section("- Ultra Coins -")
  1090. local Swing = Farming:Toggle("Auto-Swing", {flag = "Swing"})
  1091. local Sell = Farming:Toggle("Auto-Sell", {flag = "Sell"})
  1092. local BackpackFull = Farming:Toggle("Auto-Full Sell", {flag = "FullSell"})
  1093. Farming:Section("- Ultra Chi -")
  1094. local Chi = Farming:Toggle("Auto-Chi", {flag = "Chi"})
  1095. Farming:Section("- Boss Farms -")
  1096. local Boss = Farming:Toggle("Auto-Robot Boss", {flag = "Boss"})
  1097. local ETBoss = Farming:Toggle("Auto-Eternal Boss", {flag = "EBoss"})
  1098. local AMBoss = Farming:Toggle("Auto-Ancient Boss", {flag = "ABoss"})
  1099. local SNB = Farming:Toggle("Auto-Santa Boss", {flag = "SBoss"})
  1100. local AllBoss = Farming:Toggle("Auto-All Bosses", {flag = "AllBosses"})
  1101. Farming:Section("- Give Pet Levels -")
  1102. local EAR = Farming:Toggle("Auto-Pet Levels", {flag = "L"})
  1103.  
  1104. -- Auto-Buy Tab
  1105. local AutoBuy = library:CreateWindow("Auto-Buy")
  1106. AutoBuy:Section("- Auto-Buy Stuff -")
  1107. local Rank = AutoBuy:Toggle("Auto-Rank", {flag = "Rank"})
  1108. local Sword = AutoBuy:Toggle("Auto-Sword", {flag = "Sword"})
  1109. local Belt = AutoBuy:Toggle("Auto-Belt", {flag = "Belt"})
  1110. local Skill = AutoBuy:Toggle("Auto-Skills", {flag = "Skill"})
  1111. local Shuriken = AutoBuy:Toggle("Auto-Shurikens", {flag = "Shurikens"})
  1112. _G.Enabled = AutoBuy.flags.Purchase
  1113. _G.Sword = AutoBuy.flags.Sword
  1114. _G.Belt = AutoBuy.flags.Belt
  1115. _G.Rank = AutoBuy.flags.Rank
  1116. _G.Skill = AutoBuy.flags.Skill
  1117.  
  1118. local Pets = library:CreateWindow("Pet Stuff")
  1119. -- Open Pets
  1120. Pets:Section("- Open Pets -")
  1121. local Settings = {}
  1122. local Crystals = {}
  1123. for i,v in next, game.workspace.mapCrystalsFolder:GetChildren() do
  1124. if v then
  1125. table.insert(Crystals,v.Name)
  1126. end
  1127. end
  1128. Pets:Dropdown('Crystals', {location = Settings, flag = "Crystal", list = Crystals})
  1129. Pets:Toggle("Open Eggs", {location = Settings, flag = "TEgg"})
  1130.  
  1131. -- Pet Options
  1132. Pets:Section("- Pet Options -")
  1133. local Evolve = Pets:Toggle("Auto-Evolve", {flag = "Evolve"})
  1134. local Eternalise = Pets:Toggle("Auto-Eternalise", {flag = "Eternalise"})
  1135. local Immortalize = Pets:Toggle("Auto-Immortalize", {flag = "Immortalize"})
  1136. local Legend = Pets:Toggle("Auto-Legend", {flag = "Legend"})
  1137. local Elemental = Pets:Toggle("Auto-Elementalize", {flag = "Elemental"})
  1138.  
  1139. -- Sell Pets
  1140. Pets:Section("- Sell Pets -")
  1141. local Basic = Pets:Toggle("Sell All Basic", {flag = "SBasic"})
  1142. local Advanced = Pets:Toggle("Sell All Advanced", {flag = "SAdvanced"})
  1143. local Rare = Pets:Toggle("Sell All Rare", {flag = "SRare"})
  1144. local Epic = Pets:Toggle("Sell All Epic", {flag = "SEpic"})
  1145. local Unique = Pets:Toggle("Sell All Unique", {flag = "SUnique"})
  1146. local Omega = Pets:Toggle("Sell All Omega", {flag = "SOmega"})
  1147. local Elite = Pets:Toggle("Sell All Elite", {flag = "SElite"})
  1148. local Infinity = Pets:Toggle("Sell All Infinity", {flag = "SInfinity"})
  1149.  
  1150. -- Sell Seperate Pets Tab
  1151. local Pets2 = library:CreateWindow("More Pet Stuff")
  1152. Pets2:Section("- Sell Separate Pets -")
  1153. local Pet1 = Pets2:Toggle("Sell All Winter Kitty", {flag = "S1"})
  1154. local Pet2 = Pets2:Toggle("Sell All Polar Bear", {flag = "S2"})
  1155. local Pet3 = Pets2:Toggle("Sell All Sensei Reindeer", {flag = "S3"})
  1156. local Pet4 = Pets2:Toggle("Sell All Dark Penguin", {flag = "S4"})
  1157. local Pet5 = Pets2:Toggle("Sell All Sleigh Rider", {flag = "S5"})
  1158. -- Misc
  1159. local Misc = library:CreateWindow("Misc")
  1160. Misc:Section("- Other OP Scripts -")
  1161. local Shuriken = Misc:Toggle("Fast Shuriken", {flag = "Fast"})
  1162. local Shuriken2 = Misc:Toggle("Slow Shuriken", {flag = "Slow"})
  1163. local Invis = Misc:Toggle("Invisibility", {flag = "Invis"})
  1164.  
  1165. -- Collect All Chest
  1166. local ChestCollect = Misc:Button("Collect All Chest", function()
  1167. game:GetService("Workspace").mythicalChest["circleInner"].CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame
  1168. wait(3.5)
  1169. game:GetService("Workspace").goldenChest["circleInner"].CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame
  1170. wait(3.5)
  1171. game:GetService("Workspace").enchantedChest["circleInner"].CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame
  1172. wait(3.5)
  1173. game:GetService("Workspace").magmaChest["circleInner"].CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame
  1174. wait(3.5)
  1175. game:GetService("Workspace").legendsChest["circleInner"].CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame
  1176. wait(3.5)
  1177. game:GetService("Workspace").eternalChest["circleInner"].CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame
  1178. wait(3.5)
  1179. game:GetService("Workspace").saharaChest["circleInner"].CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame
  1180. wait(3.5)
  1181. game:GetService("Workspace").thunderChest["circleInner"].CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame
  1182. wait(3.5)
  1183. game:GetService("Workspace").ancientChest["circleInner"].CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame
  1184. wait(3.5)
  1185. game:GetService("Workspace").midnightShadowChest["circleInner"].CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame
  1186. wait(3.5)
  1187. game:GetService("Workspace").groupRewardsCircle["circleInner"].CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame
  1188. wait(3.5)
  1189. game:GetService("Workspace")["Daily Chest"].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. wait(3.5)
  1193. game:GetService("Workspace").wonderChest["circleInner"].CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame
  1194. game:GetService("Workspace").midnightShadowChest["circleInner"].CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame
  1195. game:GetService("Workspace").ancientChest["circleInner"].CFrame = game.Workspace.Part.CFrame
  1196. game:GetService("Workspace").midnightShadowChest["circleInner"].CFrame = game.Workspace.Part.CFrame
  1197. game:GetService("Workspace").thunderChest["circleInner"].CFrame = game.Workspace.Part.CFrame
  1198. game:GetService("Workspace").saharaChest["circleInner"].CFrame = game.Workspace.Part.CFrame
  1199. game:GetService("Workspace").eternalChest["circleInner"].CFrame = game.Workspace.Part.CFrame
  1200. game:GetService("Workspace").legendsChest["circleInner"].CFrame = game.Workspace.Part.CFrame
  1201. game:GetService("Workspace").magmaChest["circleInner"].CFrame = game.Workspace.Part.CFrame
  1202. game:GetService("Workspace").enchantedChest["circleInner"].CFrame = game.Workspace.Part.CFrame
  1203. game:GetService("Workspace").goldenChest["circleInner"].CFrame = game.Workspace.Part.CFrame
  1204. game:GetService("Workspace").mythicalChest["circleInner"].CFrame = game.Workspace.Part.CFrame
  1205. game:GetService("Workspace").groupRewardsCircle["circleInner"].CFrame = game.Workspace.Part.CFrame
  1206. game:GetService("Workspace")["Daily Chest"].circleInner.CFrame = game.Workspace.Part.CFrame
  1207. end)
  1208.  
  1209. -- Collect Light Karma Chest
  1210. local LightKarma = Misc:Button("Collect Light Chest", function()
  1211. game:GetService("Workspace").lightKarmaChest["circleInner"].CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame
  1212. wait(5)
  1213. game:GetService("Workspace").lightKarmaChest["circleInner"].CFrame = game.Workspace.Part.CFrame
  1214. end)
  1215.  
  1216. -- Collect Dark Karma Chest
  1217. local ChestCollect = Misc:Button("Collect Evil Chest", function()
  1218. game:GetService("Workspace").evilKarmaChest["circleInner"].CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame
  1219. wait(5)
  1220. game:GetService("Workspace").evilKarmaChest["circleInner"].CFrame = game.Workspace.Part.CFrame
  1221. end)
  1222.  
  1223. -- Unlock All Islands
  1224. local UnlockIsland = Misc:Button("Unlock Islands", function()
  1225. for i,v in next, game.workspace.islandUnlockParts:GetChildren() do
  1226. if v then
  1227. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = v.islandSignPart.CFrame;
  1228. wait(.5)
  1229. end
  1230. end
  1231. end)
  1232.  
  1233. -- Max Jump
  1234. local MaxJP = Misc:Button("Max Jumps", function()
  1235. while wait(.0001) do
  1236. game.Players.LocalPlayer.multiJumpCount.Value = "50"
  1237. end
  1238. end)
  1239.  
  1240. -- Hide Name
  1241. local HideName = Misc:Button("Hide Name", function()
  1242. local plrname = game.Players.LocalPlayer.Name
  1243. workspace[plrname].Head.nameGui:Destroy()
  1244. end)
  1245.  
  1246. -- ESP
  1247. local ESP = Misc:Button("ESP", function()
  1248. function isnil(thing)
  1249. return (thing == nil)
  1250. end
  1251. local function round(n)
  1252. return math.floor(tonumber(n) + 0.5)
  1253. end
  1254. function UpdatePlayerChams()
  1255. for i,v in pairs(game:GetService'Players':GetChildren()) do
  1256. pcall(function()
  1257. if not isnil(v.Character) then
  1258. for _,k in pairs(v.Character:GetChildren()) do
  1259. if k:IsA'BasePart' and not k:FindFirstChild'Cham' then
  1260. local cham = Instance.new('BoxHandleAdornment',k)
  1261. cham.ZIndex= 10
  1262. cham.Adornee=k
  1263. cham.AlwaysOnTop=true
  1264. cham.Size=k.Size
  1265. cham.Transparency=.8
  1266. cham.Color3=Color3.new(0,0,1)
  1267. cham.Name = 'Cham'
  1268. end
  1269. end
  1270. if not isnil(v.Character.Head) and not v.Character.Head:FindFirstChild'NameEsp' then
  1271. local bill = Instance.new('BillboardGui',v.Character.Head)
  1272. bill.Name = 'NameEsp'
  1273. bill.Size=UDim2.new(1,200,1,30)
  1274. bill.Adornee=v.Character.Head
  1275. bill.AlwaysOnTop=true
  1276. local name = Instance.new('TextLabel',bill)
  1277. name.TextWrapped=true
  1278. name.Text = (v.Name ..' '.. round((game:GetService('Players').LocalPlayer.Character.Head.Position - v.Character.Head.Position).Magnitude/3) ..'m')
  1279. name.Size = UDim2.new(1,0,1,0)
  1280. name.TextYAlignment='Top'
  1281. name.TextColor3=Color3.new(1,1,1)
  1282. name.BackgroundTransparency=1
  1283. else
  1284. v.Character.Head.NameEsp.TextLabel.Text = (v.Name ..' '.. round((game:GetService('Players').LocalPlayer.Character.Head.Position - v.Character.Head.Position).Magnitude/3) ..'m')
  1285. end
  1286. end
  1287. end)
  1288. end
  1289. end
  1290. while wait() do
  1291. UpdatePlayerChams()
  1292. end
  1293. end)
  1294.  
  1295. -- Toggle Popups (Chi/Coin thigns)
  1296. Misc:Bind("Toggle Popups",
  1297. {flag = "pop", owo = true},
  1298. function()
  1299. game:GetService("Players").LocalPlayer.PlayerGui.statEffectsGui.Enabled = not game:GetService("Players").LocalPlayer.PlayerGui.statEffectsGui.Enabled
  1300. game:GetService("Players").LocalPlayer.PlayerGui.hoopGui.Enabled = not game:GetService("Players").LocalPlayer.PlayerGui.hoopGui.Enabled
  1301. end)
  1302.  
  1303. -- Toggable GUI Key
  1304. Misc:Bind("Toggle GUI Key",
  1305. {flag = "Toggle", owo = true},
  1306. function()
  1307. library.toggled = not library.toggled;
  1308. for i, data in next, library.queue do
  1309. local pos = (library.toggled and data.p or UDim2.new(-1, 0, -0.5,0))
  1310. data.w:TweenPosition(pos, (library.toggled and 'Out' or 'In'), 'Quad', 0.15, true)
  1311. wait();
  1312. end
  1313. end)
  1314.  
  1315. -- Destroy GUI
  1316. local Kill = Misc:Button("Destroy GUI", function()
  1317. game:GetService("CoreGui").ScreenGui:Destroy()
  1318. end)
  1319.  
  1320. local Teleports = library:CreateWindow("Teleports")
  1321.  
  1322. -- World/Island Teleports
  1323. Teleports:Section("- Islands -")
  1324. local Islands = {}
  1325. for i,v in next, game.workspace.islandUnlockParts:GetChildren() do
  1326. if v then
  1327. table.insert(Islands, v.Name)
  1328. end
  1329. end
  1330. Teleports:Dropdown('Teleports', {list = Islands}, function(a)
  1331.     game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = game.Workspace.islandUnlockParts[a].islandSignPart.CFrame
  1332. end)
  1333.  
  1334. -- Utilitys
  1335. Teleports:Section("- Utilitys -")
  1336. local Shop = Teleports:Button("Shop", function()
  1337. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = game:GetService("Workspace").shopAreaCircles["shopAreaCircle11"].circleInner.CFrame
  1338. end)
  1339. local Skills = Teleports:Button("Skills Shop", function()
  1340. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = game:GetService("Workspace").skillAreaCircles["skillsAreaCircle11"].circleInner.CFrame
  1341. end)
  1342. local Skills1 = Teleports:Button("Light Skills Shop", function()
  1343. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(-116.49514, 3.24800324, 0.0838552266)
  1344. end)
  1345. local Skills2 = Teleports:Button("Dark Skills Shop", function()
  1346. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(-116.549767, 3.24800324, 58.087841)
  1347. end)
  1348. local KOTH = Teleports:Button("KOTH", function()
  1349. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = game:GetService("Workspace").kingOfTheHillPart.CFrame
  1350. end)
  1351.  
  1352. -- Training Area Teleports
  1353. Teleports:Section("- Training Areas -")
  1354. local a1 = Teleports:Button("Mystical Waters (Good)", function()
  1355. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(347.74881, 8824.53809, 114.271019)
  1356. end)
  1357. local a2 = Teleports:Button("Sword of Legends (Good)", function()
  1358. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(1834.15967, 38.704483, -141.375641)
  1359. end)
  1360. local a5 = Teleports:Button("Elemental Tornado (Good)", function()
  1361. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(299.758484, 30383.0957, -90.1542206)
  1362. end)
  1363. local a3 = Teleports:Button("Lava Pit (Bad)", function()
  1364. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(-116.631485, 12952.5381, 271.14624)
  1365. end)
  1366. local a4 = Teleports:Button("Tornado (Bad)", function()
  1367. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(325.641174, 16872.0938, -9.9906435)
  1368. end)
  1369. local a6 = Teleports:Button("Swords Of Ancients (Bad)", function()
  1370. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(648.365662, 38.704483, 2409.72266)
  1371. end)
  1372.  
  1373. if _G.PlaceLoopTP == true then
  1374. local Teleports2 = library:CreateWindow("More Teleports")
  1375. Teleports2:Section("- Training Areas (Looped) -")
  1376. local avh = Teleports2:Button("Mystical Waters (Good)", function()
  1377. while true do
  1378. wait(.001)
  1379. if game.Players.LocalPlayer.Character:WaitForChild("HumanoidRootPart") then
  1380. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(347.74881, 8824.53809, 114.271019)
  1381. end
  1382. end
  1383. end)
  1384. local sdgy6 = Teleports2:Button("Sword of Legends (Good)", function()
  1385. while true do
  1386. wait(.001)
  1387. if game.Players.LocalPlayer.Character:WaitForChild("HumanoidRootPart") then
  1388. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(1834.15967, 38.704483, -141.375641)
  1389. end
  1390. end
  1391. end)
  1392. local asdy = Teleports2:Button("Elemental Tornado (Good)", function()
  1393. while true do
  1394. wait(.001)
  1395. if game.Players.LocalPlayer.Character:WaitForChild("HumanoidRootPart") then
  1396. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(299.758484, 30383.0957, -90.1542206)
  1397. end
  1398. end
  1399. end)
  1400. local yassf = Teleports2:Button("Lava Pit (Bad)", function()
  1401. while true do
  1402. wait(.001)
  1403. if game.Players.LocalPlayer.Character:WaitForChild("HumanoidRootPart") then
  1404. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(-116.631485, 12952.5381, 271.14624)
  1405. end
  1406. end
  1407. end)
  1408. local sdfj = Teleports2:Button("Tornado (Bad)", function()
  1409. while true do
  1410. wait(.001)
  1411. if game.Players.LocalPlayer.Character:WaitForChild("HumanoidRootPart") then
  1412. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(325.641174, 16872.0938, -9.9906435)
  1413. end
  1414. end
  1415. end)
  1416. local jhas = Teleports2:Button("Swords Of Ancients (Bad)", function()
  1417. while true do
  1418. wait(.001)
  1419. if game.Players.LocalPlayer.Character:WaitForChild("HumanoidRootPart") then
  1420. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(648.365662, 38.704483, 2409.72266)
  1421. end
  1422. end
  1423. end)
  1424. end
  1425.  
  1426.  
  1427.  
  1428. -- Open Crystals
  1429. spawn(function()
  1430. while wait(.01) do
  1431. if Settings.TEgg then
  1432. local oh1 = "openCrystal"
  1433. local oh2 = Settings.Crystal
  1434. game:GetService("ReplicatedStorage").rEvents.openCrystalRemote:InvokeServer(oh1, oh2)
  1435. end
  1436. end
  1437. end)
  1438.  
  1439. -- Auto-Swing
  1440. spawn(function()
  1441. while wait() do
  1442. if Farming.flags.Swing then
  1443. if game.Players.LocalPlayer.Character:WaitForChild("HumanoidRootPart") then
  1444. if game.Players.LocalPlayer.Character:FindFirstChildOfClass("Tool") then
  1445. game.Players.LocalPlayer.ninjaEvent:FireServer("swingKatana")
  1446. else
  1447. for i,v in pairs(game.Players.LocalPlayer.Backpack:GetChildren()) do
  1448. if v.ClassName == "Tool" and v:FindFirstChild("attackShurikenScript") then
  1449. game.Players.LocalPlayer.Character.Humanoid:EquipTool(v)
  1450. wait()
  1451. if v.ClassName == "Tool" and v:FindFirstChild("attackKatanaScript") then
  1452. game.Players.LocalPlayer.Character.Humanoid:EquipTool(v)                            
  1453. end
  1454. end
  1455. end
  1456. end
  1457. end
  1458. end
  1459. end
  1460. end)
  1461.  
  1462. -- Auto-Sell
  1463. spawn(function()
  1464. while wait(0.01) do
  1465. if Farming.flags.Sell then
  1466. if game.Players.LocalPlayer.Character:WaitForChild("HumanoidRootPart") then
  1467. game.workspace.sellAreaCircles["sellAreaCircle7"].circleInner.CFrame = game.Players.LocalPlayer.Character:WaitForChild("HumanoidRootPart").CFrame
  1468. wait(.1)
  1469. game.workspace.sellAreaCircles["sellAreaCircle7"].circleInner.CFrame = game.Workspace.Part.CFrame
  1470. end
  1471. end
  1472. end
  1473. end)
  1474.  
  1475. -- Auto-Full Sell
  1476. spawn(function()
  1477. while wait(0.01) do
  1478. if Farming.flags.FullSell then
  1479. if game.Players.LocalPlayer.Character:WaitForChild("HumanoidRootPart") then
  1480. if player.PlayerGui.gameGui.maxNinjitsuMenu.Visible == true then
  1481. game.workspace.sellAreaCircles["sellAreaCircle7"].circleInner.CFrame = game.Players.LocalPlayer.Character:WaitForChild("HumanoidRootPart").CFrame
  1482. wait(.05)
  1483. game.workspace.sellAreaCircles["sellAreaCircle7"].circleInner.CFrame = game.Workspace.Part.CFrame
  1484. end
  1485. end
  1486. end
  1487. end
  1488. end)
  1489.  
  1490. -- Invisibility
  1491. spawn(function()
  1492. while wait(0.001) do
  1493. if Misc.flags.Invis then
  1494. local A_1 = "goInvisible"
  1495. local Event = game.Players.LocalPlayer.ninjaEvent
  1496. Event:FireServer(A_1)
  1497. end
  1498. end
  1499. end)
  1500.  
  1501. -- Auto-Pet Levels
  1502. spawn(function()
  1503. while wait(0.00011) do
  1504. if Farming.flags.L then
  1505. local plr = game.Players.LocalPlayer
  1506. for _,v in pairs(workspace.Hoops:GetDescendants()) do
  1507. if v.ClassName == "MeshPart" then
  1508. v.touchPart.CFrame = plr.Character.HumanoidRootPart.CFrame
  1509. end
  1510. end
  1511. end
  1512. end
  1513. end)
  1514.  
  1515. -- Good Karma Farm
  1516. spawn(function()
  1517. while wait(0.4) do
  1518. if Farming.flags.GK then
  1519. local VirtualUser = game:GetService("VirtualUser")
  1520. local players = game.Players:GetPlayers()
  1521. local player = game.Players.LocalPlayer
  1522. local soulType = "Good" -- Good or Bad , Change this only
  1523. local lplr = ""
  1524. local jplr = ""
  1525.  
  1526. local function check()
  1527. for i,v in pairs(game.Players.LocalPlayer.Backpack:GetChildren()) do
  1528.  if v.ClassName == "Tool" and v:FindFirstChild("attackKatanaScript") then
  1529.    game.Players.LocalPlayer.Character.Humanoid:EquipTool(v)                            
  1530.     end
  1531.    end
  1532.   end
  1533.  
  1534. if workspace[player.Name]:FindFirstChild("Head") then
  1535.  if workspace[player.Name].Head:FindFirstChild("nameGui") then
  1536.   workspace[player.Name].Head.nameGui:Destroy()
  1537.  end
  1538. end
  1539. player.ninjaEvent:FireServer("goInvisible")
  1540. if player.Character:FindFirstChild("inSafezone") then
  1541.      player.Character.HumanoidRootPart.CFrame = player.Character.HumanoidRootPart.CFrame + Vector3.new(0,200,0)
  1542. end
  1543. if game.Players.LocalPlayer.Character:WaitForChild("HumanoidRootPart") then
  1544. game.Players.PlayerRemoving:Connect(function(player)
  1545.         lplr = (player.Name)
  1546.         players = game.Players:GetPlayers()
  1547. end)
  1548.  
  1549. game.Players.PlayerAdded:Connect(function(player)
  1550.         jplr = (player.Name)
  1551.         players = game.Players:GetPlayers()
  1552. end)
  1553.  
  1554. players = game.Players:GetPlayers()
  1555.  
  1556. for _, v in pairs(players) do
  1557. if v.Name ~= player.Name and v.Name ~= lplr and v.Name ~= jplr and workspace:FindFirstChild(v.Name) and workspace[v.Name]:FindFirstChild("Head") then
  1558. if v.Name ~= game.Players.LocalPlayer.Name and not v.Character:FindFirstChild("inSafezone") then
  1559. v.Character.Head.CanCollide = false
  1560. v.Character.Head.Anchored = true
  1561. v.Character.Head.Position = player.Character.HumanoidRootPart.Position + Vector3.new(1,0,0)
  1562. elseif v.Name ~= game.Players.LocalPlayer.Name and v.Character:FindFirstChild("inSafezone") then
  1563. v.Character.Head.CFrame = player.Character.HumanoidRootPart.CFrame + Vector3.new(0,20,0)
  1564. end
  1565. end
  1566. end
  1567.  
  1568. if player.Character:FindFirstChildOfClass("Tool") then
  1569. player.Character:FindFirstChildOfClass("Tool"):Activate()
  1570. end
  1571.  
  1572. for _,v in pairs(game.Workspace.soulPartsFolder:GetChildren()) do
  1573. if v.Name == "soulPart" and v.collectPlayers:FindFirstChild(player.Name) then
  1574. if not v:FindFirstChild("isGoodKarma") and soulType == "Bad" then
  1575.    player.Character.HumanoidRootPart.CFrame = v.CFrame + Vector3.new(0,5,0)
  1576.    player.ninjaEvent:FireServer("collectSoul", v)
  1577. elseif v:FindFirstChild("isGoodKarma") and soulType == "Good" then
  1578.    player.Character.HumanoidRootPart.CFrame = v.CFrame + Vector3.new(0,5,0)
  1579.    player.ninjaEvent:FireServer("collectSoul", v)
  1580. end
  1581. end
  1582. end
  1583. check()
  1584. end
  1585. end
  1586. end
  1587. end)
  1588.  
  1589. -- Bad Karma Farm
  1590. spawn(function()
  1591. while wait(0.4) do
  1592. if Farming.flags.BK then
  1593. local VirtualUser = game:GetService("VirtualUser")
  1594. local players = game.Players:GetPlayers()
  1595. local player = game.Players.LocalPlayer
  1596. local soulType = "Bad" -- Good or Bad , Change this only
  1597. local lplr = ""
  1598. local jplr = ""
  1599.  
  1600. local function check()
  1601. for i,v in pairs(game.Players.LocalPlayer.Backpack:GetChildren()) do
  1602.  if v.ClassName == "Tool" and v:FindFirstChild("attackKatanaScript") then
  1603.    game.Players.LocalPlayer.Character.Humanoid:EquipTool(v)                            
  1604.     end
  1605.    end
  1606.   end
  1607.  
  1608. if workspace[player.Name]:FindFirstChild("Head") then
  1609.  if workspace[player.Name].Head:FindFirstChild("nameGui") then
  1610.   workspace[player.Name].Head.nameGui:Destroy()
  1611.  end
  1612. end
  1613. player.ninjaEvent:FireServer("goInvisible")
  1614. if player.Character:FindFirstChild("inSafezone") then
  1615.      player.Character.HumanoidRootPart.CFrame = player.Character.HumanoidRootPart.CFrame + Vector3.new(0,200,0)
  1616. end
  1617. if game.Players.LocalPlayer.Character:WaitForChild("HumanoidRootPart") then
  1618. game.Players.PlayerRemoving:Connect(function(player)
  1619.         lplr = (player.Name)
  1620.         players = game.Players:GetPlayers()
  1621. end)
  1622.  
  1623. game.Players.PlayerAdded:Connect(function(player)
  1624.         jplr = (player.Name)
  1625.         players = game.Players:GetPlayers()
  1626. end)
  1627.  
  1628. players = game.Players:GetPlayers()
  1629.  
  1630. for _, v in pairs(players) do
  1631. if v.Name ~= player.Name and v.Name ~= lplr and v.Name ~= jplr and workspace:FindFirstChild(v.Name) and workspace[v.Name]:FindFirstChild("Head") then
  1632. if v.Name ~= game.Players.LocalPlayer.Name and not v.Character:FindFirstChild("inSafezone") then
  1633. v.Character.Head.CanCollide = false
  1634. v.Character.Head.Anchored = true
  1635. v.Character.Head.Position = player.Character.HumanoidRootPart.Position + Vector3.new(1,0,0)
  1636. elseif v.Name ~= game.Players.LocalPlayer.Name and v.Character:FindFirstChild("inSafezone") then
  1637. v.Character.Head.CFrame = player.Character.HumanoidRootPart.CFrame + Vector3.new(0,20,0)
  1638. end
  1639. end
  1640. end
  1641.  
  1642. if player.Character:FindFirstChildOfClass("Tool") then
  1643. player.Character:FindFirstChildOfClass("Tool"):Activate()
  1644. end
  1645.  
  1646. for _,v in pairs(game.Workspace.soulPartsFolder:GetChildren()) do
  1647. if v.Name == "soulPart" and v.collectPlayers:FindFirstChild(player.Name) then
  1648. if not v:FindFirstChild("isGoodKarma") and soulType == "Bad" then
  1649.    player.Character.HumanoidRootPart.CFrame = v.CFrame + Vector3.new(0,5,0)
  1650.    player.ninjaEvent:FireServer("collectSoul", v)
  1651. elseif v:FindFirstChild("isGoodKarma") and soulType == "Good" then
  1652.    player.Character.HumanoidRootPart.CFrame = v.CFrame + Vector3.new(0,5,0)
  1653.    player.ninjaEvent:FireServer("collectSoul", v)
  1654. end
  1655. end
  1656. end
  1657. check()
  1658. end
  1659. end
  1660. end
  1661. end)
  1662.  
  1663. -- Auto-Normal Boss
  1664. spawn(function()
  1665. while wait(.001) do
  1666. if Farming.flags.Boss then
  1667. if game.Players.LocalPlayer.Character:WaitForChild("HumanoidRootPart") then
  1668. if game:GetService("Workspace").bossFolder:WaitForChild("RobotBoss"):WaitForChild("HumanoidRootPart") then
  1669. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = game.Workspace.bossFolder.RobotBoss.HumanoidRootPart.CFrame
  1670. if player.Character:FindFirstChildOfClass("Tool") then
  1671. player.Character:FindFirstChildOfClass("Tool"):Activate()
  1672. else
  1673. for i,v in pairs(player.Backpack:GetChildren()) do
  1674. if v.ClassName == "Tool" and v:FindFirstChild("attackKatanaScript") then
  1675. v.attackTime.Value = 0.2
  1676. player.Character.Humanoid:EquipTool(v)
  1677. if attackfar then
  1678. for i,v in pairs(player.Backpack:GetChildren()) do
  1679. if v.ClassName == "Tool" and v:FindFirstChild("attackShurikenScript") then
  1680. player.Character.Humanoid:EquipTool(v)
  1681. end
  1682. end
  1683. end            
  1684. end
  1685. end
  1686. end
  1687. end
  1688. end
  1689. end
  1690. end
  1691. end)
  1692.  
  1693. -- Auto-Eternal Boss
  1694. spawn(function()
  1695. while wait(.001) do
  1696. if Farming.flags.EBoss then
  1697. if game.Players.LocalPlayer.Character:WaitForChild("HumanoidRootPart") then
  1698. if game:GetService("Workspace").bossFolder:WaitForChild("EternalBoss"):WaitForChild("HumanoidRootPart") then
  1699. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = game.Workspace.bossFolder.EternalBoss.HumanoidRootPart.CFrame
  1700. if player.Character:FindFirstChildOfClass("Tool") then
  1701. player.Character:FindFirstChildOfClass("Tool"):Activate()
  1702. else
  1703. for i,v in pairs(player.Backpack:GetChildren()) do
  1704. if v.ClassName == "Tool" and v:FindFirstChild("attackKatanaScript") then
  1705. v.attackTime.Value = 0.2
  1706. player.Character.Humanoid:EquipTool(v)
  1707. if attackfar then
  1708. for i,v in pairs(player.Backpack:GetChildren()) do
  1709. if v.ClassName == "Tool" and v:FindFirstChild("attackShurikenScript") then
  1710. player.Character.Humanoid:EquipTool(v)
  1711. end
  1712. end
  1713. end      
  1714. end      
  1715. end
  1716. end
  1717. end
  1718. end
  1719. end
  1720. end
  1721. end)
  1722.  
  1723. -- Auto-Anchient Boss
  1724. spawn(function()
  1725. while wait(.001) do
  1726. if Farming.flags.ABoss then
  1727. if game.Players.LocalPlayer.Character:WaitForChild("HumanoidRootPart") then
  1728. if game:GetService("Workspace").bossFolder:WaitForChild("AncientMagmaBoss"):WaitForChild("HumanoidRootPart") then
  1729. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = game.Workspace.bossFolder.AncientMagmaBoss.HumanoidRootPart.CFrame
  1730. if player.Character:FindFirstChildOfClass("Tool") then
  1731. player.Character:FindFirstChildOfClass("Tool"):Activate()
  1732. else
  1733. for i,v in pairs(player.Backpack:GetChildren()) do
  1734. if v.ClassName == "Tool" and v:FindFirstChild("attackKatanaScript") then
  1735. v.attackTime.Value = 0.2
  1736. player.Character.Humanoid:EquipTool(v)
  1737. if attackfar then
  1738. for i,v in pairs(player.Backpack:GetChildren()) do
  1739. if v.ClassName == "Tool" and v:FindFirstChild("attackShurikenScript") then
  1740. player.Character.Humanoid:EquipTool(v)
  1741. end
  1742. end
  1743. end      
  1744. end      
  1745. end
  1746. end
  1747. end
  1748. end
  1749. end
  1750. end
  1751. end)
  1752.  
  1753. spawn(function()
  1754. while wait(.001) do
  1755. if Farming.flags.SBoss then
  1756. if game.Players.LocalPlayer.Character:WaitForChild("HumanoidRootPart") then
  1757. if game:GetService("Workspace").bossFolder:WaitForChild("Samurai Santa"):WaitForChild("HumanoidRootPart") then
  1758. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = game.Workspace.bossFolder["Samurai Santa"].HumanoidRootPart.CFrame
  1759. if player.Character:FindFirstChildOfClass("Tool") then
  1760. player.Character:FindFirstChildOfClass("Tool"):Activate()
  1761. else
  1762. for i,v in pairs(player.Backpack:GetChildren()) do
  1763. if v.ClassName == "Tool" and v:FindFirstChild("attackKatanaScript") then
  1764. v.attackTime.Value = 0.2
  1765. player.Character.Humanoid:EquipTool(v)
  1766. if attackfar then
  1767. for i,v in pairs(player.Backpack:GetChildren()) do
  1768. if v.ClassName == "Tool" and v:FindFirstChild("attackShurikenScript") then
  1769. player.Character.Humanoid:EquipTool(v)
  1770. end
  1771. end
  1772. end      
  1773. end      
  1774. end
  1775. end
  1776. end
  1777. end
  1778. end
  1779. end
  1780. end)
  1781.  
  1782. -- Auto-All Bosses
  1783. spawn(function()
  1784. while wait(.001) do
  1785. if Farming.flags.AllBosses then
  1786. if game.Players.LocalPlayer.Character:WaitForChild("HumanoidRootPart") then
  1787. if game.Workspace.bossFolder:FindFirstChild("Samurai Santa") then
  1788. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = game.Workspace.bossFolder["Samurai Santa"].HumanoidRootPart.CFrame
  1789. else
  1790. if not game.Workspace.bossFolder:FindFirstChild("Samurai Santa") then
  1791. if game.Workspace.bossFolder:FindFirstChild("AncientMagmaBoss") then
  1792. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = game.Workspace.bossFolder.AncientMagmaBoss.HumanoidRootPart.CFrame
  1793. else
  1794. if not game.Workspace.bossFolder:FindFirstChild("AncientMagmaBoss") then
  1795. if game.Workspace.bossFolder:FindFirstChild("EternalBoss") then
  1796. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = game.Workspace.bossFolder.EternalBoss.HumanoidRootPart.CFrame
  1797. else
  1798. if not game.Workspace.bossFolder:FindFirstChild("EternalBoss") then
  1799. if game.Workspace.bossFolder:FindFirstChild("RobotBoss") then
  1800. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = game.Workspace.bossFolder.RobotBoss.HumanoidRootPart.CFrame
  1801. end
  1802. end
  1803. end
  1804. end
  1805. end
  1806. end
  1807. end
  1808. if player.Character:FindFirstChildOfClass("Tool") then
  1809. player.Character:FindFirstChildOfClass("Tool"):Activate()
  1810. else
  1811. for i,v in pairs(player.Backpack:GetChildren()) do
  1812. if v.ClassName == "Tool" and v:FindFirstChild("attackKatanaScript") then
  1813. v.attackTime.Value = 0.2
  1814. player.Character.Humanoid:EquipTool(v)
  1815. if attackfar then
  1816. for i,v in pairs(player.Backpack:GetChildren()) do
  1817. if v.ClassName == "Tool" and v:FindFirstChild("attackShurikenScript") then
  1818. player.Character.Humanoid:EquipTool(v)
  1819. end
  1820. end
  1821. end
  1822. end
  1823. end
  1824. end
  1825. end
  1826. end
  1827. end
  1828. end)
  1829.  
  1830. -- Auto-Buy Swords
  1831. spawn(function()
  1832. while wait(0.5) do
  1833. if AutoBuy.flags.Sword then
  1834. if game.Players.LocalPlayer.Character:WaitForChild("HumanoidRootPart") then
  1835. local oh1 = "buyAllSwords"
  1836. 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"}
  1837. for i = 1,#oh2 do
  1838. game:GetService("Players").LocalPlayer.ninjaEvent:FireServer(oh1, oh2[i])
  1839. end
  1840. end
  1841. end
  1842. end
  1843. end)
  1844.  
  1845. -- Auto-Buy Belts
  1846. spawn(function()
  1847. while wait(0.5) do
  1848. if AutoBuy.flags.Belt then
  1849. if game.Players.LocalPlayer.Character:WaitForChild("HumanoidRootPart") then
  1850. local oh1 = "buyAllBelts"
  1851. 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"}
  1852. for i = 1,#oh2 do
  1853. game:GetService("Players").LocalPlayer.ninjaEvent:FireServer(oh1, oh2[i])
  1854. end
  1855. end
  1856. end
  1857. end
  1858. end)
  1859.  
  1860. -- Auto-Buy Skills
  1861. spawn(function()
  1862. while wait(0.5) do
  1863. if AutoBuy.flags.Skill then
  1864. if game.Players.LocalPlayer.Character:WaitForChild("HumanoidRootPart") then
  1865. local oh1 = "buyAllSkills"
  1866. 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"}
  1867. for i = 1,#oh2 do
  1868. game:GetService("Players").LocalPlayer.ninjaEvent:FireServer(oh1, oh2[i])
  1869. end
  1870. end
  1871. end
  1872. end
  1873. end)
  1874.  
  1875. -- Auto-Buy Ranks
  1876. spawn(function()
  1877. while wait(0.5) do
  1878. if AutoBuy.flags.Rank then
  1879. if game.Players.LocalPlayer.Character:WaitForChild("HumanoidRootPart") then
  1880. local oh1 = "buyRank"
  1881. local oh2 = game:GetService("ReplicatedStorage").Ranks.Ground:GetChildren()
  1882. for i = 1,#oh2 do
  1883. game:GetService("Players").LocalPlayer.ninjaEvent:FireServer(oh1, oh2[i].Name)
  1884. end
  1885. end
  1886. end
  1887. end
  1888. end)
  1889.  
  1890. -- Auto-Buy Shurikens
  1891. spawn(function()
  1892. while wait(0.5) do
  1893. if AutoBuy.flags.Shurikens then
  1894. if game.Players.LocalPlayer.Character:WaitForChild("HumanoidRootPart") then
  1895. local oh1 = "buyAllShurikens"
  1896. 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"}
  1897. for i = 1,#oh2 do
  1898. game:GetService("Players").LocalPlayer.ninjaEvent:FireServer(oh1, oh2[i])
  1899. end
  1900. end
  1901. end
  1902. end
  1903. end)
  1904.  
  1905. -- Auto-Chi
  1906. spawn(function()
  1907. while wait(0.033) do
  1908. if game.Players.LocalPlayer.Character:WaitForChild("HumanoidRootPart") then
  1909. if Farming.flags.Chi then
  1910. for i,v in pairs(game.Workspace.spawnedCoins.Valley:GetChildren()) do
  1911. if v.Name == "Blue Chi Crate" then
  1912. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(v.Position)
  1913. wait(.16)
  1914. end
  1915. end
  1916. end
  1917. end
  1918. end
  1919. end)
  1920.  
  1921. -- Auto Evolve Pet
  1922. spawn(function()
  1923. while wait(3) do
  1924. if Pets.flags.Evolve then
  1925. if game.Players.LocalPlayer.Character:WaitForChild("HumanoidRootPart") then
  1926. for i,v in pairs(game:GetService("Players").LocalPlayer.petsFolder:GetChildren()) do
  1927. for i,x in pairs(v:GetChildren()) do
  1928. local oh1 = "evolvePet"
  1929. local oh2 = x.Name
  1930. game:GetService("ReplicatedStorage").rEvents.petEvolveEvent:FireServer(oh1, oh2)
  1931. end
  1932. end
  1933. end
  1934. end
  1935. end
  1936. end)
  1937.  
  1938. -- Auto-Eternalize Pet
  1939. spawn(function()
  1940. while wait(3) do
  1941. if Pets.flags.Eternalise then
  1942. if game.Players.LocalPlayer.Character:WaitForChild("HumanoidRootPart") then
  1943. for i,v in pairs(game:GetService("Players").LocalPlayer.petsFolder:GetChildren()) do
  1944. for i,x in pairs(v:GetChildren()) do
  1945. local oh1 = "eternalizePet"
  1946. local oh2 = x.Name
  1947. game:GetService("ReplicatedStorage").rEvents.petEternalizeEvent:FireServer(oh1, oh2)
  1948. end
  1949. end
  1950. end
  1951. end
  1952. end
  1953. end)
  1954.  
  1955. -- Auto-Immortalize Pet
  1956. spawn(function()
  1957. while wait(3) do
  1958. if Pets.flags.Immortalize then
  1959. if game.Players.LocalPlayer.Character:WaitForChild("HumanoidRootPart") then
  1960. for i,v in pairs(game:GetService("Players").LocalPlayer.petsFolder:GetChildren()) do
  1961. for i,x in pairs(v:GetChildren()) do
  1962. local oh1 = "immortalizePet"
  1963. local oh2 = x.Name
  1964. game:GetService("ReplicatedStorage").rEvents.petImmortalizeEvent:FireServer(oh1, oh2)
  1965. end
  1966. end
  1967. end
  1968. end
  1969. end
  1970. end)
  1971.  
  1972. -- Auto-Legend Pet
  1973. spawn(function()
  1974. while wait(3) do
  1975. if Pets.flags.Legend then
  1976. if game.Players.LocalPlayer.Character:WaitForChild("HumanoidRootPart") then
  1977. for i,v in pairs(game:GetService("Players").LocalPlayer.petsFolder:GetChildren()) do
  1978. for i,x in pairs(v:GetChildren()) do
  1979. local oh1 = "legendizePet"
  1980. local oh2 = x.Name
  1981. game:GetService("ReplicatedStorage").rEvents.petLegendEvent:FireServer(oh1, oh2)
  1982. end
  1983. end
  1984. end
  1985. end
  1986. end
  1987. end)
  1988.  
  1989. spawn(function()
  1990. while wait(3) do
  1991. if Pets.flags.Elemental then
  1992. if game.Players.LocalPlayer.Character:WaitForChild("HumanoidRootPart") then
  1993. for i,v in pairs(game:GetService("Players").LocalPlayer.petsFolder:GetChildren()) do
  1994. for i,x in pairs(v:GetChildren()) do
  1995. local oh1 = "elementalizePet"
  1996. local oh2 = x.Name
  1997. game:GetService("ReplicatedStorage").rEvents.petLegendEvent:FireServer(oh1, oh2)
  1998. end
  1999. end
  2000. end
  2001. end
  2002. end
  2003. end)
  2004.  
  2005. -- Sell All Basics
  2006. spawn(function()
  2007. while wait(1) do
  2008. if Pets.flags.SBasic then
  2009. if game.Players.LocalPlayer.Character:WaitForChild("HumanoidRootPart") then
  2010. for i,v in pairs(game.Players.LocalPlayer.petsFolder.Basic:GetChildren()) do
  2011. game.ReplicatedStorage.rEvents.sellPetEvent:FireServer("sellPet", v)
  2012. end
  2013. end
  2014. end
  2015. end
  2016. end)
  2017.  
  2018. -- Sell All Advanced
  2019. spawn(function()
  2020. while wait(1) do
  2021. if Pets.flags.SAdvanced then
  2022. if game.Players.LocalPlayer.Character:WaitForChild("HumanoidRootPart") then
  2023. for i,v in pairs(game.Players.LocalPlayer.petsFolder.Advanced:GetChildren()) do
  2024. game.ReplicatedStorage.rEvents.sellPetEvent:FireServer("sellPet", v)
  2025. end
  2026. end
  2027. end
  2028. end
  2029. end)
  2030.  
  2031. -- Sell All Rares
  2032. spawn(function()
  2033. while wait(1) do
  2034. if Pets.flags.SRare then
  2035. if game.Players.LocalPlayer.Character:WaitForChild("HumanoidRootPart") then
  2036. for i,v in pairs(game.Players.LocalPlayer.petsFolder.Rare:GetChildren()) do
  2037. game.ReplicatedStorage.rEvents.sellPetEvent:FireServer("sellPet", v)
  2038. end
  2039. end
  2040. end
  2041. end
  2042. end)
  2043.  
  2044.  
  2045. -- Sell All Epics
  2046. spawn(function()
  2047. while wait(1) do
  2048. if Pets.flags.SEpic then
  2049. if game.Players.LocalPlayer.Character:WaitForChild("HumanoidRootPart") then
  2050. for i,v in pairs(game.Players.LocalPlayer.petsFolder.Epic:GetChildren()) do
  2051. game.ReplicatedStorage.rEvents.sellPetEvent:FireServer("sellPet", v)
  2052. end
  2053. end
  2054. end
  2055. end
  2056. end)
  2057.  
  2058. -- Sell All Uniques
  2059. spawn(function()
  2060. while wait(1) do
  2061. if Pets.flags.SUnique then
  2062. if game.Players.LocalPlayer.Character:WaitForChild("HumanoidRootPart") then
  2063. for i,v in pairs(game.Players.LocalPlayer.petsFolder.Unique:GetChildren()) do
  2064. game.ReplicatedStorage.rEvents.sellPetEvent:FireServer("sellPet", v)
  2065. end
  2066. end
  2067. end
  2068. end
  2069. end)
  2070.  
  2071. -- Sell All Omegas
  2072. spawn(function()
  2073. while wait(1) do
  2074. if Pets.flags.SOmega then
  2075. if game.Players.LocalPlayer.Character:WaitForChild("HumanoidRootPart") then
  2076. for i,v in pairs(game.Players.LocalPlayer.petsFolder.Omega:GetChildren()) do
  2077. game.ReplicatedStorage.rEvents.sellPetEvent:FireServer("sellPet", v)
  2078. end
  2079. end
  2080. end
  2081. end
  2082. end)
  2083.  
  2084. -- Sell All Elites
  2085. spawn(function()
  2086. while wait(1) do
  2087. if Pets.flags.SElite then
  2088. if game.Players.LocalPlayer.Character:WaitForChild("HumanoidRootPart") then
  2089. for i,v in pairs(game.Players.LocalPlayer.petsFolder.Elite:GetChildren()) do
  2090. game.ReplicatedStorage.rEvents.sellPetEvent:FireServer("sellPet", v)
  2091. end
  2092. end
  2093. end
  2094. end
  2095. end)
  2096.  
  2097.  
  2098. -- Sell All Infinites
  2099. spawn(function()
  2100. while wait(1) do
  2101. if Pets.flags.SInfinity then
  2102. if game.Players.LocalPlayer.Character:WaitForChild("HumanoidRootPart") then
  2103. for i,v in pairs(game.Players.LocalPlayer.petsFolder.Infinity:GetChildren()) do
  2104. game.ReplicatedStorage.rEvents.sellPetEvent:FireServer("sellPet", v)
  2105. end
  2106. end
  2107. end
  2108. end
  2109. end)
  2110.  
  2111. -- Second Pet Stuff Tab
  2112. spawn(function()
  2113. while wait(1) do
  2114. if Pets2.flags.S1 then
  2115. if game.Players.LocalPlayer.Character:WaitForChild("HumanoidRootPart") then
  2116. for i,v in pairs(game.Players.LocalPlayer.petsFolder.Infinity:GetChildren()) do
  2117. if v.Name == "Winter Wonder Kitty" then
  2118. game.ReplicatedStorage.rEvents.sellPetEvent:FireServer("sellPet", v)
  2119. end
  2120. end
  2121. end
  2122. end
  2123. end
  2124. end)
  2125.  
  2126. spawn(function()
  2127. while wait(1) do
  2128. if Pets2.flags.S2 then
  2129. if game.Players.LocalPlayer.Character:WaitForChild("HumanoidRootPart") then
  2130. for i,v in pairs(game.Players.LocalPlayer.petsFolder.Infinity:GetChildren()) do
  2131. if v.Name == "Winter Legends Polar Bear" then
  2132. game.ReplicatedStorage.rEvents.sellPetEvent:FireServer("sellPet", v)
  2133. end
  2134. end
  2135. end
  2136. end
  2137. end
  2138. end)
  2139.  
  2140. spawn(function()
  2141. while wait(1) do
  2142. if Pets2.flags.S3 then
  2143. if game.Players.LocalPlayer.Character:WaitForChild("HumanoidRootPart") then
  2144. for i,v in pairs(game.Players.LocalPlayer.petsFolder.Infinity:GetChildren()) do
  2145. if v.Name == "Christmas Sensei Reindeer" then
  2146. game.ReplicatedStorage.rEvents.sellPetEvent:FireServer("sellPet", v)
  2147. end
  2148. end
  2149. end
  2150. end
  2151. end
  2152. end)
  2153.  
  2154. spawn(function()
  2155. while wait(1) do
  2156. if Pets2.flags.S4 then
  2157. if game.Players.LocalPlayer.Character:WaitForChild("HumanoidRootPart") then
  2158. for i,v in pairs(game.Players.LocalPlayer.petsFolder.Infinity:GetChildren()) do
  2159. if v.Name == "Dark Blizzard Master Penguin" then
  2160. game.ReplicatedStorage.rEvents.sellPetEvent:FireServer("sellPet", v)
  2161. end
  2162. end
  2163. end
  2164. end
  2165. end
  2166. end)
  2167.  
  2168. spawn(function()
  2169. while wait(1) do
  2170. if Pets2.flags.S5 then
  2171. if game.Players.LocalPlayer.Character:WaitForChild("HumanoidRootPart") then
  2172. for i,v in pairs(game.Players.LocalPlayer.petsFolder.Infinity:GetChildren()) do
  2173. if v.Name == "Cybernetic Sleigh Rider" then
  2174. game.ReplicatedStorage.rEvents.sellPetEvent:FireServer("sellPet", v)
  2175. end
  2176. end
  2177. end
  2178. end
  2179. end
  2180. end)
  2181.  
  2182. -- Fast Shuriken
  2183. spawn(function()
  2184. while wait(.001) do
  2185. if Misc.flags.Fast then
  2186. if game.Players.LocalPlayer.Character:WaitForChild("HumanoidRootPart") then
  2187. local plr = game.Players.LocalPlayer
  2188. local Mouse = plr:GetMouse()
  2189. local velocity = 1000
  2190. for _,p in pairs(game.Workspace.shurikensFolder:GetChildren()) do
  2191. if p.Name == "Handle" then
  2192. if p:FindFirstChild("BodyVelocity") then
  2193. local bv = p:FindFirstChildOfClass("BodyVelocity")
  2194. bv.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  2195. bv.Velocity = Mouse.Hit.lookVector * velocity
  2196. end
  2197. end
  2198. end
  2199. end
  2200. end
  2201. end
  2202. end)
  2203.  
  2204. -- Slow Shuriken
  2205. spawn(function()
  2206. while wait(.001) do
  2207. if Misc.flags.Slow then
  2208. if game.Players.LocalPlayer.Character:WaitForChild("HumanoidRootPart") then
  2209. local plr = game.Players.LocalPlayer
  2210. local Mouse = plr:GetMouse()
  2211. local velocity = 35
  2212. for _,p in pairs(game.Workspace.shurikensFolder:GetChildren()) do
  2213. if p.Name == "Handle" then
  2214. if p:FindFirstChild("BodyVelocity") then
  2215. local bv = p:FindFirstChildOfClass("BodyVelocity")
  2216. bv.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  2217. bv.Velocity = Mouse.Hit.lookVector * velocity
  2218. end
  2219. end
  2220. end
  2221. end
  2222. end
  2223. end
  2224. end)
  2225.  
  2226. -- Anti-AFK
  2227. local vu = game:GetService("VirtualUser")
  2228. game:GetService("Players").LocalPlayer.Idled:connect(
  2229. function()
  2230. vu:Button2Down(Vector2.new(0, 0), workspace.CurrentCamera.CFrame)
  2231. wait(1)
  2232. vu:Button2Up(Vector2.new(0, 0), workspace.CurrentCamera.CFrame)
  2233. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement