Advertisement
kele666CN

ggg

Apr 12th, 2025 (edited)
597
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 92.58 KB | Cybersecurity | 0 0
  1. local Library = {};
  2. do
  3.     Library = {
  4.         Open = true;
  5.         Folders = {
  6.             main = "vision_gg";
  7.             configs = "vision_gg/Configs";
  8.         };
  9.         Accent = Color3.fromRGB(255, 174, 174);
  10.         Pages = {};
  11.         Sections = {};
  12.         Flags = {};
  13.         UnNamedFlags = 0;
  14.         ThemeObjects = {};
  15.         Instances = {};
  16.         Holder = nil;
  17.         PageHolder = nil;
  18.         Gradient = nil;
  19.         UIGradient = nil;
  20.         Keys = {
  21.             [Enum.KeyCode.LeftShift] = "LS",
  22.             [Enum.KeyCode.RightShift] = "RS",
  23.             [Enum.KeyCode.LeftControl] = "LC",
  24.             [Enum.KeyCode.RightControl] = "RC",
  25.             [Enum.KeyCode.LeftAlt] = "LA",
  26.             [Enum.KeyCode.RightAlt] = "RA",
  27.             [Enum.KeyCode.CapsLock] = "CAPS",
  28.             [Enum.KeyCode.One] = "1",
  29.             [Enum.KeyCode.Two] = "2",
  30.             [Enum.KeyCode.Three] = "3",
  31.             [Enum.KeyCode.Four] = "4",
  32.             [Enum.KeyCode.Five] = "5",
  33.             [Enum.KeyCode.Six] = "6",
  34.             [Enum.KeyCode.Seven] = "7",
  35.             [Enum.KeyCode.Eight] = "8",
  36.             [Enum.KeyCode.Nine] = "9",
  37.             [Enum.KeyCode.Zero] = "0",
  38.             [Enum.KeyCode.KeypadOne] = "Num1",
  39.             [Enum.KeyCode.KeypadTwo] = "Num2",
  40.             [Enum.KeyCode.KeypadThree] = "Num3",
  41.             [Enum.KeyCode.KeypadFour] = "Num4",
  42.             [Enum.KeyCode.KeypadFive] = "Num5",
  43.             [Enum.KeyCode.KeypadSix] = "Num6",
  44.             [Enum.KeyCode.KeypadSeven] = "Num7",
  45.             [Enum.KeyCode.KeypadEight] = "Num8",
  46.             [Enum.KeyCode.KeypadNine] = "Num9",
  47.             [Enum.KeyCode.KeypadZero] = "Num0",
  48.             [Enum.KeyCode.Minus] = "-",
  49.             [Enum.KeyCode.Equals] = "=",
  50.             [Enum.KeyCode.Tilde] = "~",
  51.             [Enum.KeyCode.LeftBracket] = "[",
  52.             [Enum.KeyCode.RightBracket] = "]",
  53.             [Enum.KeyCode.RightParenthesis] = ")",
  54.             [Enum.KeyCode.LeftParenthesis] = "(",
  55.             [Enum.KeyCode.Semicolon] = ",",
  56.             [Enum.KeyCode.Quote] = "'",
  57.             [Enum.KeyCode.BackSlash] = "\\",
  58.             [Enum.KeyCode.Comma] = ",",
  59.             [Enum.KeyCode.Period] = ".",
  60.             [Enum.KeyCode.Slash] = "/",
  61.             [Enum.KeyCode.Asterisk] = "*",
  62.             [Enum.KeyCode.Plus] = "+",
  63.             [Enum.KeyCode.Period] = ".",
  64.             [Enum.KeyCode.Backquote] = "`",
  65.             [Enum.UserInputType.MouseButton1] = "MB1",
  66.             [Enum.UserInputType.MouseButton2] = "MB2",
  67.             [Enum.UserInputType.MouseButton3] = "MB3"
  68.         };
  69.         Connections = {};
  70.         UIFont = realfont;
  71.         FontSize = 12;
  72.     }
  73.  
  74.     -- // Custom Font Setup
  75.     do
  76.         if isfile("SmallestPixel7.font") then
  77.             delfile("SmallestPixel7.font")
  78.         end
  79.  
  80.         writefile("fs-tahoma-8px.ttf", game:HttpGet("https://github.com/i77lhm/storage/raw/refs/heads/main/fonts/fs-tahoma-8px.ttf"))
  81.  
  82.         getsynasset = getcustomasset or getsynasset
  83.         Font = setreadonly(Font, false);
  84.         function Font:Register(Name, Weight, Style, Asset)
  85.             if not isfile(Name .. ".font") then
  86.                 if not isfile(Asset.Id) then
  87.                     writefile(Asset.Id, Asset.Font);
  88.                 end;
  89.                 --
  90.                 local Data = {
  91.                     name = Name,
  92.                     faces = {{
  93.                         name = "Regular",
  94.                         weight = Weight,
  95.                         style = Style,
  96.                         assetId = getsynasset(Asset.Id);
  97.                     }}
  98.                 };
  99.                 --
  100.                 writefile(Name .. ".font", game:GetService("HttpService"):JSONEncode(Data));
  101.                 return getsynasset(Name .. ".font");
  102.             else
  103.                 warn("Font already registered");
  104.             end;
  105.         end;
  106.         --
  107.         function Font:GetRegistry(Name)
  108.             if isfile(Name .. ".font") then
  109.                 return getsynasset(Name .. ".font");
  110.             end;
  111.         end;
  112.  
  113.         Font:Register("SmallestPixel7", 400, "normal", {Id = "fs-tahoma-8px.ttf", Font = ""});
  114.        
  115.         -- Set the custom font as the default UI font
  116.         local realfont = Font.new(Font:GetRegistry("SmallestPixel7"))
  117.         Library.UIFont = realfont
  118.     end
  119.  
  120.     -- // Ignores
  121.     local Flags = {}; -- Ignore
  122.     local Dropdowns = {}; -- Ignore
  123.     local Pickers = {}; -- Ignore
  124.     local VisValues = {}; -- Ignore
  125.  
  126.     -- // Extension
  127.     Library.__index = Library
  128.     Library.Pages.__index = Library.Pages
  129.     Library.Sections.__index = Library.Sections
  130.     local LocalPlayer = game:GetService('Players').LocalPlayer;
  131.     local Mouse = LocalPlayer:GetMouse();
  132.  
  133.     -- // Misc Functions
  134.     do
  135.         function Library:Connection(Signal, Callback)
  136.             local Con = Signal:Connect(Callback)
  137.             return Con
  138.         end
  139.         --
  140.         function Library:Disconnect(Connection)
  141.             Connection:Disconnect()
  142.         end
  143.         --
  144.         function Library:Round(Number, Float)
  145.             return Float * math.floor(Number / Float)
  146.         end
  147.         --
  148.         function Library.NextFlag()
  149.             Library.UnNamedFlags = Library.UnNamedFlags + 1
  150.             return string.format("%.14g", Library.UnNamedFlags)
  151.         end
  152.         --
  153.         function Library:RGBA(r, g, b, alpha)
  154.             local rgb = Color3.fromRGB(r, g, b)
  155.  
  156.             return rgb
  157.         end
  158.         --
  159.         function Library:MakeDraggable(Instance, Button, Cutoff)
  160.             Instance.Active = true;
  161.  
  162.             Button.InputBegan:Connect(function(Input)
  163.                 if Input.UserInputType == Enum.UserInputType.MouseButton1 then
  164.                     local ObjPos = Vector2.new(
  165.                         Mouse.X - Instance.AbsolutePosition.X,
  166.                         Mouse.Y - Instance.AbsolutePosition.Y
  167.                     );
  168.  
  169.                     if ObjPos.Y > (Cutoff or 40) then
  170.                         return;
  171.                     end;
  172.  
  173.                     while game:GetService("UserInputService"):IsMouseButtonPressed(Enum.UserInputType.MouseButton1) do
  174.                         Instance.Position = UDim2.new(
  175.                             0,
  176.                             Mouse.X - ObjPos.X + (Instance.Size.X.Offset * Instance.AnchorPoint.X),
  177.                             0,
  178.                             Mouse.Y - ObjPos.Y + (Instance.Size.Y.Offset * Instance.AnchorPoint.Y)
  179.                         );
  180.  
  181.                         game:GetService("RunService").RenderStepped:Wait();
  182.                     end;
  183.                 end;
  184.             end);
  185.         end;
  186.         --
  187.         function Library:GetConfig()
  188.             local Config = ""
  189.             for Index, Value in pairs(self.Flags) do
  190.                 if
  191.                     Index ~= "ConfigConfig_List"
  192.                     and Index ~= "ConfigConfig_Load"
  193.                     and Index ~= "ConfigConfig_Save"
  194.                 then
  195.                     local Value2 = Value
  196.                     local Final = ""
  197.                     --
  198.                     if typeof(Value2) == "Color3" then
  199.                         local hue, sat, val = Value2:ToHSV()
  200.                         --
  201.                         Final = ("rgb(%s,%s,%s,%s)"):format(hue, sat, val, 1)
  202.                     elseif typeof(Value2) == "table" and Value2.Color and Value2.Transparency then
  203.                         local hue, sat, val = Value2.Color:ToHSV()
  204.                         --
  205.                         Final = ("rgb(%s,%s,%s,%s)"):format(hue, sat, val, Value2.Transparency)
  206.                     elseif typeof(Value2) == "table" and Value.Mode then
  207.                         local Values = Value.current
  208.                         --
  209.                         Final = ("key(%s,%s,%s)"):format(Values[1] or "nil", Values[2] or "nil", Value.Mode)
  210.                     elseif Value2 ~= nil then
  211.                         if typeof(Value2) == "boolean" then
  212.                             Value2 = ("bool(%s)"):format(tostring(Value2))
  213.                         elseif typeof(Value2) == "table" then
  214.                             local New = "table("
  215.                             --
  216.                             for Index2, Value3 in pairs(Value2) do
  217.                                 New = New .. Value3 .. ","
  218.                             end
  219.                             --
  220.                             if New:sub(#New) == "," then
  221.                                 New = New:sub(0, #New - 1)
  222.                             end
  223.                             --
  224.                             Value2 = New .. ")"
  225.                         elseif typeof(Value2) == "string" then
  226.                             Value2 = ("string(%s)"):format(Value2)
  227.                         elseif typeof(Value2) == "number" then
  228.                             Value2 = ("number(%s)"):format(Value2)
  229.                         end
  230.                         --
  231.                         Final = Value2
  232.                     end
  233.                     --
  234.                     Config = Config .. Index .. ": " .. tostring(Final) .. "\n"
  235.                 end
  236.             end
  237.             --
  238.             return Config
  239.         end
  240.         --
  241.         function Library:LoadConfig(Config)
  242.             local Table = string.split(Config, "\n")
  243.             local Table2 = {}
  244.             for Index, Value in pairs(Table) do
  245.                 local Table3 = string.split(Value, ":")
  246.                 --
  247.                 if Table3[1] ~= "ConfigConfig_List" and #Table3 >= 2 then
  248.                     local Value = Table3[2]:sub(2, #Table3[2])
  249.                     --
  250.                     if Value:sub(1, 3) == "rgb" then
  251.                         local Table4 = string.split(Value:sub(5, #Value - 1), ",")
  252.                         --
  253.                         Value = Table4
  254.                     elseif Value:sub(1, 3) == "key" then
  255.                         local Table4 = string.split(Value:sub(5, #Value - 1), ",")
  256.                         --
  257.                         if Table4[1] == "nil" and Table4[2] == "nil" then
  258.                             Table4[1] = nil
  259.                             Table4[2] = nil
  260.                         end
  261.                         --
  262.                         Value = Table4
  263.                     elseif Value:sub(1, 4) == "bool" then
  264.                         local Bool = Value:sub(6, #Value - 1)
  265.                         --
  266.                         Value = Bool == "true"
  267.                     elseif Value:sub(1, 5) == "table" then
  268.                         local Table4 = string.split(Value:sub(7, #Value - 1), ",")
  269.                         --
  270.                         Value = Table4
  271.                     elseif Value:sub(1, 6) == "string" then
  272.                         local String = Value:sub(8, #Value - 1)
  273.                         --
  274.                         Value = String
  275.                     elseif Value:sub(1, 6) == "number" then
  276.                         local Number = tonumber(Value:sub(8, #Value - 1))
  277.                         --
  278.                         Value = Number
  279.                     end
  280.                     --
  281.                     Table2[Table3[1]] = Value
  282.                 end
  283.             end
  284.             --
  285.             for i, v in pairs(Table2) do
  286.                 if Flags[i] then
  287.                     if typeof(Flags[i]) == "table" then
  288.                         Flags[i]:Set(v)
  289.                     else
  290.                         Flags[i](v)
  291.                     end
  292.                 end
  293.             end
  294.         end
  295.         --
  296.         function Library:SetOpen(bool)
  297.             if typeof(bool) == 'boolean' then
  298.                 Library.Open = bool;
  299.  
  300.                 if bool then
  301.                     Library.Holder.Visible = true
  302.                 end
  303.  
  304.                 for _,v in next, Library.Instances do
  305.                     if v:IsA("Frame") or v:IsA("TextButton") then
  306.                         if v.BackgroundTransparency ~= 1 then
  307.                             task.spawn(function()
  308.                                 local t = game:GetService("TweenService"):Create(v, TweenInfo.new(0.25, Enum.EasingStyle.Linear, bool and Enum.EasingDirection.Out or Enum.EasingDirection.In), {BackgroundTransparency = bool and 0 or 0.95})
  309.                                 t.Completed:Connect(function()
  310.                                     if bool == false then
  311.                                         Library.Holder.Visible = false
  312.                                     end
  313.                                 end)
  314.                                 t:Play()
  315.                             end)
  316.                         end
  317.                     elseif v:IsA("TextLabel") or v:IsA("TextButton") or v:IsA("TextBox") then
  318.                         if v.TextTransparency ~= 1 and v.BackgroundTransparency == 1 then
  319.                             task.spawn(function()
  320.                                 game:GetService("TweenService"):Create(v, TweenInfo.new(0.25, Enum.EasingStyle.Linear, bool and Enum.EasingDirection.Out or Enum.EasingDirection.In), {TextTransparency = bool and 0 or 0.95}):Play()
  321.                             end)
  322.                         end
  323.                     elseif v:IsA("UIStroke") then
  324.                         task.spawn(function()
  325.                             game:GetService("TweenService"):Create(v, TweenInfo.new(0.25, Enum.EasingStyle.Linear, bool and Enum.EasingDirection.Out or Enum.EasingDirection.In), {Transparency = bool and 0 or 0.95}):Play()
  326.                         end)
  327.                     elseif v:IsA("ImageButton") then
  328.                         task.spawn(function()
  329.                             game:GetService("TweenService"):Create(v, TweenInfo.new(0.25, Enum.EasingStyle.Linear, bool and Enum.EasingDirection.Out or Enum.EasingDirection.In), {ImageTransparency = bool and 0 or 0.95, BackgroundTransparency = bool and 0 or 0.95}):Play()
  330.                         end)
  331.                     end
  332.                 end
  333.                 task.spawn(function()
  334.                     game:GetService("TweenService"):Create(Library.PageHolder, TweenInfo.new(0.25, Enum.EasingStyle.Quad, bool and Enum.EasingDirection.Out or Enum.EasingDirection.In), {Position = bool and UDim2.new(0,60,0,0) or UDim2.new(0,0,0,0)}):Play()
  335.                     --
  336.                     if bool then
  337.                         task.wait(0.05)
  338.                     end
  339.                     game:GetService("TweenService"):Create(Library.Gradient, TweenInfo.new(0.25, Enum.EasingStyle.Quad, bool and Enum.EasingDirection.Out or Enum.EasingDirection.In), {Position = bool and UDim2.new(0.5,0,0,2) or UDim2.new(1,0,0,2)}):Play()
  340.                     game:GetService("TweenService"):Create(Library.Gradient, TweenInfo.new(0.25, Enum.EasingStyle.Quad, bool and Enum.EasingDirection.Out or Enum.EasingDirection.In), {Size = bool and UDim2.new(0.5,0,0,1) or UDim2.new(0,0,0,1)}):Play()
  341.                 end)
  342.             end
  343.         end;
  344.         --
  345.         function Library:ChangeAccent(Color)
  346.             Library.Accent = Color
  347.  
  348.             for obj, theme in next, Library.ThemeObjects do
  349.                 if theme:IsA("Frame") or theme:IsA("TextButton") then
  350.                     theme.BackgroundColor3 = Color
  351.                 elseif theme:IsA("TextLabel") then
  352.                     theme.TextColor3 = Color
  353.                 end
  354.             end
  355.  
  356.             Library.UIGradient.Color = ColorSequence.new{ColorSequenceKeypoint.new(0,Color  ),ColorSequenceKeypoint.new(1,Color3.new(0.04313725605607033, 0.04313725605607033, 0.04313725605607033) )}
  357.         end
  358.         --
  359.         function Library:IsMouseOverFrame(Frame)
  360.             local AbsPos, AbsSize = Frame.AbsolutePosition, Frame.AbsoluteSize;
  361.  
  362.             if Mouse.X >= AbsPos.X and Mouse.X <= AbsPos.X + AbsSize.X
  363.                 and Mouse.Y >= AbsPos.Y and Mouse.Y <= AbsPos.Y + AbsSize.Y then
  364.  
  365.                 return true;
  366.             end;
  367.         end;
  368.     end
  369.  
  370.     -- // Colorpicker Element
  371.     do
  372.         function Library:NewPicker(default, defaultalpha, parent, count, flag, callback)
  373.             -- // Instances
  374.             local Icon = Instance.new('TextButton', parent)
  375.             local Gradient = Instance.new('UIGradient', Icon)
  376.             local Window = Instance.new('Frame', Icon)
  377.             local Sat = Instance.new('ImageButton', Window)
  378.             local Hue = Instance.new('ImageButton', Window)
  379.             --
  380.             do -- Inserts
  381.                 table.insert(Library.Instances, Icon)
  382.                 table.insert(Library.Instances, Window)
  383.                 table.insert(Library.Instances, Sat)
  384.                 table.insert(Library.Instances, Hue)
  385.                 --
  386.                 table.insert(Pickers, Window)
  387.             end
  388.             --
  389.             Icon.Name = "Icon"
  390.             Icon.Position = UDim2.new(1, -30 - (count * 15) - (count * 6),0,4)
  391.             Icon.Size = UDim2.new(0,15,0,6)
  392.             Icon.BackgroundColor3 = default
  393.             Icon.BorderColor3 = Color3.new(0,0,0)
  394.             Icon.AutoButtonColor = false
  395.             Icon.Text = ""
  396.             --
  397.             Gradient.Name = "Gradient"
  398.             Gradient.Color = ColorSequence.new{
  399.                 ColorSequenceKeypoint.new(
  400.                     0,
  401.                     Color3.new(0.7803921699523926, 0.7490196228027344, 0.800000011920929)  
  402.                 ),
  403.                 ColorSequenceKeypoint.new(
  404.                     1,
  405.                     Color3.new(1, 1, 1)
  406.                 )
  407.             }
  408.             Gradient.Rotation = -90
  409.             --
  410.             Window.Name = "Window"
  411.             Window.Position = UDim2.new(0,-120,0,10)
  412.             Window.Size = UDim2.new(0,150,0,133)
  413.             Window.BackgroundColor3 = Color3.new(0.0431,0.0431,0.0431)
  414.             Window.BorderColor3 = Color3.new(0.1098,0.1098,0.1098)
  415.             Window.ZIndex = 1220
  416.             Window.Visible = false
  417.             --
  418.             Sat.Name = "Sat"
  419.             Sat.Position = UDim2.new(0,5,0,5)
  420.             Sat.Size = UDim2.new(0,123,0,123)
  421.             Sat.BackgroundColor3 = default
  422.             Sat.BorderColor3 = Color3.new(0.1098,0.1098,0.1098)
  423.             Sat.Image = "http://www.roblox.com/asset/?id=13882904626"
  424.             Sat.AutoButtonColor = false
  425.             Sat.ZIndex = 1220
  426.             --
  427.             Hue.Name = "Hue"
  428.             Hue.Position = UDim2.new(1,-15,0,5)
  429.             Hue.Size = UDim2.new(0,10,0,123)
  430.             Hue.BackgroundColor3 = Color3.new(1,1,1)
  431.             Hue.BorderColor3 = Color3.new(0.1098,0.1098,0.1098)
  432.             Hue.Image = "http://www.roblox.com/asset/?id=13882976736"
  433.             Hue.ZIndex = 1220
  434.             --
  435.             Hue.AutoButtonColor = false
  436.  
  437.             -- // Connections
  438.             local mouseover = false
  439.             local hue, sat, val = default:ToHSV()
  440.             local hsv = default:ToHSV()
  441.             local alpha = defaultalpha
  442.             local oldcolor = hsv
  443.  
  444.             local function set(color, a, nopos, setcolor)
  445.                 if type(color) == "table" then
  446.                     a = color[4]
  447.                     color = Color3.fromHSV(color[1], color[2], color[3])
  448.                 end
  449.                 if type(color) == "string" then
  450.                     color = Color3.fromHex(color)
  451.                 end
  452.  
  453.                 local oldcolor = hsv
  454.                 local oldalpha = alpha
  455.  
  456.                 hue, sat, val = color:ToHSV()
  457.                 alpha = a or 1
  458.                 hsv = Color3.fromHSV(hue, sat, val)
  459.  
  460.                 if hsv ~= oldcolor or alpha ~= oldalpha then
  461.                     Icon.BackgroundColor3 = hsv
  462.  
  463.                     if not nopos then
  464.                         if setcolor then
  465.                             Sat.BackgroundColor3 = Color3.fromHSV(hue, 1, 1)
  466.                         end
  467.                     end
  468.  
  469.                     if flag then
  470.                         Library.Flags[flag] = Library:RGBA(hsv.r * 255, hsv.g * 255, hsv.b * 255, alpha)
  471.                     end
  472.  
  473.                     callback(Library:RGBA(hsv.r * 255, hsv.g * 255, hsv.b * 255, alpha))
  474.                 end
  475.             end
  476.  
  477.             Flags[flag] = set
  478.  
  479.             set(default, defaultalpha)
  480.  
  481.             local defhue, _, _ = default:ToHSV()
  482.  
  483.             local curhuesizey = defhue
  484.  
  485.             local function updatesatval(input, set_callback)
  486.                 local sizeX = math.clamp((input.Position.X - Sat.AbsolutePosition.X) / Sat.AbsoluteSize.X,0,1)
  487.                 local sizeY = 1- math.clamp((((input.Position.Y - 30) - Sat.AbsolutePosition.Y) + 36) / Sat.AbsoluteSize.Y,0,1)
  488.  
  489.                 if set_callback then
  490.                     set(Color3.fromHSV(curhuesizey or hue, sizeX, sizeY), alpha or defaultalpha, true, false)
  491.                 end
  492.             end
  493.  
  494.             local slidingsaturation = false
  495.  
  496.             Sat.InputBegan:Connect(function(input)
  497.                 if input.UserInputType == Enum.UserInputType.MouseButton1 then
  498.                     slidingsaturation = true
  499.                     updatesatval(input)
  500.                 end
  501.             end)
  502.  
  503.             Sat.InputEnded:Connect(function(input)
  504.                 if input.UserInputType == Enum.UserInputType.MouseButton1 then
  505.                     slidingsaturation = false
  506.                     updatesatval(input, true)
  507.                 end
  508.             end)
  509.  
  510.             local slidinghue = false
  511.  
  512.             local function updatehue(input, set_callback)
  513.                 local sizeY = 1- math.clamp((((input.Position.Y - 30) - Hue.AbsolutePosition.Y) + 36) / Hue.AbsoluteSize.Y,0,1)
  514.                 Sat.BackgroundColor3 = Color3.fromHSV(sizeY, 1, 1)
  515.                 curhuesizey = sizeY
  516.                 if set_callback then
  517.                     set(Color3.fromHSV(sizeY, sat, val), alpha or defaultalpha, true, true)
  518.                 end
  519.             end
  520.  
  521.             Hue.InputBegan:Connect(function(input)
  522.                 if input.UserInputType == Enum.UserInputType.MouseButton1 then
  523.                     slidinghue = true
  524.                     updatehue(input)
  525.                 end
  526.             end)
  527.  
  528.             Hue.InputEnded:Connect(function(input)
  529.                 if input.UserInputType == Enum.UserInputType.MouseButton1 then
  530.                     slidinghue = false
  531.                     updatehue(input, true)
  532.                 end
  533.             end)
  534.  
  535.             local slidingalpha = false
  536.  
  537.  
  538.             Library:Connection(game:GetService("UserInputService").InputChanged, function(input)
  539.                 if input.UserInputType == Enum.UserInputType.MouseMovement then
  540.                     if slidinghue then
  541.                         updatehue(input, true)
  542.                     end
  543.  
  544.                     if slidingsaturation then
  545.                         updatesatval(input, true)
  546.                     end
  547.                 end
  548.             end)
  549.  
  550.             Icon.MouseButton1Click:Connect(function()
  551.                 Window.Visible = not Window.Visible
  552.  
  553.                 if slidinghue then
  554.                     slidinghue = false
  555.                 end
  556.  
  557.                 if slidingsaturation then
  558.                     slidingsaturation = false
  559.                 end
  560.             end)
  561.  
  562.             local colorpickertypes = {}
  563.  
  564.             function colorpickertypes:Set(color, alpha)
  565.                 set(color)
  566.             end
  567.  
  568.             Library:Connection(game:GetService("UserInputService").InputBegan, function(Input)
  569.                 if Window.Visible and Input.UserInputType == Enum.UserInputType.MouseButton1 then
  570.                     if not Library:IsMouseOverFrame(Window) and not Library:IsMouseOverFrame(Icon) then
  571.                         Window.Visible = false
  572.                     end
  573.                 end
  574.             end)
  575.  
  576.             return colorpickertypes, window
  577.         end
  578.     end
  579.  
  580.     -- // Library Functions
  581.     do
  582.         local Pages = Library.Pages;
  583.         local Sections = Library.Sections;
  584.         --
  585.         function Library:Window(Options)
  586.             local Base = {
  587.                 Pages = {};
  588.                 Sections = {};
  589.                 Elements = {};
  590.                 Dragging = { false, UDim2.new(0, 0, 0, 0) };
  591.                 Title = Options.Name or Options.Name or Options.Name or "new ui";
  592.             };
  593.  
  594.             -- // Instances
  595.             local ScreenGui = Instance.new('ScreenGui', game:GetService("RunService"):IsStudio() and game.Players.LocalPlayer.PlayerGui or game.CoreGui)
  596.             local Main = Instance.new('Frame', ScreenGui)
  597.             local Inline = Instance.new('Frame', Main)
  598.             local Middle = Instance.new('Frame', Inline)
  599.             local Line = Instance.new('Frame', Middle)
  600.             local Line2 = Instance.new('Frame', Middle)
  601.             local Gradient = Instance.new('Frame', Middle)
  602.             local UIGradient = Instance.new('UIGradient', Gradient)
  603.             local Top = Instance.new('TextButton', Inline)
  604.             local Title = Instance.new('TextLabel', Top)
  605.             local Bottom = Instance.new('Frame', Inline)
  606.             local Sections = Instance.new('Frame', Middle)
  607.             local Pages = Instance.new('Frame', Top)
  608.             local UIListLayout = Instance.new('UIListLayout', Pages)
  609.             local version = Instance.new('TextLabel', Bottom)
  610.             local corner1 = Instance.new('UICorner', Main)
  611.             local corner2 = Instance.new('UICorner', Inline)
  612.             local stroke1 = Instance.new('UIStroke', Main)
  613.             local stroke2 = Instance.new('UIStroke', Inline)
  614.             --
  615.             do -- Inserts
  616.                 table.insert(Library.Instances, Main)
  617.                 table.insert(Library.Instances, Inline)
  618.                 table.insert(Library.Instances, Middle)
  619.                 table.insert(Library.Instances, Line)
  620.                 table.insert(Library.Instances, Line2)
  621.                 table.insert(Library.Instances, Gradient)
  622.                 table.insert(Library.Instances, Title)
  623.                 table.insert(Library.Instances, Sections)
  624.                 table.insert(Library.Instances, version)
  625.                 --
  626.                 table.insert(Library.ThemeObjects, Title)
  627.                 table.insert(Library.ThemeObjects, version)
  628.             end
  629.             --
  630.             ScreenGui.DisplayOrder = 2
  631.             --
  632.             Main.Name = "Main"
  633.             Main.Position = UDim2.new(0.5,0,0.5,0)
  634.             Main.Size = UDim2.new(0,560,0,400)
  635.             Main.BackgroundColor3 = Color3.new(0.1098,0.1098,0.1098)
  636.             Main.BorderColor3 = Color3.new(0,0,0)
  637.             Main.AnchorPoint = Vector2.new(0.5,0.5)
  638.             Library.Holder = Main
  639.             --
  640.             Inline.Name = "Inline"
  641.             Inline.Position = UDim2.new(0,2,0,2)
  642.             Inline.Size = UDim2.new(1,-4,1,-4)
  643.             Inline.BackgroundColor3 = Color3.new(0.0314,0.0314,0.0314)
  644.             Inline.BorderColor3 = Color3.new(0,0,0)
  645.             --
  646.             Middle.Name = "Middle"
  647.             Middle.Position = UDim2.new(0,-1,0,22)
  648.             Middle.Size = UDim2.new(1,2,1,-44)
  649.             Middle.BackgroundColor3 = Color3.new(0.0431,0.0431,0.0431)
  650.             Middle.BorderColor3 = Color3.new(0,0,0)
  651.             Middle.BorderMode = Enum.BorderMode.Inset
  652.             --
  653.             Line.Name = "Line"
  654.             Line.Position = UDim2.new(0,-1,0,0)
  655.             Line.Size = UDim2.new(1,2,0,1)
  656.             Line.BackgroundColor3 = Color3.new(0.1098,0.1098,0.1098)
  657.             Line.BorderSizePixel = 0
  658.             Line.BorderColor3 = Color3.new(0,0,0)
  659.             --
  660.             Line2.Name = "Line2"
  661.             Line2.Position = UDim2.new(0,-1,1,-1)
  662.             Line2.Size = UDim2.new(1,2,0,1)
  663.             Line2.BackgroundColor3 = Color3.new(0.1098,0.1098,0.1098)
  664.             Line2.BorderSizePixel = 0
  665.             Line2.BorderColor3 = Color3.new(0,0,0)
  666.             --
  667.             Gradient.Name = "Gradient"
  668.             Gradient.Position = UDim2.new(0.5,0,0,2)
  669.             Gradient.Size = UDim2.new(0.5,0,0,1)
  670.             Gradient.BackgroundColor3 = Color3.new(1,1,1)
  671.             Gradient.BorderSizePixel = 0
  672.             Gradient.BorderColor3 = Color3.new(0,0,0)
  673.             Library.Gradient = Gradient
  674.             UIGradient.Color = ColorSequence.new{ColorSequenceKeypoint.new(0,Library.Accent ),ColorSequenceKeypoint.new(1,Color3.new(0.04313725605607033, 0.04313725605607033, 0.04313725605607033) )}
  675.             UIGradient.Rotation = 180
  676.             Library.UIGradient = UIGradient
  677.             --
  678.             Top.Name = "Top"
  679.             Top.Size = UDim2.new(1,0,0,22)
  680.             Top.BackgroundColor3 = Color3.new(1,1,1)
  681.             Top.BackgroundTransparency = 1
  682.             Top.BorderSizePixel = 0
  683.             Top.BorderColor3 = Color3.new(0,0,0)
  684.             Top.AutoButtonColor = false
  685.             Top.Text = ""
  686.             --
  687.             Title.Name = "Title"
  688.             Title.Position = UDim2.new(0,4,0,0)
  689.             Title.Size = UDim2.new(1,-4,1,0)
  690.             Title.BackgroundColor3 = Color3.new(1,1,1)
  691.             Title.BackgroundTransparency = 1
  692.             Title.BorderSizePixel = 0
  693.             Title.BorderColor3 = Color3.new(0,0,0)
  694.             Title.Text = Base.Title
  695.             Title.TextColor3 = Library.Accent
  696.             Title.FontFace = Library.UIFont
  697.             Title.TextSize = Library.FontSize
  698.             Title.TextXAlignment = Enum.TextXAlignment.Left
  699.             Title.RichText = true
  700.             --
  701.             Bottom.Name = "Bottom"
  702.             Bottom.Position = UDim2.new(0,0,1,-22)
  703.             Bottom.Size = UDim2.new(1,0,0,22)
  704.             Bottom.BackgroundColor3 = Color3.new(1,1,1)
  705.             Bottom.BackgroundTransparency = 1
  706.             Bottom.BorderSizePixel = 0
  707.             Bottom.BorderColor3 = Color3.new(0,0,0)
  708.             --
  709.             Sections.Name = "Sections"
  710.             Sections.Position = UDim2.new(0,10,0,13)
  711.             Sections.Size = UDim2.new(0,110,1,-26)
  712.             Sections.BackgroundColor3 = Color3.new(0.0314,0.0314,0.0314)
  713.             Sections.BorderColor3 = Color3.new(0.1098,0.1098,0.1098)
  714.             --
  715.             Pages.Name = "Pages"
  716.             Pages.Position = UDim2.new(0,60,0,0)
  717.             Pages.Size = UDim2.new(1,-60,1,0)
  718.             Pages.BackgroundColor3 = Color3.new(1,1,1)
  719.             Pages.BackgroundTransparency = 1
  720.             Pages.BorderSizePixel = 0
  721.             Pages.BorderColor3 = Color3.new(0,0,0)
  722.             Pages.ZIndex = 52
  723.             Library.PageHolder = Pages
  724.             UIListLayout.FillDirection = Enum.FillDirection.Horizontal
  725.             UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
  726.             UIListLayout.Padding = UDim.new(0,6)
  727.             --
  728.             version.Name = "version"
  729.             version.Position = UDim2.new(0,4,0,0)
  730.             version.Size = UDim2.new(1,-4,1,0)
  731.             version.BackgroundColor3 = Color3.new(1,1,1)
  732.             version.BackgroundTransparency = 1
  733.             version.BorderSizePixel = 0
  734.             version.BorderColor3 = Color3.new(0,0,0)
  735.             version.Text = "<font color=\"#4e4e4e\">version: </font> private"
  736.             version.TextColor3 = Library.Accent
  737.             version.FontFace = Library.UIFont
  738.             version.TextSize = Library.FontSize
  739.             version.TextXAlignment = Enum.TextXAlignment.Left
  740.             version.RichText = true
  741.             --
  742.             corner1.CornerRadius = UDim.new(0,2)
  743.             corner2.CornerRadius = UDim.new(0,2)
  744.  
  745.             -- // Dragging
  746.             Library:Connection(Top.MouseButton1Down, function()
  747.                 local Location = game:GetService("UserInputService"):GetMouseLocation()
  748.                 Base.Dragging[1] = true
  749.                 Base.Dragging[2] =
  750.                     UDim2.new(0, Location.X - Main.AbsolutePosition.X, 0, Location.Y - Main.AbsolutePosition.Y)
  751.             end)
  752.             Library:Connection(Top.MouseButton1Up, function()
  753.                 Base.Dragging[1] = false
  754.                 Base.Dragging[2] = UDim2.new(0, 0, 0, 0)
  755.             end)
  756.             Library:Connection(game:GetService("UserInputService").InputChanged, function(Input)
  757.                 local Location = game:GetService("UserInputService"):GetMouseLocation()
  758.                 local ActualLocation = nil
  759.  
  760.                 -- Dragging
  761.                 if Base.Dragging[1] then
  762.                     Main.Position = UDim2.new(
  763.                         0,
  764.                         Location.X - Base.Dragging[2].X.Offset + (Main.Size.X.Offset * Main.AnchorPoint.X),
  765.                         0,
  766.                         Location.Y - Base.Dragging[2].Y.Offset + (Main.Size.Y.Offset * Main.AnchorPoint.Y)
  767.                     )
  768.                 end
  769.             end)
  770.  
  771.             -- // Return
  772.             Base.Elements = {Main = Main, Title = Title, Middle = Middle, PageHolder = Pages, SectionHolder = Sections};
  773.             return setmetatable(Base, Library);
  774.         end
  775.         --
  776.         function Library:Page(Options)
  777.             local Page = {
  778.                 Window = self;
  779.                 Open = false;
  780.                 Sections = {};
  781.                 Elements = {};
  782.                 Title = Options.Name or Options.Name or Options.Name or "legit"
  783.             };
  784.  
  785.             -- // Instances
  786.             local Holder = Instance.new('TextButton', Page.Window.Elements.PageHolder)
  787.             local Button = Instance.new('Frame', Holder)
  788.             local TopLine = Instance.new('Frame', Button)
  789.             local Line = Instance.new('Frame', Button)
  790.             local Left = Instance.new('Frame', Button)
  791.             local RIght = Instance.new('Frame', Button)
  792.             local Black = Instance.new('Frame', Button)
  793.             local Black2 = Instance.new('Frame', Button)
  794.             local Title = Instance.new('TextLabel', Holder)
  795.             local PageSections = Instance.new('Frame', Page.Window.Elements.SectionHolder)
  796.             local UIListLayout = Instance.new('UIListLayout', PageSections)
  797.             local SectionHolder = Instance.new('Frame', Page.Window.Elements.Middle)
  798.             --
  799.             do -- Inserts
  800.                 table.insert(Library.Instances, Button)
  801.                 table.insert(Library.Instances, TopLine)
  802.                 table.insert(Library.Instances, Line)
  803.                 table.insert(Library.Instances, Title)
  804.                 table.insert(Library.Instances, Left)
  805.                 table.insert(Library.Instances, RIght)
  806.                 table.insert(Library.Instances, Black)
  807.                 table.insert(Library.Instances, Black2)
  808.                 --
  809.                 table.insert(Library.ThemeObjects, TopLine)
  810.                 table.insert(Library.ThemeObjects, Left)
  811.                 table.insert(Library.ThemeObjects, RIght)
  812.             end
  813.             --
  814.             Holder.Name = "Page"
  815.             Holder.Size = UDim2.new(0,50,1,0)
  816.             Holder.BackgroundColor3 = Color3.new(1,1,1)
  817.             Holder.BackgroundTransparency = 1
  818.             Holder.BorderSizePixel = 0
  819.             Holder.BorderColor3 = Color3.new(0,0,0)
  820.             Holder.Text = ""
  821.             Holder.TextColor3 = Color3.new(0,0,0)
  822.             Holder.AutoButtonColor = false
  823.             Holder.Font = Enum.Font.SourceSans
  824.             Holder.TextSize = 14
  825.             Holder.ZIndex = 53
  826.             --
  827.             Button.Name = "Button"
  828.             Button.Position = UDim2.new(0,0,0,3)
  829.             Button.Size = UDim2.new(1,0,1,-2)
  830.             Button.BackgroundColor3 = Color3.new(0.0431,0.0431,0.0431)
  831.             Button.BorderColor3 = Color3.new(0.1098,0.1098,0.1098)
  832.             Button.ZIndex = 53
  833.             Button.Visible = false
  834.             --
  835.             TopLine.Name = "TopLine"
  836.             TopLine.Position = UDim2.new(0,3,0,0)
  837.             TopLine.Size = UDim2.new(1,-5,0,1)
  838.             TopLine.BackgroundColor3 = Library.Accent
  839.             TopLine.BorderSizePixel = 0
  840.             TopLine.BorderColor3 = Color3.new(0,0,0)
  841.             TopLine.ZIndex = 53
  842.             --
  843.             Line.Name = "Line"
  844.             Line.Position = UDim2.new(0,0,1,0)
  845.             Line.Size = UDim2.new(1,0,0,1)
  846.             Line.BackgroundColor3 = Color3.new(0.0431,0.0431,0.0431)
  847.             Line.BorderSizePixel = 0
  848.             Line.BorderColor3 = Color3.new(0,0,0)
  849.             Line.ZIndex = 53
  850.             --
  851.             Left.Name = "Left"
  852.             Left.Position = UDim2.new(0,-1,0,2)
  853.             Left.Size = UDim2.new(0,5,0,1)
  854.             Left.BackgroundColor3 = Library.Accent
  855.             Left.BorderSizePixel = 0
  856.             Left.BorderColor3 = Color3.new(0,0,0)
  857.             Left.Rotation = -45
  858.             Left.ZIndex = 53
  859.             --
  860.             RIght.Name = "RIght"
  861.             RIght.Position = UDim2.new(1,-4,0,2)
  862.             RIght.Size = UDim2.new(0,5,0,1)
  863.             RIght.BackgroundColor3 = Library.Accent
  864.             RIght.BorderSizePixel = 0
  865.             RIght.BorderColor3 = Color3.new(0,0,0)
  866.             RIght.Rotation = 45
  867.             RIght.ZIndex = 53
  868.             --
  869.             Black.Name = "Black"
  870.             Black.Position = UDim2.new(0,-5,0,-2)
  871.             Black.Size = UDim2.new(0,7,0,6)
  872.             Black.BackgroundColor3 = Color3.new(0.0314,0.0314,0.0314)
  873.             Black.BorderSizePixel = 0
  874.             Black.BorderColor3 = Color3.new(0,0,0)
  875.             Black.Rotation = -45
  876.             Black.ZIndex = 55
  877.             --
  878.             Black2.Name = "Black2"
  879.             Black2.Position = UDim2.new(1,-2,0,-2)
  880.             Black2.Size = UDim2.new(0,7,0,6)
  881.             Black2.BackgroundColor3 = Color3.new(0.0314,0.0314,0.0314)
  882.             Black2.BorderSizePixel = 0
  883.             Black2.BorderColor3 = Color3.new(0,0,0)
  884.             Black2.Rotation = 45
  885.             Black2.ZIndex = 55
  886.             --
  887.             Title.Name = "Title"
  888.             Title.Position = UDim2.new(0,0,0,2)
  889.             Title.Size = UDim2.new(1,0,1,-2)
  890.             Title.BackgroundColor3 = Color3.new(1,1,1)
  891.             Title.BackgroundTransparency = 1
  892.             Title.BorderSizePixel = 0
  893.             Title.BorderColor3 = Color3.new(0,0,0)
  894.             Title.Text = Page.Title
  895.             Title.TextColor3 = Color3.fromRGB(78, 78, 78)
  896.             Title.FontFace = Library.UIFont
  897.             Title.TextSize = Library.FontSize
  898.             Title.ZIndex = 53
  899.             Title.RichText = true
  900.             --
  901.             PageSections.Name = "PageSections"
  902.             PageSections.Position = UDim2.new(0,8,0,10)
  903.             PageSections.Size = UDim2.new(1,-16,1,-20)
  904.             PageSections.BackgroundColor3 = Color3.new(1,1,1)
  905.             PageSections.BackgroundTransparency = 1
  906.             PageSections.BorderSizePixel = 0
  907.             PageSections.BorderColor3 = Color3.new(0,0,0)
  908.             PageSections.Visible = false
  909.             UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
  910.             UIListLayout.Padding = UDim.new(0,3)
  911.             --
  912.             SectionHolder.Name = "SectionHolder"
  913.             SectionHolder.Position = UDim2.new(0,133,0,13)
  914.             SectionHolder.Size = UDim2.new(1,-144,1,-26)
  915.             SectionHolder.BackgroundColor3 = Color3.new(1,1,1)
  916.             SectionHolder.BackgroundTransparency = 1
  917.             SectionHolder.BorderSizePixel = 0
  918.             SectionHolder.BorderColor3 = Color3.new(0,0,0)
  919.             SectionHolder.ZIndex = 53
  920.             SectionHolder.Visible = false
  921.             --
  922.  
  923.             -- // Connections
  924.             function Page:Turn(bool)
  925.                 Page.Open = bool
  926.                 PageSections.Visible = Page.Open
  927.                 Button.Visible = Page.Open
  928.                 if Page.Open then
  929.                     table.insert(Library.ThemeObjects, Title)
  930.                     Title.TextColor3 = Library.Accent
  931.                 else
  932.                     table.remove(Library.ThemeObjects, table.find(Library.ThemeObjects, Title))
  933.                     Title.TextColor3 = Color3.fromRGB(78,78,78)
  934.                 end
  935.                 SectionHolder.Visible = Page.Open
  936.             end;
  937.  
  938.             Holder.MouseButton1Click:Connect(function()
  939.                 if not Page.Open then
  940.                     Page:Turn(true)
  941.                     for index, other_page in pairs(Page.Window.Pages) do
  942.                         if other_page.Open and other_page ~= Page then
  943.                             other_page:Turn(false)
  944.                         end
  945.                     end
  946.                 end
  947.             end)
  948.  
  949.             if #Page.Window.Pages == 0 then
  950.                 Page:Turn(true);
  951.             end;
  952.  
  953.             local function refresh()
  954.                 wait(0.001)
  955.                 Holder.Size = UDim2.new(0,Title.TextBounds.X + 16, 1, 0)
  956.             end
  957.  
  958.             -- // Return
  959.             refresh()
  960.             Page.Elements = {ButtonHolder = PageSections, RealHold = SectionHolder}
  961.             Page.Window.Pages[#Page.Window.Pages + 1] = Page;
  962.             return setmetatable(Page, Library.Pages);
  963.         end
  964.         --
  965.         function Pages:Section(Options)
  966.             local Section = {
  967.                 Window = self.Window,
  968.                 Page = self,
  969.                 Open = false,
  970.                 Elements = {};
  971.                 Title = Options.Name or Options.Name or Options.Name or "aimbot";
  972.                 LeftName = Options.LeftTitle or Options.lefttitle or "general";
  973.                 RightName = Options.RightTitle or Options.righttitle or "general";
  974.             };
  975.  
  976.             -- // Instances
  977.             local Button = Instance.new('TextButton', Section.Page.Elements.ButtonHolder)
  978.             local Accent = Instance.new('Frame', Button)
  979.             local Frame = Instance.new('Frame', Button)
  980.             local UIGradient = Instance.new('UIGradient', Frame)
  981.             local Title = Instance.new('TextLabel', Frame)
  982.             local NewSection = Instance.new('Frame', Section.Page.Elements.RealHold)
  983.             local Left = Instance.new('Frame', NewSection)
  984.             local Bar = Instance.new('Frame', Left)
  985.             local Gradient = Instance.new('UIGradient', Bar)
  986.             local GradientLine = Instance.new('Frame', Bar)
  987.             local UIGradient3 = Instance.new('UIGradient', GradientLine)
  988.             local LeftTitle = Instance.new('TextLabel', Bar)
  989.             local Right = Instance.new('Frame', NewSection)
  990.             local Bar2 = Instance.new('Frame', Right)
  991.             local Gradient2 = Instance.new('UIGradient', Bar2)
  992.             local GradientLine2 = Instance.new('Frame', Bar2)
  993.             local UIGradient2 = Instance.new('UIGradient', GradientLine2)
  994.             local RightTitle = Instance.new('TextLabel', Bar2)
  995.             local LeftContent = Instance.new('Frame', Left)
  996.             local LeftUIListLayout = Instance.new('UIListLayout', LeftContent)
  997.             local RightConnect = Instance.new('Frame', Right)
  998.             local RightUIListLayout = Instance.new('UIListLayout', RightConnect)
  999.             --
  1000.             do -- Inserts
  1001.                 table.insert(Library.Instances, Accent)
  1002.                 table.insert(Library.Instances, Frame)
  1003.                 table.insert(Library.Instances, Title)
  1004.                 table.insert(Library.Instances, Left)
  1005.                 table.insert(Library.Instances, Bar)
  1006.                 table.insert(Library.Instances, GradientLine)
  1007.                 table.insert(Library.Instances, LeftTitle)
  1008.                 table.insert(Library.Instances, Right)
  1009.                 table.insert(Library.Instances, Bar2)
  1010.                 table.insert(Library.Instances, GradientLine2)
  1011.                 table.insert(Library.Instances, RightTitle)
  1012.                 --
  1013.                 table.insert(Library.ThemeObjects, Accent)
  1014.             end
  1015.             --
  1016.             Button.Name = "Button"
  1017.             Button.Size = UDim2.new(1,0,0,22)
  1018.             Button.BackgroundColor3 = Color3.new(1,1,1)
  1019.             Button.BackgroundTransparency = 1
  1020.             Button.BorderSizePixel = 0
  1021.             Button.ZIndex = 54
  1022.             Button.AutoButtonColor = false
  1023.             Button.Text = ""
  1024.             --
  1025.             Accent.Name = "Accent"
  1026.             Accent.Size = UDim2.new(0,1,1,0)
  1027.             Accent.BackgroundColor3 = Library.Accent
  1028.             Accent.BorderSizePixel = 0
  1029.             Accent.ZIndex = 54
  1030.             Accent.BackgroundTransparency = 0.5
  1031.             --
  1032.             Frame.Position = UDim2.new(0,1,0,0)
  1033.             Frame.Size = UDim2.new(1,-2,1,0)
  1034.             Frame.BackgroundColor3 = Color3.new(0.149,0.149,0.149)
  1035.             Frame.BorderSizePixel = 0
  1036.             Frame.ZIndex = 54
  1037.             --
  1038.             UIGradient.Color = ColorSequence.new{ColorSequenceKeypoint.new(0,Color3.new(0.7411764860153198, 0.7411764860153198, 0.7411764860153198) ),ColorSequenceKeypoint.new(1,Color3.new(0.20392157137393951, 0.20392157137393951, 0.20392157137393951) )}
  1039.             UIGradient.Transparency = NumberSequence.new{NumberSequenceKeypoint.new(0,0.5,0),NumberSequenceKeypoint.new(1,0.5,0)}
  1040.             UIGradient.Enabled = true
  1041.             --
  1042.             Title.Name = "Title"
  1043.             Title.Position = UDim2.new(0,4,0,0)
  1044.             Title.Size = UDim2.new(1,-4,0,20)
  1045.             Title.BackgroundColor3 = Color3.new(1,0.682927,0.682927)
  1046.             Title.BackgroundTransparency = 1
  1047.             Title.Text = Options.Name
  1048.             Title.TextColor3 = Color3.fromRGB(78,78,78)
  1049.             Title.FontFace = Library.UIFont
  1050.             Title.TextSize = Library.FontSize
  1051.             Title.ZIndex = 54
  1052.             Title.TextXAlignment = Enum.TextXAlignment.Left
  1053.             --
  1054.             NewSection.Name = "NewSection"
  1055.             NewSection.Size = UDim2.new(1,0,1,0)
  1056.             NewSection.BackgroundColor3 = Color3.new(1,1,1)
  1057.             NewSection.BackgroundTransparency = 1
  1058.             NewSection.BorderSizePixel = 0
  1059.             NewSection.BorderColor3 = Color3.new(0,0,0)
  1060.             NewSection.Visible = false
  1061.             --
  1062.             Left.Name = "Left"
  1063.             Left.Position = UDim2.new(0,2,0,0)
  1064.             Left.Size = UDim2.new(0.5,-10,1,0)
  1065.             Left.BackgroundColor3 = Color3.new(0.0314,0.0314,0.0314)
  1066.             Left.BorderColor3 = Color3.new(0.1098,0.1098,0.1098)
  1067.             --
  1068.             Bar.Name = "Bar"
  1069.             Bar.Size = UDim2.new(1,0,0,20)
  1070.             Bar.BackgroundColor3 = Color3.new(0.0431,0.0431,0.0431)
  1071.             Bar.BorderColor3 = Color3.new(0.1098,0.1098,0.1098)
  1072.             --
  1073.             Gradient.Name = "Gradient"
  1074.             Gradient.Color = ColorSequence.new{
  1075.                 ColorSequenceKeypoint.new(
  1076.                     0,
  1077.                     Color3.new(0.7803921699523926, 0.7490196228027344, 0.800000011920929)  
  1078.                 ),
  1079.                 ColorSequenceKeypoint.new(
  1080.                     1,
  1081.                     Color3.new(1, 1, 1)
  1082.                 )
  1083.             }
  1084.             Gradient.Rotation = -90
  1085.             --
  1086.             GradientLine.Name = "GradientLine"
  1087.             GradientLine.Position = UDim2.new(0,0,1,0)
  1088.             GradientLine.Size = UDim2.new(1,0,0,1)
  1089.             GradientLine.BackgroundColor3 = Color3.new(1,1,1)
  1090.             GradientLine.BorderSizePixel = 0
  1091.             GradientLine.BorderColor3 = Color3.new(0,0,0)
  1092.             UIGradient3.Color = ColorSequence.new{
  1093.                 ColorSequenceKeypoint.new(
  1094.                     0,
  1095.                     Color3.new(0.10980392247438431, 0.10980392247438431, 0.10980392247438431)  
  1096.                 ),
  1097.                 ColorSequenceKeypoint.new(
  1098.                     0.4826989769935608,
  1099.                     Color3.new(0.04313725605607033, 0.04313725605607033, 0.04313725605607033)  
  1100.                 ),
  1101.                 ColorSequenceKeypoint.new(
  1102.                     1,
  1103.                     Color3.new(0.10980392247438431, 0.10980392247438431, 0.10980392247438431)  
  1104.                 )
  1105.             }
  1106.             --
  1107.             LeftTitle.Name = "LeftTitle"
  1108.             LeftTitle.Position = UDim2.new(0,4,0,0)
  1109.             LeftTitle.Size = UDim2.new(1,-4,1,0)
  1110.             LeftTitle.BackgroundColor3 = Color3.new(1,1,1)
  1111.             LeftTitle.BackgroundTransparency = 1
  1112.             LeftTitle.BorderSizePixel = 0
  1113.             LeftTitle.BorderColor3 = Color3.new(0,0,0)
  1114.             LeftTitle.Text = Section.LeftName
  1115.             LeftTitle.TextColor3 = Color3.new(0.3059,0.3059,0.3059)
  1116.             LeftTitle.FontFace = Library.UIFont
  1117.             LeftTitle.TextSize = Library.FontSize
  1118.             LeftTitle.TextXAlignment = Enum.TextXAlignment.Left
  1119.             --
  1120.             Right.Name = "Right"
  1121.             Right.Position = UDim2.new(0.5,8,0,0)
  1122.             Right.Size = UDim2.new(0.5,-10,1,0)
  1123.             Right.BackgroundColor3 = Color3.new(0.0314,0.0314,0.0314)
  1124.             Right.BorderColor3 = Color3.new(0.1098,0.1098,0.1098)
  1125.             --
  1126.             Bar2.Name = "Bar2"
  1127.             Bar2.Size = UDim2.new(1,0,0,20)
  1128.             Bar2.BackgroundColor3 = Color3.new(0.0431,0.0431,0.0431)
  1129.             Bar2.BorderColor3 = Color3.new(0.1098,0.1098,0.1098)
  1130.             --
  1131.             Gradient2.Name = "Gradient2"
  1132.             Gradient2.Color = ColorSequence.new{
  1133.                 ColorSequenceKeypoint.new(
  1134.                     0,
  1135.                     Color3.new(0.7803921699523926, 0.7490196228027344, 0.800000011920929)  
  1136.                 ),
  1137.                 ColorSequenceKeypoint.new(
  1138.                     1,
  1139.                     Color3.new(1, 1, 1)
  1140.                 )
  1141.             }
  1142.             Gradient2.Rotation = -90
  1143.             --
  1144.             GradientLine2.Name = "GradientLine2"
  1145.             GradientLine2.Position = UDim2.new(0,0,1,0)
  1146.             GradientLine2.Size = UDim2.new(1,0,0,1)
  1147.             GradientLine2.BackgroundColor3 = Color3.new(1,1,1)
  1148.             GradientLine2.BorderSizePixel = 0
  1149.             GradientLine2.BorderColor3 = Color3.new(0,0,0)
  1150.             UIGradient2.Color = ColorSequence.new{
  1151.                 ColorSequenceKeypoint.new(
  1152.                     0,
  1153.                     Color3.new(0.10980392247438431, 0.10980392247438431, 0.10980392247438431)  
  1154.                 ),
  1155.                 ColorSequenceKeypoint.new(
  1156.                     0.4826989769935608,
  1157.                     Color3.new(0.04313725605607033, 0.04313725605607033, 0.04313725605607033)  
  1158.                 ),
  1159.                 ColorSequenceKeypoint.new(
  1160.                     1,
  1161.                     Color3.new(0.10980392247438431, 0.10980392247438431, 0.10980392247438431)  
  1162.                 )
  1163.             }
  1164.             --
  1165.             RightTitle.Name = "RightTitle"
  1166.             RightTitle.Position = UDim2.new(0,4,0,0)
  1167.             RightTitle.Size = UDim2.new(1,-4,1,0)
  1168.             RightTitle.BackgroundColor3 = Color3.new(1,1,1)
  1169.             RightTitle.BackgroundTransparency = 1
  1170.             RightTitle.BorderSizePixel = 0
  1171.             RightTitle.BorderColor3 = Color3.new(0,0,0)
  1172.             RightTitle.Text = Section.RightName
  1173.             RightTitle.TextColor3 = Color3.new(0.3059,0.3059,0.3059)
  1174.             RightTitle.FontFace = Library.UIFont
  1175.             RightTitle.TextSize = Library.FontSize
  1176.             RightTitle.TextXAlignment = Enum.TextXAlignment.Left
  1177.             --
  1178.             LeftContent.Name = "LeftContent"
  1179.             LeftContent.Position = UDim2.new(0,10,0,30)
  1180.             LeftContent.Size = UDim2.new(1,-20,1,-40)
  1181.             LeftContent.BackgroundColor3 = Color3.new(1,1,1)
  1182.             LeftContent.BackgroundTransparency = 1
  1183.             LeftContent.BorderSizePixel = 0
  1184.             LeftContent.BorderColor3 = Color3.new(0,0,0)
  1185.             LeftUIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
  1186.             LeftUIListLayout.Padding = UDim.new(0,4)
  1187.             --
  1188.             RightConnect.Name = "RightConnect"
  1189.             RightConnect.Position = UDim2.new(0,10,0,30)
  1190.             RightConnect.Size = UDim2.new(1,-20,1,-40)
  1191.             RightConnect.BackgroundColor3 = Color3.new(1,1,1)
  1192.             RightConnect.BackgroundTransparency = 1
  1193.             RightConnect.BorderSizePixel = 0
  1194.             RightConnect.BorderColor3 = Color3.new(0,0,0)
  1195.             RightUIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
  1196.             RightUIListLayout.Padding = UDim.new(0,4)
  1197.  
  1198.             -- // Connections
  1199.             function Section:Turn(bool)
  1200.                 Section.Open = bool
  1201.                 NewSection.Visible = Section.Open
  1202.                 if Section.Open then
  1203.                     table.insert(Library.ThemeObjects, Title)
  1204.                     Title.TextColor3 = Library.Accent
  1205.                 else
  1206.                     table.remove(Library.ThemeObjects, table.find(Library.ThemeObjects, Title))
  1207.                     Title.TextColor3 = Color3.fromRGB(78,78,78)
  1208.                 end
  1209.                 Accent.BackgroundTransparency = Section.Open and 0 or 0.5
  1210.             end;
  1211.  
  1212.             Button.MouseButton1Click:Connect(function()
  1213.                 if not Section.Open then
  1214.                     Section:Turn(true)
  1215.                     for index, other_page in pairs(Section.Page.Sections) do
  1216.                         if other_page.Open and other_page ~= Section then
  1217.                             other_page:Turn(false)
  1218.                         end
  1219.                     end
  1220.                 end
  1221.             end)
  1222.  
  1223.             if #Section.Page.Sections == 0 then
  1224.                 Section:Turn(true);
  1225.             end;
  1226.  
  1227.             -- // Return
  1228.             Section.Elements = {Left = LeftContent, Right = RightConnect};
  1229.             Section.Page.Sections[#Section.Page.Sections + 1] = Section;
  1230.             return setmetatable(Section, Library.Sections)
  1231.         end
  1232.         --
  1233.         function Sections:Toggle(Options)
  1234.             local Properties = Options or {}
  1235.             local Toggle = {
  1236.                 Window = self.Window,
  1237.                 Page = self.Page,
  1238.                 Section = self,
  1239.                 State = (Properties.state or Properties.State or Properties.def or Properties.Def or Properties.default or Properties.Default or false),
  1240.                 Callback = (Properties.callback or Properties.Callback or Properties.callBack or Properties.CallBack or function() end),
  1241.                 Flag = (Properties.flag or Properties.Flag or Properties.pointer or Properties.Pointer or Library.NextFlag()),
  1242.                 Toggled = false;
  1243.                 Colorpickers = 0;
  1244.             };
  1245.  
  1246.             -- // Instances
  1247.             local Holder = Instance.new('TextButton', Options.Side == "Left" and Toggle.Section.Elements.Left or Options.Side == "Right" and Toggle.Section.Elements.Right or Toggle.Section.Elements.Left)
  1248.             local Frame = Instance.new('Frame', Holder)
  1249.             local Accent = Instance.new('Frame', Frame)
  1250.             local Gradient = Instance.new('UIGradient', Accent)
  1251.             local TextLabel = Instance.new('TextLabel', Holder)
  1252.             --
  1253.             do -- Inserts
  1254.                 table.insert(Library.Instances, Frame)
  1255.                 table.insert(Library.Instances, Accent)
  1256.                 table.insert(Library.Instances, TextLabel)
  1257.                 --
  1258.                 table.insert(Library.ThemeObjects, Accent)
  1259.             end
  1260.             --
  1261.             Holder.Name = "Toggle"
  1262.             Holder.Size = UDim2.new(1,0,0,10)
  1263.             Holder.BackgroundColor3 = Color3.new(1,1,1)
  1264.             Holder.BackgroundTransparency = 1
  1265.             Holder.Text = ""
  1266.             Holder.TextColor3 = Color3.new(0,0,0)
  1267.             Holder.AutoButtonColor = false
  1268.             Holder.Font = Enum.Font.SourceSans
  1269.             Holder.TextSize = 14
  1270.             --
  1271.             Frame.Position = UDim2.new(0,0,0,3)
  1272.             Frame.Size = UDim2.new(0,6,0,6)
  1273.             Frame.BackgroundColor3 = Color3.new(0.0784,0.0784,0.0784)
  1274.             Frame.BorderColor3 = Color3.new(0,0,0)
  1275.             --
  1276.             Accent.Name = "Accent"
  1277.             Accent.Size = UDim2.new(1,0,1,0)
  1278.             Accent.BackgroundColor3 = Library.Accent
  1279.             Accent.BorderSizePixel = 0
  1280.             Accent.Visible = false
  1281.             --
  1282.             Gradient.Name = "Gradient"
  1283.             Gradient.Color = ColorSequence.new{
  1284.                 ColorSequenceKeypoint.new(
  1285.                     0,
  1286.                     Color3.new(0.7803921699523926, 0.7490196228027344, 0.800000011920929)  
  1287.                 ),
  1288.                 ColorSequenceKeypoint.new(
  1289.                     1,
  1290.                     Color3.new(1, 1, 1)
  1291.                 )
  1292.             }
  1293.             Gradient.Rotation = -90
  1294.             --
  1295.             TextLabel.Position = UDim2.new(0,15,0,0)
  1296.             TextLabel.Size = UDim2.new(1,0,1,0)
  1297.             TextLabel.BackgroundColor3 = Color3.new(1,1,1)
  1298.             TextLabel.BackgroundTransparency = 1
  1299.             TextLabel.TextColor3 = Color3.new(0.3059,0.3059,0.3059)
  1300.             TextLabel.FontFace = Library.UIFont
  1301.             TextLabel.TextSize = Library.FontSize
  1302.             TextLabel.ZIndex = 105
  1303.             TextLabel.TextXAlignment = Enum.TextXAlignment.Left
  1304.             TextLabel.Text = Options.Name or Options.Name or "toggle"
  1305.  
  1306.             -- // Connections
  1307.             local function SetState()
  1308.                 Toggle.Toggled = not Toggle.Toggled
  1309.                 if Toggle.Toggled then
  1310.                     Accent.Visible = true
  1311.                     TextLabel.TextColor3 = Color3.fromRGB(255,255,255)
  1312.                 else
  1313.                     Accent.Visible = false
  1314.                     TextLabel.TextColor3 = Color3.new(0.3059,0.3059,0.3059)
  1315.                 end
  1316.                 Library.Flags[Toggle.Flag] = Toggle.Toggled
  1317.                 Toggle.Callback(Toggle.Toggled)
  1318.             end
  1319.  
  1320.             function Toggle:Keybind(Options)
  1321.                 local Properties = Options or {};
  1322.                 local Keybind = {
  1323.                     State = (
  1324.                         Properties.state
  1325.                             or Properties.State
  1326.                             or Properties.def
  1327.                             or Properties.Def
  1328.                             or Properties.default
  1329.                             or Properties.Default
  1330.                             or nil
  1331.                     ),
  1332.                     Mode = (Properties.mode or Properties.Mode or "Toggle"),
  1333.                     Callback = (
  1334.                         Properties.callback
  1335.                             or Properties.Callback
  1336.                             or Properties.callBack
  1337.                             or Properties.CallBack
  1338.                             or function() end
  1339.                     ),
  1340.                     Flag = (
  1341.                         Properties.flag
  1342.                             or Properties.Flag
  1343.                             or Properties.pointer
  1344.                             or Properties.Pointer
  1345.                             or Library.NextFlag()
  1346.                     ),
  1347.                     Binding = nil,
  1348.                     Connection = nil,
  1349.                 }
  1350.                 local Key
  1351.                 local State = false
  1352.                 local Cycle = Keybind.Mode == "Hold" and 1 or Keybind.Mode == "Toggle" and 2 or 3
  1353.  
  1354.                 -- // Instances
  1355.                 local KeyHolder = Instance.new('TextButton', Holder)
  1356.                 local Value = Instance.new('TextLabel', Holder)
  1357.                 local Mode = Instance.new('TextLabel', Holder)
  1358.                 --
  1359.                 do -- Inserts
  1360.                     table.insert(Library.Instances, Value)
  1361.                     table.insert(Library.Instances, Mode)
  1362.                 end
  1363.                 --
  1364.                 KeyHolder.Name = "Holder"
  1365.                 KeyHolder.Size = UDim2.new(0,40,0,10)
  1366.                 KeyHolder.BackgroundColor3 = Color3.new(1,1,1)
  1367.                 KeyHolder.BackgroundTransparency = 1
  1368.                 KeyHolder.Text = ""
  1369.                 KeyHolder.TextColor3 = Color3.new(0,0,0)
  1370.                 KeyHolder.AutoButtonColor = false
  1371.                 KeyHolder.Font = Enum.Font.SourceSans
  1372.                 KeyHolder.TextSize = 14
  1373.                 KeyHolder.Position = UDim2.new(1,-45,0,0)
  1374.                 --
  1375.                 Value.Name = "Value"
  1376.                 Value.Position = UDim2.new(0,15,0,0)
  1377.                 Value.Size = UDim2.new(1,-30,1,0)
  1378.                 Value.BackgroundColor3 = Color3.new(1,1,1)
  1379.                 Value.BackgroundTransparency = 1
  1380.                 Value.Text = "[-]"
  1381.                 Value.TextColor3 = Color3.new(0.3059,0.3059,0.3059)
  1382.                 Value.FontFace = Library.UIFont
  1383.                 Value.TextSize = Library.FontSize
  1384.                 Value.ZIndex = 105
  1385.                 Value.TextXAlignment = Enum.TextXAlignment.Right
  1386.                 --
  1387.                 Mode.Name = "Mode"
  1388.                 Mode.Position = UDim2.new(0,TextLabel.TextBounds.X + 20,0,0)
  1389.                 Mode.Size = UDim2.new(1,-30,1,0)
  1390.                 Mode.BackgroundColor3 = Color3.new(1,1,1)
  1391.                 Mode.BackgroundTransparency = 1
  1392.                 Mode.Text = Keybind.Mode == "Hold" and "[H]" or Keybind.Mode == "Toggle" and "[T]" or "[A]"
  1393.                 Mode.TextColor3 = Color3.new(1,1,1)
  1394.                 Mode.FontFace = Library.UIFont
  1395.                 Mode.TextSize = Library.FontSize
  1396.                 Mode.ZIndex = 105
  1397.                 Mode.TextXAlignment = Enum.TextXAlignment.Left
  1398.  
  1399.                 -- // Connections
  1400.                 local function set(newkey)
  1401.                     if string.find(tostring(newkey), "Enum") then
  1402.                         if Keybind.Connection then
  1403.                             Keybind.Connection:Disconnect()
  1404.                             if Keybind.Flag then
  1405.                                 Library.Flags[Keybind.Flag] = false
  1406.                             end
  1407.                             Keybind.Callback(false)
  1408.                         end
  1409.                         if tostring(newkey):find("Enum.KeyCode.") then
  1410.                             newkey = Enum.KeyCode[tostring(newkey):gsub("Enum.KeyCode.", "")]
  1411.                         elseif tostring(newkey):find("Enum.UserInputType.") then
  1412.                             newkey = Enum.UserInputType[tostring(newkey):gsub("Enum.UserInputType.", "")]
  1413.                         end
  1414.                         if newkey == Enum.KeyCode.Backspace then
  1415.                             Key = nil
  1416.  
  1417.                             Value.Text = "[-]"
  1418.                         elseif newkey ~= nil then
  1419.                             Key = newkey
  1420.  
  1421.                             local text = (Library.Keys[newkey] or tostring(newkey):gsub("Enum.KeyCode.", ""))
  1422.  
  1423.                             Value.Text = "[" .. text .. "]"
  1424.                         end
  1425.  
  1426.                         Library.Flags[Keybind.Flag .. "_KEY"] = newkey
  1427.                     elseif table.find({ "Always", "Toggle", "Hold" }, newkey) then
  1428.                         Library.Flags[Keybind.Flag .. "_KEY STATE"] = newkey
  1429.                         Keybind.Mode = newkey
  1430.                         Mode.Text = Keybind.Mode == "Hold" and "[H]" or Keybind.Mode == "Toggle" and "[T]" or "[A]"
  1431.                         Cycle = Keybind.Mode == "Hold" and 1 or Keybind.Mode == "Toggle" and 2 or 3
  1432.                         if Keybind.Mode == "Always" then
  1433.                             State = true
  1434.                             if Keybind.Flag then
  1435.                                 Library.Flags[Keybind.Flag] = State
  1436.                             end
  1437.                             Keybind.Callback(true)
  1438.                         end
  1439.                     else
  1440.                         State = newkey
  1441.                         if Keybind.Flag then
  1442.                             Library.Flags[Keybind.Flag] = newkey
  1443.                         end
  1444.                         Keybind.Callback(newkey)
  1445.                     end
  1446.                 end
  1447.                 --
  1448.                 set(Keybind.State)
  1449.                 set(Keybind.Mode)
  1450.                 KeyHolder.MouseButton1Click:Connect(function()
  1451.                     if not Keybind.Binding then
  1452.  
  1453.                         Value.Text = "[-]"
  1454.  
  1455.                         Keybind.Binding = Library:Connection(
  1456.                             game:GetService("UserInputService").InputBegan,
  1457.                             function(input, gpe)
  1458.                                 set(
  1459.                                     input.UserInputType == Enum.UserInputType.Keyboard and input.KeyCode
  1460.                                         or input.UserInputType
  1461.                                 )
  1462.                                 Library:Disconnect(Keybind.Binding)
  1463.                                 task.wait()
  1464.                                 Keybind.Binding = nil
  1465.                             end
  1466.                         )
  1467.                     end
  1468.                 end)
  1469.                 --
  1470.                 Library:Connection(game:GetService("UserInputService").InputBegan, function(inp)
  1471.                     if (inp.KeyCode == Key or inp.UserInputType == Key) and not Keybind.Binding then
  1472.                         if Keybind.Mode == "Hold" then
  1473.                             if Keybind.Flag then
  1474.                                 Library.Flags[Keybind.Flag] = true
  1475.                             end
  1476.                             Keybind.Connection = Library:Connection(game:GetService("RunService").RenderStepped, function()
  1477.                                 if Keybind.Callback then
  1478.                                     Keybind.Callback(true)
  1479.                                 end
  1480.                             end)
  1481.                         elseif Keybind.Mode == "Toggle" then
  1482.                             State = not State
  1483.                             if Keybind.Flag then
  1484.                                 Library.Flags[Keybind.Flag] = State
  1485.                             end
  1486.                             Keybind.Callback(State)
  1487.                         end
  1488.                     end
  1489.                 end)
  1490.                 --
  1491.                 Library:Connection(game:GetService("UserInputService").InputEnded, function(inp)
  1492.                     if Keybind.Mode == "Hold" then
  1493.                         if Key ~= "" or Key ~= nil then
  1494.                             if inp.KeyCode == Key or inp.UserInputType == Key then
  1495.                                 if Keybind.Connection then
  1496.                                     Keybind.Connection:Disconnect()
  1497.                                     if Keybind.Flag then
  1498.                                         Library.Flags[Keybind.Flag] = false
  1499.                                     end
  1500.                                     if Keybind.Callback then
  1501.                                         Keybind.Callback(false)
  1502.                                     end
  1503.                                 end
  1504.                             end
  1505.                         end
  1506.                     end
  1507.                 end)
  1508.                 --
  1509.                 Holder.MouseButton2Click:Connect(function()
  1510.                     Cycle += 1
  1511.                     if Cycle > 3 then
  1512.                         Cycle = 1
  1513.                         set("Hold")
  1514.                         Mode.Text = "[H]"
  1515.                     elseif Cycle == 2 then
  1516.                         set("Toggle")
  1517.                         Mode.Text = "[T]"
  1518.                     elseif Cycle == 3 then
  1519.                         set("Always")
  1520.                         Mode.Text = "[A]"
  1521.                     elseif Cycle == 1 then
  1522.                         set("Hold")
  1523.                         Mode.Text = "[H]"
  1524.                     end
  1525.                 end)
  1526.                 --
  1527.                 Library.Flags[Keybind.Flag .. "_KEY"] = Keybind.State
  1528.                 Library.Flags[Keybind.Flag .. "_KEY STATE"] = Keybind.Mode
  1529.                 Flags[Keybind.Flag] = set
  1530.                 Flags[Keybind.Flag .. "_KEY"] = set
  1531.                 Flags[Keybind.Flag .. "_KEY STATE"] = set
  1532.                 --
  1533.                 function Keybind:Set(key)
  1534.                     set(key)
  1535.                 end
  1536.                 local function refresh()
  1537.                     wait(0.001)
  1538.                     Mode.Position = UDim2.new(0,TextLabel.TextBounds.X + 20,0,0)
  1539.                 end
  1540.                 -- // Return
  1541.                 refresh()
  1542.                 return Keybind
  1543.             end
  1544.  
  1545.             function Toggle:Colorpicker(Properties)
  1546.                 local Properties = Properties or {}
  1547.                 local Colorpicker = {
  1548.                     State = (
  1549.                         Properties.state
  1550.                             or Properties.State
  1551.                             or Properties.def
  1552.                             or Properties.Def
  1553.                             or Properties.default
  1554.                             or Properties.Default
  1555.                             or Color3.fromRGB(255, 0, 0)
  1556.                     ),
  1557.                     Alpha = (
  1558.                         Properties.alpha
  1559.                             or Properties.Alpha
  1560.                             or Properties.transparency
  1561.                             or Properties.Transparency
  1562.                             or 1
  1563.                     ),
  1564.                     Callback = (
  1565.                         Properties.callback
  1566.                             or Properties.Callback
  1567.                             or Properties.callBack
  1568.                             or Properties.CallBack
  1569.                             or function() end
  1570.                     ),
  1571.                     Flag = (
  1572.                         Properties.flag
  1573.                             or Properties.Flag
  1574.                             or Properties.pointer
  1575.                             or Properties.Pointer
  1576.                             or Library.NextFlag()
  1577.                     ),
  1578.                 }
  1579.                 -- // Functions
  1580.                 Toggle.Colorpickers = Toggle.Colorpickers + 1
  1581.                 local colorpickertypes = Library:NewPicker(
  1582.                     Colorpicker.State,
  1583.                     Colorpicker.Alpha,
  1584.                     Holder,
  1585.                     Toggle.Colorpickers - 1,
  1586.                     Colorpicker.Flag,
  1587.                     Colorpicker.Callback
  1588.                 )
  1589.  
  1590.                 function Colorpicker:Set(color)
  1591.                     colorpickertypes:set(color, false, true)
  1592.                 end
  1593.  
  1594.                 -- // Returning
  1595.                 return Colorpicker
  1596.             end
  1597.  
  1598.             -- // Misc Functions
  1599.             function Toggle.Set(bool)
  1600.                 bool = type(bool) == "boolean" and bool or false
  1601.                 if Toggle.Toggled ~= bool then
  1602.                     SetState()
  1603.                 end
  1604.             end
  1605.             Toggle.Set(Toggle.State)
  1606.             Library.Flags[Toggle.Flag] = Toggle.State
  1607.             Flags[Toggle.Flag] = Toggle.Set
  1608.  
  1609.             -- // Return
  1610.             Library:Connection(Holder.MouseButton1Click, SetState)
  1611.             return Toggle
  1612.         end
  1613.         --
  1614.         function Sections:Slider(Options)
  1615.             local Properties = Options or {};
  1616.             local Slider = {
  1617.                 Window = self.Window,
  1618.                 Page = self.Page,
  1619.                 Section = self,
  1620.                 Name = Properties.Title or Properties.Name or Properties.title or nil,
  1621.                 Min = (Properties.min or Properties.Min or Properties.minimum or Properties.Minimum or 0),
  1622.                 State = (
  1623.                     Properties.state
  1624.                         or Properties.State
  1625.                         or Properties.def
  1626.                         or Properties.Def
  1627.                         or Properties.default
  1628.                         or Properties.Default
  1629.                         or 10
  1630.                 ),
  1631.                 Max = (Properties.max or Properties.Max or Properties.maximum or Properties.Maximum or 100),
  1632.                 Sub = (
  1633.                     Properties.suffix
  1634.                         or Properties.Suffix
  1635.                         or Properties.ending
  1636.                         or Properties.Ending
  1637.                         or Properties.prefix
  1638.                         or Properties.Prefix
  1639.                         or Properties.measurement
  1640.                         or Properties.Measurement
  1641.                         or ""
  1642.                 ),
  1643.                 Decimals = (Properties.decimals or Properties.Decimals or 1),
  1644.                 Callback = (
  1645.                     Properties.callback
  1646.                         or Properties.Callback
  1647.                         or Properties.callBack
  1648.                         or Properties.CallBack
  1649.                         or function() end
  1650.                 ),
  1651.                 Flag = (
  1652.                     Properties.flag
  1653.                         or Properties.Flag
  1654.                         or Properties.pointer
  1655.                         or Properties.Pointer
  1656.                         or Library.NextFlag()
  1657.                 ),
  1658.             }
  1659.             local TextValue = ("[value]" .. Slider.Sub)
  1660.  
  1661.             -- // Instances
  1662.             local Holder = Instance.new('Frame', Options.Side == "Left" and Slider.Section.Elements.Left or Options.Side == "Right" and Slider.Section.Elements.Right or Slider.Section.Elements.Left)
  1663.             local Frame = Instance.new('TextButton', Holder)
  1664.             local Accent = Instance.new('TextButton', Frame)
  1665.             local Gradient2 = Instance.new('UIGradient', Accent)
  1666.             local Gradient = Instance.new('UIGradient', Frame)
  1667.             local Title = Instance.new('TextLabel', Holder)
  1668.             local plus = Instance.new('TextButton', Holder)
  1669.             local minus = Instance.new('TextButton', Holder)
  1670.             local Value = Instance.new('TextLabel', Slider.Name and Holder or Frame)
  1671.             Title.Visible = false
  1672.             --
  1673.             do -- Inserts
  1674.                 table.insert(Library.Instances, Frame)
  1675.                 table.insert(Library.Instances, Accent)
  1676.                 table.insert(Library.Instances, Title)
  1677.                 table.insert(Library.Instances, plus)
  1678.                 table.insert(Library.Instances, minus)
  1679.                 table.insert(Library.Instances, Value)
  1680.                 --
  1681.                 table.insert(Library.ThemeObjects, Accent)
  1682.             end
  1683.             --
  1684.             Holder.Name = "Slider"
  1685.             Holder.Size = Slider.Name and UDim2.new(1,0,0,25) or UDim2.new(1,0,0,10)
  1686.             Holder.BackgroundColor3 = Color3.new(1,1,1)
  1687.             Holder.BackgroundTransparency = 1
  1688.             --
  1689.             Frame.Position = Slider.Name and UDim2.new(0,15,0,16) or UDim2.new(0,15,0,3)
  1690.             Frame.Size = UDim2.new(1,-30,0,6)
  1691.             Frame.BackgroundColor3 = Color3.new(0.0784,0.0784,0.0784)
  1692.             Frame.BorderColor3 = Color3.new(0,0,0)
  1693.             Frame.AutoButtonColor = false
  1694.             Frame.Text = ""
  1695.             --
  1696.             Accent.Name = "Accent"
  1697.             Accent.Size = UDim2.new(0,0,1,0)
  1698.             Accent.BackgroundColor3 = Library.Accent
  1699.             Accent.BorderSizePixel = 0
  1700.             Accent.AutoButtonColor = false
  1701.             Accent.Text = ""
  1702.             --
  1703.             Gradient2.Name = "Gradient2"
  1704.             Gradient2.Color = ColorSequence.new{
  1705.                 ColorSequenceKeypoint.new(
  1706.                     0,
  1707.                     Color3.new(0.7803921699523926, 0.7490196228027344, 0.800000011920929)  
  1708.                 ),
  1709.                 ColorSequenceKeypoint.new(
  1710.                     1,
  1711.                     Color3.new(1, 1, 1)
  1712.                 )
  1713.             }
  1714.             Gradient2.Rotation = -90
  1715.             Gradient.Name = "Gradient"
  1716.             Gradient.Color = ColorSequence.new{
  1717.                 ColorSequenceKeypoint.new(
  1718.                     0,
  1719.                     Color3.new(0.7803921699523926, 0.7490196228027344, 0.800000011920929)  
  1720.                 ),
  1721.                 ColorSequenceKeypoint.new(
  1722.                     1,
  1723.                     Color3.new(1, 1, 1)
  1724.                 )
  1725.             }
  1726.             Gradient.Rotation = -90
  1727.             --
  1728.             if Slider.Name then
  1729.                 Title.Visible = true
  1730.                 Title.Name = "Title"
  1731.                 Title.Position = UDim2.new(0,15,0,0)
  1732.                 Title.Size = UDim2.new(1,0,0,10)
  1733.                 Title.BackgroundColor3 = Color3.new(1,1,1)
  1734.                 Title.BackgroundTransparency = 1
  1735.                 Title.TextColor3 = Color3.new(0.3059,0.3059,0.3059)
  1736.                 Title.FontFace = Library.UIFont
  1737.                 Title.TextSize = Library.FontSize
  1738.                 Title.ZIndex = 105
  1739.                 Title.TextXAlignment = Enum.TextXAlignment.Left
  1740.                 Title.Text = Slider.Name
  1741.             end
  1742.             --
  1743.             plus.Name = "plus"
  1744.             plus.Position = Slider.Name and UDim2.new(1,-7,0,13) or UDim2.new(1,-7,0,0)
  1745.             plus.Size = UDim2.new(0,8,0,8)
  1746.             plus.BackgroundColor3 = Color3.new(1,1,1)
  1747.             plus.BackgroundTransparency = 1
  1748.             plus.BorderSizePixel = 0
  1749.             plus.BorderColor3 = Color3.new(0,0,0)
  1750.             plus.Text = "+"
  1751.             plus.TextColor3 = Color3.new(0.3059,0.3059,0.3059)
  1752.             plus.FontFace = Library.UIFont
  1753.             plus.TextSize = Library.FontSize
  1754.             --
  1755.             minus.Name = "minus"
  1756.             minus.Position = Slider.Name and UDim2.new(0,-1,0,13) or UDim2.new(0,-1,0,0)
  1757.             minus.Size = UDim2.new(0,8,0,8)
  1758.             minus.BackgroundColor3 = Color3.new(1,1,1)
  1759.             minus.BackgroundTransparency = 1
  1760.             minus.BorderSizePixel = 0
  1761.             minus.BorderColor3 = Color3.new(0,0,0)
  1762.             minus.Text = "-"
  1763.             minus.TextColor3 = Color3.new(0.3059,0.3059,0.3059)
  1764.             minus.FontFace = Library.UIFont
  1765.             minus.TextSize = Library.FontSize
  1766.             --
  1767.             Value.Name = "Value"
  1768.             Value.Position = Slider.Name and UDim2.new(0,15,0,0) or UDim2.new(0,0,0,-1)
  1769.             Value.Size = Slider.Name and UDim2.new(1,-30,0,10) or UDim2.new(1,0,1,0)
  1770.             Value.BackgroundColor3 = Color3.new(1,1,1)
  1771.             Value.BackgroundTransparency = 1
  1772.             Value.Text = "50%"
  1773.             Value.TextColor3 = Color3.new(0.3059,0.3059,0.3059)
  1774.             Value.FontFace = Library.UIFont
  1775.             Value.TextSize = Library.FontSize
  1776.             Value.ZIndex = 105
  1777.             Value.TextXAlignment = Slider.Name and Enum.TextXAlignment.Right or Enum.TextXAlignment.Center
  1778.  
  1779.             -- // Connections
  1780.             local Sliding = false
  1781.             local Val = Slider.State;
  1782.             local function Set(value)
  1783.                 value = math.clamp(Library:Round(value, Slider.Decimals), Slider.Min, Slider.Max)
  1784.  
  1785.                 if value == Slider.Min then
  1786.                     Value.TextColor3 = Color3.new(0.3059,0.3059,0.3059)
  1787.                     if Slider.Name then
  1788.                         Title.TextColor3 = Color3.new(0.3059,0.3059,0.3059)
  1789.                     end
  1790.                 else
  1791.                     Value.TextColor3 = Color3.fromRGB(255,255,255)
  1792.                     if Slider.Name then
  1793.                         Title.TextColor3 = Color3.fromRGB(255,255,255)
  1794.                     end
  1795.                 end
  1796.  
  1797.                 Value.Text = TextValue:gsub("%[value%]", string.format("%.14g", value))
  1798.                 Val = value
  1799.  
  1800.                 local sizeX = ((value - Slider.Min) / (Slider.Max - Slider.Min))
  1801.                 Accent.Size = UDim2.new(sizeX, 0, 1, 0)
  1802.  
  1803.                 Library.Flags[Slider.Flag] = value
  1804.                 Slider.Callback(value)
  1805.             end
  1806.             --
  1807.             Set(Slider.State)
  1808.             --
  1809.             local function Slide(input)
  1810.                 local sizeX = (input.Position.X - Frame.AbsolutePosition.X) / Frame.AbsoluteSize.X
  1811.                 local value = ((Slider.Max - Slider.Min) * sizeX) + Slider.Min
  1812.                 Set(value)
  1813.             end
  1814.             --
  1815.             Library:Connection(Frame.InputBegan, function(input)
  1816.                 if input.UserInputType == Enum.UserInputType.MouseButton1 then
  1817.                     Sliding = true
  1818.                     Slide(input)
  1819.                 end
  1820.             end)
  1821.             Library:Connection(Frame.InputEnded, function(input)
  1822.                 if input.UserInputType == Enum.UserInputType.MouseButton1 then
  1823.                     Sliding = false
  1824.                 end
  1825.             end)
  1826.             Library:Connection(Accent.InputBegan, function(input)
  1827.                 if input.UserInputType == Enum.UserInputType.MouseButton1 then
  1828.                     Sliding = true
  1829.                     Slide(input)
  1830.                 end
  1831.             end)
  1832.             Library:Connection(Accent.InputEnded, function(input)
  1833.                 if input.UserInputType == Enum.UserInputType.MouseButton1 then
  1834.                     Sliding = false
  1835.                 end
  1836.             end)
  1837.             Library:Connection(game:GetService("UserInputService").InputChanged, function(input)
  1838.                 if input.UserInputType == Enum.UserInputType.MouseMovement then
  1839.                     if Sliding then
  1840.                         Slide(input)
  1841.                     end
  1842.                 end
  1843.             end)
  1844.             Library:Connection(plus.MouseButton1Click, function()
  1845.                 Set(Val + 1)
  1846.             end)
  1847.             Library:Connection(minus.MouseButton1Click, function()
  1848.                 Set(Val - 1)
  1849.             end)
  1850.             --
  1851.             function Slider:Set(Value)
  1852.                 Set(Value)
  1853.             end
  1854.             --
  1855.             Flags[Slider.Flag] = Set
  1856.  
  1857.             -- // Returning
  1858.             return Slider
  1859.         end
  1860.         --
  1861.         function Sections:List(Options)
  1862.             local Properties = Options or {};
  1863.             local Dropdown = {
  1864.                 Window = self.Window,
  1865.                 Page = self.Page,
  1866.                 Section = self,
  1867.                 Open = false,
  1868.                 Name = Properties.Title or Properties.Name or Properties.title or nil,
  1869.                 Options = (Properties.options or Properties.Options or Properties.values or Properties.Values or {
  1870.                     "1",
  1871.                     "2",
  1872.                     "3",
  1873.                 }),
  1874.                 State = (
  1875.                     Properties.state
  1876.                         or Properties.State
  1877.                         or Properties.def
  1878.                         or Properties.Def
  1879.                         or Properties.default
  1880.                         or Properties.Default
  1881.                         or nil
  1882.                 ),
  1883.                 Callback = (
  1884.                     Properties.callback
  1885.                         or Properties.Callback
  1886.                         or Properties.callBack
  1887.                         or Properties.CallBack
  1888.                         or function() end
  1889.                 ),
  1890.                 Flag = (
  1891.                     Properties.flag
  1892.                         or Properties.Flag
  1893.                         or Properties.pointer
  1894.                         or Properties.Pointer
  1895.                         or Library.NextFlag()
  1896.                 ),
  1897.                 OptionInsts = {},
  1898.             }
  1899.  
  1900.             -- // Instances
  1901.             local Holder = Instance.new('Frame', Options.Side == "Left" and Dropdown.Section.Elements.Left or Options.Side == "Right" and Dropdown.Section.Elements.Right or Dropdown.Section.Elements.Left)
  1902.             local Frame = Instance.new('TextButton', Holder)
  1903.             local Gradient = Instance.new('UIGradient', Frame)
  1904.             local Value = Instance.new('TextLabel', Frame)
  1905.             local Icon = Instance.new('TextLabel', Frame)
  1906.             local Content = Instance.new('Frame', Frame)
  1907.             local Gradient2 = Instance.new('UIGradient', Content)
  1908.             local UIListLayout = Instance.new('UIListLayout', Content)
  1909.             local Title = Instance.new('TextLabel', Holder)
  1910.             --
  1911.             do -- Inserts
  1912.                 table.insert(Library.Instances, Frame)
  1913.                 table.insert(Library.Instances, Value)
  1914.                 table.insert(Library.Instances, Icon)
  1915.                 table.insert(Library.Instances, Content)
  1916.                 table.insert(Library.Instances, Title)
  1917.                 --
  1918.                 table.insert(Dropdowns, Content)
  1919.             end
  1920.             --
  1921.             Holder.Name = "Holder"
  1922.             Holder.Size = UDim2.new(1,0,0,34)
  1923.             Holder.BackgroundColor3 = Color3.new(1,1,1)
  1924.             Holder.BackgroundTransparency = 1
  1925.             --
  1926.             Frame.Position = UDim2.new(0,15,0,16)
  1927.             Frame.Size = UDim2.new(1,-30,0,15)
  1928.             Frame.BackgroundColor3 = Color3.new(0.0784,0.0784,0.0784)
  1929.             Frame.BorderColor3 = Color3.new(0,0,0)
  1930.             Frame.Text = ""
  1931.             Frame.AutoButtonColor = false
  1932.             --
  1933.             Gradient.Name = "Gradient"
  1934.             Gradient.Color = ColorSequence.new{
  1935.                 ColorSequenceKeypoint.new(
  1936.                     0,
  1937.                     Color3.new(0.7803921699523926, 0.7490196228027344, 0.800000011920929)  
  1938.                 ),
  1939.                 ColorSequenceKeypoint.new(
  1940.                     1,
  1941.                     Color3.new(1, 1, 1)
  1942.                 )
  1943.             }
  1944.             Gradient.Rotation = -90
  1945.             --
  1946.             Value.Name = "Value"
  1947.             Value.Position = UDim2.new(0,2,0,0)
  1948.             Value.Size = UDim2.new(1,-10,1,0)
  1949.             Value.BackgroundColor3 = Color3.new(1,1,1)
  1950.             Value.BackgroundTransparency = 1
  1951.             Value.Text = ""
  1952.             Value.TextColor3 = Color3.new(0.3059,0.3059,0.3059)
  1953.             Value.FontFace = Library.UIFont
  1954.             Value.TextSize = Library.FontSize
  1955.             Value.ZIndex = 105
  1956.             Value.TextXAlignment = Enum.TextXAlignment.Left
  1957.             Value.ClipsDescendants = true
  1958.             --
  1959.             Icon.Name = "Icon"
  1960.             Icon.Position = UDim2.new(0,-4,0,0)
  1961.             Icon.Size = UDim2.new(1,0,1,0)
  1962.             Icon.BackgroundColor3 = Color3.new(1,1,1)
  1963.             Icon.BackgroundTransparency = 1
  1964.             Icon.BorderSizePixel = 0
  1965.             Icon.Text = "-"
  1966.             Icon.TextColor3 = Color3.new(0.3059,0.3059,0.3059)
  1967.             Icon.FontFace = Library.UIFont
  1968.             Icon.TextSize = Library.FontSize
  1969.             Icon.ZIndex = 105
  1970.             Icon.TextXAlignment = Enum.TextXAlignment.Right
  1971.             --
  1972.             Content.Name = "Content"
  1973.             Content.Position = UDim2.new(0,0,0,18)
  1974.             Content.Size = UDim2.new(1,0,0,0)
  1975.             Content.BackgroundColor3 = Color3.new(0.0784,0.0784,0.0784)
  1976.             Content.BorderColor3 = Color3.new(0,0,0)
  1977.             Content.Visible = false
  1978.             Content.ZIndex = 110
  1979.             Content.AutomaticSize = Enum.AutomaticSize.Y
  1980.             --
  1981.             Gradient2.Name = "Gradient2"
  1982.             Gradient2.Color = ColorSequence.new{
  1983.                 ColorSequenceKeypoint.new(
  1984.                     0,
  1985.                     Color3.new(0.7803921699523926, 0.7490196228027344, 0.800000011920929)  
  1986.                 ),
  1987.                 ColorSequenceKeypoint.new(
  1988.                     1,
  1989.                     Color3.new(1, 1, 1)
  1990.                 )
  1991.             }
  1992.             Gradient2.Rotation = -90
  1993.             --
  1994.             UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
  1995.             --
  1996.             Title.Name = "Title"
  1997.             Title.Position = UDim2.new(0,15,0,0)
  1998.             Title.Size = UDim2.new(1,0,0,10)
  1999.             Title.BackgroundColor3 = Color3.new(1,1,1)
  2000.             Title.BackgroundTransparency = 1
  2001.             Title.TextColor3 = Color3.new(0.3059,0.3059,0.3059)
  2002.             Title.FontFace = Library.UIFont
  2003.             Title.TextSize = Library.FontSize
  2004.             Title.ZIndex = 105
  2005.             Title.TextXAlignment = Enum.TextXAlignment.Left
  2006.             Title.Text = Dropdown.Name
  2007.  
  2008.             -- // Connections
  2009.             Library:Connection(Frame.MouseButton1Click, function()
  2010.                 Content.Visible = not Content.Visible
  2011.             end)
  2012.             --
  2013.             Library:Connection(game:GetService("UserInputService").InputBegan, function(Input)
  2014.                 if Content.Visible and Input.UserInputType == Enum.UserInputType.MouseButton1 then
  2015.                     if not Library:IsMouseOverFrame(Content) and not Library:IsMouseOverFrame(Holder) then
  2016.                         Content.Visible = false
  2017.                     end
  2018.                 end
  2019.             end)
  2020.             --
  2021.             local Chosen = nil
  2022.             local Count = 0
  2023.             --
  2024.             local function handleoptionclick(option, button, text)
  2025.                 button.MouseButton1Click:Connect(function()
  2026.                     for opt, tbl in next, Dropdown.OptionInsts do
  2027.                         if opt ~= option then
  2028.                             tbl.text.TextColor3 = Color3.new(0.3059,0.3059,0.3059)
  2029.                         end
  2030.                     end
  2031.                     Chosen = option
  2032.                     Value.Text = option
  2033.                     text.TextColor3 = Color3.fromRGB(255,255,255)
  2034.                     Library.Flags[Dropdown.Flag] = option
  2035.                     Dropdown.Callback(option)
  2036.                 end)
  2037.             end
  2038.             --
  2039.             local function createoptions(tbl)
  2040.                 for _, option in next, tbl do
  2041.                     Dropdown.OptionInsts[option] = {}
  2042.                     local Option = Instance.new('TextButton', Content)
  2043.                     local OptionName = Instance.new('TextLabel', Option)
  2044.                     Option.Name = "Option"
  2045.                     Option.Size = UDim2.new(1,0,0,15)
  2046.                     Option.BackgroundColor3 = Color3.new(1,1,1)
  2047.                     Option.BackgroundTransparency = 1
  2048.                     Option.BorderSizePixel = 0
  2049.                     Option.BorderColor3 = Color3.new(0,0,0)
  2050.                     Option.Text = ""
  2051.                     Option.TextColor3 = Color3.new(0,0,0)
  2052.                     Option.AutoButtonColor = false
  2053.                     Option.Font = Enum.Font.SourceSans
  2054.                     Option.TextSize = 14
  2055.                     Dropdown.OptionInsts[option].button = Option
  2056.                     Option.ZIndex = 111
  2057.                     --
  2058.                     OptionName.Name = "OptionName"
  2059.                     OptionName.Position = UDim2.new(0,2,0,0)
  2060.                     OptionName.Size = UDim2.new(1,0,1,0)
  2061.                     OptionName.BackgroundColor3 = Color3.new(1,1,1)
  2062.                     OptionName.BackgroundTransparency = 1
  2063.                     OptionName.BorderSizePixel = 0
  2064.                     OptionName.BorderColor3 = Color3.new(0,0,0)
  2065.                     OptionName.Text = option
  2066.                     OptionName.TextColor3 = Color3.new(0.3059,0.3059,0.3059)
  2067.                     OptionName.FontFace = Library.UIFont
  2068.                     OptionName.TextSize = Library.FontSize
  2069.                     OptionName.TextXAlignment = Enum.TextXAlignment.Left
  2070.                     Dropdown.OptionInsts[option].text = OptionName
  2071.                     OptionName.ZIndex = 111
  2072.  
  2073.                     handleoptionclick(option, Option, OptionName)
  2074.                 end
  2075.             end
  2076.             createoptions(Dropdown.Options)
  2077.             --
  2078.             function Dropdown:Set(option)
  2079.                 for opt, tbl in next, Dropdown.OptionInsts do
  2080.                     if opt ~= option then
  2081.                         tbl.text.TextColor3 = Color3.new(0.3059,0.3059,0.3059)
  2082.                     end
  2083.                 end
  2084.                 if table.find(Dropdown.Options, option) then
  2085.                     Chosen = option
  2086.                     Value.Text = option
  2087.                     Dropdown.OptionInsts[option].text.TextColor3 = Color3.fromRGB(255,255,255)
  2088.                     Library.Flags[Dropdown.Flag] = Chosen
  2089.                     Dropdown.Callback(Chosen)
  2090.                 else
  2091.                     Chosen = nil
  2092.                     Value.Text = ""
  2093.                     Library.Flags[Dropdown.Flag] = Chosen
  2094.                     Dropdown.Callback(Chosen)
  2095.                 end
  2096.             end
  2097.             --
  2098.             function Dropdown:Refresh(tbl)
  2099.                 content = table.clone(tbl)
  2100.                 --count = 0
  2101.                 for _, opt in next, Dropdown.OptionInsts do
  2102.                     coroutine.wrap(function()
  2103.                         opt.button:Destroy()
  2104.                     end)()
  2105.                 end
  2106.                 table.clear(Dropdown.OptionInsts)
  2107.  
  2108.                 createoptions(tbl)
  2109.                 Chosen = nil
  2110.  
  2111.                 Library.Flags[Dropdown.Flag] = Chosen
  2112.                 Dropdown.Callback(Chosen)
  2113.             end
  2114.  
  2115.             -- // Returning
  2116.             Flags[Dropdown.Flag] = Dropdown
  2117.             Dropdown:Set(Dropdown.State)
  2118.             return Dropdown
  2119.         end
  2120.         --
  2121.         function Sections:Multibox(Options)
  2122.             local Properties = Options or {};
  2123.             local Dropdown = {
  2124.                 Window = self.Window,
  2125.                 Page = self.Page,
  2126.                 Section = self,
  2127.                 Open = false,
  2128.                 Name = Properties.Title or Properties.Name or Properties.title or nil,
  2129.                 Options = (Properties.options or Properties.Options or Properties.values or Properties.Values or {
  2130.                     "1",
  2131.                     "2",
  2132.                     "3",
  2133.                 }),
  2134.                 State = (
  2135.                     Properties.state
  2136.                         or Properties.State
  2137.                         or Properties.def
  2138.                         or Properties.Def
  2139.                         or Properties.default
  2140.                         or Properties.Default
  2141.                         or nil
  2142.                 ),
  2143.                 Max = (Properties.max or Properties.Max or Properties.maximum or Properties.Maximum or 1),
  2144.                 Callback = (
  2145.                     Properties.callback
  2146.                         or Properties.Callback
  2147.                         or Properties.callBack
  2148.                         or Properties.CallBack
  2149.                         or function() end
  2150.                 ),
  2151.                 Flag = (
  2152.                     Properties.flag
  2153.                         or Properties.Flag
  2154.                         or Properties.pointer
  2155.                         or Properties.Pointer
  2156.                         or Library.NextFlag()
  2157.                 ),
  2158.                 OptionInsts = {},
  2159.             }
  2160.  
  2161.             -- // Instances
  2162.             local Holder = Instance.new('Frame', Options.Side == "Left" and Dropdown.Section.Elements.Left or Options.Side == "Right" and Dropdown.Section.Elements.Right or Dropdown.Section.Elements.Left)
  2163.             local Frame = Instance.new('TextButton', Holder)
  2164.             local Gradient = Instance.new('UIGradient', Frame)
  2165.             local Value = Instance.new('TextLabel', Frame)
  2166.             local Icon = Instance.new('TextLabel', Frame)
  2167.             local Content = Instance.new('Frame', Frame)
  2168.             local Gradient2 = Instance.new('UIGradient', Content)
  2169.             local UIListLayout = Instance.new('UIListLayout', Content)
  2170.             local Title = Instance.new('TextLabel', Holder)
  2171.             --
  2172.             do -- Inserts
  2173.                 table.insert(Library.Instances, Frame)
  2174.                 table.insert(Library.Instances, Value)
  2175.                 table.insert(Library.Instances, Icon)
  2176.                 table.insert(Library.Instances, Content)
  2177.                 table.insert(Library.Instances, Title)
  2178.                 --
  2179.                 table.insert(Dropdowns, Content)
  2180.             end
  2181.             --
  2182.             Holder.Name = "Holder"
  2183.             Holder.Size = UDim2.new(1,0,0,34)
  2184.             Holder.BackgroundColor3 = Color3.new(1,1,1)
  2185.             Holder.BackgroundTransparency = 1
  2186.             --
  2187.             Frame.Position = UDim2.new(0,15,0,16)
  2188.             Frame.Size = UDim2.new(1,-30,0,15)
  2189.             Frame.BackgroundColor3 = Color3.new(0.0784,0.0784,0.0784)
  2190.             Frame.BorderColor3 = Color3.new(0,0,0)
  2191.             Frame.Text = ""
  2192.             Frame.AutoButtonColor = false
  2193.             --
  2194.             Gradient.Name = "Gradient"
  2195.             Gradient.Color = ColorSequence.new{
  2196.                 ColorSequenceKeypoint.new(
  2197.                     0,
  2198.                     Color3.new(0.7803921699523926, 0.7490196228027344, 0.800000011920929)  
  2199.                 ),
  2200.                 ColorSequenceKeypoint.new(
  2201.                     1,
  2202.                     Color3.new(1, 1, 1)
  2203.                 )
  2204.             }
  2205.             Gradient.Rotation = -90
  2206.             --
  2207.             Value.Name = "Value"
  2208.             Value.Position = UDim2.new(0,2,0,0)
  2209.             Value.Size = UDim2.new(1,-10,1,0)
  2210.             Value.BackgroundColor3 = Color3.new(1,1,1)
  2211.             Value.BackgroundTransparency = 1
  2212.             Value.Text = ""
  2213.             Value.TextColor3 = Color3.new(0.3059,0.3059,0.3059)
  2214.             Value.FontFace = Library.UIFont
  2215.             Value.TextTruncate = Enum.TextTruncate.SplitWord
  2216.             Value.TextSize = Library.FontSize
  2217.             Value.ZIndex = 105
  2218.             Value.TextXAlignment = Enum.TextXAlignment.Left
  2219.             Value.ClipsDescendants = true
  2220.             --
  2221.             Icon.Name = "Icon"
  2222.             Icon.Position = UDim2.new(0,-4,0,0)
  2223.             Icon.Size = UDim2.new(1,0,1,0)
  2224.             Icon.BackgroundColor3 = Color3.new(1,1,1)
  2225.             Icon.BackgroundTransparency = 1
  2226.             Icon.BorderSizePixel = 0
  2227.             Icon.Text = "-"
  2228.             Icon.TextColor3 = Color3.new(0.3059,0.3059,0.3059)
  2229.             Icon.FontFace = Library.UIFont
  2230.             Icon.TextSize = Library.FontSize
  2231.             Icon.ZIndex = 105
  2232.             Icon.TextXAlignment = Enum.TextXAlignment.Right
  2233.             --
  2234.             Content.Name = "Content"
  2235.             Content.Position = UDim2.new(0,0,0,18)
  2236.             Content.Size = UDim2.new(1,0,0,0)
  2237.             Content.BackgroundColor3 = Color3.new(0.0784,0.0784,0.0784)
  2238.             Content.BorderColor3 = Color3.new(0,0,0)
  2239.             Content.Visible = false
  2240.             Content.ZIndex = 110
  2241.             Content.AutomaticSize = Enum.AutomaticSize.Y
  2242.             --
  2243.             Gradient2.Name = "Gradient2"
  2244.             Gradient2.Color = ColorSequence.new{
  2245.                 ColorSequenceKeypoint.new(
  2246.                     0,
  2247.                     Color3.new(0.7803921699523926, 0.7490196228027344, 0.800000011920929)  
  2248.                 ),
  2249.                 ColorSequenceKeypoint.new(
  2250.                     1,
  2251.                     Color3.new(1, 1, 1)
  2252.                 )
  2253.             }
  2254.             Gradient2.Rotation = -90
  2255.             --
  2256.             UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
  2257.             --
  2258.             Title.Name = "Title"
  2259.             Title.Position = UDim2.new(0,15,0,0)
  2260.             Title.Size = UDim2.new(1,0,0,10)
  2261.             Title.BackgroundColor3 = Color3.new(1,1,1)
  2262.             Title.BackgroundTransparency = 1
  2263.             Title.TextColor3 = Color3.new(0.3059,0.3059,0.3059)
  2264.             Title.FontFace = Library.UIFont
  2265.             Title.TextSize = Library.FontSize
  2266.             Title.ZIndex = 105
  2267.             Title.TextXAlignment = Enum.TextXAlignment.Left
  2268.             Title.Text = Dropdown.Name
  2269.  
  2270.             -- // Connections
  2271.             Library:Connection(Frame.MouseButton1Click, function()
  2272.                 Content.Visible = not Content.Visible
  2273.             end)
  2274.             --
  2275.             Library:Connection(game:GetService("UserInputService").InputBegan, function(Input)
  2276.                 if Content.Visible and Input.UserInputType == Enum.UserInputType.MouseButton1 then
  2277.                     if not Library:IsMouseOverFrame(Content) and not Library:IsMouseOverFrame(Holder) then
  2278.                         Content.Visible = false
  2279.                     end
  2280.                 end
  2281.             end)
  2282.             --
  2283.             local chosen = Dropdown.Max and {} or nil
  2284.             local optioninstances = {}
  2285.             local Count = 0
  2286.             --
  2287.             local function handleoptionclick(option, button, text)
  2288.                 button.MouseButton1Click:Connect(function()
  2289.                     if Dropdown.Max then
  2290.                         if table.find(chosen, option) then
  2291.                             table.remove(chosen, table.find(chosen, option))
  2292.  
  2293.                             local textchosen = {}
  2294.                             local cutobject = false
  2295.  
  2296.                             for _, opt in next, chosen do
  2297.                                 table.insert(textchosen, opt)
  2298.                             end
  2299.  
  2300.                             Value.Text = #chosen == 0 and "" or table.concat(textchosen, ", ") .. (cutobject and ", ..." or "")
  2301.  
  2302.                             text.TextColor3 = Color3.new(0.3059,0.3059,0.3059)
  2303.  
  2304.                             Library.Flags[Dropdown.Flag] = chosen
  2305.                             Dropdown.Callback(chosen)
  2306.                         else
  2307.                             if #chosen == Dropdown.Max then
  2308.                                 Dropdown.OptionInsts[chosen[1]].text.TextColor3 = Color3.new(0.3059,0.3059,0.3059)
  2309.  
  2310.                                 table.remove(chosen, 1)
  2311.                             end
  2312.  
  2313.                             table.insert(chosen, option)
  2314.  
  2315.                             local textchosen = {}
  2316.                             local cutobject = false
  2317.  
  2318.                             for _, opt in next, chosen do
  2319.                                 table.insert(textchosen, opt)
  2320.                             end
  2321.  
  2322.                             Value.Text = #chosen == 0 and "" or table.concat(textchosen, ", ") .. (cutobject and ", ..." or "")
  2323.  
  2324.                             text.TextColor3 = Color3.fromRGB(255,255,255)
  2325.  
  2326.                             Library.Flags[Dropdown.Flag] = chosen
  2327.                             Dropdown.Callback(chosen)
  2328.                         end
  2329.                     end
  2330.                 end)
  2331.             end
  2332.             --
  2333.             local function createoptions(tbl)
  2334.                 for _, option in next, tbl do
  2335.                     Dropdown.OptionInsts[option] = {}
  2336.                     local Option = Instance.new('TextButton', Content)
  2337.                     local OptionName = Instance.new('TextLabel', Option)
  2338.                     Option.Name = "Option"
  2339.                     Option.Size = UDim2.new(1,0,0,15)
  2340.                     Option.BackgroundColor3 = Color3.new(1,1,1)
  2341.                     Option.BackgroundTransparency = 1
  2342.                     Option.BorderSizePixel = 0
  2343.                     Option.BorderColor3 = Color3.new(0,0,0)
  2344.                     Option.Text = ""
  2345.                     Option.TextColor3 = Color3.new(0,0,0)
  2346.                     Option.AutoButtonColor = false
  2347.                     Option.Font = Enum.Font.SourceSans
  2348.                     Option.TextSize = 14
  2349.                     Dropdown.OptionInsts[option].button = Option
  2350.                     Option.ZIndex = 111
  2351.                     --
  2352.                     OptionName.Name = "OptionName"
  2353.                     OptionName.Position = UDim2.new(0,2,0,0)
  2354.                     OptionName.Size = UDim2.new(1,0,1,0)
  2355.                     OptionName.BackgroundColor3 = Color3.new(1,1,1)
  2356.                     OptionName.BackgroundTransparency = 1
  2357.                     OptionName.BorderSizePixel = 0
  2358.                     OptionName.BorderColor3 = Color3.new(0,0,0)
  2359.                     OptionName.Text = option
  2360.                     OptionName.TextColor3 = Color3.new(0.3059,0.3059,0.3059)
  2361.                     OptionName.FontFace = Library.UIFont
  2362.                     OptionName.TextSize = Library.FontSize
  2363.                     OptionName.TextXAlignment = Enum.TextXAlignment.Left
  2364.                     Dropdown.OptionInsts[option].text = OptionName
  2365.                     OptionName.ZIndex = 111
  2366.  
  2367.                     handleoptionclick(option, Option, OptionName)
  2368.                 end
  2369.             end
  2370.             createoptions(Dropdown.Options)
  2371.             --
  2372.             local set
  2373.             set = function(option)
  2374.                 if Dropdown.Max then
  2375.                     table.clear(chosen)
  2376.                     option = type(option) == "table" and option or {}
  2377.  
  2378.                     for opt, tbl in next, Dropdown.OptionInsts do
  2379.                         if not table.find(option, opt) then
  2380.                             --tbl.button.Transparency = 0
  2381.                             tbl.text.TextColor3 = Color3.new(0.3059,0.3059,0.3059)
  2382.                         end
  2383.                     end
  2384.  
  2385.                     for i, opt in next, option do
  2386.                         if table.find(Dropdown.Options, opt) and #chosen < Dropdown.Max then
  2387.                             table.insert(chosen, opt)
  2388.                             Dropdown.OptionInsts[opt].text.TextColor3 = Color3.fromRGB(255,255,255)
  2389.                         end
  2390.                     end
  2391.  
  2392.                     local textchosen = {}
  2393.                     local cutobject = false
  2394.  
  2395.                     for _, opt in next, chosen do
  2396.                         table.insert(textchosen, opt)
  2397.                     end
  2398.  
  2399.                     Value.Text = #chosen == 0 and "" or table.concat(textchosen, ", ") .. (cutobject and ", ..." or "")
  2400.  
  2401.                     Library.Flags[Dropdown.Flag] = chosen
  2402.                     Dropdown.Callback(chosen)
  2403.                 end
  2404.             end
  2405.             function Dropdown:Set(option)
  2406.                 set(option)
  2407.             end
  2408.             --
  2409.             function Dropdown:Refresh(tbl)
  2410.                 content = table.clone(tbl)
  2411.                 --count = 0
  2412.                 for _, opt in next, Dropdown.OptionInsts do
  2413.                     coroutine.wrap(function()
  2414.                         opt.button:Destroy()
  2415.                     end)()
  2416.                 end
  2417.                 table.clear(Dropdown.OptionInsts)
  2418.  
  2419.                 createoptions(tbl)
  2420.  
  2421.                 if Dropdown.Max then
  2422.                     table.clear(chosen)
  2423.                 else
  2424.                     chosen = nil
  2425.                 end
  2426.  
  2427.                 Library.Flags[Dropdown.Flag] = chosen
  2428.                 Dropdown.Callback(chosen)
  2429.             end
  2430.  
  2431.             -- // Returning
  2432.             Flags[Dropdown.Flag] = set
  2433.             Dropdown:Set(Dropdown.State)
  2434.             return Dropdown
  2435.         end
  2436.         --
  2437.         function Sections:Keybind(Options)
  2438.             local Properties = Options or {};
  2439.             local Keybind = {
  2440.                 Section = self,
  2441.                 Name = Properties.Title or Properties.Name or Properties.title or "Keybind",
  2442.                 State = (
  2443.                     Properties.state
  2444.                         or Properties.State
  2445.                         or Properties.def
  2446.                         or Properties.Def
  2447.                         or Properties.default
  2448.                         or Properties.Default
  2449.                         or nil
  2450.                 ),
  2451.                 Mode = (Properties.mode or Properties.Mode or "Toggle"),
  2452.                 Callback = (
  2453.                     Properties.callback
  2454.                         or Properties.Callback
  2455.                         or Properties.callBack
  2456.                         or Properties.CallBack
  2457.                         or function() end
  2458.                 ),
  2459.                 Flag = (
  2460.                     Properties.flag
  2461.                         or Properties.Flag
  2462.                         or Properties.pointer
  2463.                         or Properties.Pointer
  2464.                         or Library.NextFlag()
  2465.                 ),
  2466.                 Binding = nil,
  2467.                 Connection = nil,
  2468.             }
  2469.             local Key
  2470.             local State = false
  2471.             local Cycle = Keybind.Mode == "Hold" and 1 or Keybind.Mode == "Toggle" and 2 or 3
  2472.  
  2473.             -- // Instances
  2474.             local Holder = Instance.new('TextButton', Options.Side == "Left" and Keybind.Section.Elements.Left or Options.Side == "Right" and Keybind.Section.Elements.Right or Keybind.Section.Elements.Left)
  2475.             local Title = Instance.new('TextLabel', Holder)
  2476.             local Value = Instance.new('TextLabel', Holder)
  2477.             local Mode = Instance.new('TextLabel', Holder)
  2478.             --
  2479.             do -- Inserts
  2480.                 table.insert(Library.Instances, Title)
  2481.                 table.insert(Library.Instances, Value)
  2482.                 table.insert(Library.Instances, Mode)
  2483.             end
  2484.             --
  2485.             Holder.Name = "Holder"
  2486.             Holder.Size = UDim2.new(1,0,0,10)
  2487.             Holder.BackgroundColor3 = Color3.new(1,1,1)
  2488.             Holder.BackgroundTransparency = 1
  2489.             Holder.Text = ""
  2490.             Holder.TextColor3 = Color3.new(0,0,0)
  2491.             Holder.AutoButtonColor = false
  2492.             Holder.Font = Enum.Font.SourceSans
  2493.             Holder.TextSize = 14
  2494.             --
  2495.             Title.Name = "Title"
  2496.             Title.Position = UDim2.new(0,15,0,-1)
  2497.             Title.Size = UDim2.new(1,-30,1,0)
  2498.             Title.BackgroundColor3 = Color3.new(1,1,1)
  2499.             Title.BackgroundTransparency = 1
  2500.             Title.TextColor3 = Color3.new(0.3059,0.3059,0.3059)
  2501.             Title.FontFace = Library.UIFont
  2502.             Title.TextSize = Library.FontSize
  2503.             Title.ZIndex = 105
  2504.             Title.TextXAlignment = Enum.TextXAlignment.Left
  2505.             Title.Text = Keybind.Name
  2506.             --
  2507.             Value.Name = "Value"
  2508.             Value.Position = UDim2.new(0,15,0,-1)
  2509.             Value.Size = UDim2.new(1,-30,1,0)
  2510.             Value.BackgroundColor3 = Color3.new(1,1,1)
  2511.             Value.BackgroundTransparency = 1
  2512.             Value.Text = "[-]"
  2513.             Value.TextColor3 = Color3.new(0.3059,0.3059,0.3059)
  2514.             Value.FontFace = Library.UIFont
  2515.             Value.TextSize = Library.FontSize
  2516.             Value.ZIndex = 105
  2517.             Value.TextXAlignment = Enum.TextXAlignment.Right
  2518.             --
  2519.             Mode.Name = "Mode"
  2520.             Mode.Position = UDim2.new(0,Title.TextBounds.X + 20,0,-1)
  2521.             Mode.Size = UDim2.new(1,-30,1,0)
  2522.             Mode.BackgroundColor3 = Color3.new(1,1,1)
  2523.             Mode.BackgroundTransparency = 1
  2524.             Mode.Text = Keybind.Mode == "Hold" and "[H]" or Keybind.Mode == "Toggle" and "[T]" or "[A]"
  2525.             Mode.TextColor3 = Color3.new(1,1,1)
  2526.             Mode.FontFace = Library.UIFont
  2527.             Mode.TextSize = Library.FontSize
  2528.             Mode.ZIndex = 105
  2529.             Mode.TextXAlignment = Enum.TextXAlignment.Left
  2530.  
  2531.             -- // Connections
  2532.             local function set(newkey)
  2533.                 if string.find(tostring(newkey), "Enum") then
  2534.                     if Keybind.Connection then
  2535.                         Keybind.Connection:Disconnect()
  2536.                         if Keybind.Flag then
  2537.                             Library.Flags[Keybind.Flag] = false
  2538.                         end
  2539.                         Keybind.Callback(false)
  2540.                     end
  2541.                     if tostring(newkey):find("Enum.KeyCode.") then
  2542.                         newkey = Enum.KeyCode[tostring(newkey):gsub("Enum.KeyCode.", "")]
  2543.                     elseif tostring(newkey):find("Enum.UserInputType.") then
  2544.                         newkey = Enum.UserInputType[tostring(newkey):gsub("Enum.UserInputType.", "")]
  2545.                     end
  2546.                     if newkey == Enum.KeyCode.Backspace then
  2547.                         Key = nil
  2548.  
  2549.                         Value.Text = "[-]"
  2550.                     elseif newkey ~= nil then
  2551.                         Key = newkey
  2552.  
  2553.                         local text = (Library.Keys[newkey] or tostring(newkey):gsub("Enum.KeyCode.", ""))
  2554.  
  2555.                         Value.Text = "[" .. text .. "]"
  2556.                     end
  2557.  
  2558.                     Library.Flags[Keybind.Flag .. "_KEY"] = newkey
  2559.                 elseif table.find({ "Always", "Toggle", "Hold" }, newkey) then
  2560.                     Library.Flags[Keybind.Flag .. "_KEY STATE"] = newkey
  2561.                     Keybind.Mode = newkey
  2562.                     Mode.Text = Keybind.Mode == "Hold" and "[H]" or Keybind.Mode == "Toggle" and "[T]" or "[A]"
  2563.                     Cycle = Keybind.Mode == "Hold" and 1 or Keybind.Mode == "Toggle" and 2 or 3
  2564.                     if Keybind.Mode == "Always" then
  2565.                         State = true
  2566.                         if Keybind.Flag then
  2567.                             Library.Flags[Keybind.Flag] = State
  2568.                         end
  2569.                         Keybind.Callback(true)
  2570.                     end
  2571.                 else
  2572.                     State = newkey
  2573.                     if Keybind.Flag then
  2574.                         Library.Flags[Keybind.Flag] = newkey
  2575.                     end
  2576.                     Keybind.Callback(newkey)
  2577.                 end
  2578.             end
  2579.             --
  2580.             set(Keybind.State)
  2581.             set(Keybind.Mode)
  2582.             Holder.MouseButton1Click:Connect(function()
  2583.                 if not Keybind.Binding then
  2584.  
  2585.                     Value.Text = "[-]"
  2586.  
  2587.                     Keybind.Binding = Library:Connection(
  2588.                         game:GetService("UserInputService").InputBegan,
  2589.                         function(input, gpe)
  2590.                             set(
  2591.                                 input.UserInputType == Enum.UserInputType.Keyboard and input.KeyCode
  2592.                                     or input.UserInputType
  2593.                             )
  2594.                             Library:Disconnect(Keybind.Binding)
  2595.                             task.wait()
  2596.                             Keybind.Binding = nil
  2597.                         end
  2598.                     )
  2599.                 end
  2600.             end)
  2601.             --
  2602.             Library:Connection(game:GetService("UserInputService").InputBegan, function(inp)
  2603.                 if (inp.KeyCode == Key or inp.UserInputType == Key) and not Keybind.Binding then
  2604.                     if Keybind.Mode == "Hold" then
  2605.                         if Keybind.Flag then
  2606.                             Library.Flags[Keybind.Flag] = true
  2607.                         end
  2608.                         Keybind.Connection = Library:Connection(game:GetService("RunService").RenderStepped, function()
  2609.                             if Keybind.Callback then
  2610.                                 Keybind.Callback(true)
  2611.                             end
  2612.                         end)
  2613.                     elseif Keybind.Mode == "Toggle" then
  2614.                         State = not State
  2615.                         if Keybind.Flag then
  2616.                             Library.Flags[Keybind.Flag] = State
  2617.                         end
  2618.                         Keybind.Callback(State)
  2619.                     end
  2620.                 end
  2621.             end)
  2622.             --
  2623.             Library:Connection(game:GetService("UserInputService").InputEnded, function(inp)
  2624.                 if Keybind.Mode == "Hold" then
  2625.                     if Key ~= "" or Key ~= nil then
  2626.                         if inp.KeyCode == Key or inp.UserInputType == Key then
  2627.                             if Keybind.Connection then
  2628.                                 Keybind.Connection:Disconnect()
  2629.                                 if Keybind.Flag then
  2630.                                     Library.Flags[Keybind.Flag] = false
  2631.                                 end
  2632.                                 if Keybind.Callback then
  2633.                                     Keybind.Callback(false)
  2634.                                 end
  2635.                             end
  2636.                         end
  2637.                     end
  2638.                 end
  2639.             end)
  2640.             --
  2641.             Holder.MouseButton2Click:Connect(function()
  2642.                 Cycle += 1
  2643.                 if Cycle > 3 then
  2644.                     Cycle = 1
  2645.                     set("Hold")
  2646.                     Mode.Text = "[H]"
  2647.                 elseif Cycle == 2 then
  2648.                     set("Toggle")
  2649.                     Mode.Text = "[T]"
  2650.                 elseif Cycle == 3 then
  2651.                     set("Always")
  2652.                     Mode.Text = "[A]"
  2653.                 elseif Cycle == 1 then
  2654.                     set("Hold")
  2655.                     Mode.Text = "[H]"
  2656.                 end
  2657.             end)
  2658.             --
  2659.             Library.Flags[Keybind.Flag .. "_KEY"] = Keybind.State
  2660.             Library.Flags[Keybind.Flag .. "_KEY STATE"] = Keybind.Mode
  2661.             Flags[Keybind.Flag] = set
  2662.             Flags[Keybind.Flag .. "_KEY"] = set
  2663.             Flags[Keybind.Flag .. "_KEY STATE"] = set
  2664.             --
  2665.             function Keybind:Set(key)
  2666.                 set(key)
  2667.             end
  2668.             local function refresh()
  2669.                 wait(0.001)
  2670.                 Mode.Position = UDim2.new(0,Title.TextBounds.X + 20,0,-1)
  2671.             end
  2672.             -- // Return
  2673.             refresh()
  2674.             return Keybind
  2675.         end
  2676.         --
  2677.         function Sections:Textbox(Options)
  2678.             local Properties = Options or {}
  2679.             local Textbox = {
  2680.                 Window = self.Window,
  2681.                 Page = self.Page,
  2682.                 Section = self,
  2683.                 Placeholder = (
  2684.                     Properties.placeholder
  2685.                         or Properties.Placeholder
  2686.                         or Properties.holder
  2687.                         or Properties.Holder
  2688.                         or ""
  2689.                 ),
  2690.                 State = (
  2691.                     Properties.state
  2692.                         or Properties.State
  2693.                         or Properties.def
  2694.                         or Properties.Def
  2695.                         or Properties.default
  2696.                         or Properties.Default
  2697.                         or ""
  2698.                 ),
  2699.                 Callback = (
  2700.                     Properties.callback
  2701.                         or Properties.Callback
  2702.                         or Properties.callBack
  2703.                         or Properties.CallBack
  2704.                         or function() end
  2705.                 ),
  2706.                 Flag = (
  2707.                     Properties.flag
  2708.                         or Properties.Flag
  2709.                         or Properties.pointer
  2710.                         or Properties.Pointer
  2711.                         or Library.NextFlag()
  2712.                 ),
  2713.             }
  2714.  
  2715.             -- // Instances
  2716.             local Holder = Instance.new('Frame', Options.Side == "Left" and Textbox.Section.Elements.Left or Options.Side == "Right" and Textbox.Section.Elements.Right or Textbox.Section.Elements.Left)
  2717.             local TextFrame = Instance.new('Frame', Holder)
  2718.             local Gradient = Instance.new('UIGradient', TextFrame)
  2719.             local TextBox = Instance.new('TextBox', TextFrame)
  2720.             --
  2721.             do -- Inserts
  2722.                 table.insert(Library.Instances, TextFrame)
  2723.                 table.insert(Library.Instances, TextBox)
  2724.             end
  2725.             --
  2726.             Holder.Name = "Holder"
  2727.             Holder.Size = UDim2.new(1,0,0,15)
  2728.             Holder.BackgroundColor3 = Color3.new(1,1,1)
  2729.             Holder.BackgroundTransparency = 1
  2730.             Holder.BorderSizePixel = 0
  2731.             Holder.BorderColor3 = Color3.new(0,0,0)
  2732.             --
  2733.             TextFrame.Name = "TextFrame"
  2734.             TextFrame.Position = UDim2.new(0,15,0,0)
  2735.             TextFrame.Size = UDim2.new(1,-30,1,0)
  2736.             TextFrame.BackgroundColor3 = Color3.new(0.0784,0.0784,0.0784)
  2737.             TextFrame.BorderColor3 = Color3.new(0,0,0)
  2738.             --
  2739.             Gradient.Name = "Gradient"
  2740.             Gradient.Color = ColorSequence.new{
  2741.                 ColorSequenceKeypoint.new(
  2742.                     0,
  2743.                     Color3.new(0.7803921699523926, 0.7490196228027344, 0.800000011920929)  
  2744.                 ),
  2745.                 ColorSequenceKeypoint.new(
  2746.                     1,
  2747.                     Color3.new(1, 1, 1)
  2748.                 )
  2749.             }
  2750.             Gradient.Rotation = -90
  2751.             --
  2752.             TextBox.Size = UDim2.new(1,0,1,0)
  2753.             TextBox.BackgroundColor3 = Color3.new(1,1,1)
  2754.             TextBox.BackgroundTransparency = 1
  2755.             TextBox.BorderSizePixel = 0
  2756.             TextBox.BorderColor3 = Color3.new(0,0,0)
  2757.             TextBox.Text = Textbox.State
  2758.             TextBox.TextColor3 = Color3.new(0.3059,0.3059,0.3059)
  2759.             TextBox.FontFace = Library.UIFont
  2760.             TextBox.TextSize = Library.FontSize
  2761.             TextBox.PlaceholderText = Textbox.Placeholder
  2762.             TextBox.PlaceholderColor3 = Color3.new(0.3059,0.3059,0.3059)
  2763.             TextBox.ClearTextOnFocus = false
  2764.             TextBox.TextWrapped = true
  2765.  
  2766.             -- // Connections
  2767.             TextBox.FocusLost:Connect(function()
  2768.                 Textbox.Callback(TextBox.Text)
  2769.                 Library.Flags[Textbox.Flag] = TextBox.Text
  2770.             end)
  2771.             --
  2772.             local function set(str)
  2773.                 TextBox.Text = str
  2774.                 Library.Flags[Textbox.Flag] = str
  2775.                 Textbox.Callback(str)
  2776.             end
  2777.  
  2778.             -- // Return
  2779.             Flags[Textbox.Flag] = set
  2780.             return Textbox
  2781.         end
  2782.         --
  2783.         function Sections:Button(Options)
  2784.             local Properties = Options or {}
  2785.             local Button = {
  2786.                 Window = self.Window,
  2787.                 Page = self.Page,
  2788.                 Section = self,
  2789.                 Name = Properties.Title or Properties.Name or Properties.title or "button",
  2790.                 Callback = (
  2791.                     Properties.callback
  2792.                         or Properties.Callback
  2793.                         or Properties.callBack
  2794.                         or Properties.CallBack
  2795.                         or function() end
  2796.                 ),
  2797.             }
  2798.  
  2799.             -- // Instances
  2800.             local Holder = Instance.new('Frame', Options.Side == "Left" and Button.Section.Elements.Left or Options.Side == "Right" and Button.Section.Elements.Right or Button.Section.Elements.Left)
  2801.             local TextFrame = Instance.new('Frame', Holder)
  2802.             local Gradient = Instance.new('UIGradient', TextFrame)
  2803.             local Textbutton = Instance.new('TextButton', TextFrame)
  2804.             --
  2805.             do -- Inserts
  2806.                 table.insert(Library.Instances, TextFrame)
  2807.                 table.insert(Library.Instances, Textbutton)
  2808.             end
  2809.             --
  2810.             Holder.Name = "Holder"
  2811.             Holder.Size = UDim2.new(1,0,0,15)
  2812.             Holder.BackgroundColor3 = Color3.new(1,1,1)
  2813.             Holder.BackgroundTransparency = 1
  2814.             Holder.BorderSizePixel = 0
  2815.             Holder.BorderColor3 = Color3.new(0,0,0)
  2816.             --
  2817.             TextFrame.Name = "TextFrame"
  2818.             TextFrame.Position = UDim2.new(0,15,0,0)
  2819.             TextFrame.Size = UDim2.new(1,-30,1,0)
  2820.             TextFrame.BackgroundColor3 = Color3.new(0.0784,0.0784,0.0784)
  2821.             TextFrame.BorderColor3 = Color3.new(0,0,0)
  2822.             --
  2823.             Gradient.Name = "Gradient"
  2824.             Gradient.Color = ColorSequence.new{
  2825.                 ColorSequenceKeypoint.new(
  2826.                     0,
  2827.                     Color3.new(0.7803921699523926, 0.7490196228027344, 0.800000011920929)  
  2828.                 ),
  2829.                 ColorSequenceKeypoint.new(
  2830.                     1,
  2831.                     Color3.new(1, 1, 1)
  2832.                 )
  2833.             }
  2834.             Gradient.Rotation = -90
  2835.             --
  2836.             Textbutton.Name = "textbutton"
  2837.             Textbutton.Size = UDim2.new(1,0,1,0)
  2838.             Textbutton.BackgroundColor3 = Color3.new(1,1,1)
  2839.             Textbutton.BackgroundTransparency = 1
  2840.             Textbutton.BorderSizePixel = 0
  2841.             Textbutton.BorderColor3 = Color3.new(0,0,0)
  2842.             Textbutton.Text = Button.Name
  2843.             Textbutton.TextColor3 = Color3.new(0.3059,0.3059,0.3059)
  2844.             Textbutton.FontFace = Library.UIFont
  2845.             Textbutton.TextSize = Library.FontSize
  2846.  
  2847.             -- // Connections
  2848.             Textbutton.MouseButton1Click:Connect(function()
  2849.                 Button.Callback()
  2850.             end)
  2851.             --
  2852.             Textbutton.MouseButton1Down:Connect(function()
  2853.                 Textbutton.TextColor3 = Color3.fromRGB(255,255,255)
  2854.             end)
  2855.             --
  2856.             Textbutton.MouseButton1Up:Connect(function()
  2857.                 Textbutton.TextColor3 = Color3.new(0.3059,0.3059,0.3059)
  2858.             end)
  2859.  
  2860.             -- // Return
  2861.             return Button
  2862.         end
  2863.         --
  2864.         function Sections:Colorpicker(Options)
  2865.             local Properties = Options or {}
  2866.             local Colorpicker = {
  2867.                 Window = self.Window,
  2868.                 Page = self.Page,
  2869.                 Section = self,
  2870.                 Name = (Properties.title or Properties.Title or Properties.Name or "Colorpicker"),
  2871.                 State = (
  2872.                     Properties.state
  2873.                         or Properties.State
  2874.                         or Properties.def
  2875.                         or Properties.Def
  2876.                         or Properties.default
  2877.                         or Properties.Default
  2878.                         or Color3.fromRGB(255, 0, 0)
  2879.                 ),
  2880.                 Alpha = (
  2881.                     Properties.alpha
  2882.                         or Properties.Alpha
  2883.                         or Properties.transparency
  2884.                         or Properties.Transparency
  2885.                         or 1
  2886.                 ),
  2887.                 Callback = (
  2888.                     Properties.callback
  2889.                         or Properties.Callback
  2890.                         or Properties.callBack
  2891.                         or Properties.CallBack
  2892.                         or function() end
  2893.                 ),
  2894.                 Flag = (
  2895.                     Properties.flag
  2896.                         or Properties.Flag
  2897.                         or Properties.pointer
  2898.                         or Properties.Pointer
  2899.                         or Library.NextFlag()
  2900.                 ),
  2901.                 Colorpickers = 0,
  2902.             }
  2903.  
  2904.             -- // Instances
  2905.             local Color = Instance.new('TextButton', Options.Side == "Left" and Colorpicker.Section.Elements.Left or Options.Side == "Right" and Colorpicker.Section.Elements.Right or Colorpicker.Section.Elements.Left)
  2906.             local TextLabel = Instance.new('TextLabel', Color)
  2907.             --
  2908.             table.insert(Library.Instances, TextLabel)
  2909.             --
  2910.             Color.Name = "Color"
  2911.             Color.Size = UDim2.new(1,0,0,10)
  2912.             Color.BackgroundColor3 = Color3.new(1,1,1)
  2913.             Color.BackgroundTransparency = 1
  2914.             Color.Text = ""
  2915.             Color.TextColor3 = Color3.new(0,0,0)
  2916.             Color.AutoButtonColor = false
  2917.             Color.Font = Enum.Font.SourceSans
  2918.             Color.TextSize = 14
  2919.             --
  2920.             TextLabel.Position = UDim2.new(0,15,0,0)
  2921.             TextLabel.Size = UDim2.new(1,0,1,0)
  2922.             TextLabel.BackgroundColor3 = Color3.new(1,1,1)
  2923.             TextLabel.BackgroundTransparency = 1
  2924.             TextLabel.TextColor3 = Color3.new(0.3059,0.3059,0.3059)
  2925.             TextLabel.FontFace = Library.UIFont
  2926.             TextLabel.TextSize = Library.FontSize
  2927.             TextLabel.ZIndex = 105
  2928.             TextLabel.TextXAlignment = Enum.TextXAlignment.Left
  2929.             TextLabel.Text = Colorpicker.Name
  2930.  
  2931.             -- // Connections
  2932.             Colorpicker.Colorpickers = Colorpicker.Colorpickers + 1
  2933.             local colorpickertypes = Library:NewPicker(
  2934.                 Colorpicker.State,
  2935.                 Colorpicker.Alpha,
  2936.                 Color,
  2937.                 Colorpicker.Colorpickers - 1,
  2938.                 Colorpicker.Flag,
  2939.                 Colorpicker.Callback
  2940.             )
  2941.  
  2942.             function Colorpicker:Set(color)
  2943.                 colorpickertypes:set(color, false, true)
  2944.             end
  2945.  
  2946.             -- // Returning
  2947.             return Colorpicker
  2948.         end
  2949.     end
  2950. end
  2951.  
  2952. return Library
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement