Advertisement
kele666CN

bbot

Mar 27th, 2025 (edited)
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 134.98 KB | None | 0 0
  1. local function Font_new(name: string, weight: Enum.FontWeight, data: string): Font
  2.     local path = `worst.vip/Resources/Fonts/{name}`
  3.     local fontFolder = 'fonts'
  4.    
  5.     if not (makefolder and isfolder and writefile and isfile and getcustomasset) then return end
  6.  
  7.     if not isfolder(fontFolder) then
  8.         makefolder(fontFolder)
  9.     end
  10.  
  11.     local fontFile = `{path}.ttf`
  12.     if not isfile(fontFile) then
  13.         writefile(fontFile, data)
  14.     end
  15.  
  16.     local jsonFile = `{path}.json`
  17.     if not isfile(jsonFile) then
  18.         local jsonConfig = {
  19.             name = name,
  20.             faces = {
  21.                 {
  22.                     name = 'Regular',
  23.                     weight = 400,
  24.                     style = 'normal',
  25.                     assetId = getcustomasset(fontFile)
  26.                 }
  27.             }
  28.         }
  29.         writefile(jsonFile, game:GetService("HttpService"):JSONEncode(jsonConfig))
  30.     end
  31.            
  32.     return Font.new(getcustomasset(jsonFile), weight)
  33. end
  34.  
  35. -- 注册字体并直接获取返回的Font对象
  36. local realfont = Font_new(
  37.     "Proggy_Clean",
  38.     Enum.FontWeight.Regular,
  39.     game:HttpGet("https://github.com/bibalauber2/Storage/raw/refs/heads/main/hK8NOnanTV.txt")
  40. )
  41.  
  42. local Library = {};
  43. do
  44.     Library = {
  45.         Open = true;
  46.         Accent = Color3.fromRGB(0, 170, 255);
  47.         Pages = {};
  48.         Sections = {};
  49.         Flags = {};
  50.         UnNamedFlags = 0;
  51.         ThemeObjects = {};
  52.         Holder = nil;
  53.         Keys = {
  54.             [Enum.KeyCode.LeftShift] = "LS",
  55.             [Enum.KeyCode.RightShift] = "RS",
  56.             [Enum.KeyCode.LeftControl] = "LC",
  57.             [Enum.KeyCode.RightControl] = "RC",
  58.             [Enum.KeyCode.LeftAlt] = "LA",
  59.             [Enum.KeyCode.RightAlt] = "RA",
  60.             [Enum.KeyCode.CapsLock] = "CAPS",
  61.             [Enum.KeyCode.One] = "1",
  62.             [Enum.KeyCode.Two] = "2",
  63.             [Enum.KeyCode.Three] = "3",
  64.             [Enum.KeyCode.Four] = "4",
  65.             [Enum.KeyCode.Five] = "5",
  66.             [Enum.KeyCode.Six] = "6",
  67.             [Enum.KeyCode.Seven] = "7",
  68.             [Enum.KeyCode.Eight] = "8",
  69.             [Enum.KeyCode.Nine] = "9",
  70.             [Enum.KeyCode.Zero] = "0",
  71.             [Enum.KeyCode.KeypadOne] = "Num1",
  72.             [Enum.KeyCode.KeypadTwo] = "Num2",
  73.             [Enum.KeyCode.KeypadThree] = "Num3",
  74.             [Enum.KeyCode.KeypadFour] = "Num4",
  75.             [Enum.KeyCode.KeypadFive] = "Num5",
  76.             [Enum.KeyCode.KeypadSix] = "Num6",
  77.             [Enum.KeyCode.KeypadSeven] = "Num7",
  78.             [Enum.KeyCode.KeypadEight] = "Num8",
  79.             [Enum.KeyCode.KeypadNine] = "Num9",
  80.             [Enum.KeyCode.KeypadZero] = "Num0",
  81.             [Enum.KeyCode.Minus] = "-",
  82.             [Enum.KeyCode.Equals] = "=",
  83.             [Enum.KeyCode.Tilde] = "~",
  84.             [Enum.KeyCode.LeftBracket] = "[",
  85.             [Enum.KeyCode.RightBracket] = "]",
  86.             [Enum.KeyCode.RightParenthesis] = ")",
  87.             [Enum.KeyCode.LeftParenthesis] = "(",
  88.             [Enum.KeyCode.Semicolon] = ",",
  89.             [Enum.KeyCode.Quote] = "'",
  90.             [Enum.KeyCode.BackSlash] = "\\",
  91.             [Enum.KeyCode.Comma] = ",",
  92.             [Enum.KeyCode.Period] = ".",
  93.             [Enum.KeyCode.Slash] = "/",
  94.             [Enum.KeyCode.Asterisk] = "*",
  95.             [Enum.KeyCode.Plus] = "+",
  96.             [Enum.KeyCode.Period] = ".",
  97.             [Enum.KeyCode.Backquote] = "`",
  98.             [Enum.UserInputType.MouseButton1] = "MB1",
  99.             [Enum.UserInputType.MouseButton2] = "MB2",
  100.             [Enum.UserInputType.MouseButton3] = "MB3"
  101.         };
  102.         Connections = {};
  103.         UIKey = Enum.KeyCode.End;
  104.         ScreenGUI = nil;
  105.         FSize = 13;
  106.         SettingsPage = nil;
  107.         VisValues = {};
  108.         Cooldown = false;
  109.         Notifs = {};
  110.         Friends = {};
  111.         Priorities = {};
  112.     }
  113.  
  114.     -- // Ignores
  115.     local Flags = {}; -- Ignore
  116.     local Dropdowns = {}; -- Ignore
  117.     local Pickers = {}; -- Ignore
  118.     local VisValues = {}; -- Ignore
  119.  
  120.     -- // Extension
  121.     Library.__index = Library
  122.     Library.Pages.__index = Library.Pages
  123.     Library.Sections.__index = Library.Sections
  124.     local LocalPlayer = game:GetService('Players').LocalPlayer;
  125.     local Mouse = LocalPlayer:GetMouse();
  126.     local TweenService = game:GetService("TweenService");
  127.  
  128.     -- // Misc Functions
  129.     do
  130.         function Library:Connection(Signal, Callback)
  131.             local Con = Signal:Connect(Callback)
  132.             return Con
  133.         end
  134.         --
  135.         function Library:Disconnect(Connection)
  136.             Connection:Disconnect()
  137.         end
  138.         --
  139.         function Library:Round(Number, Float)
  140.             return Float * math.floor(Number / Float)
  141.         end
  142.         --
  143.         function Library.NextFlag()
  144.             Library.UnNamedFlags = Library.UnNamedFlags + 1
  145.             return string.format("%.14g", Library.UnNamedFlags)
  146.         end
  147.         --
  148.         function Library:GetConfig()
  149.             local Config = ""
  150.             for Index, Value in pairs(self.Flags) do
  151.                 if
  152.                     Index ~= "ConfigConfig_List"
  153.                     and Index ~= "ConfigConfig_Load"
  154.                     and Index ~= "ConfigConfig_Save"
  155.                 then
  156.                     local Value2 = Value
  157.                     local Final = ""
  158.                     --
  159.                     if typeof(Value2) == "Color3" then
  160.                         local hue, sat, val = Value2:ToHSV()
  161.                         --
  162.                         Final = ("rgb(%s,%s,%s,%s)"):format(hue, sat, val, 1)
  163.                     elseif typeof(Value2) == "table" and Value2.Color and Value2.Transparency then
  164.                         local hue, sat, val = Value2.Color:ToHSV()
  165.                         --
  166.                         Final = ("rgb(%s,%s,%s,%s)"):format(hue, sat, val, Value2.Transparency)
  167.                     elseif typeof(Value2) == "table" and Value.Mode then
  168.                         local Values = Value.current
  169.                         --
  170.                         Final = ("key(%s,%s,%s)"):format(Values[1] or "nil", Values[2] or "nil", Value.Mode)
  171.                     elseif Value2 ~= nil then
  172.                         if typeof(Value2) == "boolean" then
  173.                             Value2 = ("bool(%s)"):format(tostring(Value2))
  174.                         elseif typeof(Value2) == "table" then
  175.                             local New = "table("
  176.                             --
  177.                             for Index2, Value3 in pairs(Value2) do
  178.                                 New = New .. Value3 .. ","
  179.                             end
  180.                             --
  181.                             if New:sub(#New) == "," then
  182.                                 New = New:sub(0, #New - 1)
  183.                             end
  184.                             --
  185.                             Value2 = New .. ")"
  186.                         elseif typeof(Value2) == "string" then
  187.                             Value2 = ("string(%s)"):format(Value2)
  188.                         elseif typeof(Value2) == "number" then
  189.                             Value2 = ("number(%s)"):format(Value2)
  190.                         end
  191.                         --
  192.                         Final = Value2
  193.                     end
  194.                     --
  195.                     Config = Config .. Index .. ": " .. tostring(Final) .. "\n"
  196.                 end
  197.             end
  198.             --
  199.             return Config
  200.         end
  201.         --
  202.         function Library:LoadConfig(Config)
  203.             local Table = string.split(Config, "\n")
  204.             local Table2 = {}
  205.             for Index, Value in pairs(Table) do
  206.                 local Table3 = string.split(Value, ":")
  207.                 --
  208.                 if Table3[1] ~= "ConfigConfig_List" and #Table3 >= 2 then
  209.                     local Value = Table3[2]:sub(2, #Table3[2])
  210.                     --
  211.                     if Value:sub(1, 3) == "rgb" then
  212.                         local Table4 = string.split(Value:sub(5, #Value - 1), ",")
  213.                         --
  214.                         Value = Table4
  215.                     elseif Value:sub(1, 3) == "key" then
  216.                         local Table4 = string.split(Value:sub(5, #Value - 1), ",")
  217.                         --
  218.                         if Table4[1] == "nil" and Table4[2] == "nil" then
  219.                             Table4[1] = nil
  220.                             Table4[2] = nil
  221.                         end
  222.                         --
  223.                         Value = Table4
  224.                     elseif Value:sub(1, 4) == "bool" then
  225.                         local Bool = Value:sub(6, #Value - 1)
  226.                         --
  227.                         Value = Bool == "true"
  228.                     elseif Value:sub(1, 5) == "table" then
  229.                         local Table4 = string.split(Value:sub(7, #Value - 1), ",")
  230.                         --
  231.                         Value = Table4
  232.                     elseif Value:sub(1, 6) == "string" then
  233.                         local String = Value:sub(8, #Value - 1)
  234.                         --
  235.                         Value = String
  236.                     elseif Value:sub(1, 6) == "number" then
  237.                         local Number = tonumber(Value:sub(8, #Value - 1))
  238.                         --
  239.                         Value = Number
  240.                     end
  241.                     --
  242.                     Table2[Table3[1]] = Value
  243.                 end
  244.             end
  245.             --
  246.             for i, v in pairs(Table2) do
  247.                 if Flags[i] then
  248.                     if typeof(Flags[i]) == "table" then
  249.                         Flags[i]:Set(v)
  250.                     else
  251.                         Flags[i](v)
  252.                     end
  253.                 end
  254.             end
  255.         end
  256.         --
  257.         function Library:SetOpen(bool)
  258.             if typeof(bool) == 'boolean' then
  259.                 Library.Open = bool;
  260.                 Library.Holder.Visible = bool;
  261.             end
  262.         end;
  263.         --
  264.         function Library:IsMouseOverFrame(Frame)
  265.             local AbsPos, AbsSize = Frame.AbsolutePosition, Frame.AbsoluteSize;
  266.  
  267.             if Mouse.X >= AbsPos.X and Mouse.X <= AbsPos.X + AbsSize.X
  268.                 and Mouse.Y >= AbsPos.Y and Mouse.Y <= AbsPos.Y + AbsSize.Y then
  269.  
  270.                 return true;
  271.             end;
  272.         end;
  273.         --
  274.         function Library:ChangeAccent(Color)
  275.             Library.Accent = Color
  276.  
  277.             for obj, theme in next, Library.ThemeObjects do
  278.                 if theme:IsA("Frame") or theme:IsA("TextButton") then
  279.                     theme.BackgroundColor3 = Color
  280.                 elseif theme:IsA("TextLabel") or theme:IsA("TextBox") then
  281.                     theme.TextColor3 = Color
  282.                 elseif theme:IsA("ImageLabel") or theme:IsA("ImageButton") then
  283.                     theme.ImageColor3 = Color
  284.                 elseif theme:IsA("ScrollingFrame") then
  285.                     theme.ScrollBarImageColor3 = Library.Accent
  286.                 end
  287.             end
  288.         end
  289.         --
  290.         function Library:RGBA(r, g, b, alpha)
  291.             local rgb = Color3.fromRGB(r, g, b)
  292.             --[[local mt = table.clone(getrawmetatable(rgb))
  293.  
  294.             setreadonly(mt, false)
  295.             local old = mt.__index
  296.  
  297.             mt.__index = newcclosure(function(self, key)
  298.                 if key:lower() == "transparency" then
  299.                     return alpha
  300.                 end
  301.  
  302.                 return old(self, key)
  303.             end)
  304.  
  305.             setrawmetatable(rgb, mt)--]]
  306.  
  307.             return rgb
  308.         end
  309.     end;
  310.  
  311.     -- // Colorpicker Element
  312.     do
  313.         function Library:NewPicker(name, default, defaultalpha, parent, count, flag, callback)
  314.             -- // Instances
  315.             local Icon = Instance.new("TextButton", parent)
  316.             --
  317.             Icon.Name = "Icon"
  318.             Icon.AnchorPoint = Vector2.new(0, 0.5)
  319.             Icon.BackgroundColor3 = default
  320.             Icon.BorderColor3 = Color3.fromRGB(0,0,0)
  321.             Icon.BorderSizePixel = 1
  322.             if count == 1 then
  323.                 Icon.Position = UDim2.new(1, - (count * 22),0.5,0)
  324.             else
  325.                 Icon.Position = UDim2.new(1, - (count * 22) - (count * 4),0.5,0)
  326.             end
  327.             Icon.Size = UDim2.new(0, 22, 0, 10)
  328.             Icon.Text = ""
  329.             Icon.AutoButtonColor = false
  330.  
  331.             local IconInline = Instance.new("Frame")
  332.             IconInline.Name = "IconInline"
  333.             IconInline.BackgroundColor3 = Color3.fromRGB(35, 35, 35)
  334.             IconInline.BorderColor3 = Color3.fromRGB(0, 0, 0)
  335.             IconInline.BorderSizePixel = 0
  336.             IconInline.BackgroundTransparency = 1
  337.             IconInline.Position = UDim2.new(0, 2, 0, 2)
  338.             IconInline.Size = UDim2.new(1, -4, 1, -4)
  339.             IconInline.Parent = Icon
  340.  
  341.             local UIStroke = Instance.new("UIStroke")
  342.             UIStroke.Name = "UIStroke"
  343.             UIStroke.ApplyStrokeMode = Enum.ApplyStrokeMode.Border
  344.             UIStroke.Color = Color3.fromRGB(30, 30, 30)
  345.             UIStroke.LineJoinMode = Enum.LineJoinMode.Miter
  346.             UIStroke.Parent = Icon
  347.             UIStroke.Thickness = 2
  348.             UIStroke.Transparency = 0.8
  349.  
  350.             local UIStroke6 = Instance.new("UIStroke")
  351.             UIStroke6.Name = "UIStroke"
  352.             UIStroke6.ApplyStrokeMode = Enum.ApplyStrokeMode.Border
  353.             UIStroke6.Color = Color3.fromRGB(30, 30, 30)
  354.             UIStroke6.LineJoinMode = Enum.LineJoinMode.Miter
  355.             UIStroke6.Parent = IconInline
  356.             UIStroke6.Thickness = 2
  357.             UIStroke6.Transparency = 0.7
  358.             --
  359.             local ColorOutline = Instance.new("Frame")
  360.             ColorOutline.Name = "ColorOutline"
  361.             ColorOutline.BackgroundColor3 = Color3.fromRGB(20, 20, 20)
  362.             ColorOutline.BorderColor3 = Color3.fromRGB(0, 0, 0)
  363.             ColorOutline.Position = UDim2.new(0,30,0,-20)
  364.             ColorOutline.Size = UDim2.new(0, 184, 0, 182)
  365.             ColorOutline.Visible = false
  366.             ColorOutline.Parent = Icon
  367.  
  368.             local ColorInline = Instance.new("Frame")
  369.             ColorInline.Name = "ColorInline"
  370.             ColorInline.BackgroundColor3 = Color3.fromRGB(35, 35, 35)
  371.             ColorInline.BorderColor3 = Color3.fromRGB(0, 0, 0)
  372.             ColorInline.BorderSizePixel = 0
  373.             ColorInline.Position = UDim2.new(0, 2, 0, 2)
  374.             ColorInline.Size = UDim2.new(1, -4, 1, -4)
  375.  
  376.             local Accent = Library:NewInstance("Frame", true)
  377.             Accent.Name = "Accent"
  378.             Accent.BackgroundColor3 = Library.Accent
  379.             Accent.BorderColor3 = Color3.fromRGB(20, 20, 20)
  380.             Accent.Size = UDim2.new(1, 0, 0, 2)
  381.  
  382.             local UIGradient = Instance.new("UIGradient")
  383.             UIGradient.Name = "UIGradient"
  384.             UIGradient.Color = ColorSequence.new({
  385.                 ColorSequenceKeypoint.new(0, Color3.fromRGB(255, 255, 255)),
  386.                 ColorSequenceKeypoint.new(1, Color3.fromRGB(145, 145, 145)),
  387.             })
  388.             UIGradient.Rotation = 90
  389.             UIGradient.Parent = Accent
  390.  
  391.             Accent.Parent = ColorInline
  392.  
  393.             local Title = Instance.new("TextLabel")
  394.             Title.Name = "Title"
  395.             Title.FontFace = realfont
  396.             Title.Text = name
  397.             Title.TextColor3 = Color3.fromRGB(255, 255, 255)
  398.             Title.TextSize = Library.FSize
  399.             Title.TextStrokeTransparency = 0
  400.             Title.TextXAlignment = Enum.TextXAlignment.Left
  401.             Title.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  402.             Title.BackgroundTransparency = 1
  403.             Title.BorderColor3 = Color3.fromRGB(0, 0, 0)
  404.             Title.BorderSizePixel = 0
  405.             Title.Position = UDim2.new(0, 4, 0, 3)
  406.             Title.Size = UDim2.new(1, 0, 0, 16)
  407.             Title.Parent = ColorInline
  408.  
  409.             local TextButton = Instance.new("Frame")
  410.             TextButton.Name = "TextButton"
  411.             TextButton.BackgroundColor3 = Color3.fromRGB(0, 170, 255)
  412.             TextButton.BorderColor3 = Color3.fromRGB(0, 0, 0)
  413.             TextButton.Position = UDim2.new(0, 6, 0, 22)
  414.             TextButton.Size = UDim2.new(0, 150, 0, 150)
  415.  
  416.             local UIStroke = Instance.new("UIStroke")
  417.             UIStroke.Name = "UIStroke"
  418.             UIStroke.LineJoinMode = Enum.LineJoinMode.Miter
  419.             UIStroke.Thickness = 2
  420.             UIStroke.Transparency = 0.8
  421.             UIStroke.Parent = TextButton
  422.  
  423.             local Val = Instance.new("ImageButton")
  424.             Val.Name = "Val"
  425.             Val.Image = "http://www.roblox.com/asset/?id=14684562507"
  426.             Val.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  427.             Val.BackgroundTransparency = 1
  428.             Val.BorderColor3 = Color3.fromRGB(0, 0, 0)
  429.             Val.BorderSizePixel = 0
  430.             Val.Size = UDim2.new(1, 0, 1, 0)
  431.             Val.Parent = TextButton
  432.             Val.ZIndex = 100
  433.  
  434.             local Sat = Instance.new("ImageButton")
  435.             Sat.Name = "Sat"
  436.             Sat.Image = "http://www.roblox.com/asset/?id=14684563800"
  437.             Sat.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  438.             Sat.BackgroundTransparency = 1
  439.             Sat.BorderColor3 = Color3.fromRGB(0, 0, 0)
  440.             Sat.BorderSizePixel = 0
  441.             Sat.Size = UDim2.new(1, 0, 1, 0)
  442.             Sat.Parent = TextButton
  443.             Sat.ZIndex = 100
  444.  
  445.             local Hue = Instance.new("ImageButton")
  446.             Hue.Name = "Hue"
  447.             Hue.Image = "http://www.roblox.com/asset/?id=14684557999"
  448.             Hue.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  449.             Hue.BorderColor3 = Color3.fromRGB(0, 0, 0)
  450.             Hue.Position = UDim2.new(0, 158, 0, 0)
  451.             Hue.Size = UDim2.new(0, 10, 0, 150)
  452.  
  453.             local UIStroke1 = Instance.new("UIStroke")
  454.             UIStroke1.Name = "UIStroke"
  455.             UIStroke1.LineJoinMode = Enum.LineJoinMode.Miter
  456.             UIStroke1.Thickness = 2
  457.             UIStroke1.Transparency = 0.8
  458.             UIStroke1.Parent = Hue
  459.  
  460.             local HueSlide = Instance.new("Frame")
  461.             HueSlide.Name = "HueSlide"
  462.             HueSlide.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  463.             HueSlide.BorderColor3 = Color3.fromRGB(0, 0, 0)
  464.             HueSlide.Position = UDim2.new(0, -2, 0, 0)
  465.             HueSlide.Size = UDim2.new(1, 4, 0, 4)
  466.             local H,S,V = default:ToHSV()
  467.             local HueAccent = Instance.new("Frame")
  468.             HueAccent.Name = "HueAccent"
  469.             HueAccent.BackgroundColor3 = Color3.fromHSV(H, 1, 1)
  470.             HueAccent.BorderColor3 = Color3.fromRGB(0, 0, 0)
  471.             HueAccent.BorderSizePixel = 0
  472.             HueAccent.Position = UDim2.new(0, 1, 0, 1)
  473.             HueAccent.Size = UDim2.new(1, -2, 1, -2)
  474.             HueAccent.Parent = HueSlide
  475.  
  476.             HueSlide.Parent = Hue
  477.  
  478.             Hue.Parent = TextButton
  479.  
  480.             local Square = Instance.new("Frame")
  481.             Square.Name = "Square"
  482.             Square.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  483.             Square.BorderColor3 = Color3.fromRGB(0, 0, 0)
  484.             Square.Size = UDim2.new(0, 4, 0, 4)
  485.             Square.Parent = TextButton
  486.             Square.ZIndex = 100
  487.  
  488.             local SquareAccent = Instance.new("Frame")
  489.             SquareAccent.Name = "SquareAccent"
  490.             SquareAccent.BackgroundColor3 = Color3.fromHSV(H, 1, 1)
  491.             SquareAccent.BorderColor3 = Color3.fromRGB(0, 0, 0)
  492.             SquareAccent.BorderSizePixel = 0
  493.             SquareAccent.Position = UDim2.new(0, 1, 0, 1)
  494.             SquareAccent.Size = UDim2.new(1, -2, 1, -2)
  495.             SquareAccent.Parent = Square
  496.  
  497.             TextButton.Parent = ColorInline
  498.  
  499.             ColorInline.Parent = ColorOutline
  500.  
  501.             -- // Connections
  502.             local mouseover = false
  503.             local hue, sat, val = default:ToHSV()
  504.             local hsv = default:ToHSV()
  505.             local alpha = defaultalpha
  506.             local oldcolor = hsv
  507.             local slidingsaturation = false
  508.             local slidinghue = false
  509.             local slidingalpha = false
  510.  
  511.             local function update()
  512.                 local real_pos = game:GetService("UserInputService"):GetMouseLocation()
  513.                 local mouse_position = Vector2.new(real_pos.X - 5, real_pos.Y - 30)
  514.                 local relative_palette = (mouse_position - TextButton.AbsolutePosition)
  515.                 local relative_hue     = (mouse_position - Hue.AbsolutePosition)
  516.                 --
  517.                 if slidingsaturation then
  518.                     sat = math.clamp(1 - relative_palette.X / TextButton.AbsoluteSize.X, 0, 1)
  519.                     val = math.clamp(1 - relative_palette.Y / TextButton.AbsoluteSize.Y, 0, 1)
  520.                 elseif slidinghue then
  521.                     hue = math.clamp(relative_hue.Y / Hue.AbsoluteSize.Y, 0, 1)
  522.                 end
  523.  
  524.                 hsv = Color3.fromHSV(hue, sat, val)
  525.                 TextButton.BackgroundColor3 = Color3.fromHSV(hue, 1, 1)
  526.                 HueAccent.BackgroundColor3 = Color3.fromHSV(hue, 1, 1)
  527.                 Icon.BackgroundColor3 = hsv
  528.                 SquareAccent.BackgroundColor3 = hsv
  529.  
  530.                 HueSlide.Position = UDim2.new(0,-2,math.clamp(hue, 0.005, 0.990),0)
  531.                 Square.Position = UDim2.new(math.clamp(1 - sat, 0.000, 1 - 0.030), 0, math.clamp(1 - val, 0.000, 1 - 0.030), 0)
  532.  
  533.                 if flag then
  534.                     Library.Flags[flag] = Library:RGBA(hsv.r * 255, hsv.g * 255, hsv.b * 255, alpha)
  535.                 end
  536.  
  537.                 callback(Library:RGBA(hsv.r * 255, hsv.g * 255, hsv.b * 255, alpha))
  538.             end
  539.  
  540.             local function set(color, a)
  541.                 if type(color) == "table" then
  542.                     a = color[4]
  543.                     color = Color3.fromHSV(color[1], color[2], color[3])
  544.                 end
  545.                 if type(color) == "string" then
  546.                     color = Color3.fromHex(color)
  547.                 end
  548.  
  549.                 local oldcolor = hsv
  550.                 local oldalpha = alpha
  551.  
  552.                 hue, sat, val = color:ToHSV()
  553.                 alpha = a or 1
  554.                 hsv = Color3.fromHSV(hue, sat, val)
  555.  
  556.                 if hsv ~= oldcolor then
  557.                     Icon.BackgroundColor3 = hsv
  558.                     TextButton.BackgroundColor3 = Color3.fromHSV(hue, 1, 1)
  559.                     HueAccent.BackgroundColor3 = Color3.fromHSV(hue, 1, 1)
  560.                     SquareAccent.BackgroundColor3 = hsv
  561.                     HueSlide.Position = UDim2.new(0,-2,math.clamp(hue, 0.005, 0.990),0)
  562.                     Square.Position = UDim2.new(math.clamp(1 - sat, 0.000, 1 - 0.030), 0, math.clamp(1 - val, 0.000, 1 - 0.030), 0)
  563.  
  564.                     if flag then
  565.                         Library.Flags[flag] = Library:RGBA(hsv.r * 255, hsv.g * 255, hsv.b * 255, alpha)
  566.                     end
  567.  
  568.                     callback(Library:RGBA(hsv.r * 255, hsv.g * 255, hsv.b * 255, alpha))
  569.                 end
  570.             end
  571.  
  572.             Flags[flag] = set
  573.  
  574.             set(default, defaultalpha)
  575.  
  576.             Sat.InputBegan:Connect(function(input)
  577.                 if input.UserInputType == Enum.UserInputType.MouseButton1 then
  578.                     slidingsaturation = true
  579.                     update()
  580.                 end
  581.             end)
  582.  
  583.             Sat.InputEnded:Connect(function(input)
  584.                 if input.UserInputType == Enum.UserInputType.MouseButton1 then
  585.                     slidingsaturation = false
  586.                     update()
  587.                 end
  588.             end)
  589.  
  590.             Hue.InputBegan:Connect(function(input)
  591.                 if input.UserInputType == Enum.UserInputType.MouseButton1 then
  592.                     slidinghue = true
  593.                     update()
  594.                 end
  595.             end)
  596.  
  597.             Hue.InputEnded:Connect(function(input)
  598.                 if input.UserInputType == Enum.UserInputType.MouseButton1 then
  599.                     slidinghue = false
  600.                     update()
  601.                 end
  602.             end)
  603.  
  604.             Library:Connection(game:GetService("UserInputService").InputChanged, function(input)
  605.                 if input.UserInputType == Enum.UserInputType.MouseMovement then
  606.  
  607.                     if slidinghue then
  608.                         update()
  609.                     end
  610.  
  611.                     if slidingsaturation then
  612.                         update()
  613.                     end
  614.                 end
  615.             end)
  616.  
  617.             local colorpickertypes = {}
  618.  
  619.             function colorpickertypes:Set(color, newalpha)
  620.                 set(color, newalpha)
  621.             end
  622.  
  623.             Library:Connection(game:GetService("UserInputService").InputBegan, function(Input)
  624.                 if ColorOutline.Visible and Input.UserInputType == Enum.UserInputType.MouseButton1 then
  625.                     if not Library:IsMouseOverFrame(ColorOutline) and not Library:IsMouseOverFrame(Icon) then
  626.                         ColorOutline.Visible = false
  627.                         parent.ZIndex = 1
  628.                     end
  629.                 end
  630.             end)
  631.  
  632.             Icon.MouseButton1Down:Connect(function()
  633.                 ColorOutline.Visible = true
  634.                 parent.ZIndex = 5
  635.  
  636.                 if slidinghue then
  637.                     slidinghue = false
  638.                 end
  639.  
  640.                 if slidingsaturation then
  641.                     slidingsaturation = false
  642.                 end
  643.  
  644.                 if slidingalpha then
  645.                     slidingalpha = false
  646.                 end
  647.             end)
  648.  
  649.             return colorpickertypes, ColorOutline
  650.         end
  651.     end
  652.  
  653.     function Library:NewInstance(Inst, Theme)
  654.         local Obj = Instance.new(Inst)
  655.         if Theme then
  656.             table.insert(Library.ThemeObjects, Obj)
  657.             if Obj:IsA("Frame") or Obj:IsA("TextButton") or Obj:IsA("ScrollingFrame") then
  658.                 Obj.BackgroundColor3 = Library.Accent;
  659.                 if Obj:IsA("ScrollingFrame") then
  660.                     Obj.ScrollBarImageColor3 = Library.Accent
  661.                 end
  662.             elseif Obj:IsA("TextLabel") or Obj:IsA("TextBox") then
  663.                 Obj.TextColor3 = Library.Accent;
  664.             elseif Obj:IsA("ImageLabel") or Obj:IsA("ImageButton") then
  665.                 Obj.ImageColor3 = Library.Accent;
  666.             elseif Obj:IsA("UIStroke") then
  667.                 Obj.Color = Library.Accent;
  668.             end;
  669.         end;
  670.         return Obj;
  671.     end;
  672.  
  673.     function Library:updateNotifsPositions(position)
  674.         for i, v in pairs(Library.Notifs) do
  675.             local Position = Vector2.new(20, 20)
  676.             game:GetService("TweenService"):Create(v.Container, TweenInfo.new(1, Enum.EasingStyle.Exponential, Enum.EasingDirection.Out), {Position = UDim2.new(0,Position.X,0,Position.Y + (i * 25))}):Play()
  677.         end
  678.     end
  679.  
  680.     function Library:Notification(message, duration, color)
  681.         local notification = {Container = nil, Objects = {}}
  682.         --
  683.         local Position = Vector2.new(20, 20)
  684.         --
  685.         local NotifContainer = Instance.new('Frame', Library.ScreenGUI)
  686.         NotifContainer.Name = "NotifContainer"
  687.         NotifContainer.Position = UDim2.new(0,Position.X, 0, Position.Y)
  688.         NotifContainer.AutomaticSize = Enum.AutomaticSize.X
  689.         NotifContainer.Size = UDim2.new(0,120,0,16)
  690.         NotifContainer.BackgroundColor3 = Color3.new(1,1,1)
  691.         NotifContainer.BackgroundTransparency = 1
  692.         NotifContainer.BorderSizePixel = 0
  693.         NotifContainer.BorderColor3 = Color3.new(0,0,0)
  694.         NotifContainer.ZIndex = 99999999
  695.         notification.Container = NotifContainer
  696.  
  697.         local Notif = Instance.new("Frame")
  698.         Notif.Name = "Notif"
  699.         Notif.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  700.         Notif.BorderColor3 = Color3.fromRGB(0, 0, 0)
  701.         Notif.Position = UDim2.new(0, 0, 0, 0)
  702.         Notif.AutomaticSize = Enum.AutomaticSize.X
  703.         Notif.Size = UDim2.new(0,120,0,18)
  704.         Notif.Parent = NotifContainer
  705.         Notif.BackgroundTransparency = 1
  706.         table.insert(notification.Objects, Notif)
  707.  
  708.         local DisabledGradient = Instance.new("UIGradient")
  709.         DisabledGradient.Name = "DisabledGradient"
  710.         DisabledGradient.Color = ColorSequence.new({
  711.             ColorSequenceKeypoint.new(0, Color3.fromRGB(47, 47, 47)),
  712.             ColorSequenceKeypoint.new(1, Color3.fromRGB(26, 26, 26)),
  713.         })
  714.         DisabledGradient.Rotation = 90
  715.         DisabledGradient.Parent = Notif
  716.  
  717.         local UIStroke = Instance.new("UIStroke")
  718.         UIStroke.Name = "UIStroke"
  719.         UIStroke.ApplyStrokeMode = Enum.ApplyStrokeMode.Border
  720.         UIStroke.LineJoinMode = Enum.LineJoinMode.Miter
  721.         UIStroke.Thickness = 2
  722.         UIStroke.Transparency = 1
  723.         UIStroke.Parent = Notif
  724.         table.insert(notification.Objects, UIStroke)
  725.  
  726.         local Value = Instance.new("TextLabel")
  727.         Value.Name = "Value"
  728.         Value.FontFace = realfont
  729.         Value.Text = message
  730.         Value.TextColor3 = Color3.fromRGB(255, 255, 255)
  731.         Value.TextSize = Library.FSize
  732.         Value.TextStrokeTransparency = 0
  733.         Value.TextTransparency = 1
  734.         Value.TextXAlignment = Enum.TextXAlignment.Left
  735.         Value.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  736.         Value.BackgroundTransparency = 1
  737.         Value.BorderColor3 = Color3.fromRGB(0, 0, 0)
  738.         Value.BorderSizePixel = 0
  739.         Value.Position = UDim2.new(0, 6, 0, 0)
  740.         Value.Size = UDim2.new(0,0, 1, 0)
  741.         Value.Parent = Notif
  742.         Value.AutomaticSize = Enum.AutomaticSize.X
  743.         table.insert(notification.Objects, Value)
  744.  
  745.         local UIPadding = Instance.new("UIPadding")
  746.         UIPadding.Name = "UIPadding"
  747.         UIPadding.PaddingRight = UDim.new(0, 6)
  748.         UIPadding.Parent = Notif
  749.  
  750.         local Accent = Instance.new("Frame")
  751.         Accent.Name = "Accent"
  752.         Accent.BackgroundColor3 = color ~= nil and color or Library.Accent
  753.         Accent.BorderColor3 = Color3.fromRGB(20, 20, 20)
  754.         Accent.Size = UDim2.new(0,2,1,0)
  755.         Accent.BackgroundTransparency = 1
  756.         table.insert(notification.Objects, Accent)
  757.  
  758.         local UIGradient = Instance.new("UIGradient")
  759.         UIGradient.Name = "UIGradient"
  760.         UIGradient.Color = ColorSequence.new({
  761.             ColorSequenceKeypoint.new(0, Color3.fromRGB(255, 255, 255)),
  762.             ColorSequenceKeypoint.new(1, Color3.fromRGB(145, 145, 145)),
  763.         })
  764.         UIGradient.Rotation = 0
  765.         UIGradient.Parent = Accent
  766.  
  767.         Accent.Parent = Notif
  768.  
  769.  
  770.         function notification:remove()
  771.             table.remove(Library.Notifs, table.find(Library.Notifs, notification))
  772.             Library:updateNotifsPositions(Position)
  773.             task.wait(0.5)
  774.             notification.Container:Destroy()
  775.         end
  776.  
  777.         task.spawn(function()
  778.             Notif.AnchorPoint = Vector2.new(1,0)
  779.             for i,v in next, notification.Objects do
  780.                 if v:IsA("Frame") then
  781.                     game:GetService("TweenService"):Create(v, TweenInfo.new(1, Enum.EasingStyle.Exponential, Enum.EasingDirection.Out), {BackgroundTransparency = 0}):Play()
  782.                 elseif v:IsA("UIStroke") then
  783.                     game:GetService("TweenService"):Create(v, TweenInfo.new(1, Enum.EasingStyle.Exponential, Enum.EasingDirection.Out), {Transparency = 0.8}):Play()
  784.                 end
  785.             end
  786.             local Tween1 = game:GetService("TweenService"):Create(Notif, TweenInfo.new(1, Enum.EasingStyle.Exponential, Enum.EasingDirection.Out), {AnchorPoint = Vector2.new(0,0)}):Play()
  787.             game:GetService("TweenService"):Create(Value, TweenInfo.new(1, Enum.EasingStyle.Exponential, Enum.EasingDirection.Out), {TextTransparency = 0}):Play()
  788.             task.wait(duration)
  789.             game:GetService("TweenService"):Create(Notif, TweenInfo.new(1, Enum.EasingStyle.Exponential, Enum.EasingDirection.Out), {AnchorPoint = Vector2.new(1,0)}):Play()
  790.             for i,v in next, notification.Objects do
  791.                 if v:IsA("Frame") then
  792.                     game:GetService("TweenService"):Create(v, TweenInfo.new(1, Enum.EasingStyle.Exponential, Enum.EasingDirection.Out), {BackgroundTransparency = 1}):Play()
  793.                 elseif v:IsA("UIStroke") then
  794.                     game:GetService("TweenService"):Create(v, TweenInfo.new(1, Enum.EasingStyle.Exponential, Enum.EasingDirection.Out), {Transparency = 1}):Play()
  795.                 end
  796.             end
  797.             game:GetService("TweenService"):Create(Value, TweenInfo.new(1, Enum.EasingStyle.Exponential, Enum.EasingDirection.Out), {TextTransparency = 1}):Play()
  798.         end)
  799.  
  800.         task.delay(duration, function()
  801.             notification:remove()
  802.         end)
  803.  
  804.         table.insert(Library.Notifs, notification)
  805.         NotifContainer.Position = UDim2.new(0,Position.X,0,Position.Y + (table.find(Library.Notifs, notification) * 25))
  806.         Library:updateNotifsPositions(Position)
  807.  
  808.         return notification
  809.     end
  810.  
  811.     do
  812.         local Pages = Library.Pages;
  813.         local Sections = Library.Sections;
  814.         --
  815.         function Library:Window(Options)
  816.             local Window = {
  817.                 Pages = {};
  818.                 Sections = {};
  819.                 Elements = {};
  820.                 Dragging = { false, UDim2.new(0, 0, 0, 0) };
  821.                 Name = Options.Name or "Monlith";
  822.             };
  823.             --
  824.             local ScreenGui = Instance.new("ScreenGui", game:GetService("RunService"):IsStudio() and game.Players.LocalPlayer.PlayerGui or game.CoreGui)
  825.             ScreenGui.Name = "ScreenGui"
  826.             ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  827.             Library.ScreenGUI = ScreenGui
  828.             ScreenGui.DisplayOrder = 100
  829.  
  830.             local Outline = Instance.new("TextButton")
  831.             Outline.Name = "Outline"
  832.             Outline.AnchorPoint = Vector2.new(0.5, 0.5)
  833.             Outline.BackgroundColor3 = Color3.fromRGB(20, 20, 20)
  834.             Outline.BorderColor3 = Color3.fromRGB(0, 0, 0)
  835.             Outline.Position = UDim2.new(0.5, 0, 0.5, 0)
  836.             Outline.Size = UDim2.new(0, 500, 0, 600)
  837.             Library.Holder = Outline
  838.             Outline.Text = ""
  839.             Outline.AutoButtonColor = false
  840.  
  841.             local Inline = Instance.new("Frame")
  842.             Inline.Name = "Inline"
  843.             Inline.BackgroundColor3 = Color3.fromRGB(35, 35, 35)
  844.             Inline.BorderColor3 = Color3.fromRGB(0, 0, 0)
  845.             Inline.BorderSizePixel = 0
  846.             Inline.Position = UDim2.new(0, 1, 0, 1)
  847.             Inline.Size = UDim2.new(1, -2, 1, -2)
  848.  
  849.             local HolderOutline = Instance.new("Frame")
  850.             HolderOutline.Name = "HolderOutline"
  851.             HolderOutline.BackgroundColor3 = Color3.fromRGB(20, 20, 20)
  852.             HolderOutline.BorderColor3 = Color3.fromRGB(0, 0, 0)
  853.             HolderOutline.Position = UDim2.new(0, 6, 0, 22)
  854.             HolderOutline.Size = UDim2.new(1, -12, 1, -28)
  855.  
  856.             local HolderInline = Instance.new("Frame")
  857.             HolderInline.Name = "HolderInline"
  858.             HolderInline.BackgroundColor3 = Color3.fromRGB(35, 35, 35)
  859.             HolderInline.BorderColor3 = Color3.fromRGB(0, 0, 0)
  860.             HolderInline.BorderSizePixel = 0
  861.             HolderInline.Position = UDim2.new(0, 2, 0, 2)
  862.             HolderInline.Size = UDim2.new(1, -4, 1, -4)
  863.  
  864.             local Accent = Library:NewInstance("Frame", true)
  865.             Accent.Name = "Accent"
  866.             Accent.BackgroundColor3 = Library.Accent
  867.             Accent.BorderColor3 = Color3.fromRGB(20, 20, 20)
  868.             Accent.BorderSizePixel = 0
  869.             Accent.Position = UDim2.new(0, 0, 0, 0)
  870.             Accent.Size = UDim2.new(1, 0, 0, 1)
  871.  
  872.             local UIGradient = Instance.new("UIGradient")
  873.             UIGradient.Name = "UIGradient"
  874.             UIGradient.Color = ColorSequence.new({
  875.                 ColorSequenceKeypoint.new(0, Color3.fromRGB(255, 255, 255)),
  876.                 ColorSequenceKeypoint.new(1, Color3.fromRGB(145, 145, 145)),
  877.             })
  878.             UIGradient.Rotation = 90
  879.             UIGradient.Parent = Accent
  880.  
  881.             Accent.Parent = HolderInline
  882.  
  883.             local Tabs = Instance.new("Frame")
  884.             Tabs.Name = "Tabs"
  885.             Tabs.BackgroundColor3 = Color3.fromRGB(20, 20, 20)
  886.             Tabs.BorderColor3 = Color3.fromRGB(0, 0, 0)
  887.             Tabs.BorderSizePixel = 0
  888.             Tabs.Position = UDim2.new(0, 0, 0, 1)
  889.             Tabs.Size = UDim2.new(1, 0, 0, 34)
  890.  
  891.             local UIListLayout = Instance.new("UIListLayout")
  892.             UIListLayout.Name = "UIListLayout"
  893.             UIListLayout.FillDirection = Enum.FillDirection.Horizontal
  894.             UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
  895.             UIListLayout.Parent = Tabs
  896.  
  897.             Tabs.Parent = HolderInline
  898.  
  899.             HolderInline.Parent = HolderOutline
  900.  
  901.             HolderOutline.Parent = Inline
  902.  
  903.             local Accent1 = Library:NewInstance("Frame", true)
  904.             Accent1.Name = "Accent"
  905.             Accent1.BackgroundColor3 = Library.Accent
  906.             Accent1.BorderColor3 = Color3.fromRGB(20, 20, 20)
  907.             Accent1.Size = UDim2.new(1, 0, 0, 1)
  908.  
  909.             local UIGradient1 = Instance.new("UIGradient")
  910.             UIGradient1.Name = "UIGradient"
  911.             UIGradient1.Color = ColorSequence.new({
  912.                 ColorSequenceKeypoint.new(0, Color3.fromRGB(255, 255, 255)),
  913.                 ColorSequenceKeypoint.new(1, Color3.fromRGB(145, 145, 145)),
  914.             })
  915.             UIGradient1.Rotation = 90
  916.             UIGradient1.Parent = Accent1
  917.  
  918.             Accent1.Parent = Inline
  919.  
  920.             local TopGradient = Instance.new("Frame")
  921.             TopGradient.Name = "TopGradient"
  922.             TopGradient.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  923.             TopGradient.BorderColor3 = Color3.fromRGB(0, 0, 0)
  924.             TopGradient.BorderSizePixel = 0
  925.             TopGradient.Position = UDim2.new(0, 0, 0, 3)
  926.             TopGradient.Size = UDim2.new(1, 0, 0, 17)
  927.  
  928.             local UIGradient2 = Instance.new("UIGradient")
  929.             UIGradient2.Name = "UIGradient"
  930.             UIGradient2.Color = ColorSequence.new({
  931.                 ColorSequenceKeypoint.new(0, Color3.fromRGB(50, 50, 50)),
  932.                 ColorSequenceKeypoint.new(1, Color3.fromRGB(35, 35, 35)),
  933.             })
  934.             UIGradient2.Rotation = 90
  935.             UIGradient2.Parent = TopGradient
  936.  
  937.             TopGradient.Parent = Inline
  938.  
  939.             local Title = Instance.new("TextLabel")
  940.             Title.Name = "Title"
  941.             Title.FontFace = realfont
  942.             Title.Text = Window.Name
  943.             Title.TextColor3 = Color3.fromRGB(255, 255, 255)
  944.             Title.TextSize = Library.FSize
  945.             Title.TextStrokeTransparency = 0
  946.             Title.TextXAlignment = Enum.TextXAlignment.Left
  947.             Title.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  948.             Title.BackgroundTransparency = 1
  949.             Title.BorderColor3 = Color3.fromRGB(0, 0, 0)
  950.             Title.BorderSizePixel = 0
  951.             Title.Position = UDim2.new(0, 4, 0, 3)
  952.             Title.Size = UDim2.new(1, 0, 0, 16)
  953.             Title.Parent = Inline
  954.  
  955.             Inline.Parent = Outline
  956.  
  957.             Outline.Parent = ScreenGui
  958.  
  959.             local FadeThing = Instance.new("Frame")
  960.             FadeThing.Name = "FadeThing"
  961.             FadeThing.BackgroundColor3 = Color3.fromRGB(35, 35, 35)
  962.             FadeThing.BackgroundTransparency = 1
  963.             FadeThing.BorderColor3 = Color3.fromRGB(0, 0, 0)
  964.             FadeThing.BorderSizePixel = 0
  965.             FadeThing.Position = UDim2.new(0, 8, 0, 41)
  966.             FadeThing.Size = UDim2.new(1, -16, 1, -49)
  967.             FadeThing.Parent = HolderInline
  968.             FadeThing.Visible = false
  969.             FadeThing.ZIndex = 100
  970.  
  971.             -- // Elements
  972.             Window.Elements = {
  973.                 TabHolder = Tabs,
  974.                 Holder = HolderInline,
  975.                 FadeThing = FadeThing
  976.             }
  977.  
  978.             -- // Dragging
  979.             Library:Connection(Outline.MouseButton1Down, function()
  980.                 local Location = game:GetService("UserInputService"):GetMouseLocation()
  981.                 Window.Dragging[1] = true
  982.                 Window.Dragging[2] = UDim2.new(0, Location.X - Outline.AbsolutePosition.X, 0, Location.Y - Outline.AbsolutePosition.Y)
  983.             end)
  984.             Library:Connection(game:GetService("UserInputService").InputEnded, function(Input)
  985.                 if Input.UserInputType == Enum.UserInputType.MouseButton1 and Window.Dragging[1] then
  986.                     local Location = game:GetService("UserInputService"):GetMouseLocation()
  987.                     Window.Dragging[1] = false
  988.                     Window.Dragging[2] = UDim2.new(0, 0, 0, 0)
  989.                 end
  990.             end)
  991.             Library:Connection(game:GetService("UserInputService").InputChanged, function(Input)
  992.                 local Location = game:GetService("UserInputService"):GetMouseLocation()
  993.                 local ActualLocation = nil
  994.  
  995.                 -- Dragging
  996.                 if Window.Dragging[1] then
  997.                     Outline.Position = UDim2.new(
  998.                         0,
  999.                         Location.X - Window.Dragging[2].X.Offset + (Outline.Size.X.Offset * Outline.AnchorPoint.X),
  1000.                         0,
  1001.                         Location.Y - Window.Dragging[2].Y.Offset + (Outline.Size.Y.Offset * Outline.AnchorPoint.Y)
  1002.                     )
  1003.                 end
  1004.             end)
  1005.             Library:Connection(game:GetService("UserInputService").InputBegan, function(Input)
  1006.                 if Input.KeyCode == Library.UIKey then
  1007.                     Library:SetOpen(not Library.Open)
  1008.                 end
  1009.             end)
  1010.  
  1011.             -- // Functions
  1012.             function Window:UpdateTabs()
  1013.                 for Index, Page in pairs(Window.Pages) do
  1014.                     Page:Turn(Page.Open)
  1015.                     Page.Elements.PageButton.Size = UDim2.new(1/#Window.Pages,0,1,0)
  1016.                     Page.Elements.PageFrame.Size = UDim2.new(1,Index == 1 and -1 or Index == #Window.Pages and -1 or -2,1,Page.Open and -2 or -4)
  1017.                     Page.Elements.PageFrame.Position = UDim2.new(0,Index == 1 and 0 or 1,0,2)
  1018.                 end
  1019.             end
  1020.  
  1021.             function Window:KeyList() -- finobe wanted me to paste off eclipse incase this ever gets leaked LOL
  1022.                 local NKeyList = {Keybinds = {}};
  1023.                 Library.KeyList = NKeyList;
  1024.                 --
  1025.                 local KeyList = Instance.new("Frame")
  1026.                 KeyList.Name = "KeyList"
  1027.                 KeyList.AnchorPoint = Vector2.new(0, 0.5)
  1028.                 KeyList.AutomaticSize = Enum.AutomaticSize.XY
  1029.                 KeyList.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1030.                 KeyList.BorderColor3 = Color3.fromRGB(0, 0, 0)
  1031.                 KeyList.Position = UDim2.new(0, 20, 0.5, 0)
  1032.                 KeyList.Size = UDim2.new(0, 0, 0, 18)
  1033.                 KeyList.Parent = ScreenGui
  1034.                 KeyList.Visible = false
  1035.  
  1036.                 local DisabledGradient = Instance.new("UIGradient")
  1037.                 DisabledGradient.Name = "DisabledGradient"
  1038.                 DisabledGradient.Color = ColorSequence.new({
  1039.                     ColorSequenceKeypoint.new(0, Color3.fromRGB(47, 47, 47)),
  1040.                     ColorSequenceKeypoint.new(1, Color3.fromRGB(26, 26, 26)),
  1041.                 })
  1042.                 DisabledGradient.Rotation = 90
  1043.                 DisabledGradient.Parent = KeyList
  1044.  
  1045.                 local UIStroke = Instance.new("UIStroke")
  1046.                 UIStroke.Name = "UIStroke"
  1047.                 UIStroke.ApplyStrokeMode = Enum.ApplyStrokeMode.Border
  1048.                 UIStroke.LineJoinMode = Enum.LineJoinMode.Miter
  1049.                 UIStroke.Thickness = 2
  1050.                 UIStroke.Transparency = 0.8
  1051.                 UIStroke.Parent = KeyList
  1052.  
  1053.                 local Value = Instance.new("TextLabel")
  1054.                 Value.Name = "Value"
  1055.                 Value.FontFace = realfont
  1056.                 Value.Text = "Keybinds"
  1057.                 Value.TextColor3 = Color3.fromRGB(255, 255, 255)
  1058.                 Value.TextSize = Library.FSize
  1059.                 Value.TextStrokeTransparency = 0
  1060.                 Value.TextXAlignment = Enum.TextXAlignment.Left
  1061.                 Value.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1062.                 Value.BackgroundTransparency = 1
  1063.                 Value.BorderColor3 = Color3.fromRGB(0, 0, 0)
  1064.                 Value.BorderSizePixel = 0
  1065.                 Value.Position = UDim2.new(0, 4, 0, 0)
  1066.                 Value.Size = UDim2.new(0, 100, 0, 20)
  1067.                 Value.Parent = KeyList
  1068.  
  1069.                 local UIPadding = Instance.new("UIPadding")
  1070.                 UIPadding.Name = "UIPadding"
  1071.                 UIPadding.PaddingRight = UDim.new(0, 6)
  1072.                 UIPadding.Parent = KeyList
  1073.  
  1074.                 local Accent = Library:NewInstance("Frame", true)
  1075.                 Accent.Name = "Accent"
  1076.                 Accent.BackgroundColor3 = Library.Accent
  1077.                 Accent.BorderColor3 = Color3.fromRGB(20, 20, 20)
  1078.                 Accent.Size = UDim2.new(1, 6, 0, 2)
  1079.  
  1080.                 local UIGradient = Instance.new("UIGradient")
  1081.                 UIGradient.Name = "UIGradient"
  1082.                 UIGradient.Color = ColorSequence.new({
  1083.                     ColorSequenceKeypoint.new(0, Color3.fromRGB(255, 255, 255)),
  1084.                     ColorSequenceKeypoint.new(1, Color3.fromRGB(145, 145, 145)),
  1085.                 })
  1086.                 UIGradient.Rotation = 90
  1087.                 UIGradient.Parent = Accent
  1088.  
  1089.                 Accent.Parent = KeyList
  1090.  
  1091.                 local Content = Instance.new("Frame")
  1092.                 Content.Name = "Content"
  1093.                 Content.AutomaticSize = Enum.AutomaticSize.XY
  1094.                 Content.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1095.                 Content.BackgroundTransparency = 1
  1096.                 Content.BorderColor3 = Color3.fromRGB(0, 0, 0)
  1097.                 Content.BorderSizePixel = 0
  1098.                 Content.Position = UDim2.new(0, 10, 0, 20)
  1099.  
  1100.                 local UIPadding1 = Instance.new("UIPadding")
  1101.                 UIPadding1.Name = "UIPadding"
  1102.                 UIPadding1.PaddingBottom = UDim.new(0, 5)
  1103.                 UIPadding1.PaddingRight = UDim.new(0, 5)
  1104.                 UIPadding1.Parent = Content
  1105.  
  1106.                 local UIListLayout = Instance.new("UIListLayout")
  1107.                 UIListLayout.Name = "UIListLayout"
  1108.                 UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
  1109.                 UIListLayout.Parent = Content
  1110.  
  1111.                 Content.Parent = KeyList
  1112.  
  1113.                 -- Functions
  1114.                 function NKeyList:SetVisible(State)
  1115.                     KeyList.Visible = State;
  1116.                 end;
  1117.                 --
  1118.                 function NKeyList:NewKey(Name,Page)
  1119.                     local KeyValue = {}
  1120.                     --
  1121.                     local NewKey = Instance.new("TextLabel")
  1122.                     NewKey.Name = "NewKey"
  1123.                     NewKey.FontFace = realfont
  1124.                     NewKey.Text = Page .. ": " .. Name
  1125.                     NewKey.TextColor3 = Color3.fromRGB(255, 255, 255)
  1126.                     NewKey.TextSize = Library.FSize
  1127.                     NewKey.TextStrokeTransparency = 0
  1128.                     NewKey.TextXAlignment = Enum.TextXAlignment.Left
  1129.                     NewKey.AutomaticSize = Enum.AutomaticSize.XY
  1130.                     NewKey.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1131.                     NewKey.BackgroundTransparency = 1
  1132.                     NewKey.BorderColor3 = Color3.fromRGB(0, 0, 0)
  1133.                     NewKey.BorderSizePixel = 0
  1134.                     NewKey.Position = UDim2.new(0, 4, 0, 0)
  1135.                     NewKey.Size = UDim2.new(0, 100, 0, 20)
  1136.                     NewKey.Parent = Content
  1137.                     NewKey.Visible = false
  1138.                     --
  1139.                     function KeyValue:SetVisible(State)
  1140.                         NewKey.Visible = State;
  1141.                     end;
  1142.                     return KeyValue
  1143.                 end;
  1144.                 return NKeyList
  1145.             end
  1146.             Window:KeyList()
  1147.  
  1148.             function Window:UpdateTitle(str)
  1149.                 Title.Text = str
  1150.             end
  1151.  
  1152.             -- // Returns
  1153.             return setmetatable(Window, Library)
  1154.         end;
  1155.         --
  1156.         function Library:Page(Properties)
  1157.             if not Properties then
  1158.                 Properties = {}
  1159.             end
  1160.             --
  1161.             local Page = {
  1162.                 Name = Properties.Name or "Page",
  1163.                 Window = self,
  1164.                 Open = false,
  1165.                 Sections = {},
  1166.                 Elements = {},
  1167.             }
  1168.             --
  1169.             local NewPage = Instance.new("TextButton")
  1170.             NewPage.Name = "NewPage"
  1171.             NewPage.FontFace = Font.new("rbxasset://fonts/families/SourceSansPro.json")
  1172.             NewPage.TextColor3 = Color3.fromRGB(0, 0, 0)
  1173.             NewPage.TextSize = 14
  1174.             NewPage.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1175.             NewPage.BackgroundTransparency = 1
  1176.             NewPage.BorderColor3 = Color3.fromRGB(0, 0, 0)
  1177.             NewPage.BorderSizePixel = 0
  1178.             NewPage.Size = UDim2.new(0.2, 0, 1, 0)
  1179.             NewPage.Parent = Page.Window.Elements.TabHolder
  1180.  
  1181.             local Frame = Instance.new("Frame")
  1182.             Frame.Name = "Frame"
  1183.             Frame.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
  1184.             Frame.BorderColor3 = Color3.fromRGB(0, 0, 0)
  1185.             Frame.BorderSizePixel = 0
  1186.             Frame.Position = UDim2.new(0, 1, 0, 2)
  1187.             Frame.Size = UDim2.new(1, -2, 1, -4)
  1188.  
  1189.             local UIGradient = Instance.new("UIGradient")
  1190.             UIGradient.Name = "UIGradient"
  1191.             UIGradient.Color = ColorSequence.new({
  1192.                 ColorSequenceKeypoint.new(0, Color3.fromRGB(50, 50, 50)),
  1193.                 ColorSequenceKeypoint.new(1, Color3.fromRGB(35, 35, 35)),
  1194.             })
  1195.             UIGradient.Enabled = false
  1196.             UIGradient.Rotation = 90
  1197.             UIGradient.Parent = Frame
  1198.  
  1199.             local TextLabel = Instance.new("TextLabel")
  1200.             TextLabel.Name = "TextLabel"
  1201.             TextLabel.FontFace = realfont
  1202.             TextLabel.Text = Page.Name
  1203.             TextLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
  1204.             TextLabel.TextSize = Library.FSize
  1205.             TextLabel.TextStrokeTransparency = 0
  1206.             TextLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1207.             TextLabel.BackgroundTransparency = 1
  1208.             TextLabel.BorderColor3 = Color3.fromRGB(0, 0, 0)
  1209.             TextLabel.BorderSizePixel = 0
  1210.             TextLabel.Position = UDim2.new(0, 0, 0, -1)
  1211.             TextLabel.Size = UDim2.new(1, 0, 0, 32)
  1212.             TextLabel.Parent = Frame
  1213.  
  1214.             Frame.Parent = NewPage
  1215.  
  1216.             local RealPage = Instance.new("Frame")
  1217.             RealPage.Name = "RealPage"
  1218.             RealPage.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1219.             RealPage.BackgroundTransparency = 1
  1220.             RealPage.BorderColor3 = Color3.fromRGB(0, 0, 0)
  1221.             RealPage.BorderSizePixel = 0
  1222.             RealPage.Position = UDim2.new(0, 8, 0, 41)
  1223.             RealPage.Size = UDim2.new(1, -16, 1, -49)
  1224.             RealPage.Parent = Page.Window.Elements.Holder
  1225.             RealPage.Visible = false
  1226.  
  1227.             local Left = Instance.new("Frame")
  1228.             Left.Name = "Left"
  1229.             Left.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1230.             Left.BackgroundTransparency = 1
  1231.             Left.BorderColor3 = Color3.fromRGB(0, 0, 0)
  1232.             Left.BorderSizePixel = 0
  1233.             Left.Size = UDim2.new(0.5, -6, 1, 0)
  1234.             Left.ZIndex = 2
  1235.  
  1236.             local UIListLayout = Instance.new("UIListLayout")
  1237.             UIListLayout.Name = "UIListLayout"
  1238.             UIListLayout.Padding = UDim.new(0, 10)
  1239.             UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
  1240.             UIListLayout.Parent = Left
  1241.  
  1242.             Left.Parent = RealPage
  1243.  
  1244.             local Right = Instance.new("Frame")
  1245.             Right.Name = "Right"
  1246.             Right.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1247.             Right.BackgroundTransparency = 1
  1248.             Right.BorderColor3 = Color3.fromRGB(0, 0, 0)
  1249.             Right.BorderSizePixel = 0
  1250.             Right.Position = UDim2.new(0.5, 6, 0, 0)
  1251.             Right.Size = UDim2.new(0.5, -6, 1, 0)
  1252.  
  1253.             local UIListLayout1 = Instance.new("UIListLayout")
  1254.             UIListLayout1.Name = "UIListLayout"
  1255.             UIListLayout1.SortOrder = Enum.SortOrder.LayoutOrder
  1256.             UIListLayout1.Parent = Right
  1257.             UIListLayout1.Padding = UDim.new(0, 10)
  1258.  
  1259.             Right.Parent = RealPage
  1260.  
  1261.             function Page:Turn(bool)
  1262.                 if not Library.Cooldown then
  1263.                     Page.Open = bool
  1264.                     UIGradient.Enabled = Page.Open and true or false
  1265.                     Frame.BackgroundColor3 = Page.Open and Color3.new(1,1,1) or Color3.fromRGB(30,30,30)
  1266.                     --
  1267.                     task.spawn(function()
  1268.                         Page.Window.Elements.FadeThing.Visible = true
  1269.                         TweenService:Create(Page.Window.Elements.FadeThing, TweenInfo.new(0.1, Enum.EasingStyle.Linear, Enum.EasingDirection.Out), {BackgroundTransparency = 0}):Play()
  1270.                         task.wait(0.1)
  1271.                         RealPage.Visible = Page.Open
  1272.                         TweenService:Create(Page.Window.Elements.FadeThing, TweenInfo.new(0.1, Enum.EasingStyle.Linear, Enum.EasingDirection.Out), {BackgroundTransparency = 1}):Play()
  1273.                         task.wait(0.1)
  1274.                         Page.Window.Elements.FadeThing.Visible = false
  1275.                     end)
  1276.                     --
  1277.                     for Index, Page in pairs(Page.Window.Pages) do
  1278.                         Page.Elements.PageFrame.Size = UDim2.new(1,Index == 1 and -1 or Index == #Page.Window.Pages and -1 or -2,1,Page.Open and -2 or -4)
  1279.                         Page.Elements.PageFrame.Position = UDim2.new(0,Index == 1 and 0 or 1,0,2)
  1280.                     end
  1281.                 end
  1282.             end
  1283.             --
  1284.             Library:Connection(NewPage.MouseButton1Down, function()
  1285.                 if not Page.Open then
  1286.                     Page:Turn(true)
  1287.                     for _, Pages in pairs(Page.Window.Pages) do
  1288.                         if Pages.Open and Pages ~= Page then
  1289.                             Pages:Turn(false)
  1290.                         end
  1291.                     end
  1292.                 end
  1293.             end)
  1294.  
  1295.             -- // Elements
  1296.             Page.Elements = {
  1297.                 Left = Left,
  1298.                 Right = Right,
  1299.                 RealPage = RealPage,
  1300.                 PageButton = NewPage,
  1301.                 PageFrame = Frame,
  1302.             }
  1303.  
  1304.             -- // Drawings
  1305.             if #Page.Window.Pages == 0 then
  1306.                 Page:Turn(true)
  1307.             end
  1308.             Page.Window.Pages[#Page.Window.Pages + 1] = Page
  1309.             Page.Window:UpdateTabs()
  1310.             return setmetatable(Page, Library.Pages)
  1311.         end
  1312.         --
  1313.         function Pages:Section(Properties)
  1314.             if not Properties then
  1315.                 Properties = {}
  1316.             end
  1317.             --
  1318.             local Section = {
  1319.                 Name = Properties.Name or "Section",
  1320.                 Page = self,
  1321.                 Side = (Properties.side or Properties.Side or "left"):lower(),
  1322.                 AutoSize = (Properties.AutoSize or Properties.autosize or false),
  1323.                 Size = (Properties.Size or Properties.size or 100),
  1324.                 Zindex = (Properties.Zindex or Properties.zindex or 1),
  1325.                 Elements = {},
  1326.                 Content = {},
  1327.                 Sections = {},
  1328.             }
  1329.             --
  1330.             local SectionOutline = Instance.new("Frame")
  1331.             SectionOutline.Name = "SectionOutline"
  1332.             SectionOutline.BackgroundColor3 = Color3.fromRGB(20, 20, 20)
  1333.             SectionOutline.BorderColor3 = Color3.fromRGB(0, 0, 0)
  1334.             SectionOutline.Size = UDim2.new(1, 0, 0, Section.Size)
  1335.             SectionOutline.AutomaticSize = Section.AutoSize and Enum.AutomaticSize.Y or Enum.AutomaticSize.None
  1336.             SectionOutline.ZIndex = Section.Zindex
  1337.             SectionOutline.Parent = Section.Side == "left" and Section.Page.Elements.Left or Section.Side == "right" and Section.Page.Elements.Right
  1338.  
  1339.             local SectionInline = Instance.new("Frame")
  1340.             SectionInline.Name = "SectionInline"
  1341.             SectionInline.BackgroundColor3 = Color3.fromRGB(35, 35, 35)
  1342.             SectionInline.BorderColor3 = Color3.fromRGB(0, 0, 0)
  1343.             SectionInline.BorderSizePixel = 0
  1344.             SectionInline.Position = UDim2.new(0, 1, 0, 1)
  1345.             SectionInline.Size = UDim2.new(1, -2, 1, -2)
  1346.  
  1347.             local Accent = Library:NewInstance("Frame", true)
  1348.             Accent.Name = "Accent"
  1349.             Accent.BackgroundColor3 = Library.Accent
  1350.             Accent.BorderColor3 = Color3.fromRGB(20, 20, 20)
  1351.             Accent.BorderSizePixel = 0
  1352.             Accent.Position = UDim2.new(0, 0, 0, 0)
  1353.             Accent.Size = UDim2.new(1, 0, 0, 1)
  1354.  
  1355.             local UIGradient = Instance.new("UIGradient")
  1356.             UIGradient.Name = "UIGradient"
  1357.             UIGradient.Color = ColorSequence.new({
  1358.                 ColorSequenceKeypoint.new(0, Color3.fromRGB(255, 255, 255)),
  1359.                 ColorSequenceKeypoint.new(1, Color3.fromRGB(145, 145, 145)),
  1360.             })
  1361.             UIGradient.Rotation = 90
  1362.             UIGradient.Parent = Accent
  1363.  
  1364.             local BlackLine = Instance.new("Frame")
  1365.             BlackLine.Name = "BlackLine"
  1366.             BlackLine.BackgroundColor3 = Color3.fromRGB(20, 20, 20)
  1367.             BlackLine.BorderColor3 = Color3.fromRGB(0, 0, 0)
  1368.             BlackLine.BorderSizePixel = 0
  1369.             BlackLine.Position = UDim2.new(0, 0, 1, 0)
  1370.             BlackLine.Size = UDim2.new(1, 0, 0, 2)
  1371.             BlackLine.Parent = Accent
  1372.  
  1373.             Accent.Parent = SectionInline
  1374.  
  1375.             local Title = Instance.new("TextLabel")
  1376.             Title.Name = "Title"
  1377.             Title.FontFace = realfont
  1378.             Title.Text = Section.Name
  1379.             Title.TextColor3 = Color3.fromRGB(255, 255, 255)
  1380.             Title.TextSize = Library.FSize
  1381.             Title.TextStrokeTransparency = 0
  1382.             Title.TextXAlignment = Enum.TextXAlignment.Left
  1383.             Title.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1384.             Title.BackgroundTransparency = 1
  1385.             Title.BorderColor3 = Color3.fromRGB(0, 0, 0)
  1386.             Title.BorderSizePixel = 0
  1387.             Title.Position = UDim2.new(0, 4, 0, 3)
  1388.             Title.Size = UDim2.new(1, 0, 0, 16)
  1389.             Title.Parent = SectionInline
  1390.  
  1391.             local SectionContent = Instance.new("Frame")
  1392.             SectionContent.Name = "SectionContent"
  1393.             SectionContent.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1394.             SectionContent.BackgroundTransparency = 1
  1395.             SectionContent.BorderColor3 = Color3.fromRGB(0, 0, 0)
  1396.             SectionContent.BorderSizePixel = 0
  1397.             SectionContent.Position = UDim2.new(0, 10, 0, 24)
  1398.             SectionContent.Size = UDim2.new(1, -20, 1, -30)
  1399.  
  1400.             local UIPadding = Instance.new("UIPadding")
  1401.             UIPadding.Name = "UIPadding"
  1402.             UIPadding.PaddingBottom = UDim.new(0, 12)
  1403.             UIPadding.Parent = SectionContent
  1404.  
  1405.             local UIListLayout = Instance.new("UIListLayout")
  1406.             UIListLayout.Name = "UIListLayout"
  1407.             UIListLayout.Padding = UDim.new(0, 10)
  1408.             UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
  1409.             UIListLayout.Parent = SectionContent
  1410.  
  1411.             SectionContent.Parent = SectionInline
  1412.  
  1413.             SectionInline.Parent = SectionOutline
  1414.  
  1415.             -- // Elements
  1416.             Section.Elements = {
  1417.                 SectionContent = SectionContent;
  1418.             }
  1419.  
  1420.             -- // Returning
  1421.             Section.Page.Sections[#Section.Page.Sections + 1] = Section
  1422.             return setmetatable(Section, Library.Sections)
  1423.         end
  1424.         --
  1425.         function Pages:MultiSection(Properties)
  1426.             if not Properties then
  1427.                 Properties = {}
  1428.             end
  1429.             --
  1430.             local Section = {
  1431.                 Sections = (Properties.sections or Properties.Sections or {}),
  1432.                 Page = self,
  1433.                 Side = (Properties.side or Properties.Side or "left"):lower(),
  1434.                 Size = (Properties.Size or Properties.size or 100),
  1435.                 Zindex = (Properties.Zindex or Properties.zindex or 1),
  1436.                 Elements = {},
  1437.                 Content = {},
  1438.                 ActualSections = {};
  1439.             }
  1440.             --
  1441.             local SectionOutline = Instance.new("Frame")
  1442.             SectionOutline.Name = "SectionOutline"
  1443.             SectionOutline.BackgroundColor3 = Color3.fromRGB(20, 20, 20)
  1444.             SectionOutline.BorderColor3 = Color3.fromRGB(0, 0, 0)
  1445.             SectionOutline.Parent = Section.Side == "left" and Section.Page.Elements.Left or Section.Side == "right" and Section.Page.Elements.Right
  1446.             SectionOutline.Size = UDim2.new(1, 0, 0, Section.Size)
  1447.             SectionOutline.ZIndex = Section.Zindex
  1448.  
  1449.  
  1450.             local SectionInline = Instance.new("Frame")
  1451.             SectionInline.Name = "SectionInline"
  1452.             SectionInline.BackgroundColor3 = Color3.fromRGB(35, 35, 35)
  1453.             SectionInline.BorderColor3 = Color3.fromRGB(0, 0, 0)
  1454.             SectionInline.BorderSizePixel = 0
  1455.             SectionInline.Position = UDim2.new(0, 1, 0, 1)
  1456.             SectionInline.Size = UDim2.new(1, -2, 1, -2)
  1457.  
  1458.             local Accent = Library:NewInstance("Frame", true)
  1459.             Accent.Name = "Accent"
  1460.             Accent.BackgroundColor3 = Library.Accent
  1461.             Accent.BorderColor3 = Color3.fromRGB(20, 20, 20)
  1462.             Accent.BorderSizePixel = 0
  1463.             Accent.Position = UDim2.new(0, 0, 0, 0)
  1464.             Accent.Size = UDim2.new(1, 0, 0, 1)
  1465.  
  1466.             local UIGradient = Instance.new("UIGradient")
  1467.             UIGradient.Name = "UIGradient"
  1468.             UIGradient.Color = ColorSequence.new({
  1469.                 ColorSequenceKeypoint.new(0, Color3.fromRGB(255, 255, 255)),
  1470.                 ColorSequenceKeypoint.new(1, Color3.fromRGB(145, 145, 145)),
  1471.             })
  1472.             UIGradient.Rotation = 90
  1473.             UIGradient.Parent = Accent
  1474.  
  1475.             local BlackLine = Instance.new("Frame")
  1476.             BlackLine.Name = "BlackLine"
  1477.             BlackLine.BackgroundColor3 = Color3.fromRGB(20, 20, 20)
  1478.             BlackLine.BorderColor3 = Color3.fromRGB(0, 0, 0)
  1479.             BlackLine.BorderSizePixel = 0
  1480.             BlackLine.Position = UDim2.new(0, 0, 1, 0)
  1481.             BlackLine.Size = UDim2.new(1, 0, 0, 2)
  1482.             BlackLine.Parent = Accent
  1483.  
  1484.             Accent.Parent = SectionInline
  1485.  
  1486.             local Tabs = Instance.new("Frame")
  1487.             Tabs.Name = "Tabs"
  1488.             Tabs.BackgroundColor3 = Color3.fromRGB(20, 20, 20)
  1489.             Tabs.BorderColor3 = Color3.fromRGB(0, 0, 0)
  1490.             Tabs.BorderSizePixel = 0
  1491.             Tabs.Position = UDim2.new(0, 0, 0, 1)
  1492.             Tabs.Size = UDim2.new(1, 0, 0, 20)
  1493.  
  1494.             local UIListLayout1 = Instance.new("UIListLayout")
  1495.             UIListLayout1.Name = "UIListLayout"
  1496.             UIListLayout1.FillDirection = Enum.FillDirection.Horizontal
  1497.             UIListLayout1.SortOrder = Enum.SortOrder.LayoutOrder
  1498.             UIListLayout1.Parent = Tabs
  1499.  
  1500.             Tabs.Parent = SectionInline
  1501.  
  1502.             SectionInline.Parent = SectionOutline
  1503.  
  1504.             local FadeThing = Instance.new("Frame")
  1505.             FadeThing.Name = "FadeThing"
  1506.             FadeThing.BackgroundColor3 = Color3.fromRGB(35, 35, 35)
  1507.             FadeThing.BackgroundTransparency = 1
  1508.             FadeThing.BorderColor3 = Color3.fromRGB(0, 0, 0)
  1509.             FadeThing.BorderSizePixel = 0
  1510.             FadeThing.Position = UDim2.new(0, 10, 0, 29)
  1511.             FadeThing.Size = UDim2.new(1, -20, 1, -35)
  1512.             FadeThing.Parent = SectionInline
  1513.             FadeThing.Visible = false
  1514.             FadeThing.ZIndex = 100
  1515.  
  1516.             -- // Elements
  1517.             Section.Elements = {
  1518.                 Top = Tabs;
  1519.             }
  1520.             local SectionShit = Section.Sections;
  1521.             local SectionShit2 = Section;
  1522.             local SectionButtons = {};
  1523.  
  1524.  
  1525.             for I, V in next, SectionShit do
  1526.                 local MultiSection = {
  1527.                     Window = self.Window,
  1528.                     Page = self,
  1529.                     Open = false,
  1530.                     Content = {},
  1531.                     NoUpdate = true,
  1532.                     ContentAxis = 0;
  1533.                     Elements = {};
  1534.                 };
  1535.  
  1536.                 -- // Drawings
  1537.                 local NewPage = Instance.new("TextButton")
  1538.                 NewPage.Name = "NewPage"
  1539.                 NewPage.FontFace = Font.new("rbxasset://fonts/families/SourceSansPro.json")
  1540.                 NewPage.TextColor3 = Color3.fromRGB(0, 0, 0)
  1541.                 NewPage.TextSize = 14
  1542.                 NewPage.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1543.                 NewPage.BackgroundTransparency = 1
  1544.                 NewPage.BorderColor3 = Color3.fromRGB(0, 0, 0)
  1545.                 NewPage.BorderSizePixel = 0
  1546.                 NewPage.Size = UDim2.new(0.2, 0, 1, 0)
  1547.                 NewPage.Parent = Tabs
  1548.  
  1549.                 local Frame = Instance.new("Frame")
  1550.                 Frame.Name = "Frame"
  1551.                 Frame.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
  1552.                 Frame.BorderColor3 = Color3.fromRGB(20,20,20)
  1553.                 Frame.BorderSizePixel = 0
  1554.                 Frame.Position = UDim2.new(0, 0, 0, 2)
  1555.                 Frame.Size = UDim2.new(1, 0,1, -2)
  1556.  
  1557.                 local UIGradient = Instance.new("UIGradient")
  1558.                 UIGradient.Name = "UIGradient"
  1559.                 UIGradient.Color = ColorSequence.new({
  1560.                     ColorSequenceKeypoint.new(0, Color3.fromRGB(50, 50, 50)),
  1561.                     ColorSequenceKeypoint.new(1, Color3.fromRGB(35, 35, 35)),
  1562.                 })
  1563.                 UIGradient.Enabled = false
  1564.                 UIGradient.Rotation = 90
  1565.                 UIGradient.Parent = Frame
  1566.  
  1567.                 local TextLabel = Instance.new("TextLabel")
  1568.                 TextLabel.Name = "TextLabel"
  1569.                 TextLabel.FontFace = realfont
  1570.                 TextLabel.Text = V
  1571.                 TextLabel.TextColor3 = Color3.fromRGB(145,145,145)
  1572.                 TextLabel.TextSize = Library.FSize
  1573.                 TextLabel.TextStrokeTransparency = 0
  1574.                 TextLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1575.                 TextLabel.BackgroundTransparency = 1
  1576.                 TextLabel.BorderColor3 = Color3.fromRGB(0, 0, 0)
  1577.                 TextLabel.BorderSizePixel = 0
  1578.                 TextLabel.Position = UDim2.new(0, 0, 0, -1)
  1579.                 TextLabel.Size = UDim2.new(1, 0, 0, 18)
  1580.                 TextLabel.Parent = Frame
  1581.  
  1582.                 Frame.Parent = NewPage
  1583.  
  1584.                 local SectionContent = Instance.new("Frame")
  1585.                 SectionContent.Name = "SectionContent"
  1586.                 SectionContent.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1587.                 SectionContent.BackgroundTransparency = 1
  1588.                 SectionContent.BorderColor3 = Color3.fromRGB(0, 0, 0)
  1589.                 SectionContent.BorderSizePixel = 0
  1590.                 SectionContent.Position = UDim2.new(0, 10, 0, 29)
  1591.                 SectionContent.Size = UDim2.new(1, -20, 1, -35)
  1592.                 SectionContent.Visible = false
  1593.  
  1594.                 local UIListLayout = Instance.new("UIListLayout")
  1595.                 UIListLayout.Name = "UIListLayout"
  1596.                 UIListLayout.Padding = UDim.new(0, 11)
  1597.                 UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
  1598.                 UIListLayout.Parent = SectionContent
  1599.  
  1600.                 local UIPadding = Instance.new("UIPadding")
  1601.                 UIPadding.Name = "UIPadding"
  1602.                 UIPadding.PaddingBottom = UDim.new(0, 12)
  1603.                 UIPadding.Parent = SectionContent
  1604.  
  1605.                 SectionContent.Parent = SectionInline
  1606.  
  1607.                 table.insert(SectionButtons, NewPage)
  1608.  
  1609.  
  1610.                 -- // Update
  1611.                 for Index, RSection in next, SectionButtons do
  1612.                     RSection.Size = UDim2.new(1 / #SectionButtons, 0, 1, 0)
  1613.                 end;
  1614.  
  1615.                 -- // Open MultiSection
  1616.                 function MultiSection:Turn(bool)
  1617.                     MultiSection.Open = bool
  1618.                     UIGradient.Enabled = MultiSection.Open and true or false
  1619.                     Frame.BackgroundColor3 = MultiSection.Open and Color3.new(1,1,1) or Color3.fromRGB(30,30,30)
  1620.                     TextLabel.TextColor3 = MultiSection.Open and Color3.new(1,1,1) or Color3.fromRGB(145,145,145)
  1621.                     Frame.BorderSizePixel = MultiSection.Open and 0 or 1
  1622.                     --
  1623.                     task.spawn(function()
  1624.                         FadeThing.Visible = true
  1625.                         TweenService:Create(FadeThing, TweenInfo.new(0.1, Enum.EasingStyle.Linear, Enum.EasingDirection.Out), {BackgroundTransparency = 0}):Play()
  1626.                         task.wait(0.1)
  1627.                         SectionContent.Visible = MultiSection.Open
  1628.                         TweenService:Create(FadeThing, TweenInfo.new(0.1, Enum.EasingStyle.Linear, Enum.EasingDirection.Out), {BackgroundTransparency = 1}):Play()
  1629.                         task.wait(0.1)
  1630.                         FadeThing.Visible = false
  1631.                     end)
  1632.                     --
  1633.                     for Index, V in pairs(Section.ActualSections) do
  1634.                         if #Section.ActualSections == 3 or #Section.ActualSections == 4 then
  1635.                             V.Elements.PageFrame.Size = UDim2.new(1,Index == 1 and -1 or Index == #Section.ActualSections and -1 or 0,1,V.Open and -2 or -3)
  1636.                             V.Elements.PageFrame.Position = UDim2.new(0,Index == #Section.ActualSections and 1 or 0,0,2)
  1637.                         else
  1638.                             V.Elements.PageFrame.Size = UDim2.new(1,Index == 1 and -1 or 0,1,V.Open and -2 or -3)
  1639.                             V.Elements.PageFrame.Position = UDim2.new(0,0,0,2)
  1640.                         end
  1641.                     end
  1642.                 end;
  1643.  
  1644.                 Library:Connection(NewPage.MouseButton1Down, function()
  1645.                     if not MultiSection.Open then
  1646.                         MultiSection:Turn(true)
  1647.                         for index, other_page in pairs(SectionShit2.ActualSections) do
  1648.                             if other_page.Open and other_page ~= MultiSection then
  1649.                                 other_page:Turn(false)
  1650.                             end
  1651.                         end
  1652.                     end
  1653.                 end)
  1654.  
  1655.                 if #SectionShit == 0 then
  1656.                     MultiSection:Turn(true);
  1657.                 end;
  1658.  
  1659.                 -- // Elements
  1660.                 MultiSection.Elements = {
  1661.                     PageFrame = Frame;
  1662.                     SectionContent = SectionContent;
  1663.                 };
  1664.  
  1665.                 -- // Returning
  1666.                 SectionShit2.ActualSections[#SectionShit2.ActualSections + 1] = setmetatable(MultiSection, Library.Sections)
  1667.             end;
  1668.  
  1669.             -- // Returning
  1670.             Section.Page.Sections[#Section.Page.Sections + 1] = Section;
  1671.             Section.ActualSections[1]:Turn(true)
  1672.             return table.unpack(Section.ActualSections)
  1673.         end
  1674.         --
  1675.         function Sections:Toggle(Properties)
  1676.             if not Properties then
  1677.                 Properties = {}
  1678.             end
  1679.             --
  1680.             local Toggle = {
  1681.                 Window = self.Window,
  1682.                 Page = self.Page,
  1683.                 Section = self,
  1684.                 Risk = Properties.Risk or false,
  1685.                 Name = Properties.Name or "Toggle",
  1686.                 State = (
  1687.                     Properties.state
  1688.                         or Properties.State
  1689.                         or Properties.def
  1690.                         or Properties.Def
  1691.                         or Properties.default
  1692.                         or Properties.Default
  1693.                         or false
  1694.                 ),
  1695.                 Callback = (
  1696.                     Properties.callback
  1697.                         or Properties.Callback
  1698.                         or Properties.callBack
  1699.                         or Properties.CallBack
  1700.                         or function() end
  1701.                 ),
  1702.                 Flag = (
  1703.                     Properties.flag
  1704.                         or Properties.Flag
  1705.                         or Properties.pointer
  1706.                         or Properties.Pointer
  1707.                         or Library.NextFlag()
  1708.                 ),
  1709.                 Toggled = false,
  1710.                 Colorpickers = 0,
  1711.             }
  1712.             --
  1713.             local NewToggle = Instance.new("TextButton")
  1714.             NewToggle.Name = "NewToggle"
  1715.             NewToggle.FontFace = Font.new("rbxasset://fonts/families/SourceSansPro.json")
  1716.             NewToggle.Text = ""
  1717.             NewToggle.TextColor3 = Color3.fromRGB(0, 0, 0)
  1718.             NewToggle.TextSize = 14
  1719.             NewToggle.AutoButtonColor = false
  1720.             NewToggle.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1721.             NewToggle.BackgroundTransparency = 1
  1722.             NewToggle.BorderColor3 = Color3.fromRGB(0, 0, 0)
  1723.             NewToggle.BorderSizePixel = 0
  1724.             NewToggle.Size = UDim2.new(1, 0, 0, 8)
  1725.             NewToggle.Parent = Toggle.Section.Elements.SectionContent
  1726.  
  1727.             local ToggleFrame = Instance.new("Frame")
  1728.             ToggleFrame.Name = "ToggleFrame"
  1729.             ToggleFrame.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1730.             ToggleFrame.BorderColor3 = Color3.fromRGB(0, 0, 0)
  1731.             ToggleFrame.Size = UDim2.new(0, 8, 0, 8)
  1732.  
  1733.             local DisabledGradient = Instance.new("UIGradient")
  1734.             DisabledGradient.Name = "DisabledGradient"
  1735.             DisabledGradient.Color = ColorSequence.new({
  1736.                 ColorSequenceKeypoint.new(0, Color3.fromRGB(47, 47, 47)),
  1737.                 ColorSequenceKeypoint.new(1, Color3.fromRGB(26, 26, 26)),
  1738.             })
  1739.             DisabledGradient.Rotation = 90
  1740.             DisabledGradient.Parent = ToggleFrame
  1741.  
  1742.             local UIStroke = Instance.new("UIStroke")
  1743.             UIStroke.Name = "UIStroke"
  1744.             UIStroke.ApplyStrokeMode = Enum.ApplyStrokeMode.Border
  1745.             UIStroke.LineJoinMode = Enum.LineJoinMode.Miter
  1746.             UIStroke.Thickness = 2
  1747.             UIStroke.Transparency = 0.8
  1748.             UIStroke.Parent = ToggleFrame
  1749.  
  1750.             local ToggleAccent = Library:NewInstance("Frame", true)
  1751.             ToggleAccent.Name = "ToggleAccent"
  1752.             ToggleAccent.BackgroundColor3 = Library.Accent
  1753.             ToggleAccent.BorderColor3 = Color3.fromRGB(0, 0, 0)
  1754.             ToggleAccent.BorderSizePixel = 0
  1755.             ToggleAccent.Size = UDim2.new(1, 0, 1, 0)
  1756.             ToggleAccent.Visible = false
  1757.  
  1758.             local UIGradient = Instance.new("UIGradient")
  1759.             UIGradient.Name = "UIGradient"
  1760.             UIGradient.Color = ColorSequence.new({
  1761.                 ColorSequenceKeypoint.new(0, Color3.fromRGB(255, 255, 255)),
  1762.                 ColorSequenceKeypoint.new(1, Color3.fromRGB(145, 145, 145)),
  1763.             })
  1764.             UIGradient.Rotation = 90
  1765.             UIGradient.Parent = ToggleAccent
  1766.  
  1767.             ToggleAccent.Parent = ToggleFrame
  1768.  
  1769.             ToggleFrame.Parent = NewToggle
  1770.  
  1771.             local Title = Instance.new("TextLabel")
  1772.             Title.Name = "Title"
  1773.             Title.FontFace = realfont
  1774.             Title.Text = Toggle.Name
  1775.             Title.TextColor3 = Color3.fromRGB(255, 255, 255)
  1776.             Title.TextSize = Library.FSize
  1777.             Title.TextStrokeTransparency = 0
  1778.             Title.TextXAlignment = Enum.TextXAlignment.Left
  1779.             Title.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1780.             Title.BackgroundTransparency = 1
  1781.             Title.BorderColor3 = Color3.fromRGB(0, 0, 0)
  1782.             Title.BorderSizePixel = 0
  1783.             Title.Position = UDim2.new(0, 14, 0, 0)
  1784.             Title.Size = UDim2.new(1, 0, 1, 0)
  1785.             Title.Parent = NewToggle
  1786.  
  1787.             -- // Functions
  1788.             local function SetState()
  1789.                 Toggle.Toggled = not Toggle.Toggled
  1790.                 ToggleAccent.Visible = Toggle.Toggled
  1791.                 Library.Flags[Toggle.Flag] = Toggle.Toggled
  1792.                 Toggle.Callback(Toggle.Toggled)
  1793.             end
  1794.             --
  1795.             Library:Connection(NewToggle.MouseButton1Down, SetState)
  1796.  
  1797.             function Toggle:Colorpicker(Properties)
  1798.                 local Properties = Properties or {}
  1799.                 local Colorpicker = {
  1800.                     Name = (Properties.Name or Properties.name) or Toggle.Name,
  1801.                     State = (
  1802.                         Properties.state
  1803.                             or Properties.State
  1804.                             or Properties.def
  1805.                             or Properties.Def
  1806.                             or Properties.default
  1807.                             or Properties.Default
  1808.                             or Color3.fromRGB(255, 0, 0)
  1809.                     ),
  1810.                     Alpha = (
  1811.                         Properties.alpha
  1812.                             or Properties.Alpha
  1813.                             or Properties.transparency
  1814.                             or Properties.Transparency
  1815.                             or 1
  1816.                     ),
  1817.                     Callback = (
  1818.                         Properties.callback
  1819.                             or Properties.Callback
  1820.                             or Properties.callBack
  1821.                             or Properties.CallBack
  1822.                             or function() end
  1823.                     ),
  1824.                     Flag = (
  1825.                         Properties.flag
  1826.                             or Properties.Flag
  1827.                             or Properties.pointer
  1828.                             or Properties.Pointer
  1829.                             or Library.NextFlag()
  1830.                     ),
  1831.                 }
  1832.                 -- // Functions
  1833.                 Toggle.Colorpickers = Toggle.Colorpickers + 1
  1834.                 local colorpickertypes = Library:NewPicker(
  1835.                     Colorpicker.Name,
  1836.                     Colorpicker.State,
  1837.                     Colorpicker.Alpha,
  1838.                     NewToggle,
  1839.                     Toggle.Colorpickers,
  1840.                     Colorpicker.Flag,
  1841.                     Colorpicker.Callback
  1842.                 )
  1843.  
  1844.                 function Colorpicker:Set(color)
  1845.                     colorpickertypes:set(color)
  1846.                 end
  1847.  
  1848.                 -- // Returning
  1849.                 return Colorpicker
  1850.             end
  1851.  
  1852.             function Toggle:Keybind(Properties)
  1853.                 local Properties = Properties or {}
  1854.                 local Keybind = {
  1855.                     Section = self,
  1856.                     Page = self.Page,
  1857.                     Name = Properties.name or Properties.Name or "Keybind",
  1858.                     State = (
  1859.                         Properties.state
  1860.                             or Properties.State
  1861.                             or Properties.def
  1862.                             or Properties.Def
  1863.                             or Properties.default
  1864.                             or Properties.Default
  1865.                             or nil
  1866.                     ),
  1867.                     Mode = (Properties.mode or Properties.Mode or "Toggle"),
  1868.                     UseKey = (Properties.UseKey or false),
  1869.                     Ignore = (Properties.ignore or Properties.Ignore or false),
  1870.                     Callback = (
  1871.                         Properties.callback
  1872.                             or Properties.Callback
  1873.                             or Properties.callBack
  1874.                             or Properties.CallBack
  1875.                             or function() end
  1876.                     ),
  1877.                     Flag = (
  1878.                         Properties.flag
  1879.                             or Properties.Flag
  1880.                             or Properties.pointer
  1881.                             or Properties.Pointer
  1882.                             or Library.NextFlag()
  1883.                     ),
  1884.                     Binding = nil,
  1885.                 }
  1886.                 local Key
  1887.                 local State = false
  1888.                 local ModeBox = Instance.new("Frame")
  1889.                 local Hold = Instance.new("TextButton")
  1890.                 local Toggle = Instance.new("TextButton")
  1891.                 local Always = Instance.new("TextButton")
  1892.                 local ListValue;
  1893.                 if not Keybind.Ignore then
  1894.                     ListValue = Library.KeyList:NewKey(Keybind.Name, Keybind.Page.Name)
  1895.                 end
  1896.                 --
  1897.                 local KeyFrame = Instance.new("TextButton")
  1898.                 KeyFrame.Name = "KeyFrame"
  1899.                 KeyFrame.AnchorPoint = Vector2.new(0, 0.5)
  1900.                 KeyFrame.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
  1901.                 KeyFrame.BorderColor3 = Color3.fromRGB(0, 0, 0)
  1902.                 KeyFrame.Position = UDim2.new(1, -40, 0.5, 0)
  1903.                 KeyFrame.Size = UDim2.new(0, 40, 0, 12)
  1904.                 KeyFrame.FontFace = Font.new("rbxasset://fonts/families/SourceSansPro.json")
  1905.                 KeyFrame.Text = ""
  1906.                 KeyFrame.TextColor3 = Color3.fromRGB(0, 0, 0)
  1907.                 KeyFrame.TextSize = 14
  1908.                 KeyFrame.AutoButtonColor = false
  1909.  
  1910.                 local UIStroke = Instance.new("UIStroke")
  1911.                 UIStroke.Name = "UIStroke"
  1912.                 UIStroke.ApplyStrokeMode = Enum.ApplyStrokeMode.Border
  1913.                 UIStroke.LineJoinMode = Enum.LineJoinMode.Miter
  1914.                 UIStroke.Thickness = 2
  1915.                 UIStroke.Transparency = 0.8
  1916.                 UIStroke.Parent = KeyFrame
  1917.  
  1918.                 local Value = Instance.new("TextLabel")
  1919.                 Value.Name = "Value"
  1920.                 Value.FontFace = realfont
  1921.                 Value.Text = "..."
  1922.                 Value.TextColor3 = Color3.fromRGB(255, 255, 255)
  1923.                 Value.TextSize = Library.FSize
  1924.                 Value.TextStrokeTransparency = 0
  1925.                 Value.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1926.                 Value.BackgroundTransparency = 1
  1927.                 Value.BorderColor3 = Color3.fromRGB(0, 0, 0)
  1928.                 Value.BorderSizePixel = 0
  1929.                 Value.Size = UDim2.new(1, 0, 1, 0)
  1930.                 Value.Parent = KeyFrame
  1931.  
  1932.                 KeyFrame.Parent = NewToggle
  1933.  
  1934.                 ModeBox.Name = "ModeBox"
  1935.                 ModeBox.Parent = KeyFrame
  1936.                 ModeBox.AnchorPoint = Vector2.new(0,0.5)
  1937.                 ModeBox.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
  1938.                 ModeBox.BorderColor3 = Color3.fromRGB(0,0,0)
  1939.                 ModeBox.BorderSizePixel = 1
  1940.                 ModeBox.Size = UDim2.new(0, 55, 0, 60)
  1941.                 ModeBox.Position = UDim2.new(0,48,0.5,0)
  1942.                 ModeBox.Visible = false
  1943.                 ModeBox.ZIndex = 2
  1944.  
  1945.                 local UIStroke1 = Instance.new("UIStroke")
  1946.                 UIStroke1.Name = "UIStroke"
  1947.                 UIStroke1.ApplyStrokeMode = Enum.ApplyStrokeMode.Border
  1948.                 UIStroke1.LineJoinMode = Enum.LineJoinMode.Miter
  1949.                 UIStroke1.Thickness = 2
  1950.                 UIStroke1.Transparency = 0.8
  1951.                 UIStroke1.Parent = ModeBox
  1952.  
  1953.                 Hold.Name = "Hold"
  1954.                 Hold.Parent = ModeBox
  1955.                 Hold.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1956.                 Hold.BackgroundTransparency = 1.000
  1957.                 Hold.BorderColor3 = Color3.fromRGB(0, 0, 0)
  1958.                 Hold.BorderSizePixel = 0
  1959.                 Hold.Size = UDim2.new(1, 0, 0.333000004, 0)
  1960.                 Hold.ZIndex = 2
  1961.                 Hold.FontFace = realfont
  1962.                 Hold.Text = "Hold"
  1963.                 Hold.TextColor3 = Keybind.Mode == "Hold" and Color3.fromRGB(255,255,255) or Color3.fromRGB(145,145,145)
  1964.                 Hold.TextSize = Library.FSize
  1965.                 Hold.TextStrokeTransparency = 0
  1966.  
  1967.                 Toggle.Name = "Toggle"
  1968.                 Toggle.Parent = ModeBox
  1969.                 Toggle.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1970.                 Toggle.BackgroundTransparency = 1.000
  1971.                 Toggle.BorderColor3 = Color3.fromRGB(0, 0, 0)
  1972.                 Toggle.BorderSizePixel = 0
  1973.                 Toggle.Position = UDim2.new(0, 0, 0.333000004, 0)
  1974.                 Toggle.Size = UDim2.new(1, 0, 0.333000004, 0)
  1975.                 Toggle.ZIndex = 2
  1976.                 Toggle.FontFace = realfont
  1977.                 Toggle.Text = "Toggle"
  1978.                 Toggle.TextColor3 = Keybind.Mode == "Toggle" and Color3.fromRGB(255,255,255) or Color3.fromRGB(145,145,145)
  1979.                 Toggle.TextSize = Library.FSize
  1980.                 Toggle.TextStrokeTransparency = 0
  1981.  
  1982.                 Always.Name = "Always"
  1983.                 Always.Parent = ModeBox
  1984.                 Always.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1985.                 Always.BackgroundTransparency = 1.000
  1986.                 Always.BorderColor3 = Color3.fromRGB(0, 0, 0)
  1987.                 Always.BorderSizePixel = 0
  1988.                 Always.Position = UDim2.new(0, 0, 0.666999996, 0)
  1989.                 Always.Size = UDim2.new(1, 0, 0.333000004, 0)
  1990.                 Always.ZIndex = 2
  1991.                 Always.FontFace = realfont
  1992.                 Always.Text = "Always"
  1993.                 Always.TextColor3 = Keybind.Mode == "Always" and Color3.fromRGB(255,255,255) or Color3.fromRGB(145,145,145)
  1994.                 Always.TextSize = Library.FSize
  1995.                 Always.TextStrokeTransparency = 0
  1996.  
  1997.                 -- // Functions
  1998.                 local function set(newkey)
  1999.                     if string.find(tostring(newkey), "Enum") then
  2000.                         if c then
  2001.                             c:Disconnect()
  2002.                             if Keybind.Flag then
  2003.                                 Library.Flags[Keybind.Flag] = false
  2004.                             end
  2005.                             Keybind.Callback(false)
  2006.                         end
  2007.                         if tostring(newkey):find("Enum.KeyCode.") then
  2008.                             newkey = Enum.KeyCode[tostring(newkey):gsub("Enum.KeyCode.", "")]
  2009.                         elseif tostring(newkey):find("Enum.UserInputType.") then
  2010.                             newkey = Enum.UserInputType[tostring(newkey):gsub("Enum.UserInputType.", "")]
  2011.                         end
  2012.                         if newkey == Enum.KeyCode.Backspace then
  2013.                             Key = nil
  2014.                             if Keybind.UseKey then
  2015.                                 if Keybind.Flag then
  2016.                                     Library.Flags[Keybind.Flag] = Key
  2017.                                 end
  2018.                                 Keybind.Callback(Key)
  2019.                             end
  2020.                             local text = "None"
  2021.  
  2022.                             Value.Text = text
  2023.                         elseif newkey ~= nil then
  2024.                             Key = newkey
  2025.                             if Keybind.UseKey then
  2026.                                 if Keybind.Flag then
  2027.                                     Library.Flags[Keybind.Flag] = Key
  2028.                                 end
  2029.                                 Keybind.Callback(Key)
  2030.                             end
  2031.                             local text = (Library.Keys[newkey] or tostring(newkey):gsub("Enum.KeyCode.", ""))
  2032.  
  2033.                             Value.Text = text
  2034.                         end
  2035.  
  2036.                         Library.Flags[Keybind.Flag .. "_KEY"] = newkey
  2037.                     elseif table.find({ "Always", "Toggle", "Hold" }, newkey) then
  2038.                         if not Keybind.UseKey then
  2039.                             Library.Flags[Keybind.Flag .. "_KEY STATE"] = newkey
  2040.                             Keybind.Mode = newkey
  2041.                             if Keybind.Mode == "Always" then
  2042.                                 State = true
  2043.                                 if Keybind.Flag then
  2044.                                     Library.Flags[Keybind.Flag] = State
  2045.                                 end
  2046.                                 Keybind.Callback(true)
  2047.                                 if not Keybind.Ignore then
  2048.                                     ListValue:SetVisible(true)
  2049.                                 end
  2050.                             elseif Keybind.Mode == 'Hold' then
  2051.                                 State = false
  2052.                                 if Keybind.Flag then
  2053.                                     Library.Flags[Keybind.Flag] = State
  2054.                                 end
  2055.                                 Keybind.Callback(false)
  2056.                                 if not Keybind.Ignore then
  2057.                                     ListValue:SetVisible(false)
  2058.                                 end
  2059.                             end
  2060.                         end
  2061.                     else
  2062.                         State = newkey
  2063.                         if Keybind.Flag then
  2064.                             Library.Flags[Keybind.Flag] = newkey
  2065.                         end
  2066.                         Keybind.Callback(newkey)
  2067.                     end
  2068.                 end
  2069.                 --
  2070.                 set(Keybind.State)
  2071.                 set(Keybind.Mode)
  2072.                 KeyFrame.MouseButton1Click:Connect(function()
  2073.                     if not Keybind.Binding then
  2074.  
  2075.                         Value.Text = "..."
  2076.  
  2077.                         Keybind.Binding = Library:Connection(
  2078.                             game:GetService("UserInputService").InputBegan,
  2079.                             function(input, gpe)
  2080.                                 set(
  2081.                                     input.UserInputType == Enum.UserInputType.Keyboard and input.KeyCode
  2082.                                         or input.UserInputType
  2083.                                 )
  2084.                                 Library:Disconnect(Keybind.Binding)
  2085.                                 task.wait()
  2086.                                 Keybind.Binding = nil
  2087.                             end
  2088.                         )
  2089.                     end
  2090.                 end)
  2091.                 --
  2092.                 Library:Connection(game:GetService("UserInputService").InputBegan, function(inp)
  2093.                     if (inp.KeyCode == Key or inp.UserInputType == Key) and not Keybind.Binding and not Keybind.UseKey then
  2094.                         if Keybind.Mode == "Hold" then
  2095.                             if Keybind.Flag then
  2096.                                 Library.Flags[Keybind.Flag] = true
  2097.                             end
  2098.                             c = Library:Connection(game:GetService("RunService").RenderStepped, function()
  2099.                                 if Keybind.Callback then
  2100.                                     Keybind.Callback(true)
  2101.                                 end
  2102.                             end)
  2103.                             if not Keybind.Ignore then
  2104.                                 ListValue:SetVisible(true)
  2105.                             end
  2106.                         elseif Keybind.Mode == "Toggle" then
  2107.                             State = not State
  2108.                             if Keybind.Flag then
  2109.                                 Library.Flags[Keybind.Flag] = State
  2110.                             end
  2111.                             Keybind.Callback(State)
  2112.                             if not Keybind.Ignore then
  2113.                                 ListValue:SetVisible(State)
  2114.                             end
  2115.                         end
  2116.                     end
  2117.                 end)
  2118.                 --
  2119.                 Library:Connection(game:GetService("UserInputService").InputEnded, function(inp)
  2120.                     if Keybind.Mode == "Hold" and not Keybind.UseKey then
  2121.                         if Key ~= "" or Key ~= nil then
  2122.                             if inp.KeyCode == Key or inp.UserInputType == Key then
  2123.                                 if c then
  2124.                                     c:Disconnect()
  2125.                                     if Keybind.Flag then
  2126.                                         Library.Flags[Keybind.Flag] = false
  2127.                                     end
  2128.                                     if Keybind.Callback then
  2129.                                         Keybind.Callback(false)
  2130.                                     end
  2131.                                     if not Keybind.Ignore then
  2132.                                         ListValue:SetVisible(false)
  2133.                                     end
  2134.                                 end
  2135.                             end
  2136.                         end
  2137.                     end
  2138.                 end)
  2139.                 --
  2140.                 Library:Connection(KeyFrame.MouseButton2Down, function()
  2141.                     ModeBox.Visible = true
  2142.                     NewToggle.ZIndex = 5
  2143.                 end)
  2144.                 --
  2145.                 Library:Connection(Hold.MouseButton1Down, function()
  2146.                     set("Hold")
  2147.                     Hold.TextColor3 = Color3.fromRGB(255,255,255)
  2148.                     Toggle.TextColor3 = Color3.fromRGB(145,145,145)
  2149.                     Always.TextColor3 = Color3.fromRGB(145,145,145)
  2150.                     ModeBox.Visible = false
  2151.                     NewToggle.ZIndex = 1
  2152.                 end)
  2153.                 --
  2154.                 Library:Connection(Toggle.MouseButton1Down, function()
  2155.                     set("Toggle")
  2156.                     Hold.TextColor3 = Color3.fromRGB(145,145,145)
  2157.                     Toggle.TextColor3 = Color3.fromRGB(255,255,255)
  2158.                     Always.TextColor3 = Color3.fromRGB(145,145,145)
  2159.                     ModeBox.Visible = false
  2160.                     NewToggle.ZIndex = 1
  2161.                 end)
  2162.                 --
  2163.                 Library:Connection(Always.MouseButton1Down, function()
  2164.                     set("Always")
  2165.                     Hold.TextColor3 = Color3.fromRGB(145,145,145)
  2166.                     Toggle.TextColor3 = Color3.fromRGB(145,145,145)
  2167.                     Always.TextColor3 = Color3.fromRGB(255,255,255)
  2168.                     ModeBox.Visible = false
  2169.                     NewToggle.ZIndex = 1
  2170.                 end)
  2171.                 --
  2172.                 Library:Connection(game:GetService("UserInputService").InputBegan, function(Input)
  2173.                     if ModeBox.Visible and (Input.UserInputType == Enum.UserInputType.MouseButton1) then
  2174.                         if not Library:IsMouseOverFrame(ModeBox) then
  2175.                             ModeBox.Visible = false
  2176.                             NewToggle.ZIndex = 1
  2177.                         end
  2178.                     end
  2179.                 end)
  2180.                 --
  2181.                 Library.Flags[Keybind.Flag .. "_KEY"] = Keybind.State
  2182.                 Library.Flags[Keybind.Flag .. "_KEY STATE"] = Keybind.Mode
  2183.                 Flags[Keybind.Flag] = set
  2184.                 Flags[Keybind.Flag .. "_KEY"] = set
  2185.                 Flags[Keybind.Flag .. "_KEY STATE"] = set
  2186.                 --
  2187.                 function Keybind:Set(key)
  2188.                     set(key)
  2189.                 end
  2190.  
  2191.                 -- // Returning
  2192.                 return Keybind
  2193.             end
  2194.  
  2195.             -- // Misc Functions
  2196.             function Toggle.Set(bool)
  2197.                 bool = type(bool) == "boolean" and bool or false
  2198.                 if Toggle.Toggled ~= bool then
  2199.                     SetState()
  2200.                 end
  2201.             end
  2202.             Toggle.Set(Toggle.State)
  2203.             Library.Flags[Toggle.Flag] = Toggle.State
  2204.             Flags[Toggle.Flag] = Toggle.Set
  2205.  
  2206.             -- // Returning
  2207.             return Toggle
  2208.         end
  2209.         --
  2210.         function Sections:Slider(Properties)
  2211.             if not Properties then
  2212.                 Properties = {}
  2213.             end
  2214.             --
  2215.             local Slider = {
  2216.                 Window = self.Window,
  2217.                 Page = self.Page,
  2218.                 Section = self,
  2219.                 Name = Properties.Name or nil,
  2220.                 Min = (Properties.min or Properties.Min or Properties.minimum or Properties.Minimum or 0),
  2221.                 State = (
  2222.                     Properties.state
  2223.                         or Properties.State
  2224.                         or Properties.def
  2225.                         or Properties.Def
  2226.                         or Properties.default
  2227.                         or Properties.Default
  2228.                         or 10
  2229.                 ),
  2230.                 Max = (Properties.max or Properties.Max or Properties.maximum or Properties.Maximum or 100),
  2231.                 Sub = (
  2232.                     Properties.suffix
  2233.                         or Properties.Suffix
  2234.                         or Properties.ending
  2235.                         or Properties.Ending
  2236.                         or Properties.prefix
  2237.                         or Properties.Prefix
  2238.                         or Properties.measurement
  2239.                         or Properties.Measurement
  2240.                         or ""
  2241.                 ),
  2242.                 Decimals = (Properties.decimals or Properties.Decimals or 1),
  2243.                 Callback = (
  2244.                     Properties.callback
  2245.                         or Properties.Callback
  2246.                         or Properties.callBack
  2247.                         or Properties.CallBack
  2248.                         or function() end
  2249.                 ),
  2250.                 Flag = (
  2251.                     Properties.flag
  2252.                         or Properties.Flag
  2253.                         or Properties.pointer
  2254.                         or Properties.Pointer
  2255.                         or Library.NextFlag()
  2256.                 ),
  2257.                 Disabled = (Properties.Disabled or Properties.disable or nil),
  2258.             }
  2259.             local TextValue = ("[value]" .. Slider.Sub)
  2260.             --
  2261.             local NewSlider = Instance.new("Frame")
  2262.             NewSlider.Name = "NewSlider"
  2263.             NewSlider.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  2264.             NewSlider.BackgroundTransparency = 1
  2265.             NewSlider.BorderColor3 = Color3.fromRGB(0, 0, 0)
  2266.             NewSlider.BorderSizePixel = 0
  2267.             NewSlider.Size = UDim2.new(1, 0, 0, 20)
  2268.             NewSlider.Parent = Slider.Section.Elements.SectionContent
  2269.  
  2270.             local ToggleFrame = Instance.new("TextButton")
  2271.             ToggleFrame.Name = "ToggleFrame"
  2272.             ToggleFrame.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  2273.             ToggleFrame.BorderColor3 = Color3.fromRGB(0, 0, 0)
  2274.             ToggleFrame.Position = UDim2.new(0, 0, 1, -7)
  2275.             ToggleFrame.Size = UDim2.new(1, 0, 0, 7)
  2276.             ToggleFrame.Text = ""
  2277.             ToggleFrame.AutoButtonColor = false
  2278.  
  2279.             local DisabledGradient = Instance.new("UIGradient")
  2280.             DisabledGradient.Name = "DisabledGradient"
  2281.             DisabledGradient.Color = ColorSequence.new({
  2282.                 ColorSequenceKeypoint.new(0, Color3.fromRGB(47, 47, 47)),
  2283.                 ColorSequenceKeypoint.new(1, Color3.fromRGB(26, 26, 26)),
  2284.             })
  2285.             DisabledGradient.Rotation = 90
  2286.             DisabledGradient.Parent = ToggleFrame
  2287.  
  2288.             local UIStroke = Instance.new("UIStroke")
  2289.             UIStroke.Name = "UIStroke"
  2290.             UIStroke.ApplyStrokeMode = Enum.ApplyStrokeMode.Border
  2291.             UIStroke.LineJoinMode = Enum.LineJoinMode.Miter
  2292.             UIStroke.Thickness = 2
  2293.             UIStroke.Transparency = 0.8
  2294.             UIStroke.Parent = ToggleFrame
  2295.  
  2296.             local ToggleAccent = Library:NewInstance("TextButton", true)
  2297.             ToggleAccent.Name = "ToggleAccent"
  2298.             ToggleAccent.BackgroundColor3 = Library.Accent
  2299.             ToggleAccent.BorderColor3 = Color3.fromRGB(0, 0, 0)
  2300.             ToggleAccent.BorderSizePixel = 0
  2301.             ToggleAccent.Size = UDim2.new(0, 0, 1, 0)
  2302.             ToggleAccent.Text = ""
  2303.             ToggleAccent.AutoButtonColor = false
  2304.  
  2305.             local UIGradient = Instance.new("UIGradient")
  2306.             UIGradient.Name = "UIGradient"
  2307.             UIGradient.Color = ColorSequence.new({
  2308.                 ColorSequenceKeypoint.new(0, Color3.fromRGB(255, 255, 255)),
  2309.                 ColorSequenceKeypoint.new(1, Color3.fromRGB(145, 145, 145)),
  2310.             })
  2311.             UIGradient.Rotation = 90
  2312.             UIGradient.Parent = ToggleAccent
  2313.  
  2314.             ToggleAccent.Parent = ToggleFrame
  2315.  
  2316.             local Value = Instance.new("TextLabel")
  2317.             Value.Name = "Value"
  2318.             Value.FontFace = realfont
  2319.             Value.Text = "0"
  2320.             Value.TextColor3 = Color3.fromRGB(255, 255, 255)
  2321.             Value.TextSize = Library.FSize
  2322.             Value.TextStrokeTransparency = 0
  2323.             Value.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  2324.             Value.BackgroundTransparency = 1
  2325.             Value.BorderColor3 = Color3.fromRGB(0, 0, 0)
  2326.             Value.BorderSizePixel = 0
  2327.             Value.Size = UDim2.new(1, 0, 1, 0)
  2328.             Value.Position = UDim2.new(0,0,0,-1)
  2329.             Value.Parent = ToggleFrame
  2330.  
  2331.             ToggleFrame.Parent = NewSlider
  2332.  
  2333.             local Title = Instance.new("TextLabel")
  2334.             Title.Name = "Title"
  2335.             Title.FontFace = realfont
  2336.             Title.Text = Slider.Name
  2337.             Title.TextColor3 = Color3.fromRGB(255, 255, 255)
  2338.             Title.TextSize = Library.FSize
  2339.             Title.TextStrokeTransparency = 0
  2340.             Title.TextXAlignment = Enum.TextXAlignment.Left
  2341.             Title.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  2342.             Title.BackgroundTransparency = 1
  2343.             Title.BorderColor3 = Color3.fromRGB(0, 0, 0)
  2344.             Title.BorderSizePixel = 0
  2345.             Title.Size = UDim2.new(1, 0, 0, 8)
  2346.             Title.Parent = NewSlider
  2347.  
  2348.             -- // Functions
  2349.             local Sliding = false
  2350.             local Val = Slider.State
  2351.             local function Set(value)
  2352.                 value = math.clamp(Library:Round(value, Slider.Decimals), Slider.Min, Slider.Max)
  2353.  
  2354.                 local sizeX = ((value - Slider.Min) / (Slider.Max - Slider.Min))
  2355.                 ToggleAccent.Size = UDim2.new(sizeX, 0, 1, 0)
  2356.                 if Slider.Disabled and value == Slider.Min then
  2357.                     Value.Text = Slider.Disabled
  2358.                 else
  2359.                     Value.Text = TextValue:gsub("%[value%]", string.format("%.14g", value))
  2360.                 end
  2361.                 Val = value
  2362.  
  2363.                 Library.Flags[Slider.Flag] = value
  2364.                 Slider.Callback(value)
  2365.             end            
  2366.             --
  2367.             local function ISlide(input)
  2368.                 local sizeX = (input.Position.X - ToggleFrame.AbsolutePosition.X) / ToggleFrame.AbsoluteSize.X
  2369.                 local value = ((Slider.Max - Slider.Min) * sizeX) + Slider.Min
  2370.                 Set(value)
  2371.             end
  2372.             --
  2373.             Library:Connection(ToggleFrame.InputBegan, function(input)
  2374.                 if input.UserInputType == Enum.UserInputType.MouseButton1 then
  2375.                     Sliding = true
  2376.                     ISlide(input)
  2377.                 end
  2378.             end)
  2379.             Library:Connection(ToggleFrame.InputEnded, function(input)
  2380.                 if input.UserInputType == Enum.UserInputType.MouseButton1 then
  2381.                     Sliding = false
  2382.                 end
  2383.             end)
  2384.             Library:Connection(ToggleAccent.InputBegan, function(input)
  2385.                 if input.UserInputType == Enum.UserInputType.MouseButton1 then
  2386.                     Sliding = true
  2387.                     ISlide(input)
  2388.                 end
  2389.             end)
  2390.             Library:Connection(ToggleAccent.InputEnded, function(input)
  2391.                 if input.UserInputType == Enum.UserInputType.MouseButton1 then
  2392.                     Sliding = false
  2393.                 end
  2394.             end)
  2395.             Library:Connection(game:GetService("UserInputService").InputChanged, function(input)
  2396.                 if input.UserInputType == Enum.UserInputType.MouseMovement then
  2397.                     if Sliding then
  2398.                         ISlide(input)
  2399.                     end
  2400.                 end
  2401.             end)
  2402.             --
  2403.             function Slider:Set(Value)
  2404.                 Set(Value)
  2405.             end
  2406.             function Slider:SetVisible(State)
  2407.                 NewSlider.Visible = State
  2408.             end
  2409.             --
  2410.             Flags[Slider.Flag] = Set
  2411.             Library.Flags[Slider.Flag] = Slider.State
  2412.             Set(Slider.State)
  2413.  
  2414.             -- // Returning
  2415.             return Slider
  2416.         end
  2417.         --
  2418.         function Sections:List(Properties)
  2419.             local Properties = Properties or {};
  2420.             local Dropdown = {
  2421.                 Window = self.Window,
  2422.                 Page = self.Page,
  2423.                 Section = self,
  2424.                 Open = false,
  2425.                 Name = Properties.Name or Properties.name or nil,
  2426.                 Options = (Properties.options or Properties.Options or Properties.values or Properties.Values or {
  2427.                     "1",
  2428.                     "2",
  2429.                     "3",
  2430.                 }),
  2431.                 Max = (Properties.Max or Properties.max or nil),
  2432.                 ScrollMax = (Properties.ScrollingMax or Properties.scrollingmax or nil),
  2433.                 State = (
  2434.                     Properties.state
  2435.                         or Properties.State
  2436.                         or Properties.def
  2437.                         or Properties.Def
  2438.                         or Properties.default
  2439.                         or Properties.Default
  2440.                         or nil
  2441.                 ),
  2442.                 Callback = (
  2443.                     Properties.callback
  2444.                         or Properties.Callback
  2445.                         or Properties.callBack
  2446.                         or Properties.CallBack
  2447.                         or function() end
  2448.                 ),
  2449.                 Flag = (
  2450.                     Properties.flag
  2451.                         or Properties.Flag
  2452.                         or Properties.pointer
  2453.                         or Properties.Pointer
  2454.                         or Library.NextFlag()
  2455.                 ),
  2456.                 OptionInsts = {},
  2457.             }
  2458.             --
  2459.             local NewList = Instance.new("Frame")
  2460.             NewList.Name = "NewList"
  2461.             NewList.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  2462.             NewList.BackgroundTransparency = 1
  2463.             NewList.BorderColor3 = Color3.fromRGB(0, 0, 0)
  2464.             NewList.BorderSizePixel = 0
  2465.             NewList.Size = UDim2.new(1, 0, 0, 31)
  2466.             NewList.Parent = Dropdown.Section.Elements.SectionContent
  2467.  
  2468.             local ToggleFrame = Instance.new("TextButton")
  2469.             ToggleFrame.Name = "ToggleFrame"
  2470.             ToggleFrame.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  2471.             ToggleFrame.BorderColor3 = Color3.fromRGB(0, 0, 0)
  2472.             ToggleFrame.Position = UDim2.new(0, 0, 1, -18)
  2473.             ToggleFrame.Size = UDim2.new(1, 0, 0, 18)
  2474.             ToggleFrame.FontFace = Font.new("rbxasset://fonts/families/SourceSansPro.json")
  2475.             ToggleFrame.Text = ""
  2476.             ToggleFrame.TextColor3 = Color3.fromRGB(0, 0, 0)
  2477.             ToggleFrame.TextSize = Library.FSize
  2478.             ToggleFrame.AutoButtonColor = false
  2479.  
  2480.             local DisabledGradient = Instance.new("UIGradient")
  2481.             DisabledGradient.Name = "DisabledGradient"
  2482.             DisabledGradient.Color = ColorSequence.new({
  2483.                 ColorSequenceKeypoint.new(0, Color3.fromRGB(47, 47, 47)),
  2484.                 ColorSequenceKeypoint.new(1, Color3.fromRGB(26, 26, 26)),
  2485.             })
  2486.             DisabledGradient.Rotation = 90
  2487.             DisabledGradient.Parent = ToggleFrame
  2488.  
  2489.             local UIStroke = Instance.new("UIStroke")
  2490.             UIStroke.Name = "UIStroke"
  2491.             UIStroke.ApplyStrokeMode = Enum.ApplyStrokeMode.Border
  2492.             UIStroke.LineJoinMode = Enum.LineJoinMode.Miter
  2493.             UIStroke.Thickness = 2
  2494.             UIStroke.Transparency = 0.8
  2495.             UIStroke.Parent = ToggleFrame
  2496.  
  2497.             local Value = Instance.new("TextLabel")
  2498.             Value.Name = "Value"
  2499.             Value.FontFace = realfont
  2500.             Value.Text = "0"
  2501.             Value.TextColor3 = Color3.fromRGB(255, 255, 255)
  2502.             Value.TextSize = Library.FSize
  2503.             Value.TextStrokeTransparency = 0
  2504.             Value.TextXAlignment = Enum.TextXAlignment.Left
  2505.             Value.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  2506.             Value.BackgroundTransparency = 1
  2507.             Value.BorderColor3 = Color3.fromRGB(0, 0, 0)
  2508.             Value.BorderSizePixel = 0
  2509.             Value.Position = UDim2.new(0, 4, 0, 0)
  2510.             Value.Size = UDim2.new(1, 0, 1, 0)
  2511.             Value.Parent = ToggleFrame
  2512.  
  2513.             local ContentOutline = Instance.new("ScrollingFrame")
  2514.             ContentOutline.Name = "ContentOutline"
  2515.             ContentOutline.AutomaticCanvasSize = Enum.AutomaticSize.Y
  2516.             ContentOutline.BottomImage = "rbxassetid://7783554086"
  2517.             ContentOutline.CanvasSize = UDim2.new()
  2518.             ContentOutline.MidImage = "rbxassetid://7783554086"
  2519.             ContentOutline.ScrollBarImageColor3 = Color3.fromRGB(30, 30, 30)
  2520.             ContentOutline.ScrollBarThickness = 6
  2521.             ContentOutline.TopImage = "rbxassetid://7783554086"
  2522.             ContentOutline.Active = true
  2523.             ContentOutline.AutomaticSize = Enum.AutomaticSize.Y
  2524.             ContentOutline.BackgroundColor3 = Color3.fromRGB(45, 45, 45)
  2525.             ContentOutline.BorderColor3 = Color3.fromRGB(20, 20, 20)
  2526.             ContentOutline.Position = UDim2.new(0, 0, 1, 0)
  2527.             ContentOutline.Size = UDim2.new(1, 0, 0, 0)
  2528.             ContentOutline.Visible = false
  2529.  
  2530.             local UIListLayout = Instance.new("UIListLayout")
  2531.             UIListLayout.Name = "UIListLayout"
  2532.             UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
  2533.             UIListLayout.Parent = ContentOutline
  2534.  
  2535.             local UIPadding = Instance.new("UIPadding")
  2536.             UIPadding.Name = "UIPadding"
  2537.             UIPadding.PaddingBottom = UDim.new(0, 3)
  2538.             UIPadding.Parent = ContentOutline
  2539.  
  2540.             local UIStroke1 = Instance.new("UIStroke")
  2541.             UIStroke1.Name = "UIStroke"
  2542.             UIStroke1.LineJoinMode = Enum.LineJoinMode.Miter
  2543.             UIStroke1.Thickness = 2
  2544.             UIStroke1.Transparency = 0.8
  2545.             UIStroke1.Parent = ContentOutline
  2546.  
  2547.             ContentOutline.Parent = ToggleFrame
  2548.  
  2549.             ToggleFrame.Parent = NewList
  2550.  
  2551.             local Title = Instance.new("TextLabel")
  2552.             Title.Name = "Title"
  2553.             Title.FontFace = realfont
  2554.             Title.Text = Dropdown.Name
  2555.             Title.TextColor3 = Color3.fromRGB(255, 255, 255)
  2556.             Title.TextSize = Library.FSize
  2557.             Title.TextStrokeTransparency = 0
  2558.             Title.TextXAlignment = Enum.TextXAlignment.Left
  2559.             Title.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  2560.             Title.BackgroundTransparency = 1
  2561.             Title.BorderColor3 = Color3.fromRGB(0, 0, 0)
  2562.             Title.BorderSizePixel = 0
  2563.             Title.Size = UDim2.new(1, 0, 0, 8)
  2564.             Title.Parent = NewList
  2565.  
  2566.             -- // Connections
  2567.             Library:Connection(ToggleFrame.MouseButton1Down, function()
  2568.                 ContentOutline.Visible = not ContentOutline.Visible
  2569.                 if ContentOutline.Visible then
  2570.                     NewList.ZIndex = 5
  2571.                 else
  2572.                     NewList.ZIndex = 1
  2573.                 end
  2574.             end)
  2575.             Library:Connection(game:GetService("UserInputService").InputBegan, function(Input)
  2576.                 if ContentOutline.Visible and Input.UserInputType == Enum.UserInputType.MouseButton1 then
  2577.                     if not Library:IsMouseOverFrame(ContentOutline) and not Library:IsMouseOverFrame(ToggleFrame) then
  2578.                         ContentOutline.Visible = false
  2579.                         NewList.ZIndex = 1
  2580.                     end
  2581.                 end
  2582.             end)
  2583.             --
  2584.             local chosen = Dropdown.Max and {} or nil
  2585.             local Count = 0
  2586.             --
  2587.             local function handleoptionclick(option, button, text, accent)
  2588.                 button.MouseButton1Down:Connect(function()
  2589.                     if Dropdown.Max then
  2590.                         if table.find(chosen, option) then
  2591.                             table.remove(chosen, table.find(chosen, option))
  2592.  
  2593.                             local textchosen = {}
  2594.                             local cutobject = false
  2595.  
  2596.                             for _, opt in next, chosen do
  2597.                                 table.insert(textchosen, opt)
  2598.                             end
  2599.  
  2600.                             Value.Text = #chosen == 0 and "" or table.concat(textchosen, ", ") .. (cutobject and ", ..." or "")
  2601.                             text.Visible = false
  2602.  
  2603.                             Library.Flags[Dropdown.Flag] = chosen
  2604.                             Dropdown.Callback(chosen)
  2605.                         else
  2606.                             if #chosen == Dropdown.Max then
  2607.                                 Dropdown.OptionInsts[chosen[1]].text.Visible = false
  2608.                                 table.remove(chosen, 1)
  2609.                             end
  2610.  
  2611.                             table.insert(chosen, option)
  2612.  
  2613.                             local textchosen = {}
  2614.                             local cutobject = false
  2615.  
  2616.                             for _, opt in next, chosen do
  2617.                                 table.insert(textchosen, opt)
  2618.                             end
  2619.  
  2620.                             Value.Text = #chosen == 0 and "" or table.concat(textchosen, ", ") .. (cutobject and ", ..." or "")
  2621.                             text.Visible = true
  2622.  
  2623.                             Library.Flags[Dropdown.Flag] = chosen
  2624.                             Dropdown.Callback(chosen)
  2625.                         end
  2626.                     else
  2627.                         for opt, tbl in next, Dropdown.OptionInsts do
  2628.                             if opt ~= option then
  2629.                                 tbl.text.Visible = false
  2630.                             end
  2631.                         end
  2632.                         chosen = option
  2633.                         Value.Text = option
  2634.                         text.Visible = true
  2635.                         ContentOutline.Visible = false
  2636.                         NewList.ZIndex = 1
  2637.                         Library.Flags[Dropdown.Flag] = option
  2638.                         Dropdown.Callback(option)
  2639.                     end
  2640.                 end)
  2641.             end
  2642.             --
  2643.             local function createoptions(tbl)
  2644.                 for _, option in next, tbl do
  2645.                     Dropdown.OptionInsts[option] = {}
  2646.                     --
  2647.                     local OptButton = Instance.new("TextButton")
  2648.                     OptButton.Name = "OptButton"
  2649.                     OptButton.FontFace = Font.new("rbxasset://fonts/families/SourceSansPro.json")
  2650.                     OptButton.Text = ""
  2651.                     OptButton.TextColor3 = Color3.fromRGB(0, 0, 0)
  2652.                     OptButton.TextSize = Library.FSize
  2653.                     OptButton.AutoButtonColor = false
  2654.                     OptButton.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  2655.                     OptButton.BackgroundTransparency = 1
  2656.                     OptButton.BorderColor3 = Color3.fromRGB(0, 0, 0)
  2657.                     OptButton.BorderSizePixel = 0
  2658.                     OptButton.Size = UDim2.new(1, 0, 0, 20)
  2659.  
  2660.                     local Disabled = Instance.new("TextLabel")
  2661.                     Disabled.Name = "Disabled"
  2662.                     Disabled.FontFace = realfont
  2663.                     Disabled.Text = option
  2664.                     Disabled.TextColor3 = Color3.fromRGB(255, 255, 255)
  2665.                     Disabled.TextSize = Library.FSize
  2666.                     Disabled.TextStrokeTransparency = 0
  2667.                     Disabled.TextXAlignment = Enum.TextXAlignment.Left
  2668.                     Disabled.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  2669.                     Disabled.BackgroundTransparency = 1
  2670.                     Disabled.BorderColor3 = Color3.fromRGB(0, 0, 0)
  2671.                     Disabled.BorderSizePixel = 0
  2672.                     Disabled.Position = UDim2.new(0, 4, 0, 0)
  2673.                     Disabled.Size = UDim2.new(1, 0, 1, 0)
  2674.                     Disabled.Parent = OptButton
  2675.  
  2676.                     local Enabled = Library:NewInstance("TextLabel", true)
  2677.                     Enabled.Name = "Enabled"
  2678.                     Enabled.FontFace = realfont
  2679.                     Enabled.Text = option
  2680.                     Enabled.TextColor3 = Library.Accent
  2681.                     Enabled.TextSize = Library.FSize
  2682.                     Enabled.TextStrokeTransparency = 0
  2683.                     Enabled.TextXAlignment = Enum.TextXAlignment.Left
  2684.                     Enabled.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  2685.                     Enabled.BackgroundTransparency = 1
  2686.                     Enabled.BorderColor3 = Color3.fromRGB(0, 0, 0)
  2687.                     Enabled.BorderSizePixel = 0
  2688.                     Enabled.Position = UDim2.new(0, 4, 0, 0)
  2689.                     Enabled.Size = UDim2.new(1, 0, 1, 0)
  2690.                     Enabled.Parent = OptButton
  2691.                     Enabled.Visible = false
  2692.  
  2693.                     OptButton.Parent = ContentOutline
  2694.  
  2695.                     Dropdown.OptionInsts[option].text = Enabled
  2696.                     Dropdown.OptionInsts[option].button = OptButton
  2697.  
  2698.                     Count = Count + 1
  2699.  
  2700.                     if Dropdown.ScrollMax then
  2701.                         ContentOutline.AutomaticSize = Enum.AutomaticSize.None
  2702.                         if Count < Dropdown.ScrollMax then
  2703.                         else
  2704.                             ContentOutline.Size = UDim2.new(1,0, 0, 20*Dropdown.ScrollMax)
  2705.                         end
  2706.                     else
  2707.                         ContentOutline.AutomaticSize = Enum.AutomaticSize.Y
  2708.                     end
  2709.  
  2710.                     handleoptionclick(option, OptButton, Enabled)
  2711.                 end
  2712.             end
  2713.             createoptions(Dropdown.Options)
  2714.             --
  2715.             local set
  2716.             set = function(option)
  2717.                 if Dropdown.Max then
  2718.                     table.clear(chosen)
  2719.                     option = type(option) == "table" and option or {}
  2720.  
  2721.                     for opt, tbl in next, Dropdown.OptionInsts do
  2722.                         if not table.find(option, opt) then
  2723.                             tbl.text.Visible = false
  2724.                         end
  2725.                     end
  2726.  
  2727.                     for i, opt in next, option do
  2728.                         if table.find(Dropdown.Options, opt) and #chosen < Dropdown.Max then
  2729.                             table.insert(chosen, opt)
  2730.                             Dropdown.OptionInsts[opt].text.Visible = true
  2731.                         end
  2732.                     end
  2733.  
  2734.                     local textchosen = {}
  2735.                     local cutobject = false
  2736.  
  2737.                     for _, opt in next, chosen do
  2738.                         table.insert(textchosen, opt)
  2739.                     end
  2740.  
  2741.                     Value.Text = #chosen == 0 and "" or table.concat(textchosen, ", ") .. (cutobject and ", ..." or "")
  2742.  
  2743.                     Library.Flags[Dropdown.Flag] = chosen
  2744.                     Dropdown.Callback(chosen)
  2745.                 end
  2746.             end
  2747.             --
  2748.             function Dropdown:Set(option)
  2749.                 if Dropdown.Max then
  2750.                     set(option)
  2751.                 else
  2752.                     for opt, tbl in next, Dropdown.OptionInsts do
  2753.                         if opt ~= option then
  2754.                             tbl.text.Visible = false
  2755.                         end
  2756.                     end
  2757.                     if table.find(Dropdown.Options, option) then
  2758.                         chosen = option
  2759.                         Dropdown.OptionInsts[option].text.Visible = true
  2760.                         Value.Text = option
  2761.                         Library.Flags[Dropdown.Flag] = chosen
  2762.                         Dropdown.Callback(chosen)
  2763.                     else
  2764.                         chosen = nil
  2765.                         Value.Text = "None"
  2766.                         Library.Flags[Dropdown.Flag] = chosen
  2767.                         Dropdown.Callback(chosen)
  2768.                     end
  2769.                 end
  2770.             end
  2771.             --
  2772.             function Dropdown:Refresh(tbl)
  2773.                 for _, opt in next, Dropdown.OptionInsts do
  2774.                     coroutine.wrap(function()
  2775.                         opt.button:Destroy()
  2776.                     end)()
  2777.                 end
  2778.                 table.clear(Dropdown.OptionInsts)
  2779.  
  2780.                 createoptions(tbl)
  2781.  
  2782.                 if Dropdown.Max then
  2783.                     table.clear(chosen)
  2784.                 else
  2785.                     chosen = nil
  2786.                 end
  2787.  
  2788.                 Library.Flags[Dropdown.Flag] = chosen
  2789.                 Dropdown.Callback(chosen)
  2790.             end
  2791.  
  2792.             -- // Returning
  2793.             if Dropdown.Max then
  2794.                 Flags[Dropdown.Flag] = set
  2795.             else
  2796.                 Flags[Dropdown.Flag] = Dropdown
  2797.             end
  2798.             Dropdown:Set(Dropdown.State)
  2799.             return Dropdown
  2800.         end
  2801.         --
  2802.         function Sections:Keybind(Properties)
  2803.             local Properties = Properties or {}
  2804.             local Keybind = {
  2805.                 Section = self,
  2806.                 Page = self.Page,
  2807.                 Name = Properties.name or Properties.Name or "Keybind",
  2808.                 State = (
  2809.                     Properties.state
  2810.                         or Properties.State
  2811.                         or Properties.def
  2812.                         or Properties.Def
  2813.                         or Properties.default
  2814.                         or Properties.Default
  2815.                         or nil
  2816.                 ),
  2817.                 Mode = (Properties.mode or Properties.Mode or "Toggle"),
  2818.                 UseKey = (Properties.UseKey or false),
  2819.                 Ignore = (Properties.ignore or Properties.Ignore or false),
  2820.                 Callback = (
  2821.                     Properties.callback
  2822.                         or Properties.Callback
  2823.                         or Properties.callBack
  2824.                         or Properties.CallBack
  2825.                         or function() end
  2826.                 ),
  2827.                 Flag = (
  2828.                     Properties.flag
  2829.                         or Properties.Flag
  2830.                         or Properties.pointer
  2831.                         or Properties.Pointer
  2832.                         or Library.NextFlag()
  2833.                 ),
  2834.                 Binding = nil,
  2835.             }
  2836.             local Key
  2837.             local State = false
  2838.             local ModeBox = Instance.new("Frame")
  2839.             local Hold = Instance.new("TextButton")
  2840.             local Toggle = Instance.new("TextButton")
  2841.             local Always = Instance.new("TextButton")
  2842.             local ListValue;
  2843.             if not Keybind.Ignore then
  2844.                 ListValue = Library.KeyList:NewKey(Keybind.Name, Keybind.Page.Name)
  2845.             end
  2846.             --
  2847.             local NewKey = Instance.new("Frame")
  2848.             NewKey.Name = "NewKey"
  2849.             NewKey.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  2850.             NewKey.BackgroundTransparency = 1
  2851.             NewKey.BorderColor3 = Color3.fromRGB(0, 0, 0)
  2852.             NewKey.BorderSizePixel = 0
  2853.             NewKey.Size = UDim2.new(1, 0, 0, 8)
  2854.             NewKey.Parent = Keybind.Section.Elements.SectionContent
  2855.  
  2856.             local KeyFrame = Instance.new("TextButton")
  2857.             KeyFrame.Name = "KeyFrame"
  2858.             KeyFrame.AnchorPoint = Vector2.new(0, 0.5)
  2859.             KeyFrame.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
  2860.             KeyFrame.BorderColor3 = Color3.fromRGB(0, 0, 0)
  2861.             KeyFrame.Position = UDim2.new(1, -40, 0.5, 0)
  2862.             KeyFrame.Size = UDim2.new(0, 40, 0, 12)
  2863.             KeyFrame.FontFace = Font.new("rbxasset://fonts/families/SourceSansPro.json")
  2864.             KeyFrame.Text = ""
  2865.             KeyFrame.TextColor3 = Color3.fromRGB(0, 0, 0)
  2866.             KeyFrame.TextSize = 14
  2867.             KeyFrame.AutoButtonColor = false
  2868.  
  2869.             local UIStroke = Instance.new("UIStroke")
  2870.             UIStroke.Name = "UIStroke"
  2871.             UIStroke.ApplyStrokeMode = Enum.ApplyStrokeMode.Border
  2872.             UIStroke.LineJoinMode = Enum.LineJoinMode.Miter
  2873.             UIStroke.Thickness = 2
  2874.             UIStroke.Transparency = 0.8
  2875.             UIStroke.Parent = KeyFrame
  2876.  
  2877.             local Value = Instance.new("TextLabel")
  2878.             Value.Name = "Value"
  2879.             Value.FontFace = realfont
  2880.             Value.Text = "..."
  2881.             Value.TextColor3 = Color3.fromRGB(255, 255, 255)
  2882.             Value.TextSize = Library.FSize
  2883.             Value.TextStrokeTransparency = 0
  2884.             Value.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  2885.             Value.BackgroundTransparency = 1
  2886.             Value.BorderColor3 = Color3.fromRGB(0, 0, 0)
  2887.             Value.BorderSizePixel = 0
  2888.             Value.Size = UDim2.new(1, 0, 1, 0)
  2889.             Value.Parent = KeyFrame
  2890.  
  2891.             KeyFrame.Parent = NewKey
  2892.  
  2893.             local Title = Instance.new("TextLabel")
  2894.             Title.Name = "Title"
  2895.             Title.FontFace = realfont
  2896.             Title.Text = Keybind.Name
  2897.             Title.TextColor3 = Color3.fromRGB(255, 255, 255)
  2898.             Title.TextSize = Library.FSize
  2899.             Title.TextStrokeTransparency = 0
  2900.             Title.TextXAlignment = Enum.TextXAlignment.Left
  2901.             Title.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  2902.             Title.BackgroundTransparency = 1
  2903.             Title.BorderColor3 = Color3.fromRGB(0, 0, 0)
  2904.             Title.BorderSizePixel = 0
  2905.             Title.Size = UDim2.new(1, 0, 1, 0)
  2906.             Title.Parent = NewKey
  2907.  
  2908.             ModeBox.Name = "ModeBox"
  2909.             ModeBox.Parent = KeyFrame
  2910.             ModeBox.AnchorPoint = Vector2.new(0,0.5)
  2911.             ModeBox.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
  2912.             ModeBox.BorderColor3 = Color3.fromRGB(0,0,0)
  2913.             ModeBox.BorderSizePixel = 1
  2914.             ModeBox.Size = UDim2.new(0, 55, 0, 60)
  2915.             ModeBox.Position = UDim2.new(0,48,0.5,0)
  2916.             ModeBox.Visible = false
  2917.             ModeBox.ZIndex = 2
  2918.  
  2919.             local UIStroke1 = Instance.new("UIStroke")
  2920.             UIStroke1.Name = "UIStroke"
  2921.             UIStroke1.ApplyStrokeMode = Enum.ApplyStrokeMode.Border
  2922.             UIStroke1.LineJoinMode = Enum.LineJoinMode.Miter
  2923.             UIStroke1.Thickness = 2
  2924.             UIStroke1.Transparency = 0.8
  2925.             UIStroke1.Parent = ModeBox
  2926.  
  2927.             Hold.Name = "Hold"
  2928.             Hold.Parent = ModeBox
  2929.             Hold.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  2930.             Hold.BackgroundTransparency = 1.000
  2931.             Hold.BorderColor3 = Color3.fromRGB(0, 0, 0)
  2932.             Hold.BorderSizePixel = 0
  2933.             Hold.Size = UDim2.new(1, 0, 0.333000004, 0)
  2934.             Hold.ZIndex = 2
  2935.             Hold.FontFace = realfont
  2936.             Hold.Text = "Hold"
  2937.             Hold.TextColor3 = Keybind.Mode == "Hold" and Color3.fromRGB(255,255,255) or Color3.fromRGB(145,145,145)
  2938.             Hold.TextSize = Library.FSize
  2939.             Hold.TextStrokeTransparency = 0
  2940.  
  2941.             Toggle.Name = "Toggle"
  2942.             Toggle.Parent = ModeBox
  2943.             Toggle.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  2944.             Toggle.BackgroundTransparency = 1.000
  2945.             Toggle.BorderColor3 = Color3.fromRGB(0, 0, 0)
  2946.             Toggle.BorderSizePixel = 0
  2947.             Toggle.Position = UDim2.new(0, 0, 0.333000004, 0)
  2948.             Toggle.Size = UDim2.new(1, 0, 0.333000004, 0)
  2949.             Toggle.ZIndex = 2
  2950.             Toggle.FontFace = realfont
  2951.             Toggle.Text = "Toggle"
  2952.             Toggle.TextColor3 = Keybind.Mode == "Toggle" and Color3.fromRGB(255,255,255) or Color3.fromRGB(145,145,145)
  2953.             Toggle.TextSize = Library.FSize
  2954.             Toggle.TextStrokeTransparency = 0
  2955.  
  2956.             Always.Name = "Always"
  2957.             Always.Parent = ModeBox
  2958.             Always.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  2959.             Always.BackgroundTransparency = 1.000
  2960.             Always.BorderColor3 = Color3.fromRGB(0, 0, 0)
  2961.             Always.BorderSizePixel = 0
  2962.             Always.Position = UDim2.new(0, 0, 0.666999996, 0)
  2963.             Always.Size = UDim2.new(1, 0, 0.333000004, 0)
  2964.             Always.ZIndex = 2
  2965.             Always.FontFace = realfont
  2966.             Always.Text = "Always"
  2967.             Always.TextColor3 = Keybind.Mode == "Always" and Color3.fromRGB(255,255,255) or Color3.fromRGB(145,145,145)
  2968.             Always.TextSize = Library.FSize
  2969.             Always.TextStrokeTransparency = 0
  2970.  
  2971.             -- // Functions
  2972.             local function set(newkey)
  2973.                 if string.find(tostring(newkey), "Enum") then
  2974.                     if c then
  2975.                         c:Disconnect()
  2976.                         if Keybind.Flag then
  2977.                             Library.Flags[Keybind.Flag] = false
  2978.                         end
  2979.                         Keybind.Callback(false)
  2980.                     end
  2981.                     if tostring(newkey):find("Enum.KeyCode.") then
  2982.                         newkey = Enum.KeyCode[tostring(newkey):gsub("Enum.KeyCode.", "")]
  2983.                     elseif tostring(newkey):find("Enum.UserInputType.") then
  2984.                         newkey = Enum.UserInputType[tostring(newkey):gsub("Enum.UserInputType.", "")]
  2985.                     end
  2986.                     if newkey == Enum.KeyCode.Backspace then
  2987.                         Key = nil
  2988.                         if Keybind.UseKey then
  2989.                             if Keybind.Flag then
  2990.                                 Library.Flags[Keybind.Flag] = Key
  2991.                             end
  2992.                             Keybind.Callback(Key)
  2993.                         end
  2994.                         local text = "None"
  2995.  
  2996.                         Value.Text = text
  2997.                     elseif newkey ~= nil then
  2998.                         Key = newkey
  2999.                         if Keybind.UseKey then
  3000.                             if Keybind.Flag then
  3001.                                 Library.Flags[Keybind.Flag] = Key
  3002.                             end
  3003.                             Keybind.Callback(Key)
  3004.                         end
  3005.                         local text = (Library.Keys[newkey] or tostring(newkey):gsub("Enum.KeyCode.", ""))
  3006.  
  3007.                         Value.Text = text
  3008.                     end
  3009.  
  3010.                     Library.Flags[Keybind.Flag .. "_KEY"] = newkey
  3011.                 elseif table.find({ "Always", "Toggle", "Hold" }, newkey) then
  3012.                     if not Keybind.UseKey then
  3013.                         Library.Flags[Keybind.Flag .. "_KEY STATE"] = newkey
  3014.                         Keybind.Mode = newkey
  3015.                         if Keybind.Mode == "Always" then
  3016.                             State = true
  3017.                             if Keybind.Flag then
  3018.                                 Library.Flags[Keybind.Flag] = State
  3019.                             end
  3020.                             Keybind.Callback(true)
  3021.                             if not Keybind.Ignore then
  3022.                                 ListValue:SetVisible(true)
  3023.                             end
  3024.                         elseif Keybind.Mode == "Hold" then
  3025.                             State = false
  3026.                             if Keybind.Flag then
  3027.                                 Library.Flags[Keybind.Flag] = State
  3028.                             end
  3029.                             Keybind.Callback(false)
  3030.                             if not Keybind.Ignore then
  3031.                                 ListValue:SetVisible(false)
  3032.                             end
  3033.                         end
  3034.                     end
  3035.                 else
  3036.                     State = newkey
  3037.                     if Keybind.Flag then
  3038.                         Library.Flags[Keybind.Flag] = newkey
  3039.                     end
  3040.                     Keybind.Callback(newkey)
  3041.                 end
  3042.             end
  3043.             --
  3044.             set(Keybind.State)
  3045.             set(Keybind.Mode)
  3046.             KeyFrame.MouseButton1Click:Connect(function()
  3047.                 if not Keybind.Binding then
  3048.  
  3049.                     Value.Text = "..."
  3050.  
  3051.                     Keybind.Binding = Library:Connection(
  3052.                         game:GetService("UserInputService").InputBegan,
  3053.                         function(input, gpe)
  3054.                             set(
  3055.                                 input.UserInputType == Enum.UserInputType.Keyboard and input.KeyCode
  3056.                                     or input.UserInputType
  3057.                             )
  3058.                             Library:Disconnect(Keybind.Binding)
  3059.                             task.wait()
  3060.                             Keybind.Binding = nil
  3061.                         end
  3062.                     )
  3063.                 end
  3064.             end)
  3065.             --
  3066.             Library:Connection(game:GetService("UserInputService").InputBegan, function(inp)
  3067.                 if (inp.KeyCode == Key or inp.UserInputType == Key) and not Keybind.Binding and not Keybind.UseKey then
  3068.                     if Keybind.Mode == "Hold" then
  3069.                         if Keybind.Flag then
  3070.                             Library.Flags[Keybind.Flag] = true
  3071.                         end
  3072.                         c = Library:Connection(game:GetService("RunService").RenderStepped, function()
  3073.                             if Keybind.Callback then
  3074.                                 Keybind.Callback(true)
  3075.                             end
  3076.                         end)
  3077.                         if not Keybind.Ignore then
  3078.                             ListValue:SetVisible(true)
  3079.                         end
  3080.                     elseif Keybind.Mode == "Toggle" then
  3081.                         State = not State
  3082.                         if Keybind.Flag then
  3083.                             Library.Flags[Keybind.Flag] = State
  3084.                         end
  3085.                         Keybind.Callback(State)
  3086.                         if not Keybind.Ignore then
  3087.                             ListValue:SetVisible(State)
  3088.                         end
  3089.                     end
  3090.                 end
  3091.             end)
  3092.             --
  3093.             Library:Connection(game:GetService("UserInputService").InputEnded, function(inp)
  3094.                 if Keybind.Mode == "Hold" and not Keybind.UseKey then
  3095.                     if Key ~= "" or Key ~= nil then
  3096.                         if inp.KeyCode == Key or inp.UserInputType == Key then
  3097.                             if c then
  3098.                                 c:Disconnect()
  3099.                                 if Keybind.Flag then
  3100.                                     Library.Flags[Keybind.Flag] = false
  3101.                                 end
  3102.                                 if Keybind.Callback then
  3103.                                     Keybind.Callback(false)
  3104.                                 end
  3105.                                 if not Keybind.Ignore then
  3106.                                     ListValue:SetVisible(false)
  3107.                                 end
  3108.                             end
  3109.                         end
  3110.                     end
  3111.                 end
  3112.             end)
  3113.             --
  3114.             Library:Connection(KeyFrame.MouseButton2Down, function()
  3115.                 ModeBox.Visible = true
  3116.                 NewKey.ZIndex = 5
  3117.             end)
  3118.             --
  3119.             Library:Connection(Hold.MouseButton1Down, function()
  3120.                 set("Hold")
  3121.                 Hold.TextColor3 = Color3.fromRGB(255,255,255)
  3122.                 Toggle.TextColor3 = Color3.fromRGB(145,145,145)
  3123.                 Always.TextColor3 = Color3.fromRGB(145,145,145)
  3124.                 ModeBox.Visible = false
  3125.                 NewKey.ZIndex = 1
  3126.             end)
  3127.             --
  3128.             Library:Connection(Toggle.MouseButton1Down, function()
  3129.                 set("Toggle")
  3130.                 Hold.TextColor3 = Color3.fromRGB(145,145,145)
  3131.                 Toggle.TextColor3 = Color3.fromRGB(255,255,255)
  3132.                 Always.TextColor3 = Color3.fromRGB(145,145,145)
  3133.                 ModeBox.Visible = false
  3134.                 NewKey.ZIndex = 1
  3135.             end)
  3136.             --
  3137.             Library:Connection(Always.MouseButton1Down, function()
  3138.                 set("Always")
  3139.                 Hold.TextColor3 = Color3.fromRGB(145,145,145)
  3140.                 Toggle.TextColor3 = Color3.fromRGB(145,145,145)
  3141.                 Always.TextColor3 = Color3.fromRGB(255,255,255)
  3142.                 ModeBox.Visible = false
  3143.                 NewKey.ZIndex = 1
  3144.             end)
  3145.             --
  3146.             Library:Connection(game:GetService("UserInputService").InputBegan, function(Input)
  3147.                 if ModeBox.Visible and (Input.UserInputType == Enum.UserInputType.MouseButton1) then
  3148.                     if not Library:IsMouseOverFrame(ModeBox) then
  3149.                         ModeBox.Visible = false
  3150.                         NewKey.ZIndex = 1
  3151.                     end
  3152.                 end
  3153.             end)
  3154.             --
  3155.             Library.Flags[Keybind.Flag .. "_KEY"] = Keybind.State
  3156.             Library.Flags[Keybind.Flag .. "_KEY STATE"] = Keybind.Mode
  3157.             Flags[Keybind.Flag] = set
  3158.             Flags[Keybind.Flag .. "_KEY"] = set
  3159.             Flags[Keybind.Flag .. "_KEY STATE"] = set
  3160.             --
  3161.             function Keybind:Set(key)
  3162.                 set(key)
  3163.             end
  3164.  
  3165.             -- // Returning
  3166.             return Keybind
  3167.         end
  3168.         --
  3169.         function Sections:Colorpicker(Properties)
  3170.             local Properties = Properties or {}
  3171.             local Colorpicker = {
  3172.                 Window = self.Window,
  3173.                 Page = self.Page,
  3174.                 Section = self,
  3175.                 Name = (Properties.Name or "Colorpicker"),
  3176.                 State = (
  3177.                     Properties.state
  3178.                         or Properties.State
  3179.                         or Properties.def
  3180.                         or Properties.Def
  3181.                         or Properties.default
  3182.                         or Properties.Default
  3183.                         or Color3.fromRGB(255, 0, 0)
  3184.                 ),
  3185.                 Alpha = (
  3186.                     Properties.alpha
  3187.                         or Properties.Alpha
  3188.                         or Properties.transparency
  3189.                         or Properties.Transparency
  3190.                         or 1
  3191.                 ),
  3192.                 Callback = (
  3193.                     Properties.callback
  3194.                         or Properties.Callback
  3195.                         or Properties.callBack
  3196.                         or Properties.CallBack
  3197.                         or function() end
  3198.                 ),
  3199.                 Flag = (
  3200.                     Properties.flag
  3201.                         or Properties.Flag
  3202.                         or Properties.pointer
  3203.                         or Properties.Pointer
  3204.                         or Library.NextFlag()
  3205.                 ),
  3206.                 Colorpickers = 0,
  3207.             }
  3208.             --
  3209.             local NewKey = Instance.new("Frame")
  3210.             NewKey.Name = "NewKey"
  3211.             NewKey.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  3212.             NewKey.BackgroundTransparency = 1
  3213.             NewKey.BorderColor3 = Color3.fromRGB(0, 0, 0)
  3214.             NewKey.BorderSizePixel = 0
  3215.             NewKey.Size = UDim2.new(1, 0, 0, 8)
  3216.             NewKey.Parent = Colorpicker.Section.Elements.SectionContent
  3217.  
  3218.             local Title = Instance.new("TextLabel")
  3219.             Title.Name = "Title"
  3220.             Title.FontFace = realfont
  3221.             Title.Text = Colorpicker.Name
  3222.             Title.TextColor3 = Color3.fromRGB(255, 255, 255)
  3223.             Title.TextSize = Library.FSize
  3224.             Title.TextStrokeTransparency = 0
  3225.             Title.TextXAlignment = Enum.TextXAlignment.Left
  3226.             Title.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  3227.             Title.BackgroundTransparency = 1
  3228.             Title.BorderColor3 = Color3.fromRGB(0, 0, 0)
  3229.             Title.BorderSizePixel = 0
  3230.             Title.Size = UDim2.new(1, 0, 1, 0)
  3231.             Title.Parent = NewKey
  3232.  
  3233.             -- // Functions
  3234.             Colorpicker.Colorpickers = Colorpicker.Colorpickers + 1
  3235.             local colorpickertypes = Library:NewPicker(
  3236.                 Colorpicker.Name,
  3237.                 Colorpicker.State,
  3238.                 Colorpicker.Alpha,
  3239.                 NewKey,
  3240.                 Colorpicker.Colorpickers,
  3241.                 Colorpicker.Flag,
  3242.                 Colorpicker.Callback
  3243.             )
  3244.  
  3245.             function Colorpicker:Set(color)
  3246.                 colorpickertypes:set(color, false, true)
  3247.             end
  3248.  
  3249.             function Colorpicker:Colorpicker(Properties)
  3250.                 local Properties = Properties or {}
  3251.                 local NewColorpicker = {
  3252.                     Name = (Properties.Name or "Colorpicker"),
  3253.                     State = (
  3254.                         Properties.state
  3255.                             or Properties.State
  3256.                             or Properties.def
  3257.                             or Properties.Def
  3258.                             or Properties.default
  3259.                             or Properties.Default
  3260.                             or Color3.fromRGB(255, 0, 0)
  3261.                     ),
  3262.                     Alpha = (
  3263.                         Properties.alpha
  3264.                             or Properties.Alpha
  3265.                             or Properties.transparency
  3266.                             or Properties.Transparency
  3267.                             or 1
  3268.                     ),
  3269.                     Callback = (
  3270.                         Properties.callback
  3271.                             or Properties.Callback
  3272.                             or Properties.callBack
  3273.                             or Properties.CallBack
  3274.                             or function() end
  3275.                     ),
  3276.                     Flag = (
  3277.                         Properties.flag
  3278.                             or Properties.Flag
  3279.                             or Properties.pointer
  3280.                             or Properties.Pointer
  3281.                             or Library.NextFlag()
  3282.                     ),
  3283.                 }
  3284.                 -- // Functions
  3285.                 Colorpicker.Colorpickers = Colorpicker.Colorpickers + 1
  3286.                 local Newcolorpickertypes = Library:NewPicker(
  3287.                     NewColorpicker.Name,
  3288.                     NewColorpicker.State,
  3289.                     NewColorpicker.Alpha,
  3290.                     NewKey,
  3291.                     Colorpicker.Colorpickers,
  3292.                     NewColorpicker.Flag,
  3293.                     NewColorpicker.Callback
  3294.                 )
  3295.  
  3296.                 function NewColorpicker:Set(color)
  3297.                     Newcolorpickertypes:Set(color)
  3298.                 end
  3299.  
  3300.                 -- // Returning
  3301.                 return NewColorpicker
  3302.             end
  3303.  
  3304.             -- // Returning
  3305.             return Colorpicker
  3306.         end
  3307.         --
  3308.         function Sections:Textbox(Properties)
  3309.             local Properties = Properties or {}
  3310.             local Textbox = {
  3311.                 Window = self.Window,
  3312.                 Page = self.Page,
  3313.                 Section = self,
  3314.                 Name = (Properties.Name or Properties.name or nil),
  3315.                 Placeholder = (
  3316.                     Properties.placeholder
  3317.                         or Properties.Placeholder
  3318.                         or Properties.holder
  3319.                         or Properties.Holder
  3320.                         or ""
  3321.                 ),
  3322.                 State = (
  3323.                     Properties.state
  3324.                         or Properties.State
  3325.                         or Properties.def
  3326.                         or Properties.Def
  3327.                         or Properties.default
  3328.                         or Properties.Default
  3329.                         or ""
  3330.                 ),
  3331.                 Callback = (
  3332.                     Properties.callback
  3333.                         or Properties.Callback
  3334.                         or Properties.callBack
  3335.                         or Properties.CallBack
  3336.                         or function() end
  3337.                 ),
  3338.                 Flag = (
  3339.                     Properties.flag
  3340.                         or Properties.Flag
  3341.                         or Properties.pointer
  3342.                         or Properties.Pointer
  3343.                         or Library.NextFlag()
  3344.                 ),
  3345.             }
  3346.             --
  3347.             local NewBox = Instance.new("TextButton")
  3348.             NewBox.Name = "NewBox"
  3349.             NewBox.FontFace = Font.new("rbxasset://fonts/families/SourceSansPro.json")
  3350.             NewBox.Text = ""
  3351.             NewBox.TextColor3 = Color3.fromRGB(0, 0, 0)
  3352.             NewBox.TextSize = 14
  3353.             NewBox.AutoButtonColor = false
  3354.             NewBox.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  3355.             NewBox.BackgroundTransparency = 1
  3356.             NewBox.BorderColor3 = Color3.fromRGB(0, 0, 0)
  3357.             NewBox.BorderSizePixel = 0
  3358.             NewBox.Size = UDim2.new(1, 0, 0, Textbox.Name ~= nil and 31 or 18)
  3359.             NewBox.Parent = Textbox.Section.Elements.SectionContent
  3360.  
  3361.             local ToggleFrame = Instance.new("Frame")
  3362.             ToggleFrame.Name = "ToggleFrame"
  3363.             ToggleFrame.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  3364.             ToggleFrame.BorderColor3 = Color3.fromRGB(0, 0, 0)
  3365.             ToggleFrame.Position = UDim2.new(0, 0, 1, -18)
  3366.             ToggleFrame.Size = UDim2.new(1, 0, 0, 18)
  3367.  
  3368.             local DisabledGradient = Instance.new("UIGradient")
  3369.             DisabledGradient.Name = "DisabledGradient"
  3370.             DisabledGradient.Color = ColorSequence.new({
  3371.                 ColorSequenceKeypoint.new(0, Color3.fromRGB(47, 47, 47)),
  3372.                 ColorSequenceKeypoint.new(1, Color3.fromRGB(26, 26, 26)),
  3373.             })
  3374.             DisabledGradient.Rotation = 90
  3375.             DisabledGradient.Parent = ToggleFrame
  3376.  
  3377.             local UIStroke = Instance.new("UIStroke")
  3378.             UIStroke.Name = "UIStroke"
  3379.             UIStroke.ApplyStrokeMode = Enum.ApplyStrokeMode.Border
  3380.             UIStroke.LineJoinMode = Enum.LineJoinMode.Miter
  3381.             UIStroke.Thickness = 2
  3382.             UIStroke.Transparency = 0.8
  3383.             UIStroke.Parent = ToggleFrame
  3384.  
  3385.             local Value = Instance.new("TextBox")
  3386.             Value.Name = "Value"
  3387.             Value.FontFace = realfont
  3388.             Value.Text = Textbox.State
  3389.             Value.TextColor3 = Color3.fromRGB(255, 255, 255)
  3390.             Value.TextSize = Library.FSize
  3391.             Value.TextStrokeTransparency = 0
  3392.             Value.TextXAlignment = Enum.TextXAlignment.Left
  3393.             Value.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  3394.             Value.BackgroundTransparency = 1
  3395.             Value.BorderColor3 = Color3.fromRGB(0, 0, 0)
  3396.             Value.BorderSizePixel = 0
  3397.             Value.Position = UDim2.new(0, 4, 0, 0)
  3398.             Value.Size = UDim2.new(1, -4, 1, 0)
  3399.             Value.Parent = ToggleFrame
  3400.             Value.ClearTextOnFocus = false
  3401.  
  3402.             ToggleFrame.Parent = NewBox
  3403.  
  3404.             local Title = Instance.new("TextLabel")
  3405.             Title.Name = "Title"
  3406.             Title.FontFace = realfont
  3407.             Title.Text = Textbox.Name ~= nil and Textbox.Name or ""
  3408.             Title.TextColor3 = Color3.fromRGB(255, 255, 255)
  3409.             Title.TextSize = Library.FSize
  3410.             Title.TextStrokeTransparency = 0
  3411.             Title.TextXAlignment = Enum.TextXAlignment.Left
  3412.             Title.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  3413.             Title.BackgroundTransparency = 1
  3414.             Title.BorderColor3 = Color3.fromRGB(0, 0, 0)
  3415.             Title.BorderSizePixel = 0
  3416.             Title.Size = UDim2.new(1, 0, 0, 8)
  3417.             Title.Parent = NewBox
  3418.             Title.Visible = Textbox.Name ~= nil and true or false
  3419.  
  3420.             -- // Connections
  3421.             Value.Focused:Connect(function()
  3422.                 Value.TextColor3 = Library.Accent
  3423.             end)
  3424.             Value.FocusLost:Connect(function()
  3425.                 Value.TextColor3 = Color3.new(1,1,1)
  3426.                 Textbox.Callback(Value.Text)
  3427.                 Library.Flags[Textbox.Flag] = Value.Text
  3428.             end)
  3429.             --
  3430.             local function set(str)
  3431.                 Value.Text = str
  3432.                 Library.Flags[Textbox.Flag] = str
  3433.                 Textbox.Callback(str)
  3434.             end
  3435.  
  3436.             -- // Return
  3437.             Flags[Textbox.Flag] = set
  3438.             return Textbox
  3439.         end
  3440.         --
  3441.         function Sections:Button(Properties)
  3442.             local Properties = Properties or {}
  3443.             local Button = {
  3444.                 Window = self.Window,
  3445.                 Page = self.Page,
  3446.                 Section = self,
  3447.                 Name = Properties.Name or "button",
  3448.                 Callback = (
  3449.                     Properties.callback
  3450.                         or Properties.Callback
  3451.                         or Properties.callBack
  3452.                         or Properties.CallBack
  3453.                         or function() end
  3454.                 ),
  3455.             }
  3456.             --
  3457.             local NewButton = Instance.new("TextButton")
  3458.             NewButton.Name = "NewButton"
  3459.             NewButton.FontFace = Font.new("rbxasset://fonts/families/SourceSansPro.json")
  3460.             NewButton.Text = ""
  3461.             NewButton.TextColor3 = Color3.fromRGB(0, 0, 0)
  3462.             NewButton.TextSize = 14
  3463.             NewButton.AutoButtonColor = false
  3464.             NewButton.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  3465.             NewButton.BackgroundTransparency = 1
  3466.             NewButton.BorderColor3 = Color3.fromRGB(0, 0, 0)
  3467.             NewButton.BorderSizePixel = 0
  3468.             NewButton.Size = UDim2.new(1, 0, 0, 18)
  3469.             NewButton.Parent = Button.Section.Elements.SectionContent
  3470.  
  3471.             local ToggleFrame = Instance.new("Frame")
  3472.             ToggleFrame.Name = "ToggleFrame"
  3473.             ToggleFrame.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  3474.             ToggleFrame.BorderColor3 = Color3.fromRGB(0, 0, 0)
  3475.             ToggleFrame.Position = UDim2.new(0, 0, 1, -18)
  3476.             ToggleFrame.Size = UDim2.new(1, 0, 0, 18)
  3477.  
  3478.             local DisabledGradient = Instance.new("UIGradient")
  3479.             DisabledGradient.Name = "DisabledGradient"
  3480.             DisabledGradient.Color = ColorSequence.new({
  3481.                 ColorSequenceKeypoint.new(0, Color3.fromRGB(47, 47, 47)),
  3482.                 ColorSequenceKeypoint.new(1, Color3.fromRGB(26, 26, 26)),
  3483.             })
  3484.             DisabledGradient.Rotation = 90
  3485.             DisabledGradient.Parent = ToggleFrame
  3486.  
  3487.             local UIStroke = Instance.new("UIStroke")
  3488.             UIStroke.Name = "UIStroke"
  3489.             UIStroke.ApplyStrokeMode = Enum.ApplyStrokeMode.Border
  3490.             UIStroke.LineJoinMode = Enum.LineJoinMode.Miter
  3491.             UIStroke.Thickness = 2
  3492.             UIStroke.Transparency = 0.8
  3493.             UIStroke.Parent = ToggleFrame
  3494.  
  3495.             local Value = Instance.new("TextLabel")
  3496.             Value.Name = "Value"
  3497.             Value.FontFace = realfont
  3498.             Value.Text = Button.Name
  3499.             Value.TextColor3 = Color3.fromRGB(255, 255, 255)
  3500.             Value.TextSize = Library.FSize
  3501.             Value.TextStrokeTransparency = 0
  3502.             Value.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  3503.             Value.BackgroundTransparency = 1
  3504.             Value.BorderColor3 = Color3.fromRGB(0, 0, 0)
  3505.             Value.BorderSizePixel = 0
  3506.             Value.Size = UDim2.new(1, 0, 1, 0)
  3507.             Value.Parent = ToggleFrame
  3508.  
  3509.             ToggleFrame.Parent = NewButton
  3510.             --
  3511.             Library:Connection(NewButton.MouseButton1Down, function()
  3512.                 Button.Callback()
  3513.                 Value.TextColor3 = Library.Accent
  3514.                 task.spawn(function()
  3515.                     task.wait(0.1)
  3516.                     Value.TextColor3 = Color3.fromRGB(255,255,255)
  3517.                 end)
  3518.             end)
  3519.  
  3520.             return Button
  3521.         end
  3522.         --
  3523.         function Pages:PlayerList(Properties)
  3524.             if not Properties then
  3525.                 Properties = {}
  3526.             end
  3527.             --
  3528.             local Playerlist = {
  3529.                 Page = self,
  3530.                 Players = {},
  3531.                 CurrentPlayer = nil;
  3532.                 LastPlayer = nil;
  3533.                 Flag = (
  3534.                     Properties.flag
  3535.                         or Properties.Flag
  3536.                         or Properties.pointer
  3537.                         or Properties.Pointer
  3538.                         or Library.NextFlag()
  3539.                 ),
  3540.             }
  3541.             --
  3542.             local NewPlayer = Instance.new("Frame")
  3543.             NewPlayer.Name = "NewPlayer"
  3544.             NewPlayer.BackgroundColor3 = Color3.fromRGB(20, 20, 20)
  3545.             NewPlayer.BorderColor3 = Color3.fromRGB(0, 0, 0)
  3546.             NewPlayer.Size = UDim2.new(1, 0, 0.5, 70)
  3547.             NewPlayer.Parent = Playerlist.Page.Elements.RealPage
  3548.  
  3549.             local Frame = Instance.new("Frame")
  3550.             Frame.Name = "Frame"
  3551.             Frame.BackgroundColor3 = Color3.fromRGB(35, 35, 35)
  3552.             Frame.BorderColor3 = Color3.fromRGB(0, 0, 0)
  3553.             Frame.BorderSizePixel = 0
  3554.             Frame.Position = UDim2.new(0, 1, 0, 1)
  3555.             Frame.Size = UDim2.new(1, -2, 1, -2)
  3556.  
  3557.             local List = Library:NewInstance("ScrollingFrame", true)
  3558.             List.Name = "List"
  3559.             List.AutomaticCanvasSize = Enum.AutomaticSize.Y
  3560.             List.BottomImage = "rbxassetid://7783554086"
  3561.             List.CanvasSize = UDim2.new()
  3562.             List.MidImage = "rbxassetid://7783554086"
  3563.             List.ScrollBarImageColor3 = Library.Accent
  3564.             List.ScrollBarThickness = 0
  3565.             List.TopImage = "rbxassetid://7783554086"
  3566.             List.Active = true
  3567.             List.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
  3568.             List.BorderColor3 = Color3.fromRGB(0, 0, 0)
  3569.             List.Position = UDim2.new(0, 5, 0, 40)
  3570.             List.Size = UDim2.new(1, -10, 0, 200)
  3571.  
  3572.             local UIListLayout = Instance.new("UIListLayout")
  3573.             UIListLayout.Name = "UIListLayout"
  3574.             UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
  3575.             UIListLayout.Parent = List
  3576.  
  3577.             local UIStroke = Instance.new("UIStroke")
  3578.             UIStroke.Name = "UIStroke"
  3579.             UIStroke.LineJoinMode = Enum.LineJoinMode.Miter
  3580.             UIStroke.Thickness = 2
  3581.             UIStroke.Transparency = 0.8
  3582.             UIStroke.Parent = List
  3583.  
  3584.             List.Parent = Frame
  3585.  
  3586.             local Friend = Instance.new("TextButton")
  3587.             Friend.Name = "Friend"
  3588.             Friend.FontFace = Font.new("rbxasset://fonts/families/SourceSansPro.json")
  3589.             Friend.Text = ""
  3590.             Friend.TextColor3 = Color3.fromRGB(0, 0, 0)
  3591.             Friend.TextSize = 14
  3592.             Friend.AutoButtonColor = false
  3593.             Friend.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  3594.             Friend.BorderColor3 = Color3.fromRGB(0, 0, 0)
  3595.             Friend.Position = UDim2.new(1, -105, 1, -35)
  3596.             Friend.Size = UDim2.new(0, 100, 0, 25)
  3597.  
  3598.             local UIStroke1 = Instance.new("UIStroke")
  3599.             UIStroke1.Name = "UIStroke"
  3600.             UIStroke1.ApplyStrokeMode = Enum.ApplyStrokeMode.Border
  3601.             UIStroke1.LineJoinMode = Enum.LineJoinMode.Miter
  3602.             UIStroke1.Thickness = 2
  3603.             UIStroke1.Transparency = 0.8
  3604.             UIStroke1.Parent = Friend
  3605.  
  3606.             local FriendLabel = Instance.new("TextLabel")
  3607.             FriendLabel.Name = "FriendLabel"
  3608.             FriendLabel.FontFace = realfont
  3609.             FriendLabel.Text = "Friendly"
  3610.             FriendLabel.TextColor3 = Color3.fromRGB(255,255,255)
  3611.             FriendLabel.TextSize = Library.FSize
  3612.             FriendLabel.TextStrokeTransparency = 0
  3613.             FriendLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  3614.             FriendLabel.BackgroundTransparency = 1
  3615.             FriendLabel.BorderColor3 = Color3.fromRGB(0, 0, 0)
  3616.             FriendLabel.BorderSizePixel = 0
  3617.             FriendLabel.Size = UDim2.new(1, 0, 1, 0)
  3618.             FriendLabel.Parent = Friend
  3619.  
  3620.             local DisabledGradient = Instance.new("UIGradient")
  3621.             DisabledGradient.Name = "DisabledGradient"
  3622.             DisabledGradient.Color = ColorSequence.new({
  3623.                 ColorSequenceKeypoint.new(0, Color3.fromRGB(47, 47, 47)),
  3624.                 ColorSequenceKeypoint.new(1, Color3.fromRGB(26, 26, 26)),
  3625.             })
  3626.             DisabledGradient.Rotation = 90
  3627.             DisabledGradient.Parent = Friend
  3628.  
  3629.             Friend.Parent = Frame
  3630.  
  3631.             local Priority = Instance.new("TextButton")
  3632.             Priority.Name = "Priority"
  3633.             Priority.FontFace = realfont
  3634.             Priority.Text = ""
  3635.             Priority.TextColor3 = Color3.fromRGB(0, 0, 0)
  3636.             Priority.TextSize = 14
  3637.             Priority.AutoButtonColor = false
  3638.             Priority.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  3639.             Priority.BorderColor3 = Color3.fromRGB(0, 0, 0)
  3640.             Priority.Position = UDim2.new(1, -105, 1, -70)
  3641.             Priority.Size = UDim2.new(0, 100, 0, 25)
  3642.  
  3643.             local PriorityLabel = Instance.new("TextLabel")
  3644.             PriorityLabel.Name = "PriorityLabel"
  3645.             PriorityLabel.FontFace = realfont
  3646.             PriorityLabel.Text = "Prioritize"
  3647.             PriorityLabel.TextColor3 = Color3.fromRGB(255,255,255)
  3648.             PriorityLabel.TextSize = Library.FSize
  3649.             PriorityLabel.TextStrokeTransparency = 0
  3650.             PriorityLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  3651.             PriorityLabel.BackgroundTransparency = 1
  3652.             PriorityLabel.BorderColor3 = Color3.fromRGB(0, 0, 0)
  3653.             PriorityLabel.BorderSizePixel = 0
  3654.             PriorityLabel.Size = UDim2.new(1, 0, 1, 0)
  3655.             PriorityLabel.Parent = Priority
  3656.  
  3657.             local DisabledGradient1 = Instance.new("UIGradient")
  3658.             DisabledGradient1.Name = "DisabledGradient"
  3659.             DisabledGradient1.Color = ColorSequence.new({
  3660.                 ColorSequenceKeypoint.new(0, Color3.fromRGB(47, 47, 47)),
  3661.                 ColorSequenceKeypoint.new(1, Color3.fromRGB(26, 26, 26)),
  3662.             })
  3663.             DisabledGradient1.Rotation = 90
  3664.             DisabledGradient1.Parent = Priority
  3665.  
  3666.             local UIStroke2 = Instance.new("UIStroke")
  3667.             UIStroke2.Name = "UIStroke"
  3668.             UIStroke2.ApplyStrokeMode = Enum.ApplyStrokeMode.Border
  3669.             UIStroke2.LineJoinMode = Enum.LineJoinMode.Miter
  3670.             UIStroke2.Thickness = 2
  3671.             UIStroke2.Transparency = 0.8
  3672.             UIStroke2.Parent = Priority
  3673.  
  3674.             Priority.Parent = Frame
  3675.  
  3676.             local ImageLabel = Instance.new("ImageLabel")
  3677.             ImageLabel.Name = "ImageLabel"
  3678.             ImageLabel.Image = ""
  3679.             ImageLabel.BackgroundColor3 = Color3.fromRGB(25,25,25)
  3680.             ImageLabel.BorderColor3 = Color3.fromRGB(0,0,0)
  3681.             ImageLabel.Position = UDim2.new(0, 5, 1, -75)
  3682.             ImageLabel.Size = UDim2.new(0, 70, 0, 70)
  3683.             ImageLabel.Parent = Frame
  3684.  
  3685.             local UIStroke3 = Instance.new("UIStroke")
  3686.             UIStroke3.Name = "UIStroke"
  3687.             UIStroke3.ApplyStrokeMode = Enum.ApplyStrokeMode.Border
  3688.             UIStroke3.LineJoinMode = Enum.LineJoinMode.Miter
  3689.             UIStroke3.Thickness = 2
  3690.             UIStroke3.Transparency = 0.8
  3691.             UIStroke3.Parent = ImageLabel
  3692.  
  3693.             local PlayerName1 = Instance.new("TextLabel")
  3694.             PlayerName1.Name = "PlayerName"
  3695.             PlayerName1.FontFace = realfont
  3696.             PlayerName1.Text = "No Player Selected"
  3697.             PlayerName1.TextColor3 = Color3.fromRGB(255,255,255)
  3698.             PlayerName1.TextSize = Library.FSize
  3699.             PlayerName1.TextStrokeTransparency = 0
  3700.             PlayerName1.TextXAlignment = Enum.TextXAlignment.Left
  3701.             PlayerName1.TextYAlignment = Enum.TextYAlignment.Top
  3702.             PlayerName1.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  3703.             PlayerName1.BackgroundTransparency = 1
  3704.             PlayerName1.BorderColor3 = Color3.fromRGB(0, 0, 0)
  3705.             PlayerName1.BorderSizePixel = 0
  3706.             PlayerName1.Position = UDim2.new(0, 80, 1, -75)
  3707.             PlayerName1.Size = UDim2.new(1, -459, 0, 70)
  3708.             PlayerName1.Parent = Frame
  3709.  
  3710.             local SectionName = Instance.new("TextLabel")
  3711.             SectionName.Name = "SectionName"
  3712.             SectionName.FontFace = realfont
  3713.             SectionName.Text = "Player List"
  3714.             SectionName.TextColor3 = Color3.fromRGB(255,255,255)
  3715.             SectionName.TextSize = Library.FSize
  3716.             SectionName.TextStrokeTransparency = 0
  3717.             SectionName.TextXAlignment = Enum.TextXAlignment.Left
  3718.             SectionName.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  3719.             SectionName.BackgroundTransparency = 1
  3720.             SectionName.BorderColor3 = Color3.fromRGB(0, 0, 0)
  3721.             SectionName.BorderSizePixel = 0
  3722.             SectionName.Position = UDim2.new(0, 5, 0, 0)
  3723.             SectionName.Size = UDim2.new(1, 0, 0, 20)
  3724.             SectionName.Parent = Frame
  3725.  
  3726.             local Accent = Library:NewInstance("Frame", true)
  3727.             Accent.Name = "Accent"
  3728.             Accent.BackgroundColor3 = Library.Accent
  3729.             Accent.BorderColor3 = Color3.fromRGB(20, 20, 20)
  3730.             Accent.BorderSizePixel = 0
  3731.             Accent.Position = UDim2.new(0, 0, 0, 0)
  3732.             Accent.Size = UDim2.new(1, 0, 0, 1)
  3733.  
  3734.             local UIGradient = Instance.new("UIGradient")
  3735.             UIGradient.Name = "UIGradient"
  3736.             UIGradient.Color = ColorSequence.new({
  3737.                 ColorSequenceKeypoint.new(0, Color3.fromRGB(255, 255, 255)),
  3738.                 ColorSequenceKeypoint.new(1, Color3.fromRGB(145, 145, 145)),
  3739.             })
  3740.             UIGradient.Rotation = 90
  3741.             UIGradient.Parent = Accent
  3742.  
  3743.             local BlackLine = Instance.new("Frame")
  3744.             BlackLine.Name = "BlackLine"
  3745.             BlackLine.BackgroundColor3 = Color3.fromRGB(20, 20, 20)
  3746.             BlackLine.BorderColor3 = Color3.fromRGB(0, 0, 0)
  3747.             BlackLine.BorderSizePixel = 0
  3748.             BlackLine.Position = UDim2.new(0, 0, 1, 0)
  3749.             BlackLine.Size = UDim2.new(1, 0, 0, 2)
  3750.             BlackLine.Parent = Accent
  3751.  
  3752.             local TeamLabel = Instance.new("TextLabel")
  3753.             TeamLabel.Name = "TeamLabel"
  3754.             TeamLabel.FontFace = realfont
  3755.             TeamLabel.Text = "Team"
  3756.             TeamLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
  3757.             TeamLabel.TextSize = Library.FSize
  3758.             TeamLabel.TextStrokeTransparency = 0
  3759.             TeamLabel.TextXAlignment = Enum.TextXAlignment.Left
  3760.             TeamLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  3761.             TeamLabel.BackgroundTransparency = 1
  3762.             TeamLabel.BorderColor3 = Color3.fromRGB(0, 0, 0)
  3763.             TeamLabel.BorderSizePixel = 0
  3764.             TeamLabel.Position = UDim2.new(0.333, 6, 0, 20)
  3765.             TeamLabel.Size = UDim2.new(0, 100, 0, 20)
  3766.             TeamLabel.Parent = Frame
  3767.  
  3768.             local NameLabel = Instance.new("TextLabel")
  3769.             NameLabel.Name = "NameLabel"
  3770.             NameLabel.FontFace = realfont
  3771.             NameLabel.Text = "Name"
  3772.             NameLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
  3773.             NameLabel.TextSize = Library.FSize
  3774.             NameLabel.TextStrokeTransparency = 0
  3775.             NameLabel.TextXAlignment = Enum.TextXAlignment.Left
  3776.             NameLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  3777.             NameLabel.BackgroundTransparency = 1
  3778.             NameLabel.BorderColor3 = Color3.fromRGB(0, 0, 0)
  3779.             NameLabel.BorderSizePixel = 0
  3780.             NameLabel.Position = UDim2.new(0, 6, 0, 20)
  3781.             NameLabel.Size = UDim2.new(0, 100, 0, 20)
  3782.             NameLabel.Parent = Frame
  3783.  
  3784.             local StatusLabel = Instance.new("TextLabel")
  3785.             StatusLabel.Name = "StatusLabel"
  3786.             StatusLabel.FontFace = realfont
  3787.             StatusLabel.Text = "Status"
  3788.             StatusLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
  3789.             StatusLabel.TextSize = Library.FSize
  3790.             StatusLabel.TextStrokeTransparency = 0
  3791.             StatusLabel.TextXAlignment = Enum.TextXAlignment.Left
  3792.             StatusLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  3793.             StatusLabel.BackgroundTransparency = 1
  3794.             StatusLabel.BorderColor3 = Color3.fromRGB(0, 0, 0)
  3795.             StatusLabel.BorderSizePixel = 0
  3796.             StatusLabel.Position = UDim2.new(0.667, 6, 0, 20)
  3797.             StatusLabel.Size = UDim2.new(0, 100, 0, 20)
  3798.             StatusLabel.Parent = Frame
  3799.  
  3800.             local DownArrow = Instance.new("ImageLabel")
  3801.             DownArrow.Name = "DownArrow"
  3802.             DownArrow.Image = "rbxassetid://14555080158"
  3803.             DownArrow.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  3804.             DownArrow.BackgroundTransparency = 1
  3805.             DownArrow.BorderColor3 = Color3.fromRGB(0, 0, 0)
  3806.             DownArrow.BorderSizePixel = 0
  3807.             DownArrow.Position = UDim2.new(1, -12, 1, -92)
  3808.             DownArrow.Size = UDim2.new(0, 5, 0, 3)
  3809.             DownArrow.Parent = Frame
  3810.  
  3811.             local UpArrow = Instance.new("ImageLabel")
  3812.             UpArrow.Name = "UpArrow"
  3813.             UpArrow.Image = "rbxassetid://14555080158"
  3814.             UpArrow.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  3815.             UpArrow.BackgroundTransparency = 1
  3816.             UpArrow.BorderColor3 = Color3.fromRGB(0, 0, 0)
  3817.             UpArrow.BorderSizePixel = 0
  3818.             UpArrow.Position = UDim2.new(1, -12, 0, 43)
  3819.             UpArrow.Rotation = 180
  3820.             UpArrow.Size = UDim2.new(0, 5, 0, 3)
  3821.             UpArrow.Parent = Frame
  3822.  
  3823.             Accent.Parent = Frame
  3824.  
  3825.             Frame.Parent = NewPlayer
  3826.  
  3827.             -- // Main
  3828.             local chosen = nil
  3829.             local optioninstances = {}
  3830.             local function handleoptionclick(option, button, accent)
  3831.                 button.MouseButton1Click:Connect(function()
  3832.                     chosen = option
  3833.                     Library.Flags[Playerlist.Flag] = option
  3834.                     Playerlist.CurrentPlayer = option
  3835.                     --
  3836.                     for opt, tbl in next, optioninstances do
  3837.                         if opt ~= option then
  3838.                             tbl.accent.Visible = false
  3839.                         end
  3840.                     end
  3841.                     accent.Visible = true
  3842.                     --
  3843.                     if Playerlist.CurrentPlayer ~= Playerlist.LastPlayer then
  3844.                         Playerlist.LastPlayer = Playerlist.CurrentPlayer;
  3845.                         PlayerName1.Text = ("Id : %s\nDisplay Name : %s\nName : %s\nAccount Age : %s"):format(Playerlist.CurrentPlayer.UserId, Playerlist.CurrentPlayer.DisplayName ~= "" and Playerlist.CurrentPlayer.DisplayName or Playerlist.CurrentPlayer.Name, Playerlist.CurrentPlayer.Name, Playerlist.CurrentPlayer.AccountAge)
  3846.                         --
  3847.                         local imagedata = game:GetService("Players"):GetUserThumbnailAsync(Playerlist.CurrentPlayer.UserId, Enum.ThumbnailType.HeadShot, Enum.ThumbnailSize.Size420x420)
  3848.  
  3849.                         ImageLabel.Image = imagedata
  3850.                     end;
  3851.                 end)
  3852.             end
  3853.             --
  3854.             local function createoptions(tbl)
  3855.                 for i, option in next, tbl do
  3856.                     if option ~= game.Players.LocalPlayer then
  3857.                         optioninstances[option] = {}
  3858.  
  3859.                         local NewPlayer1 = Instance.new("TextButton")
  3860.                         NewPlayer1.Name = "NewPlayer"
  3861.                         NewPlayer1.FontFace = Font.new("rbxasset://fonts/families/SourceSansPro.json")
  3862.                         NewPlayer1.Text = ""
  3863.                         NewPlayer1.TextColor3 = Color3.fromRGB(0, 0, 0)
  3864.                         NewPlayer1.TextSize = 14
  3865.                         NewPlayer1.AutoButtonColor = false
  3866.                         NewPlayer1.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
  3867.                         NewPlayer1.BorderColor3 = Color3.fromRGB(20,20,20)
  3868.                         NewPlayer1.BorderSizePixel = 2
  3869.                         NewPlayer1.Size = UDim2.new(1, 0, 0, 20)
  3870.  
  3871.                         local PlayerName = Instance.new("TextLabel")
  3872.                         PlayerName.Name = "PlayerName"
  3873.                         PlayerName.FontFace = realfont
  3874.                         PlayerName.Text = option.Name
  3875.                         PlayerName.TextColor3 = Color3.fromRGB(255, 255, 255)
  3876.                         PlayerName.TextSize = Library.FSize
  3877.                         PlayerName.TextStrokeTransparency = 0
  3878.                         PlayerName.TextXAlignment = Enum.TextXAlignment.Left
  3879.                         PlayerName.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  3880.                         PlayerName.BackgroundTransparency = 1
  3881.                         PlayerName.BorderColor3 = Color3.fromRGB(0, 0, 0)
  3882.                         PlayerName.BorderSizePixel = 0
  3883.                         PlayerName.Position = UDim2.new(0, 6, 0, 0)
  3884.                         PlayerName.Size = UDim2.new(0, 140, 1, 0)
  3885.                         PlayerName.Parent = NewPlayer1
  3886.                         PlayerName.TextWrapped = true
  3887.  
  3888.                         local PlayerStatus = Instance.new("TextLabel")
  3889.                         PlayerStatus.Name = "PlayerStatus"
  3890.                         PlayerStatus.FontFace = realfont
  3891.                         PlayerStatus.Text = option == game.Players.LocalPlayer and "Local Player" or table.find(Library.Friends, option) and "Friendly" or table.find(Library.Priorities, option) and "Priority" or "None"
  3892.                         PlayerStatus.TextColor3 = option == game.Players.LocalPlayer and Color3.fromRGB(0, 170, 255) or table.find(Library.Friends, option) and Color3.fromRGB(0,255,0) or table.find(Library.Priorities, option) and Color3.fromRGB(255,0,0) or Color3.fromRGB(255,255,255)
  3893.                         PlayerStatus.TextSize = Library.FSize
  3894.                         PlayerStatus.TextStrokeTransparency = 0
  3895.                         PlayerStatus.TextXAlignment = Enum.TextXAlignment.Left
  3896.                         PlayerStatus.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  3897.                         PlayerStatus.BackgroundTransparency = 1
  3898.                         PlayerStatus.BorderColor3 = Color3.fromRGB(0, 0, 0)
  3899.                         PlayerStatus.BorderSizePixel = 0
  3900.                         PlayerStatus.Position = UDim2.new(0.667, 6, 0, 0)
  3901.                         PlayerStatus.Size = UDim2.new(0, 100, 1, 0)
  3902.                         PlayerStatus.Parent = NewPlayer1
  3903.  
  3904.                         local PlayerAccent = Library:NewInstance("TextLabel", true)
  3905.                         PlayerAccent.Name = "PlayerAccent"
  3906.                         PlayerAccent.FontFace = realfont
  3907.                         PlayerAccent.Text = option.Name
  3908.                         PlayerAccent.TextColor3 = Library.Accent
  3909.                         PlayerAccent.TextSize = Library.FSize
  3910.                         PlayerAccent.TextStrokeTransparency = 0
  3911.                         PlayerAccent.TextXAlignment = Enum.TextXAlignment.Left
  3912.                         PlayerAccent.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  3913.                         PlayerAccent.BackgroundTransparency = 1
  3914.                         PlayerAccent.BorderColor3 = Color3.fromRGB(0, 0, 0)
  3915.                         PlayerAccent.BorderSizePixel = 0
  3916.                         PlayerAccent.Position = UDim2.new(0, 6, 0, 0)
  3917.                         PlayerAccent.Size = UDim2.new(0, 140, 1, 0)
  3918.                         PlayerAccent.Parent = NewPlayer1
  3919.                         PlayerAccent.Visible = false
  3920.                         PlayerAccent.TextWrapped = true
  3921.  
  3922.                         local PlayerTeam = Instance.new("TextLabel")
  3923.                         PlayerTeam.Name = "PlayerTeam"
  3924.                         PlayerTeam.FontFace = realfont
  3925.                         PlayerTeam.Text = option:FindFirstChild("Team") and tostring(option.Team.Name) or "No Team"
  3926.                         PlayerTeam.TextColor3 = option:FindFirstChild("Team") and option.TeamColor.Color or Color3.fromRGB(255,255,255)
  3927.                         PlayerTeam.TextSize = Library.FSize
  3928.                         PlayerTeam.TextStrokeTransparency = 0
  3929.                         PlayerTeam.TextXAlignment = Enum.TextXAlignment.Left
  3930.                         PlayerTeam.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  3931.                         PlayerTeam.BackgroundTransparency = 1
  3932.                         PlayerTeam.BorderColor3 = Color3.fromRGB(0, 0, 0)
  3933.                         PlayerTeam.BorderSizePixel = 0
  3934.                         PlayerTeam.Position = UDim2.new(0.333, 6, 0, 0)
  3935.                         PlayerTeam.Size = UDim2.new(0, 100, 1, 0)
  3936.                         PlayerTeam.Parent = NewPlayer1
  3937.  
  3938.                         local Line1 = Instance.new("Frame")
  3939.                         Line1.Name = "Line1"
  3940.                         Line1.BackgroundColor3 = Color3.fromRGB(20, 20, 20)
  3941.                         Line1.BorderColor3 = Color3.fromRGB(0, 0, 0)
  3942.                         Line1.BorderSizePixel = 0
  3943.                         Line1.Position = UDim2.new(0.333, 0, 0, 0)
  3944.                         Line1.Size = UDim2.new(0, 2, 1, 0)
  3945.                         Line1.Parent = NewPlayer1
  3946.  
  3947.                         local Line11 = Instance.new("Frame")
  3948.                         Line11.Name = "Line1"
  3949.                         Line11.BackgroundColor3 = Color3.fromRGB(20, 20, 20)
  3950.                         Line11.BorderColor3 = Color3.fromRGB(0, 0, 0)
  3951.                         Line11.BorderSizePixel = 0
  3952.                         Line11.Position = UDim2.new(0.667, 0, 0, 0)
  3953.                         Line11.Size = UDim2.new(0, 2, 1, 0)
  3954.                         Line11.Parent = NewPlayer1
  3955.  
  3956.                         NewPlayer1.Parent = List
  3957.  
  3958.                         optioninstances[option].button = NewPlayer1
  3959.                         optioninstances[option].text = PlayerName
  3960.                         optioninstances[option].status = PlayerStatus
  3961.                         optioninstances[option].accent = PlayerAccent
  3962.                         optioninstances[option].team = PlayerTeam
  3963.  
  3964.                         if option == chosen then
  3965.                             chosen = option
  3966.                             Library.Flags[Playerlist.Flag] = option
  3967.                             Playerlist.CurrentPlayer = option
  3968.                             --
  3969.                             for opt, tbl in next, optioninstances do
  3970.                                 if opt ~= option then
  3971.                                     tbl.accent.Visible = false
  3972.                                 end
  3973.                             end
  3974.                             PlayerAccent.Visible = true
  3975.                             --
  3976.                             if Playerlist.CurrentPlayer ~= Playerlist.LastPlayer then
  3977.                                 Playerlist.LastPlayer = Playerlist.CurrentPlayer;
  3978.                                 PlayerName1.Text = ("Id : %s\nDisplay Name : %s\nName : %s\nAccount Age : %s"):format(Playerlist.CurrentPlayer.UserId, Playerlist.CurrentPlayer.DisplayName ~= "" and Playerlist.CurrentPlayer.DisplayName or Playerlist.CurrentPlayer.Name, Playerlist.CurrentPlayer.Name, Playerlist.CurrentPlayer.AccountAge)
  3979.                                 --
  3980.                                 local imagedata = game:GetService("Players"):GetUserThumbnailAsync(Playerlist.CurrentPlayer.UserId, Enum.ThumbnailType.HeadShot, Enum.ThumbnailSize.Size420x420)
  3981.  
  3982.                                 ImageLabel.Image = imagedata
  3983.                             end;
  3984.                         end
  3985.  
  3986.                         if option ~= game.Players.LocalPlayer then
  3987.                             handleoptionclick(option, NewPlayer1, PlayerAccent)
  3988.                         end
  3989.                     end
  3990.                 end
  3991.             end
  3992.             --
  3993.             function Playerlist:Refresh(tbl, dontchange)
  3994.                 content = table.clone(tbl)
  3995.  
  3996.                 for _, opt in next, optioninstances do
  3997.                     coroutine.wrap(function()
  3998.                         opt.button:Remove()
  3999.                     end)()
  4000.                 end
  4001.  
  4002.                 table.clear(optioninstances)
  4003.  
  4004.                 createoptions(content)
  4005.  
  4006.                 if dontchange then
  4007.                     chosen = Playerlist.CurrentPlayer
  4008.                     Playerlist.CurrentPlayer = chosen
  4009.                 else
  4010.                     chosen = nil
  4011.                     Playerlist.CurrentPlayer = nil
  4012.                 end
  4013.                 Library.Flags[Playerlist.Flag] = chosen
  4014.             end
  4015.             --
  4016.             Priority.MouseButton1Click:Connect(function()
  4017.                 if Playerlist.CurrentPlayer ~= nil and table.find(Library.Friends, Playerlist.CurrentPlayer) then
  4018.                     table.remove(Library.Friends, table.find(Library.Friends, Playerlist.CurrentPlayer))
  4019.                 end
  4020.                 if Playerlist.CurrentPlayer ~= nil and not table.find(Library.Priorities, Playerlist.CurrentPlayer) then
  4021.                     table.insert(Library.Priorities, Playerlist.CurrentPlayer)
  4022.                     optioninstances[Playerlist.CurrentPlayer].status.Text = "Priority"
  4023.                     optioninstances[Playerlist.CurrentPlayer].status.TextColor3 = Color3.fromRGB(255, 0, 0)
  4024.                 elseif Playerlist.CurrentPlayer ~= nil and table.find(Library.Priorities, Playerlist.CurrentPlayer) then
  4025.                     table.remove(Library.Priorities, table.find(Library.Priorities, Playerlist.CurrentPlayer))
  4026.                     optioninstances[Playerlist.CurrentPlayer].status.Text = "None"
  4027.                     optioninstances[Playerlist.CurrentPlayer].status.TextColor3 = Color3.fromRGB(255,255,255)
  4028.                 end
  4029.             end)
  4030.             --
  4031.             Friend.MouseButton1Click:Connect(function()
  4032.                 if Playerlist.CurrentPlayer ~= nil and table.find(Library.Priorities, Playerlist.CurrentPlayer) then
  4033.                     table.remove(Library.Priorities, table.find(Library.Priorities, Playerlist.CurrentPlayer))
  4034.                 end
  4035.                 if Playerlist.CurrentPlayer ~= nil and not table.find(Library.Friends, Playerlist.CurrentPlayer) then
  4036.                     table.insert(Library.Friends, Playerlist.CurrentPlayer)
  4037.                     optioninstances[Playerlist.CurrentPlayer].status.Text = "Friendly"
  4038.                     optioninstances[Playerlist.CurrentPlayer].status.TextColor3 = Color3.fromRGB(0, 255, 0)
  4039.                 elseif Playerlist.CurrentPlayer ~= nil and table.find(Library.Friends, Playerlist.CurrentPlayer) then
  4040.                     table.remove(Library.Friends, table.find(Library.Friends, Playerlist.CurrentPlayer))
  4041.                     optioninstances[Playerlist.CurrentPlayer].status.Text = "None"
  4042.                     optioninstances[Playerlist.CurrentPlayer].status.TextColor3 = Color3.fromRGB(255,255,255)
  4043.                 end
  4044.             end)
  4045.             --
  4046.             createoptions(game.Players:GetPlayers())
  4047.             --
  4048.             game.Players.PlayerAdded:Connect(function()
  4049.                 Playerlist:Refresh(game.Players:GetPlayers(), true)
  4050.             end)
  4051.             --
  4052.             game.Players.PlayerRemoving:Connect(function()
  4053.                 Playerlist:Refresh(game.Players:GetPlayers(), true)
  4054.             end)
  4055.             -- Fix
  4056.             Playerlist.Page.Elements.Left.Size = UDim2.new(0.5, -5,0.5, -70)
  4057.             Playerlist.Page.Elements.Right.Size = UDim2.new(0.5, -5,0.5, -70)
  4058.             Playerlist.Page.Elements.Left.Position = UDim2.new(0, 0,0.5, 75)
  4059.             Playerlist.Page.Elements.Right.Position = UDim2.new(0.5, 5,0.5, 75)
  4060.         end
  4061.     end;
  4062. end;
  4063.  
  4064. return Library
  4065.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement