XrAaz

Library[not mine]

May 29th, 2021 (edited)
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 70.24 KB | None | 0 0
  1. local library = {flags = {}, ActiveSlider = nil, Count = 0, windows = {}, callbacks = {}, binds = {}, open = true}
  2.  
  3. ---=== Globals ===---
  4. local RunService = game:GetService("RunService")
  5. local Heartbeat = game:GetService("RunService").Heartbeat
  6. local RenderStepped = game:GetService('RunService').RenderStepped
  7. local mouse = game:GetService("Players").LocalPlayer:GetMouse()
  8. local UserInputService = game:GetService("UserInputService")
  9.  
  10.  
  11. function Tween(Object, Goal, Direction, Style, Time, WaitForTween)
  12.     Style = Style or {}
  13.     local Tween = game:GetService("TweenService"):Create(Object,TweenInfo.new( Time, Style, Direction ), Goal)
  14.     Tween:Play()
  15.     if WaitForTween then
  16.         Tween.Completed:wait()
  17.     end
  18. end
  19.  
  20. local GlobalRainbowColor;
  21. local GlobalHueColor;
  22. spawn(function()
  23.     while true do
  24.         for i = 0, 1, 1 / 300 do
  25.             GlobalRainbowColor = Color3.fromHSV(i, 1, 1);
  26.             GlobalHueColor = i
  27.             wait()
  28.         end
  29.     end
  30. end)
  31.  
  32. function library:Create(class, properties)
  33.     local inst = Instance.new(class)
  34.     for property, value in next, properties do
  35.         inst[property] = value
  36.     end
  37.     return inst
  38. end
  39.  
  40. function ScreenGUIName(length) -- 29 length is ideal
  41.     local str = ""
  42.     for i = 1, length do
  43.         if i%6 == 0 then
  44.             str = str .. '-'
  45.         else
  46.             str = str .. string.char(math.random(65,90))
  47.         end
  48.     end
  49.     return str
  50. end
  51.  
  52. ---=== Main Part ===----
  53. local ScreenGUI = library:Create('ScreenGui', {Name = ScreenGUIName(29); Parent = game.CoreGui})
  54.  
  55. function library:CreateWindow(Name)
  56.     self.Toggled = true
  57.     library.Count = library.Count + 1
  58.     local TopBar = library:Create("ImageLabel", {
  59.         Name = "Top Bar";
  60.         Parent = ScreenGUI;
  61.         BackgroundColor3 = Color3.fromRGB(114, 137, 218);
  62.         BackgroundTransparency = 1.000;
  63.         BorderColor3 = Color3.fromRGB(114, 137, 218);
  64.         BorderSizePixel = 0;
  65.         Position = UDim2.new((library.Count * 0.0155038759) , (( library.Count - 1 )* 208),  0.0246913582, 0);
  66.         Size = UDim2.new(0, 208, 0, 35);
  67.         ZIndex = 2;
  68.         Image = "http://www.roblox.com/asset/?id=4846149319";
  69.         ImageColor3 = Color3.fromRGB(0, 0, 0);
  70.         Active = true;
  71.         Draggable = true;
  72.     });
  73.     local WindowName = library:Create("TextLabel",{
  74.         Name = "Window Name";
  75.         Parent = TopBar;
  76.         BackgroundColor3 = Color3.fromRGB(255, 255, 255);
  77.         BackgroundTransparency = 1.000;
  78.         BorderColor3 = Color3.fromRGB(27, 42, 53);
  79.         Position = UDim2.new(0.0500000007, 0, 0.0282485969, 0);
  80.         Size = UDim2.new(0.829987586, 0, 1, 0);
  81.         ZIndex = 3;
  82.         Font = Enum.Font.GothamSemibold;
  83.         Text = Name;
  84.         TextColor3 = Color3.fromRGB(255, 255, 255);
  85.         TextSize = 20.000;
  86.         TextWrapped = true;
  87.         TextXAlignment = Enum.TextXAlignment.Left;
  88.     });
  89.     local WindowToggle = library:Create("TextButton",{
  90.         Name = "Window Toggle";
  91.         Parent = TopBar;
  92.         BackgroundColor3 = Color3.fromRGB(255, 255, 255);
  93.         BackgroundTransparency = 1.000;
  94.         BorderSizePixel = 0;
  95.         Position = UDim2.new(0.847619057, 0, 0.142857149, 0);
  96.         Size = UDim2.new(0, 25, 0, 25);
  97.         ZIndex = 4;
  98.         Font = Enum.Font.GothamSemibold;
  99.         Text = "-";
  100.         TextColor3 = Color3.fromRGB(255, 255, 255);
  101.         TextSize = 30.000;
  102.     });
  103.     local WindowToggleBackground = library:Create("ImageLabel",{
  104.         Name = "Window Toggle Background";
  105.         Parent = WindowToggle;
  106.         Active = true;
  107.         AnchorPoint = Vector2.new(0.5, 0.5);
  108.         BackgroundColor3 = Color3.fromRGB(255, 255, 255);
  109.         BackgroundTransparency = 1.000;
  110.         Position = UDim2.new(0.5, 0, 0.5, 0);
  111.         Selectable = true;
  112.         Size = UDim2.new(1, 0, 1, 0);
  113.         ZIndex = 3;
  114.         Image = "rbxassetid://3570695787";
  115.         ImageColor3 = Color3.fromRGB(31, 30, 31);
  116.         ScaleType = Enum.ScaleType.Slice;
  117.         SliceCenter = Rect.new(100, 100, 100, 100);
  118.         SliceScale = 0.060;
  119.     });
  120.     local Container = library:Create("Frame",{
  121.         Name = "Container";
  122.         Parent = TopBar;
  123.         BackgroundColor3 = Color3.fromRGB(116, 166, 253);
  124.         BackgroundTransparency = 1.000;
  125.         BorderColor3 = Color3.fromRGB(114, 137, 218);
  126.         BorderSizePixel = 0;
  127.         ClipsDescendants = true;
  128.         Position = UDim2.new(0, 0, 0.861375749, 0);
  129.         Size = UDim2.new(0, 208, 0, 350);
  130.     });
  131.     local ContainerUIListLayout = library:Create("UIListLayout",{
  132.         Name = "Container UI List Layout";
  133.         Parent = Container;
  134.         SortOrder = Enum.SortOrder.LayoutOrder;
  135.     });
  136.    
  137.     -- Dragger skidded from Jan <3
  138.     local dragging, dragInput, dragStart, startPos, dragObject
  139.  
  140.     local function update(input)
  141.         if not startPos then return end
  142.         local delta = input.Position - dragStart
  143.         local yPos = (startPos.Y.Offset + delta.Y) < -36 and -36 or startPos.Y.Offset + delta.Y
  144.         dragObject:TweenPosition(UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, yPos), "Out", "Quint", 0.1, true)
  145.     end
  146.    
  147.     TopBar.InputBegan:connect(function(input)
  148.         if input.UserInputType.Name == "MouseButton1" then
  149.             dragObject = TopBar
  150.             dragging = true
  151.             dragStart = input.Position
  152.             startPos = dragObject.Position
  153.         end
  154.     end)
  155.     TopBar.InputChanged:connect(function(input)
  156.         if dragging and input.UserInputType.Name == "MouseMovement" then
  157.             dragInput = input
  158.         end
  159.     end)
  160.     TopBar.InputEnded:connect(function(input)
  161.         if input.UserInputType.Name == "MouseButton1" then
  162.             dragging = false
  163.         end
  164.     end)
  165.    
  166.     UserInputService.InputChanged:connect(function(input)
  167.         if input.UserInputType.Name == "MouseMovement" then
  168.             if input == dragInput and dragging then
  169.                 update(input)
  170.             end
  171.         end
  172.     end)
  173.  
  174.     WindowToggle.MouseButton1Click:Connect(function()
  175.         self.Toggled = not self.Toggled
  176.         if self.Toggled then
  177.             Tween(Container, {Size =  UDim2.new(0, 208, 0, ContainerUIListLayout.AbsoluteContentSize.Y)}, Enum.EasingDirection.InOut, Enum.EasingStyle.Linear, 0.2, true)
  178.             WindowToggle.Text = "-"
  179.         else
  180.             Tween(Container, {Size = UDim2.new(0, 208, 0, 0)}, Enum.EasingDirection.InOut, Enum.EasingStyle.Linear, 0.2, true)
  181.             WindowToggle.Text = "+"
  182.         end
  183.     end)
  184.  
  185.     local Sections = {}
  186.     function Sections:Section(Name)
  187.         self.Toggled = false
  188.         local Section = {}
  189.         table.insert(self, Section)
  190.  
  191.         local SectionPart = library:Create("Frame",{
  192.             Name = "SectionPart";
  193.             Parent = Container;
  194.             BackgroundColor3 = Color3.fromRGB(255, 255, 255);
  195.             BackgroundTransparency = 1.000;
  196.             BorderSizePixel = 0;
  197.             ClipsDescendants = true;
  198.             Size = UDim2.new(1, 0, 0, 35);
  199.         });
  200.         local SectionContainer = library:Create("Frame",{
  201.             Name = "Section Container";
  202.             Parent = SectionPart;
  203.             BackgroundColor3 = Color3.fromRGB(19, 19, 19);
  204.             BorderSizePixel = 0;
  205.             ClipsDescendants = true;
  206.             Position = UDim2.new(0, 0, 0, 30);
  207.             Size = UDim2.new(0, 208, 0, 0);
  208.         });
  209.         local SectionUIListLayout = library:Create("UIListLayout",{
  210.             Name = "Section UIListLayout";
  211.             Parent = SectionContainer;
  212.             SortOrder = Enum.SortOrder.LayoutOrder;
  213.         });
  214.         local SectionButton = library:Create("ImageButton",{
  215.             Name = "Section Button";
  216.             Parent = SectionPart;
  217.             BackgroundColor3 = Color3.fromRGB(114, 137, 218);
  218.             BackgroundTransparency = 1.000;
  219.             BorderColor3 = Color3.fromRGB(114, 137, 218);
  220.             Size = UDim2.new(1, 0, 0, 35);
  221.             Image = "http://www.roblox.com/asset/?id=4846243410";
  222.             ImageColor3 = Color3.fromRGB(30, 30, 30);
  223.         });
  224.         local SectionTEXT = library:Create("TextLabel",{
  225.             Name = "Section TEXT";
  226.             Parent = SectionButton;
  227.             BackgroundColor3 = Color3.fromRGB(255, 255, 255);
  228.             BackgroundTransparency = 1.000;
  229.             BorderColor3 = Color3.fromRGB(0, 0, 0);
  230.             BorderSizePixel = 0;
  231.             Position = UDim2.new(0.0500000007, 0, -0.0571428575, 0);
  232.             Size = UDim2.new(0, 189, 1, 0);
  233.             Font = Enum.Font.GothamSemibold;
  234.             Text = Name;
  235.             TextColor3 = Color3.fromRGB(255, 48, 51);
  236.             TextSize = 18.000;
  237.             TextXAlignment = Enum.TextXAlignment.Left;
  238.         });
  239.         library:Create("UIPadding",{
  240.             Parent = SectionContainer;
  241.             PaddingBottom = UDim.new(0, 5);
  242.             PaddingTop = UDim.new(0, 6);
  243.         });
  244.  
  245.         SectionButton.MouseButton1Click:Connect(function()
  246.             self.Toggled = not self.Toggled
  247.             if self.Toggled then
  248.                 Tween(SectionContainer, {Size = UDim2.new(0, 208, 0, 0)}, Enum.EasingDirection.InOut, Enum.EasingStyle.Linear, 0.15, false)
  249.                 Tween(SectionPart, {Size = UDim2.new(0, 208, 0, 35)}, Enum.EasingDirection.InOut, Enum.EasingStyle.Linear, 0.15, false)
  250.                 Tween(SectionTEXT, {TextColor3 = Color3.fromRGB(255, 48, 51),}, Enum.EasingDirection.InOut, Enum.EasingStyle.Linear, 0.15, false)
  251.             else
  252.                 Tween(SectionContainer, {Size = UDim2.new(0, 208, 0, SectionUIListLayout.AbsoluteContentSize.Y + 10 )}, Enum.EasingDirection.InOut, Enum.EasingStyle.Linear, 0.15, false)
  253.                 Tween(SectionPart, {Size = UDim2.new(0, 208, 0, SectionUIListLayout.AbsoluteContentSize.Y + 35 )}, Enum.EasingDirection.InOut, Enum.EasingStyle.Linear, 0.15, false)
  254.                 Tween(SectionTEXT, {TextColor3 = Color3.fromRGB(145, 255, 71),}, Enum.EasingDirection.InOut, Enum.EasingStyle.Linear, 0.15, true)
  255.                 Tween(Container, {Size =  UDim2.new(0, 208, 0, ContainerUIListLayout.AbsoluteContentSize.Y)}, Enum.EasingDirection.InOut, Enum.EasingStyle.Linear, 0.1, true)
  256.             end
  257.         end)
  258.  
  259.         function Section:Label(Name)
  260.             local LabelFrame = Instance.new("Frame")
  261.             local TextLabel = Instance.new("TextLabel")
  262.             LabelFrame.Name = "Label Frame"
  263.             LabelFrame.Parent = SectionContainer
  264.             LabelFrame.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  265.             LabelFrame.BackgroundTransparency = 0.75
  266.             LabelFrame.BorderSizePixel = 0;
  267.             LabelFrame.Size = UDim2.new(1, 0, 0, 20)
  268.  
  269.             TextLabel.Parent = LabelFrame
  270.             TextLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  271.             TextLabel.BackgroundTransparency = 1.000
  272.             TextLabel.Position = UDim2.new(0.0689999983, 0, 0, -3)
  273.             TextLabel.Size = UDim2.new(0.882000029, 0, 0, 25)
  274.             TextLabel.Font = Enum.Font.GothamSemibold
  275.             TextLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
  276.             TextLabel.TextSize = 15.000
  277.             TextLabel.TextXAlignment = Enum.TextXAlignment.Left
  278.             TextLabel.Text = Name
  279.             TextLabel.BorderSizePixel = 0;
  280.         end
  281.  
  282.         function Section:Button(Name, Function)
  283.             local ButtonFrame = library:Create("Frame", {
  284.                 Name = "Button Frame";
  285.                 Parent = SectionContainer;
  286.                 BackgroundColor3 = Color3.fromRGB(255, 255, 255);
  287.                 BackgroundTransparency = 1.000;
  288.                 Size = UDim2.new(1, 0, 0, 35);
  289.             });
  290.             local Button = library:Create("TextButton", {
  291.                 Name = "Button";
  292.                 Parent = ButtonFrame;
  293.                 BackgroundColor3 = Color3.fromRGB(255, 255, 255);
  294.                 BackgroundTransparency = 1.000;
  295.                 BorderSizePixel = 0;
  296.                 Size = UDim2.new(1, 0, 0, 35);
  297.                 ZIndex = 3;
  298.                 Font = Enum.Font.GothamSemibold;
  299.                 Text = Name;
  300.                 TextColor3 = Color3.fromRGB(255, 255, 255);
  301.                 TextSize = 15.000;
  302.             });
  303.             local ButtonBackground = library:Create("ImageLabel", {
  304.                 Name = "Button Background";
  305.                 Parent = Button;
  306.                 Active = true;
  307.                 AnchorPoint = Vector2.new(0.5, 0.5);
  308.  
  309.                 BackgroundColor3 = Color3.fromRGB(255, 255, 255);
  310.                 BackgroundTransparency = 1.000;
  311.                 Position = UDim2.new(0.499760836, 0, 0.485714287, 0);
  312.                 Selectable = true;
  313.                 Size = UDim2.new(0.90861249, 0, 0.879999995, 0);
  314.                 ZIndex = 2;
  315.                 Image = "rbxassetid://3570695787";
  316.                 ImageColor3 = Color3.fromRGB(28, 28, 28);
  317.                 ScaleType = Enum.ScaleType.Slice;
  318.                 SliceCenter = Rect.new(100, 100, 100, 100);
  319.                 SliceScale = 0.075;
  320.             });
  321.            
  322.             --Script part
  323.             Button.MouseButton1Click:connect(Function)
  324.  
  325.         end
  326.  
  327.         function Section:Toggle(Name, Options, callback)
  328.             if not library.flags then
  329.                 library.flags = {}
  330.             end
  331.  
  332.             local Toggle = library:Create("Frame",{
  333.                 Name = "Toggle";
  334.                 Parent = SectionContainer;
  335.                 BackgroundColor3 = Color3.fromRGB(255, 255, 255);
  336.                 BackgroundTransparency = 1.000;
  337.                 BorderColor3 = Color3.fromRGB(27, 42, 53);
  338.                 Position = UDim2.new(0, 0, 0.103244841, 0);
  339.                 Size = UDim2.new(1, 0, 0, 35);
  340.             });
  341.             local ToggleTextBackground = library:Create("ImageLabel",{
  342.                 Name = "Toggle Text Background";
  343.                 Parent = Toggle;
  344.                 Active = true;
  345.                 AnchorPoint = Vector2.new(0.5, 0.5);
  346.                 BackgroundColor3 = Color3.fromRGB(255, 255, 255);
  347.                 BackgroundTransparency = 1.000;
  348.                 Position = UDim2.new(0.339941978, 0, 0.485714287, 0);
  349.                 Selectable = true;
  350.                 Size = UDim2.new(0.588999987, 0, 0.75, 0);
  351.                 Image = "rbxassetid://3570695787";
  352.                 ImageColor3 = Color3.fromRGB(28, 28, 28);
  353.                 ScaleType = Enum.ScaleType.Slice;
  354.                 SliceCenter = Rect.new(100, 100, 100, 100);
  355.                 SliceScale = 0.075;
  356.             });
  357.             local ToggleText = library:Create("TextLabel",{
  358.                 Name = "Toggle Text";
  359.                 Parent = ToggleTextBackground;
  360.                 BackgroundColor3 = Color3.fromRGB(255, 255, 255);
  361.                 BackgroundTransparency = 1.000;
  362.                 Position = UDim2.new(0.0568663031, 0, -0.0324675329, 0);
  363.                 Size = UDim2.new(0.959999979, 0, 1, 0);
  364.                 Font = Enum.Font.GothamSemibold;
  365.                 Text = Name;
  366.                 TextColor3 = Color3.fromRGB(255, 255, 255);
  367.                 TextSize = 15.000;
  368.                 TextScaled = (string.len(tostring(Name)) > 10 and true) or false;
  369.                 TextXAlignment = Enum.TextXAlignment.Left;
  370.             });
  371.             local ToggleButtonOutline = library:Create("ImageButton",{
  372.                 Name = "Toggle Button Outline";
  373.                 Parent = Toggle;
  374.                 BackgroundColor3 = Color3.fromRGB(255, 255, 255);
  375.                 BackgroundTransparency = 1.000;
  376.                 Position = UDim2.new(0.668269217, 0, 0.0285714287, 0);
  377.                 Size = UDim2.new(0.177000001, 25, 0.75, 0);
  378.                 Image = "http://www.roblox.com/asset/?id=4875185102";
  379.                 ImageColor3 = Color3.fromRGB(28, 28, 28);
  380.             });
  381.             local ToggleInsideColor = library:Create("ImageLabel",{
  382.                 Name = "Toggle Inside Color";
  383.                 Parent = ToggleButtonOutline;
  384.                 BackgroundColor3 = Color3.fromRGB(255, 255, 255);
  385.                 BackgroundTransparency = 1.000;
  386.                 Position = UDim2.new(0, 0, 0.190476194, 0);
  387.                 Size = UDim2.new(0.949999988, 0, 0.876999974, 0);
  388.                 Image = "http://www.roblox.com/asset/?id=4875187236";
  389.             });
  390.             local ColorGradient = library:Create("UIGradient",{
  391.                 Color = ColorSequence.new{ColorSequenceKeypoint.new(0.00, Color3.fromRGB(255, 48, 51)), ColorSequenceKeypoint.new(1.00, Color3.fromRGB(0, 225, 100))};
  392.                 Offset = Vector2.new(1, 0);
  393.                 Parent = ToggleInsideColor;
  394.             });
  395.             local CirclePart = library:Create("ImageLabel",{
  396.                 Name = "Circle Part";
  397.                 Parent = ToggleInsideColor;
  398.                 BackgroundColor3 = Color3.fromRGB(255, 255, 255);
  399.                 BackgroundTransparency = 1.000;
  400.                 BorderColor3 = Color3.fromRGB(255, 255, 255);
  401.                 Position = UDim2.new(0.0170000009, 0, 0.0399999991, 0);
  402.                 Size = UDim2.new(0, 22, 0, 22);
  403.             });
  404.             local CircleText = library:Create("TextLabel",{
  405.                 Name = "Circle Text";
  406.                 Parent = CirclePart;
  407.                 Active = true;
  408.                 BackgroundColor3 = Color3.fromRGB(255, 255, 255);
  409.                 BackgroundTransparency = 1.000;
  410.                 Size = UDim2.new(1, 0, 1, 0);
  411.                 SizeConstraint = Enum.SizeConstraint.RelativeYY;
  412.                 ZIndex = 2;
  413.                 Font = Enum.Font.GothamSemibold;
  414.                 Text = "X";
  415.                 TextColor3 = Color3.fromRGB(255, 255, 255);
  416.                 TextSize = 20.000;
  417.             });
  418.             local check = library:Create("ImageLabel",{
  419.                 Name = "check";
  420.                 Parent = CirclePart;
  421.                 Active = true;
  422.                 BackgroundColor3 = Color3.fromRGB(255, 255, 255);
  423.                 BackgroundTransparency = 1.000;
  424.                 BorderSizePixel = 0;
  425.                 Position = UDim2.new(0.5, -9, 0.5, -9);
  426.                 Size = UDim2.new(0.75, 0, 0.75, 0);
  427.                 Image = "http://www.roblox.com/asset/?id=4555411759";
  428.                 ImageColor3 = Color3.fromRGB(0, 0, 0);
  429.                 ImageTransparency = 1.000;
  430.             });
  431.  
  432.             local location = Options.location or library.flags;
  433.             local flagName = Options.flag or "";
  434.             location[flagName] = Options.Default or flase
  435.  
  436.             ToggleButtonOutline.MouseButton1Click:Connect(function()
  437.                 if callback then callback(not location[flagName]) end
  438.                 if location[flagName] then
  439.                     Tween(CirclePart, {Position = UDim2.new(0.017, 0, 0.05, 0)}, Enum.EasingDirection.InOut, Enum.EasingStyle.Linear, 0.1, false)
  440.                     Tween(ColorGradient, {Offset = Vector2.new(1, 0)}, Enum.EasingDirection.InOut, Enum.EasingStyle.Linear, 0.1, true)
  441.                     CircleText.TextTransparency = 0
  442.                     check.ImageTransparency = 1
  443.                     location[flagName] = false;
  444.                 else
  445.                     Tween(CirclePart, {Position = UDim2.new(0.6, 0, 0.05, 0)}, Enum.EasingDirection.InOut, Enum.EasingStyle.Linear, 0.1, false)
  446.                     Tween(ColorGradient, {Offset = Vector2.new(-1, 0)}, Enum.EasingDirection.InOut, Enum.EasingStyle.Linear, 0.1, true)
  447.                     CircleText.TextTransparency = 1
  448.                     check.ImageTransparency = 0
  449.                     location[flagName] = true;
  450.                 end
  451.             end)
  452.         end
  453.  
  454.         function Section:Box(Name, Options, callback)
  455.             if not library.flags then
  456.                 library.flags = {}
  457.             end
  458.             local Box = library:Create("Frame",{
  459.                 Name = "Box";
  460.                 Parent = SectionContainer;
  461.                 BackgroundColor3 = Color3.fromRGB(255, 255, 255);
  462.                 BackgroundTransparency = 1.000;
  463.                 Position = UDim2.new(0, 0, 0.103244841, 0);
  464.                 Size = UDim2.new(1, 0, 0, 35);
  465.             });
  466.             local BoxTextBackground = library:Create("ImageLabel",{
  467.                 Name = "Box Text Background";
  468.                 Parent = Box;
  469.                 Active = true;
  470.                 AnchorPoint = Vector2.new(0.5, 0.5);
  471.                 BackgroundColor3 = Color3.fromRGB(255, 255, 255);
  472.                 BackgroundTransparency = 1.000;
  473.                 Position = UDim2.new(0.339950055, 0, 0.485714287, 0);
  474.                 Selectable = true;
  475.                 Size = UDim2.new(0.588999987, 0, 0.75, 0);
  476.                 Image = "rbxassetid://3570695787";
  477.                 ImageColor3 = Color3.fromRGB(28, 28, 28);
  478.                 ScaleType = Enum.ScaleType.Slice;
  479.                 SliceCenter = Rect.new(100, 100, 100, 100);
  480.                 SliceScale = 0.075;
  481.             });
  482.             local BoxText = library:Create("TextLabel",{
  483.                 Name = "Box Text";
  484.                 Parent = BoxTextBackground;
  485.                 BackgroundColor3 = Color3.fromRGB(255, 255, 255);
  486.                 BackgroundTransparency = 1.000;
  487.                 Position = UDim2.new(0.0399726853, 0, 0, 0);
  488.                 Size = UDim2.new(0.959999979, 0, 1, 0);
  489.                 Font = Enum.Font.GothamSemibold;
  490.                 Text = Name;
  491.                 TextColor3 = Color3.fromRGB(255, 255, 255);
  492.                 TextSize = 15.000;
  493.                 TextXAlignment = Enum.TextXAlignment.Left;
  494.             });
  495.             local BoxValue = library:Create("TextBox",{
  496.                 Name = "Box Value";
  497.                 Parent = Box;
  498.                 BackgroundColor3 = Color3.fromRGB(255, 255, 255);
  499.                 BackgroundTransparency = 1.000;
  500.                 BorderSizePixel = 0;
  501.                 Position = UDim2.new(0.669767678, 0, 0.0857142881, 0);
  502.                 Size = UDim2.new(0.177000001, 25, 0.75, 0);
  503.                 ZIndex = 2;
  504.                 Font = Enum.Font.GothamSemibold;
  505.                 PlaceholderText = Options.Default;
  506.                 Text = Options.Default or "No value";
  507.                 TextColor3 = Color3.fromRGB(255, 255, 255);
  508.                 TextSize = 15.000;
  509.             });
  510.             local BoxValueBackground = library:Create("ImageLabel",{
  511.                 Name = "Box Value Background";
  512.                 Parent = BoxValue;
  513.                 Active = true;
  514.                 AnchorPoint = Vector2.new(0.5, 0.5);
  515.                 BackgroundColor3 = Color3.fromRGB(255, 255, 255);
  516.                 BackgroundTransparency = 1.000;
  517.                 Position = UDim2.new(0.501089334, 0, 0.454545468, 0);
  518.                 Selectable = true;
  519.                 Size = UDim2.new(1, 0, 1, 0);
  520.                 Image = "rbxassetid://3570695787";
  521.                 ImageColor3 = Color3.fromRGB(28, 28, 28);
  522.                 ScaleType = Enum.ScaleType.Slice;
  523.                 SliceCenter = Rect.new(100, 100, 100, 100);
  524.                 SliceScale = 0.100;
  525.             });
  526.  
  527.             local Type = Options.Type or "number"
  528.             local location = Options.location or library.flags;
  529.             local flagName = Options.flag or "";
  530.             location[flagName] = Options.Default or ( Options.Type == 'string' and "") or 0
  531.            
  532.             BoxValue.FocusLost:Connect(function()
  533.                 if Type == "string" then
  534.                     location[flagName] = tostring(BoxValue.Text)
  535.                 else
  536.                     local Number = tonumber(BoxValue.Text)
  537.                     if Number == nil or Number == "" then
  538.                         Number = Options.Default
  539.                         BoxValue.Text = Options.Default
  540.                     else
  541.                         if Options.Min ~= nil and Number < Options.Min then
  542.                             Number = Options.Min
  543.                             BoxValue.Text = Options.Min
  544.                         end
  545.                         if Options.Max ~= nil and Number > Options.Max then
  546.                             Number = Options.Max
  547.                             BoxValue.Text = Options.Max
  548.                         end
  549.                     end
  550.                     location[flagName] = Number
  551.                 end
  552.                 if callback then callback() end
  553.             end)
  554.         end
  555.  
  556.         function Section:Bind(Name, Options, callback)
  557.             local Keybind = library:Create("Frame",{
  558.                 Name = "Keybind ";
  559.                 Parent = SectionContainer;
  560.                 BackgroundColor3 = Color3.fromRGB(255, 255, 255);
  561.                 BackgroundTransparency = 1.000;
  562.                 Position = UDim2.new(0, 0, 0.103244841, 0);
  563.                 Size = UDim2.new(1, 0, 0, 35);
  564.             });
  565.             local KeybindTextBackground = library:Create("ImageLabel",{
  566.                 Name = "Keybind Text Background";
  567.                 Parent = Keybind;
  568.                 Active = true;
  569.                 AnchorPoint = Vector2.new(0.5, 0.5);
  570.                 BackgroundColor3 = Color3.fromRGB(255, 255, 255);
  571.                 BackgroundTransparency = 1.000;
  572.                 Position = UDim2.new(0.339950055, 0, 0.485714287, 0);
  573.                 Selectable = true;
  574.                 Size = UDim2.new(0.588999987, 0, 0.75, 0);
  575.                 Image = "rbxassetid://3570695787";
  576.                 ImageColor3 = Color3.fromRGB(28, 28, 28);
  577.                 ScaleType = Enum.ScaleType.Slice;
  578.                 SliceCenter = Rect.new(100, 100, 100, 100);
  579.                 SliceScale = 0.075;
  580.             });
  581.             local KeybindText = library:Create("TextLabel",{
  582.                 Name = "Keybind Text";
  583.                 Parent = KeybindTextBackground;
  584.                 BackgroundColor3 = Color3.fromRGB(255, 255, 255);
  585.                 BackgroundTransparency = 1.000;
  586.                 Position = UDim2.new(0.042825792, 0, -0.0324675329, 0);
  587.                 Size = UDim2.new(0.959999979, 0, 1, 0);
  588.                 Font = Enum.Font.GothamSemibold;
  589.                 Text = Name;
  590.                 TextColor3 = Color3.fromRGB(255, 255, 255);
  591.                 TextSize = 15.000;
  592.                 TextXAlignment = Enum.TextXAlignment.Left;
  593.             });
  594.             local KeybindButton = library:Create("TextButton",{
  595.                 Name = "Keybind Button";
  596.                 Parent = Keybind;
  597.                 BackgroundColor3 = Color3.fromRGB(255, 255, 255);
  598.                 BackgroundTransparency = 1.000;
  599.                 Position = UDim2.new(0.669444978, 0, 0.0859998465, 0);
  600.                 Size = UDim2.new(0.177000001, 25, 0.75, 0);
  601.                 ZIndex = 2;
  602.                 Font = Enum.Font.GothamSemibold;
  603.                 Text = "None";
  604.                 TextColor3 = Color3.fromRGB(255, 255, 255);
  605.                 TextSize = 15.000;
  606.             });
  607.             local KeybindBackground = library:Create("ImageLabel",{
  608.                 Name = "Keybind Background";
  609.                 Parent = KeybindButton;
  610.                 Active = true;
  611.                 AnchorPoint = Vector2.new(0.5, 0.5);
  612.                 BackgroundColor3 = Color3.fromRGB(255, 255, 255);
  613.                 BackgroundTransparency = 1.000;
  614.                 Position = UDim2.new(0.501089334, 0, 0.454545468, 0);
  615.                 Selectable = true;
  616.                 Size = UDim2.new(1, 0, 1, 0);
  617.                 Image = "rbxassetid://3570695787";
  618.                 ImageColor3 = Color3.fromRGB(28, 28, 28);
  619.                 ScaleType = Enum.ScaleType.Slice;
  620.                 SliceCenter = Rect.new(100, 100, 100, 100);
  621.                 SliceScale = 0.100;
  622.             });
  623.  
  624.             local banned = {
  625.                 Return = true;
  626.                 Space = true;
  627.                 Tab = true;
  628.                 Unknown = true;
  629.             }
  630.            
  631.             local shortNames = {
  632.                 RightControl = 'RightCtrl';
  633.                 LeftControl = 'LeftCtrl';
  634.                 LeftShift = 'LShift';
  635.                 RightShift = 'RShift';
  636.                 MouseButton1 = "Mouse1";
  637.                 MouseButton2 = "Mouse2";
  638.                 MouseButton3 = "Mouse3";
  639.             }
  640.            
  641.             local allowed = {
  642.                 MouseButton1 = true;
  643.                 MouseButton2 = true;
  644.                 MouseButton3 = true;
  645.                 MouseButton4 = true;
  646.             }  
  647.            
  648.             local location = Options.location or library.flags;
  649.             local flagName = Options.flag or "";
  650.             location[flagName] = Options.Default or Enum.UserInputType.None
  651.  
  652.             local callback = callback or function() end;
  653.  
  654.             KeybindButton.MouseButton1Click:Connect(function()
  655.                 library.binding = true
  656.  
  657.                 KeybindButton.Text = '...'
  658.                 local a, b = game:GetService('UserInputService').InputBegan:wait()
  659.                 local name = tostring(a.KeyCode.Name)
  660.                 local typeName = tostring(a.UserInputType.Name)
  661.  
  662.                 if a.KeyCode == Enum.KeyCode.Delete then
  663.                     location[flagName] = Enum.UserInputType.None
  664.                     KeybindButton.Text = 'None'
  665.                 elseif (a.UserInputType ~= Enum.UserInputType.Keyboard and (allowed[a.UserInputType.Name]) and (not keyboardOnly)) or (a.KeyCode and (not banned[a.KeyCode.Name])) then
  666.                     local name = a.UserInputType ~= Enum.UserInputType.Keyboard and a.UserInputType.Name or a.KeyCode.Name;
  667.                     location[flagName] = (a);
  668.                     KeybindButton.Text = shortNames[name] or name;
  669.                 else
  670.                     if location[flagName] then
  671.                         if not pcall(function()
  672.                             return location[flagName].UserInputType
  673.                         end) then
  674.                             local name = tostring(location[flagName])
  675.                             KeybindButton.Text = shortNames[name] or name
  676.                         else
  677.                             local name = location[flagName].UserInputType ~= Enum.UserInputType.Keyboard and location[flagName].UserInputType.Name or location[flagName].KeyCode.Name;
  678.                             KeybindButton.Text = shortNames[name] or name;
  679.                         end
  680.                     end
  681.                 end
  682.  
  683.                 wait(0.1)  
  684.                 library.binding = false;
  685.             end)
  686.  
  687.             library.binds[flagName] = {
  688.                 location = location;
  689.                 callback = callback;
  690.             };
  691.         end
  692.  
  693.         function Section:Slider(Name, Options, callback)
  694.             local Slider = library:Create("Frame",{
  695.                 Name = "Slider";
  696.                 Parent = SectionContainer;
  697.                 BackgroundColor3 = Color3.fromRGB(255, 255, 255);
  698.                 BackgroundTransparency = 1.000;
  699.                 Position = UDim2.new(0, 0, 0.412979364, 0);
  700.                 Size = UDim2.new(1, 0, 0, 60);
  701.             });
  702.             local BackgroundFrame = library:Create("ImageLabel",{
  703.                 Name = "Background Frame";
  704.                 Parent = Slider;
  705.                 BackgroundColor3 = Color3.fromRGB(255, 255, 255);
  706.                 BackgroundTransparency = 1.000;
  707.                 Position = UDim2.new(0.0480000265, 0, 0.0500000007, 0);
  708.                 Size = UDim2.new(0.916999996, 0, 0.833333313, 0);
  709.                 Image = "rbxassetid://3570695787";
  710.                 ImageColor3 = Color3.fromRGB(28, 28, 28);
  711.                 ScaleType = Enum.ScaleType.Slice;
  712.                 SliceCenter = Rect.new(100, 100, 100, 100);
  713.                 SliceScale = 0.125;
  714.             });
  715.             local SliderName = library:Create("TextLabel",{
  716.                 Name = "SliderName";
  717.                 Parent = BackgroundFrame;
  718.                 BackgroundColor3 = Color3.fromRGB(255, 255, 255);
  719.                 BackgroundTransparency = 1.000;
  720.                 Position = UDim2.new(0.0230727084, 0, 0, 0);
  721.                 Size = UDim2.new(0.616797447, 0, 0.5, 0);
  722.                 Font = Enum.Font.GothamSemibold;
  723.                 Text = Name;
  724.                 TextColor3 = Color3.fromRGB(255, 255, 255);
  725.                 TextSize = 15.000;
  726.                 TextXAlignment = Enum.TextXAlignment.Left;
  727.             });
  728.             local slider = library:Create("TextButton",{
  729.                 Name = "slider";
  730.                 Parent = BackgroundFrame;
  731.                 BackgroundColor3 = Color3.fromRGB(255, 255, 255);
  732.                 BackgroundTransparency = 1.000;
  733.                 BorderSizePixel = 0;
  734.                 Size = UDim2.new(1, 0, 1, 0);
  735.                 Font = Enum.Font.GothamSemibold;
  736.                 Text = "";
  737.                 TextColor3 = Color3.fromRGB(0, 0, 0);
  738.                 TextSize = 14.000;
  739.             });
  740.             local line = library:Create("Frame",{
  741.                 Name = "line";
  742.                 Parent = slider;
  743.                 BackgroundColor3 = Color3.fromRGB(255, 255, 255);
  744.                 BorderSizePixel = 0;
  745.                 Position = UDim2.new(0.0727822408, 0, 0.639999986, 0);
  746.                 Size = UDim2.new(0, 160, 0, 2);
  747.             });
  748.             local UIGradient = library:Create("UIGradient",{
  749.                 Color = ColorSequence.new{ColorSequenceKeypoint.new(0.00, Color3.fromRGB(255, 255, 0)), ColorSequenceKeypoint.new(0.50, Color3.fromRGB(0, 255, 255)), ColorSequenceKeypoint.new(1.00, Color3.fromRGB(255, 0, 255))};
  750.                 Parent = line;
  751.             });
  752.             local fill = library:Create("ImageLabel",{
  753.                 Name = "fill";
  754.                 Parent = line;
  755.                 BackgroundColor3 = Color3.fromRGB(255, 255, 255);
  756.                 BackgroundTransparency = 1.000;
  757.                 BorderSizePixel = 0;
  758.                 Size = UDim2.new(0, 0, 1, 0);
  759.                 ZIndex = 3;
  760.                 Image = "rbxassetid://4550094458";
  761.                 ScaleType = Enum.ScaleType.Slice;
  762.                 SliceCenter = Rect.new(4, 4, 296, 296);
  763.             });
  764.             local Frame = library:Create("ImageLabel",{
  765.                 Name = "Frame";
  766.                 Parent = line;
  767.                 BackgroundColor3 = Color3.fromRGB(255, 255, 255);
  768.                 BackgroundTransparency = 1.000;
  769.                 BorderSizePixel = 0;
  770.                 Position = UDim2.new(0, 0, -4, 0);
  771.                 Size = UDim2.new(0, 3, 8, 0);
  772.                 ZIndex = 4;
  773.                 Image = "rbxassetid://4550094458";
  774.                 ScaleType = Enum.ScaleType.Slice;
  775.                 SliceCenter = Rect.new(4, 4, 296, 296);
  776.             });
  777.             local SliderValue = library:Create("TextBox",{
  778.                 Name = "SliderValue";
  779.                 Parent = BackgroundFrame;
  780.                 BackgroundColor3 = Color3.fromRGB(255, 255, 255);
  781.                 BackgroundTransparency = 1.000;
  782.                 Position = UDim2.new(0.689999998, 0, 0.100000001, 0);
  783.                 Size = UDim2.new(0.319999993, 0, 0.300000012, 0);
  784.                 Font = Enum.Font.GothamSemibold;
  785.                 PlaceholderColor3 = Color3.fromRGB(131, 131, 131);
  786.                 PlaceholderText = "_____";
  787.                 Text = Options.Default or "nil";
  788.                 TextColor3 = Color3.fromRGB(255, 255, 255);
  789.                 TextScaled = true;
  790.                 TextSize = 15.000;
  791.                 TextWrapped = true;
  792.             });
  793.             local location = Options.location or library.flags;
  794.             local flagName = Options.flag or "";
  795.             location[flagName] = Options.Default or 0
  796.  
  797.             Options.Min = Options.Min or 0
  798.             Options.Max = Options.Max or 100
  799.             Options.Default = Options.Default or 0
  800.             Options.Precise = Options.Precise or false
  801.            
  802.             local min = ( Options.Min < 0 and -Options.Min ) or Options.Min
  803.             local max = ( Options.Max < 0 and -Options.Max ) or Options.Max
  804.             local diff = max + min
  805.  
  806.             function SetSliderValue(number)
  807.                 if (not number) then return end
  808.                    
  809.                 local percent = 1 - ((Options.Max - number) / (Options.Max - Options.Min ))
  810.            
  811.                 SliderValue.Text = math.floor(number * 100)/100;
  812.                 Tween(fill, {Size = UDim2.new(percent, 0, 1, 0)}, Enum.EasingDirection.InOut, Enum.EasingStyle.Linear, 0.025, false)
  813.                 Tween(Frame, {Position = UDim2.new(percent, 0, 0, -7)}, Enum.EasingDirection.InOut, Enum.EasingStyle.Linear, 0.025, true)
  814.                 location[flagName] = math.floor(number * 100)/100
  815.                 if callback then callback(location[flagName]) end
  816.             end
  817.  
  818.             SliderValue.FocusLost:Connect(function(e)
  819.                 if e and tonumber(SliderValue.Text) then
  820.                     local num = tonumber(SliderValue.Text)
  821.                     SetSliderValue(math.clamp(num, Options.Min, Options.Max))
  822.                 else
  823.                     input.Text = location[flagName]
  824.                 end
  825.             end)
  826.  
  827.             game:GetService("UserInputService").InputEnded:connect(function(input, processed)
  828.                 if input.UserInputType == Enum.UserInputType.MouseButton1 then
  829.                     held = false
  830.                     ActiveSlider = nil
  831.                 end
  832.             end)
  833.  
  834.             slider.MouseButton1Down:connect(function()
  835.                 if ActiveSlider == nil then
  836.                     ActiveSlider = flagName
  837.                     held = true
  838.                 end
  839.             end)
  840.  
  841.             Heartbeat:connect(function()
  842.                 if held and ActiveSlider == flagName then
  843.                     local mouse = game:GetService("UserInputService"):GetMouseLocation()
  844.                     local percent = (mouse.X - slider.AbsolutePosition.X) / (slider.AbsoluteSize.X)
  845.                     percent = math.clamp(percent, 0, 1)
  846.                     local Value = Options.Min + (Options.Max - Options.Min) * percent;
  847.                
  848.                     if not Options.Precise then
  849.                         Value = math.floor(Value);
  850.                     end;
  851.                
  852.                     Tween(fill, {Size = UDim2.new(percent, 0, 1, 0)}, Enum.EasingDirection.InOut, Enum.EasingStyle.Linear, 0.025, false)
  853.                     Tween(Frame, {Position = UDim2.new(percent, 0, 0, -7)}, Enum.EasingDirection.InOut, Enum.EasingStyle.Linear, 0.025, true)
  854.                
  855.                     SliderValue.Text = math.floor(Value * 100)/100
  856.                     location[flagName] = math.floor(Value * 100)/100
  857.                    
  858.                     if callback then callback(location[flagName]) end
  859.                 end
  860.             end)
  861.         end
  862.  
  863.         function Section:Dropdown(Name, Options, callback)
  864.             local Dropdown = library:Create("Frame",{
  865.                 Name = "Dropdown";
  866.                 BorderSizePixel = 0;
  867.                 Parent = SectionContainer;
  868.                 BackgroundColor3 = Color3.fromRGB(255, 255, 255);
  869.                 BackgroundTransparency = 1.000;
  870.                 Position = UDim2.new(0, 0, 0.293107003, 0);
  871.                 Size = UDim2.new(1, 0, 0, 40);
  872.             });
  873.             local DropdownButton = library:Create("TextButton",{ -- DROPDOWN TOGGLE
  874.                 Name = "Dropdown Button";
  875.                 Parent = Dropdown;
  876.                 BackgroundColor3 = Color3.fromRGB(80, 80, 80);
  877.                 BackgroundTransparency = 1.000;
  878.                 BorderSizePixel = 0;
  879.                 ClipsDescendants = true;
  880.                 Size = UDim2.new(1, 0, 0, 40);
  881.                 ZIndex = 3;
  882.                 Font = Enum.Font.GothamSemibold;
  883.                 LineHeight = 2.000;
  884.                 Text = "";
  885.                 TextColor3 = Color3.fromRGB(0, 0, 0);
  886.                 TextSize = 14.000;
  887.                 TextXAlignment = Enum.TextXAlignment.Left;
  888.             });
  889.             local DropdownBackground = library:Create("ImageLabel",{
  890.                 Name = "Dropdown Background";
  891.                 Parent = DropdownButton;
  892.                 Active = true;
  893.                 AnchorPoint = Vector2.new(0.5, 0.5);
  894.                 BackgroundColor3 = Color3.fromRGB(255, 255, 255);
  895.                 BackgroundTransparency = 1.000;
  896.                 BorderSizePixel = 0;
  897.                 Position = UDim2.new(0.502301931, 0, 0.454545468, 0);
  898.                 Selectable = true;
  899.                 Size = UDim2.new(0.905082345, 0, 0.909090936, 0);
  900.                 ZIndex = 3;
  901.                 Image = "rbxassetid://3570695787";
  902.                 ImageColor3 = Color3.fromRGB(28, 28, 28);
  903.                 ScaleType = Enum.ScaleType.Slice;
  904.                 SliceCenter = Rect.new(100, 100, 100, 100);
  905.                 SliceScale = 0.080;
  906.             });
  907.             local DropdownName = library:Create("TextLabel",{
  908.                 Name = "Dropdown Name";
  909.                 Parent = DropdownButton;
  910.                 BackgroundColor3 = Color3.fromRGB(255, 255, 255);
  911.                 BackgroundTransparency = 1.000;
  912.                 BorderSizePixel = 0;
  913.                 Position = UDim2.new(0.0765550211, 0, 0, 0);
  914.                 Size = UDim2.new(0.842105329, 0, 0, 25);
  915.                 ZIndex = 3;
  916.                 Font = Enum.Font.GothamSemibold;
  917.                 Text = Name;
  918.                 TextColor3 = Color3.fromRGB(255, 255, 255);
  919.                 TextSize = 15.000;
  920.                 TextXAlignment = Enum.TextXAlignment.Left;
  921.             });
  922.             local ArrowImage = library:Create("ImageLabel",{
  923.                 Name = "Arrow Image";
  924.                 Parent = DropdownButton;
  925.                 BackgroundColor3 = Color3.fromRGB(255, 255, 255);
  926.                 BackgroundTransparency = 1.000;
  927.                 BorderColor3 = Color3.fromRGB(27, 42, 53);
  928.                 BorderSizePixel = 0;
  929.                 Position = UDim2.new(0.789473712, 0, 0.0606060624, 0);
  930.                 Size = UDim2.new(0, 25, 0, 25);
  931.                 ZIndex = 3;
  932.                 Image = "http://www.roblox.com/asset/?id=4877238073";
  933.             });
  934.             local DropLine = library:Create("Frame",{
  935.                 Name = "Drop Line";
  936.                 Parent = DropdownButton;
  937.                 BackgroundColor3 = Color3.fromRGB(255, 255, 255);
  938.                 BorderColor3 = Color3.fromRGB(255, 255, 255);
  939.                 BorderSizePixel = 0;
  940.                 Position = UDim2.new(0.0789406002, 0, 0.75757575, 0);
  941.                 Size = UDim2.new(0, 175, 0, 1);
  942.                 ZIndex = 3;
  943.             });
  944.             local DropMenu = library:Create("ScrollingFrame",{
  945.                 Name = "Drop Menu";
  946.                 Parent = Dropdown;
  947.                 Active = true;
  948.                 BackgroundColor3 = Color3.fromRGB(28, 28, 28);
  949.                 BorderColor3 = Color3.fromRGB(255, 255, 255);
  950.                 BorderSizePixel = 0;
  951.                 Position = UDim2.new(0.0480000004, 0, 0, 31);
  952.                 Size = UDim2.new(0, 189, 0, 0);
  953.                 SizeConstraint = Enum.SizeConstraint.RelativeYY;
  954.                 ZIndex = 2;
  955.                 BottomImage = "";
  956.                 CanvasSize = UDim2.new(0, 160, 0, 250);
  957.                 MidImage = "http://www.roblox.com/asset/?id=4878091618";
  958.                 ScrollBarThickness = 0;
  959.                 TopImage = "";
  960.                 VerticalScrollBarInset = Enum.ScrollBarInset.Always;
  961.             });
  962.             local DropListLayout = library:Create("UIListLayout",{
  963.                 Name = "Drop List Layout";
  964.                 Parent = DropMenu;
  965.                 HorizontalAlignment = Enum.HorizontalAlignment.Center;
  966.                 SortOrder = Enum.SortOrder.LayoutOrder;
  967.                 Padding = UDim.new(0, 2);
  968.             });
  969.             library:Create("UIPadding",{
  970.                 Name = "Drop Padding";
  971.                 Parent = DropMenu;
  972.                 PaddingLeft = UDim.new(0, 5);
  973.                 PaddingRight = UDim.new(0, 5);
  974.                 PaddingTop = UDim.new(0, 5);
  975.             });
  976.  
  977.             function GetLengthOfDirectory(AAA)
  978.                 local length = 0
  979.                 for i,v in pairs(AAA) do
  980.                     length = length + 1
  981.                 end
  982.                 return length
  983.             end
  984.  
  985.             local location = Options.location or library.flags;
  986.             local flagName = Options.flag or "";
  987.             local Dropdown_Type = Options.Type or 'Normal'
  988.             location[flagName] = (Options.Default) or (Dropdown_Type == 'Toggle' and {}) or ("")
  989.             local Dropdown_List = Options.list or {}
  990.             local Dropdown_List_Type = ( #Dropdown_List ~= 0 and "Table" ) or "Directory"
  991.             local CurrentState = false
  992.             local NewSize = 0
  993.             local tweeeeeeeeeeeeening = false
  994.             local function ToggleDropdown(state)
  995.                 if not tweeeeeeeeeeeeening then
  996.                     CurrentState = state or not CurrentState
  997.                     if CurrentState then
  998.                         tweeeeeeeeeeeeening = true
  999.                         local ListLength = ( Dropdown_List_Type == 'Table' and #Dropdown_List ) or ( GetLengthOfDirectory(Dropdown_List) )
  1000.                         NewSize = ( ListLength > 3 and 113 ) or (32 * #Dropdown_List + 27)
  1001.                         DropMenu.CanvasSize = UDim2.new(1, -25, 0, (ListLength * 27) + 32)
  1002.                         DropMenu.ScrollBarThickness = 5;
  1003.                         Tween(DropMenu, { Size = UDim2.new(0, 189, 0, NewSize), ScrollBarImageTransparency = 0 }, Enum.EasingDirection.InOut, Enum.EasingStyle.Linear, 0.25, false)
  1004.                         Tween(ArrowImage, { Rotation = 90 }, Enum.EasingDirection.InOut, Enum.EasingStyle.Linear, 0.25, false)
  1005.                         Tween(Dropdown, { Size = UDim2.new(1, 0, 0, 40 + NewSize) }, Enum.EasingDirection.InOut, Enum.EasingStyle.Linear, 0.25, false)
  1006.                         Tween(SectionPart, { Size = UDim2.new(0, 208, 0, SectionPart.Size.Y.Offset + NewSize) }, Enum.EasingDirection.InOut, Enum.EasingStyle.Linear, 0, true)     
  1007.                         Tween(SectionContainer, { Size = UDim2.new(0, 208, 0, SectionContainer.Size.Y.Offset + NewSize) }, Enum.EasingDirection.InOut, Enum.EasingStyle.Linear, 0.15, true)
  1008.                         Tween(Container, {Size =  UDim2.new(0, 208, 0, ContainerUIListLayout.AbsoluteContentSize.Y)}, Enum.EasingDirection.InOut, Enum.EasingStyle.Linear, 0.15, true)
  1009.                         tweeeeeeeeeeeeening = false
  1010.                         local DroppedButtonBackground = library:Create("ImageLabel",{
  1011.                             Name = "Dropdown Search Background";
  1012.                             Parent = DropMenu;
  1013.                             BackgroundColor3 = Color3.fromRGB(255, 255, 255);
  1014.                             BackgroundTransparency = 1.000;
  1015.                             Size = UDim2.new(1, 0, 0, 25);
  1016.                             ZIndex = 2;
  1017.                             Image = "http://www.roblox.com/asset/?id=4878273688";
  1018.                             ImageColor3 = Color3.fromRGB(45, 45, 45);
  1019.                         });
  1020.                         local DroppedSearch = library:Create("TextBox",{
  1021.                             Name = "Dropdown Searcherino";
  1022.                             Parent = DroppedButtonBackground;
  1023.                             BackgroundColor3 = Color3.fromRGB(255, 255, 255);
  1024.                             BackgroundTransparency = 1.000;
  1025.                             BorderSizePixel = 0;
  1026.                             Position = UDim2.new(0, 0, 0, -1);
  1027.                             Size = UDim2.new(1, 0, 1, 0);
  1028.                             ZIndex = 4;
  1029.                             Font = Enum.Font.GothamSemibold;
  1030.                             PlaceholderText = 'Searchbar';
  1031.                             Text = "";
  1032.                             TextColor3 = Color3.fromRGB(255, 255, 255);
  1033.                             TextSize = 15.000;
  1034.                         });
  1035.                         local MagnifyingGlassImage = library:Create("ImageLabel",{
  1036.                             Name = "MagnifyingGlassImage";
  1037.                             Parent = DroppedSearch;
  1038.                             BackgroundTransparency = 1;
  1039.                             Size = UDim2.new(0, 18, 0, 18);
  1040.                             Position = UDim2.new(0, 6, 0, 4);
  1041.                             ZIndex = 3;
  1042.                             Image = "http://www.roblox.com/asset/?id=3229196465";
  1043.                             ImageColor3 = Color3.fromRGB(255, 255, 255);
  1044.                         });
  1045.                         DroppedSearch:GetPropertyChangedSignal("Text"):connect(function()
  1046.                             if DroppedSearch:IsFocused() then
  1047.                                 for i,v in pairs(DropMenu:GetChildren()) do
  1048.                                     if v.Name == 'Dropdown Button Background' then
  1049.                                         warn(string.find(string.lower(v['Dropdown Button'].Text), string.lower(DroppedSearch.Text)))
  1050.                                         if string.find(string.lower(v['Dropdown Button'].Text), string.lower(DroppedSearch.Text)) then
  1051.                                             v.Visible = true
  1052.                                         else
  1053.                                             v.Visible = false
  1054.                                         end
  1055.                                     end
  1056.                                 end
  1057.                             end
  1058.                         end)
  1059.                         for i,v in (( Dropdown_List_Type == 'Table' and ipairs ) or pairs )(Dropdown_List) do
  1060.                             local DroppedButtonBackground = library:Create("ImageLabel",{
  1061.                                 Name = "Dropdown Button Background";
  1062.                                 Parent = DropMenu;
  1063.                                 BackgroundColor3 = Color3.fromRGB(255, 255, 255);
  1064.                                 BackgroundTransparency = 1.000;
  1065.                                 Size = UDim2.new(1, 0, 0, 25);
  1066.                                 ZIndex = 2;
  1067.                                 Image = "http://www.roblox.com/asset/?id=4878273688";
  1068.                                 ImageColor3 = Color3.fromRGB(35, 35, 35);
  1069.                             });
  1070.                             local DroppedButton = library:Create("TextButton",{
  1071.                                 Name = "Dropdown Button";
  1072.                                 Parent = DroppedButtonBackground;
  1073.                                 BackgroundColor3 = Color3.fromRGB(255, 255, 255);
  1074.                                 BackgroundTransparency = 1.000;
  1075.                                 BorderSizePixel = 0;
  1076.                                 Position = UDim2.new(0, 0, 0, -1);
  1077.                                 Size = UDim2.new(1, 0, 1, 0);
  1078.                                 ZIndex = 3;
  1079.                                 Font = Enum.Font.GothamSemibold;
  1080.                                 Text = v;
  1081.                                 TextColor3 = ((Dropdown_Type == 'Toggle' and table.find(location[flagName], v)) or (Dropdown_Type == 'Normal' and location[flagName] == v)) and Color3.fromRGB(0,255,0) or Color3.fromRGB(255, 255, 255);
  1082.                                 TextSize = 15.000;
  1083.                             });
  1084.                             DroppedButton.MouseButton1Click:Connect(function()
  1085.                                 if Dropdown_Type == 'Toggle' then
  1086.                                     if DroppedButton.TextColor3 == Color3.fromRGB(255,255,255) then
  1087.                                         DroppedButton.TextColor3 = Color3.fromRGB(0,255,0)
  1088.                                     else
  1089.                                         DroppedButton.TextColor3 = Color3.fromRGB(255,255,255)
  1090.                                     end
  1091.  
  1092.                                     local TempTable = {}
  1093.                                     for i,v in pairs(DropMenu:GetChildren()) do
  1094.                                         if v.Name == "Dropdown Button Background" and v["Dropdown Button"].TextColor3 == Color3.fromRGB(0,255,0) then
  1095.                                             table.insert(TempTable, v["Dropdown Button"].Text)
  1096.                                         end
  1097.                                     end
  1098.                                     location[flagName] = TempTable
  1099.                                 else
  1100.                                     location[flagName] = v
  1101.                                     ToggleDropdown(state)
  1102.                                 end
  1103.                                 if callback then callback(not location[flagName]) end
  1104.                             end)
  1105.                         end
  1106.                     else
  1107.                         tweeeeeeeeeeeeening = true
  1108.                         DropMenu.CanvasSize = UDim2.new(0, DropMenu.Size.X.Offset, 0, DropMenu.Size.Y.Offset + 12)
  1109.                         Tween(DropMenu, { Size = UDim2.new(0, 189, 0, 0), ScrollBarImageTransparency = 1 }, Enum.EasingDirection.InOut, Enum.EasingStyle.Linear, 0.25, false)
  1110.                         Tween(ArrowImage, { Rotation = 0 }, Enum.EasingDirection.InOut, Enum.EasingStyle.Linear, 0.25, false)
  1111.                         Tween(Dropdown, { Size = UDim2.new(1, 0, 0, 40) }, Enum.EasingDirection.InOut, Enum.EasingStyle.Linear, 0.25, false)
  1112.                         Tween(SectionPart, { Size = UDim2.new(0, 208, 0, SectionPart.Size.Y.Offset - NewSize) }, Enum.EasingDirection.InOut, Enum.EasingStyle.Linear, 0.25, false)     
  1113.                         Tween(SectionContainer, { Size = UDim2.new(0, 208, 0, SectionContainer.Size.Y.Offset - NewSize) }, Enum.EasingDirection.InOut, Enum.EasingStyle.Linear, 0.25, false)
  1114.                         Tween(Container, {Size =  UDim2.new(0, 208, 0, ContainerUIListLayout.AbsoluteContentSize.Y)}, Enum.EasingDirection.InOut, Enum.EasingStyle.Linear, 0.25, true)
  1115.                         tweeeeeeeeeeeeening = false
  1116.                         for i,v in pairs(DropMenu:GetChildren()) do
  1117.                             if v.ClassName == 'ImageLabel' then
  1118.                                 v:Destroy()
  1119.                             end
  1120.                         end
  1121.                     end
  1122.                 end
  1123.             end
  1124.  
  1125.             DropdownButton.MouseButton1Click:Connect(function()
  1126.                 ToggleDropdown()
  1127.             end)   
  1128.  
  1129.         end
  1130.  
  1131.         function Section:ColorPicker(Name, Options, callback)
  1132.             local ColorPicker = library:Create("Frame",{
  1133.                 Name = "Color Picker";
  1134.                 Parent = SectionContainer;
  1135.                 BackgroundColor3 = Color3.fromRGB(255, 255, 255);
  1136.                 BackgroundTransparency = 1.000;
  1137.                 Position = UDim2.new(0, 0, 0.492985964, 0);
  1138.                 Size = UDim2.new(0, 208, 0, 35);
  1139.             });
  1140.             local ColorToggleButton = library:Create("TextButton",{
  1141.                 Name = "Color Toggle Button";
  1142.                 Parent = ColorPicker;
  1143.                 BackgroundColor3 = Color3.fromRGB(80, 80, 80);
  1144.                 BackgroundTransparency = 1.000;
  1145.                 BorderSizePixel = 0;
  1146.                 ClipsDescendants = true;
  1147.                 Size = UDim2.new(1, 0, 0, 35);
  1148.                 ZIndex = 5;
  1149.                 Font = Enum.Font.GothamSemibold;
  1150.                 LineHeight = 2.000;
  1151.                 Text = "";
  1152.                 TextColor3 = Color3.fromRGB(0, 0, 0);
  1153.                 TextSize = 14.000;
  1154.                 TextXAlignment = Enum.TextXAlignment.Left;
  1155.             });
  1156.             local ColorPickerBackground = library:Create("ImageLabel",{
  1157.                 Name = "Color Picker Background";
  1158.                 Parent = ColorToggleButton;
  1159.                 Active = true;
  1160.                 AnchorPoint = Vector2.new(0.5, 0.5);
  1161.                 BackgroundColor3 = Color3.fromRGB(255, 255, 255);
  1162.                 BackgroundTransparency = 1.000;
  1163.                 BorderSizePixel = 0;
  1164.                 Position = UDim2.new(0.501999974, 0, 0, 15);
  1165.                 Selectable = true;
  1166.                 Size = UDim2.new(0.904999971, 0, 0, 30);
  1167.                 ZIndex = 3;
  1168.                 Image = "rbxassetid://3570695787";
  1169.                 ImageColor3 = Color3.fromRGB(255, 0, 0);
  1170.                 ScaleType = Enum.ScaleType.Slice;
  1171.                 SliceCenter = Rect.new(100, 100, 100, 100);
  1172.                 SliceScale = 0.080;
  1173.             });
  1174.             local ColorPickerName = library:Create("TextLabel",{
  1175.                 Name = "Color Picker Name";
  1176.                 Parent = ColorToggleButton;
  1177.                 BackgroundColor3 = Color3.fromRGB(255, 255, 255);
  1178.                 BackgroundTransparency = 1.000;
  1179.                 BorderSizePixel = 0;
  1180.                 Position = UDim2.new(0, 15, 0, 2);
  1181.                 Size = UDim2.new(0.842105329, 0, 0, 25);
  1182.                 ZIndex = 3;
  1183.                 Font = Enum.Font.GothamSemibold;
  1184.                 Text = Name;
  1185.                 TextColor3 = Color3.fromRGB(255, 255, 255);
  1186.                 TextSize = 15.000;
  1187.                 TextXAlignment = Enum.TextXAlignment.Left;
  1188.             });
  1189.             local ColorMenu = library:Create("Frame",{
  1190.                 Name = "Color Menu";
  1191.                 Parent = ColorPicker;
  1192.                 Active = true;
  1193.                 BackgroundColor3 = Color3.fromRGB(28, 28, 28);
  1194.                 BorderColor3 = Color3.fromRGB(255, 255, 255);
  1195.                 BorderSizePixel = 0;
  1196.                 ClipsDescendants = true;
  1197.                 Position = UDim2.new(0.0483173206, 0, 0.0904937759, 0);
  1198.                 Selectable = true;
  1199.                 Size = UDim2.new(0, 188, 0, 0);
  1200.                 SizeConstraint = Enum.SizeConstraint.RelativeYY;
  1201.                 ZIndex = 2;
  1202.             });
  1203.             local BlueBox = library:Create("TextBox",{
  1204.                 Name = "BlueBox";
  1205.                 Parent = ColorMenu;
  1206.                 BackgroundColor3 = Color3.fromRGB(255, 255, 255);
  1207.                 BackgroundTransparency = 1.000;
  1208.                 BorderSizePixel = 0;
  1209.                 Position = UDim2.new(0, 121, 0, 52);
  1210.                 Size = UDim2.new(0, 60, 0, 20);
  1211.                 ZIndex = 3;
  1212.                 Font = Enum.Font.GothamSemibold;
  1213.                 PlaceholderColor3 = Color3.fromRGB(16, 192, 255);
  1214.                 PlaceholderText = "B";
  1215.                 Text = "0";
  1216.                 TextColor3 = Color3.fromRGB(16, 192, 255);
  1217.                 TextSize = 15.000;
  1218.             });
  1219.             local BlueBoxBackground = library:Create("ImageLabel",{
  1220.                 Name = "BlueBox Background";
  1221.                 Parent = BlueBox;
  1222.                 Active = true;
  1223.                 AnchorPoint = Vector2.new(0.5, 0.5);
  1224.                 BackgroundColor3 = Color3.fromRGB(255, 255, 255);
  1225.                 BackgroundTransparency = 1.000;
  1226.                 Position = UDim2.new(0.5, 0, 0.5, 0);
  1227.                 Selectable = true;
  1228.                 Size = UDim2.new(1, 0, 1, 0);
  1229.                 ZIndex = 2;
  1230.                 Image = "rbxassetid://3570695787";
  1231.                 ImageColor3 = Color3.fromRGB(50, 50, 50);
  1232.                 ScaleType = Enum.ScaleType.Slice;
  1233.                 SliceCenter = Rect.new(100, 100, 100, 100);
  1234.                 SliceScale = 0.040;
  1235.             });
  1236.             local GreenBox = library:Create("TextBox",{
  1237.                 Name = "GreenBox";
  1238.                 Parent = ColorMenu;
  1239.                 BackgroundColor3 = Color3.fromRGB(255, 255, 255);
  1240.                 BackgroundTransparency = 1.000;
  1241.                 BorderSizePixel = 0;
  1242.                 Position = UDim2.new(0, 121, 0, 29);
  1243.                 Size = UDim2.new(0, 60, 0, 20);
  1244.                 ZIndex = 3;
  1245.                 Font = Enum.Font.GothamSemibold;
  1246.                 PlaceholderColor3 = Color3.fromRGB(0, 255, 64);
  1247.                 PlaceholderText = "G";
  1248.                 Text = "0";
  1249.                 TextColor3 = Color3.fromRGB(0, 255, 64);
  1250.                 TextSize = 15.000;
  1251.             });
  1252.             local GreeBoxnBackground = library:Create("ImageLabel",{
  1253.                 Name = "GreenBox Background";
  1254.                 Parent = GreenBox;
  1255.                 Active = true;
  1256.                 AnchorPoint = Vector2.new(0.5, 0.5);
  1257.                 BackgroundColor3 = Color3.fromRGB(255, 255, 255);
  1258.                 BackgroundTransparency = 1.000;
  1259.                 Position = UDim2.new(0.5, 0, 0.5, 0);
  1260.                 Selectable = true;
  1261.                 Size = UDim2.new(1, 0, 1, 0);
  1262.                 ZIndex = 2;
  1263.                 Image = "rbxassetid://3570695787";
  1264.                 ImageColor3 = Color3.fromRGB(50, 50, 50);
  1265.                 ScaleType = Enum.ScaleType.Slice;
  1266.                 SliceCenter = Rect.new(100, 100, 100, 100);
  1267.                 SliceScale = 0.040;
  1268.             });
  1269.             local HexBox = library:Create("TextBox",{
  1270.                 Name = "HexBox";
  1271.                 Parent = ColorMenu;
  1272.                 BackgroundColor3 = Color3.fromRGB(255, 255, 255);
  1273.                 BackgroundTransparency = 1.000;
  1274.                 BorderSizePixel = 0;
  1275.                 Position = UDim2.new(0, 121, 0, 75);
  1276.                 Size = UDim2.new(0, 60, 0, 20);
  1277.                 ZIndex = 3;
  1278.                 Font = Enum.Font.GothamSemibold;
  1279.                 PlaceholderColor3 = Color3.fromRGB(178, 178, 178);
  1280.                 PlaceholderText = "Hex";
  1281.                 Text = "FF0000";
  1282.                 TextColor3 = Color3.fromRGB(255, 255, 255);
  1283.                 TextScaled = true;
  1284.                 TextSize = 15.000;
  1285.                 TextWrapped = true;
  1286.             });
  1287.             local HexBoxBackground = library:Create("ImageLabel",{
  1288.                 Name = "HexBox Background";
  1289.                 Parent = HexBox;
  1290.                 Active = true;
  1291.                 AnchorPoint = Vector2.new(0.5, 0.5);
  1292.                 BackgroundColor3 = Color3.fromRGB(255, 255, 255);
  1293.                 BackgroundTransparency = 1.000;
  1294.                 Position = UDim2.new(0.5, 0, 0.5, 0);
  1295.                 Selectable = true;
  1296.                 Size = UDim2.new(1, 0, 1, 0);
  1297.                 ZIndex = 2;
  1298.                 Image = "rbxassetid://3570695787";
  1299.                 ImageColor3 = Color3.fromRGB(50, 50, 50);
  1300.                 ScaleType = Enum.ScaleType.Slice;
  1301.                 SliceCenter = Rect.new(100, 100, 100, 100);
  1302.                 SliceScale = 0.040;
  1303.             });
  1304.             local RedBox = library:Create("TextBox",{
  1305.                 Name = "RedBox";
  1306.                 Parent = ColorMenu;
  1307.                 BackgroundColor3 = Color3.fromRGB(255, 255, 255);
  1308.                 BackgroundTransparency = 1.000;
  1309.                 BorderSizePixel = 0;
  1310.                 Position = UDim2.new(0, 121, 0, 6);
  1311.                 Size = UDim2.new(0, 60, 0, 20);
  1312.                 ZIndex = 3;
  1313.                 Font = Enum.Font.GothamSemibold;
  1314.                 PlaceholderColor3 = Color3.fromRGB(255, 60, 63);
  1315.                 PlaceholderText = "R";
  1316.                 Text = "255";
  1317.                 TextColor3 = Color3.fromRGB(255, 60, 63);
  1318.                 TextSize = 15.000;
  1319.             });
  1320.             local RedBoxBackground = library:Create("ImageLabel",{
  1321.                 Name = "RedBox Background";
  1322.                 Parent = RedBox;
  1323.                 Active = true;
  1324.                 AnchorPoint = Vector2.new(0.5, 0.5);
  1325.                 BackgroundColor3 = Color3.fromRGB(255, 255, 255);
  1326.                 BackgroundTransparency = 1.000;
  1327.                 Position = UDim2.new(0.5, 0, 0.5, 0);
  1328.                 Selectable = true;
  1329.                 Size = UDim2.new(1, 0, 1, 0);
  1330.                 ZIndex = 2;
  1331.                 Image = "rbxassetid://3570695787";
  1332.                 ImageColor3 = Color3.fromRGB(50, 50, 50);
  1333.                 ScaleType = Enum.ScaleType.Slice;
  1334.                 SliceCenter = Rect.new(100, 100, 100, 100);
  1335.                 SliceScale = 0.040;
  1336.             });
  1337.             library:Create("UIPadding",{
  1338.                 Parent = ColorMenu;
  1339.                 PaddingTop = UDim.new(0, 10);
  1340.             });
  1341.             local HueSlider = library:Create("ImageButton",{
  1342.                 Name = "HueSlider";
  1343.                 Parent = ColorMenu;
  1344.                 BackgroundColor3 = Color3.fromRGB(255, 255, 255);
  1345.                 BackgroundTransparency = 1.000;
  1346.                 BorderColor3 = Color3.fromRGB(255, 255, 255);
  1347.                 Position = UDim2.new(0, 10, 0, 110);
  1348.                 Size = UDim2.new(0, 100, 0, 20);
  1349.                 ZIndex = 3;
  1350.                 Image = "http://www.roblox.com/asset/?id=4981662027";
  1351.             });
  1352.             local HueSliderBtn = library:Create("ImageLabel",{
  1353.                 Name = "HueSliderBtn";
  1354.                 Parent = HueSlider;
  1355.                 BackgroundColor3 = Color3.fromRGB(255, 255, 255);
  1356.                 BackgroundTransparency = 1.000;
  1357.                 Position = UDim2.new(0, -5, 0, 5);
  1358.                 Size = UDim2.new(0, 10, 0, 10);
  1359.                 ZIndex = 69;
  1360.                 Image = "http://www.roblox.com/asset/?id=4971957189";
  1361.             });
  1362.             local OpacitySlider = library:Create("ImageButton",{
  1363.                 Name = "Opacity Slider";
  1364.                 Parent = ColorMenu;
  1365.                 BackgroundColor3 = Color3.fromRGB(255, 255, 255);
  1366.                 BackgroundTransparency = 1.000;
  1367.                 BorderColor3 = Color3.fromRGB(255, 255, 255);
  1368.                 Position = UDim2.new(0, 10, 0, 135);
  1369.                 Size = UDim2.new(0, 100, 0, 20);
  1370.                 ZIndex = 3;
  1371.                 Image = "http://www.roblox.com/asset/?id=4981661543";
  1372.             });
  1373.             local OpacitySliderGradient = library:Create("ImageLabel",{
  1374.                 Name = "OpacitySliderGradient";
  1375.                 Parent = OpacitySlider;
  1376.                 BackgroundColor3 = Color3.fromRGB(255, 255, 255);
  1377.                 BackgroundTransparency = 1.000;
  1378.                 Size = UDim2.new(1, 0, 1, 0);
  1379.                 ZIndex = 4;
  1380.                 Image = "http://www.roblox.com/asset/?id=4981661041";
  1381.                 ImageColor3 = Color3.fromRGB(255, 0, 4);
  1382.             });
  1383.             local OpacitySliderBtn = library:Create("ImageLabel",{
  1384.                 Name = "OpacitySliderBtn";
  1385.                 Parent = OpacitySlider;
  1386.                 BackgroundColor3 = Color3.fromRGB(255, 255, 255);
  1387.                 BackgroundTransparency = 1.000;
  1388.                 Position = UDim2.new(0, 95, 0, 5);
  1389.                 Size = UDim2.new(0, 10, 0, 10);
  1390.                 ZIndex = 69;
  1391.                 Image = "http://www.roblox.com/asset/?id=4971957189";
  1392.             });
  1393.             local OpacityBox = library:Create("TextBox",{
  1394.                 Name = "OpacityBox";
  1395.                 Parent = ColorMenu;
  1396.                 BackgroundColor3 = Color3.fromRGB(255, 255, 255);
  1397.                 BackgroundTransparency = 1.000;
  1398.                 BorderSizePixel = 0;
  1399.                 Position = UDim2.new(0, 121, 0, 98);
  1400.                 Size = UDim2.new(0, 60, 0, 20);
  1401.                 ZIndex = 3;
  1402.                 Font = Enum.Font.GothamSemibold;
  1403.                 PlaceholderColor3 = Color3.fromRGB(178, 178, 178);
  1404.                 PlaceholderText = "Opacity";
  1405.                 Text = "1";
  1406.                 TextColor3 = Color3.fromRGB(255, 255, 255);
  1407.                 TextSize = 15.000;
  1408.             });
  1409.             local OpacityBackground = library:Create("ImageLabel",{
  1410.                 Name = "Opacity Background";
  1411.                 Parent = OpacityBox;
  1412.                 Active = true;
  1413.                 AnchorPoint = Vector2.new(0.5, 0.5);
  1414.                 BackgroundColor3 = Color3.fromRGB(255, 255, 255);
  1415.                 BackgroundTransparency = 1.000;
  1416.                 Position = UDim2.new(0.5, 0, 0.5, 0);
  1417.                 Selectable = true;
  1418.                 Size = UDim2.new(1, 0, 1, 0);
  1419.                 ZIndex = 2;
  1420.                 Image = "rbxassetid://3570695787";
  1421.                 ImageColor3 = Color3.fromRGB(50, 50, 50);
  1422.                 ScaleType = Enum.ScaleType.Slice;
  1423.                 SliceCenter = Rect.new(100, 100, 100, 100);
  1424.                 SliceScale = 0.040;
  1425.             });
  1426.             local RainbowButton = library:Create("TextButton",{
  1427.                 Name = "Rainbow Button";
  1428.                 Parent = ColorMenu;
  1429.                 BackgroundColor3 = Color3.fromRGB(255, 255, 255);
  1430.                 BackgroundTransparency = 1.000;
  1431.                 BorderSizePixel = 0;
  1432.                 Position = UDim2.new(0, 121, 0, 121);
  1433.                 Size = UDim2.new(0, 60, 0, 20);
  1434.                 ZIndex = 4;
  1435.                 Font = Enum.Font.GothamSemibold;
  1436.                 Text = "Rainbow";
  1437.                 TextColor3 = Color3.fromRGB(0, 207, 204);
  1438.                 TextSize = 13.000;
  1439.                 TextWrapped = true;
  1440.             });
  1441.             local RainbowButtonbackground = library:Create("ImageLabel",{
  1442.                 Name = "Rainbow Button background";
  1443.                 Parent = RainbowButton;
  1444.                 Active = true;
  1445.                 AnchorPoint = Vector2.new(0.5, 0.5);
  1446.                 BackgroundColor3 = Color3.fromRGB(255, 255, 255);
  1447.                 BackgroundTransparency = 1.000;
  1448.                 BorderColor3 = Color3.fromRGB(38, 0, 255);
  1449.                 BorderSizePixel = 0;
  1450.                 Position = UDim2.new(0.5, 0, 0.5, 0);
  1451.                 Selectable = true;
  1452.                 Size = UDim2.new(1, 0, 1, 0);
  1453.                 ZIndex = 3;
  1454.                 Image = "rbxassetid://3570695787";
  1455.                 ImageColor3 = Color3.fromRGB(255, 48, 51);
  1456.                 ScaleType = Enum.ScaleType.Slice;
  1457.                 SliceCenter = Rect.new(100, 100, 100, 100);
  1458.                 SliceScale = 0.040;
  1459.             });
  1460.             local PickerItslef = library:Create("ImageButton",{
  1461.                 Name = "Picker Itslef";
  1462.                 Parent = ColorMenu;
  1463.                 BackgroundColor3 = Color3.fromRGB(255, 0, 0);
  1464.                 BackgroundTransparency = 1.000;
  1465.                 BorderColor3 = Color3.fromRGB(0, 0, 0);
  1466.                 BorderSizePixel = 0;
  1467.                 Position = UDim2.new(0, 10, 0, 6);
  1468.                 Size = UDim2.new(0, 100, 0, 100);
  1469.                 ZIndex = 3;
  1470.                 Image = "http://www.roblox.com/asset/?id=4974035897";
  1471.                 ImageColor3 = Color3.fromRGB(255, 0, 0)
  1472.             });
  1473.             local Lightness = library:Create("ImageLabel",{
  1474.                 Name = "Lightness";
  1475.                 Parent = PickerItslef;
  1476.                 BackgroundColor3 = Color3.fromRGB(255, 255, 255);
  1477.                 BackgroundTransparency = 1.000;
  1478.                 BorderSizePixel = 0;
  1479.                 Size = UDim2.new(0, 100, 0, 100);
  1480.                 ZIndex = 3;
  1481.                 Image = "http://www.roblox.com/asset/?id=4974037264";
  1482.             });
  1483.             local Darkness = library:Create("ImageLabel",{
  1484.                 Name = "Darkness";
  1485.                 Parent = PickerItslef;
  1486.                 BackgroundColor3 = Color3.fromRGB(255, 255, 255);
  1487.                 BackgroundTransparency = 1.000;
  1488.                 BorderSizePixel = 0;
  1489.                 Size = UDim2.new(0, 100, 0, 100);
  1490.                 ZIndex = 3;
  1491.                 Image = "http://www.roblox.com/asset/?id=4974036202";
  1492.                 ImageColor3 = Color3.fromRGB(0, 0, 0);
  1493.             });
  1494.             local SVDot = library:Create("ImageLabel",{
  1495.                 Name = "SVDot";
  1496.                 Parent = PickerItslef;
  1497.                 BackgroundColor3 = Color3.fromRGB(255, 255, 255);
  1498.                 BackgroundTransparency = 1.000;
  1499.                 Position = UDim2.new(0.903813541, 0, 0, 0);
  1500.                 Size = UDim2.new(0, 10, 0, 10);
  1501.                 ZIndex = 5;
  1502.                 Image = "http://www.roblox.com/asset/?id=4971957189";
  1503.             });
  1504.  
  1505.             local location = Options.location or library.flags;
  1506.             local flagName = Options.flag or "";
  1507.             location[flagName] = { ['Colour'] = Options.Default or Color3.fromRGB(255,255,255); ['Opacity'] = Options.DefaultOpacity or 0 }
  1508.            
  1509.             local Toggled = false
  1510.             local DropTweeningStatus = false
  1511.             ColorToggleButton.MouseButton1Click:connect(function()
  1512.                 if DropTweeningStatus == false then
  1513.                     if Toggled then
  1514.                         Toggled = false
  1515.                         DropTweeningStatus = true
  1516.                         Tween(ColorPicker, { Size = UDim2.new(0, 208, 0, 35) }, Enum.EasingDirection.InOut, Enum.EasingStyle.Linear, 0, false)
  1517.                         Tween(ColorMenu, { Size = UDim2.new(0, 188, 0, 0) }, Enum.EasingDirection.InOut, Enum.EasingStyle.Linear, 0, true)
  1518.                         Tween(SectionPart, { Size = UDim2.new(0, 208, 0, SectionPart.Size.Y.Offset - 155) }, Enum.EasingDirection.InOut, Enum.EasingStyle.Linear, 0, true)     
  1519.                         Tween(SectionContainer, {Size = UDim2.new(0, 208, 0, SectionUIListLayout.AbsoluteContentSize.Y + 10)}, Enum.EasingDirection.InOut, Enum.EasingStyle.Linear, 0.2, false)
  1520.                         Tween(Container, {Size =  UDim2.new(0, 208, 0, ContainerUIListLayout.AbsoluteContentSize.Y)}, Enum.EasingDirection.InOut, Enum.EasingStyle.Linear, 0.2, true)
  1521.                         DropTweeningStatus = false
  1522.                     else
  1523.                         Toggled = true
  1524.                         DropTweeningStatus = true
  1525.                         Tween(ColorPicker, { Size = UDim2.new(0, 208, 0, 190) }, Enum.EasingDirection.InOut, Enum.EasingStyle.Linear, 0, false)
  1526.                         Tween(ColorMenu, { Size = UDim2.new(0, 188, 0, 165) }, Enum.EasingDirection.InOut, Enum.EasingStyle.Linear, 0, true)
  1527.                         Tween(SectionPart, { Size = UDim2.new(0, 208, 0, SectionPart.Size.Y.Offset + 155) }, Enum.EasingDirection.InOut, Enum.EasingStyle.Linear, 0, true)     
  1528.                         Tween(SectionContainer, {Size = UDim2.new(0, 208, 0, SectionUIListLayout.AbsoluteContentSize.Y + 10)}, Enum.EasingDirection.InOut, Enum.EasingStyle.Linear, 0.2, false)
  1529.                         Tween(Container, {Size =  UDim2.new(0, 208, 0, ContainerUIListLayout.AbsoluteContentSize.Y)}, Enum.EasingDirection.InOut, Enum.EasingStyle.Linear, 0.2, true)
  1530.                         DropTweeningStatus = false 
  1531.                     end
  1532.                 end
  1533.             end)
  1534.  
  1535.             local GlobalRainbowColor = Color3.new()
  1536.             local GlobalRainbowHColor = 1
  1537.             local RainbowToggled = false
  1538.             local Red_Last = ''
  1539.             local Green_Last = ''
  1540.             local Blue_Last = ''
  1541.             local R, G, B
  1542.             local Hex_Last = ''
  1543.             local Opacity_Last = ''
  1544.             local HexNumber, Hue, Saturation, Value, Color
  1545.  
  1546.  
  1547.             function HueMove(Hue)
  1548.                 HueSliderBtn.Position = UDim2.new(Hue, -5, 0, 5)
  1549.             end
  1550.  
  1551.             function Tween(Object, Goal, Direction, Style, Time, WaitForTween)
  1552.                 Style = Style or {}
  1553.                 local Tween = game:GetService("TweenService"):Create(Object,TweenInfo.new( Time, Style, Direction ), Goal)
  1554.                 Tween:Play()
  1555.                 if WaitForTween then
  1556.                     Tween.Completed:wait()
  1557.                 end
  1558.             end
  1559.  
  1560.             local wcag do local f,g,h,a,b,c,d,e=Color3.new(),Color3.new(1,1,1),0.1791,nil do function d(a)return(a<=0.03928)and(a/12.92)or((a + 0.055)/1.055)^2.4 end function e(a)return Color3.new(d(a.r),d(a.g),d(a.b))end function a(a,b)b=e(a)return(0.2126*b.r+0.7152*b.g+0.0722*b.b)end function b(b,c,d,e)d,e=a(b),a(c)if d<e then d,e=e,d end return(d + 0.05)/(e+0.05)end function c(c)return(a(c)>h)and(f)or(g)end end wcag={luminance=a,contrast=b,text=c}end
  1561.  
  1562.             spawn(function()
  1563.                 while true do
  1564.                     for i = 0, 1, 1 / 300 do
  1565.                         GlobalRainbowColor = Color3.fromHSV(i, 1, 1);
  1566.                         GlobalRainbowHColor = i
  1567.                         wait()
  1568.                     end
  1569.                 end
  1570.             end)
  1571.  
  1572.             function Hex2RGB(Hex)
  1573.                 Hex = tonumber(Hex, 16)
  1574.                 R = (Hex % 16777216 - Hex % 65536) / 65536
  1575.                 G = (Hex % 65536 - Hex % 256) / 256
  1576.                 B = Hex % 256
  1577.                 return R, G, B
  1578.             end
  1579.  
  1580.             function RGB2Hex(Red, Green, Blue)
  1581.                 return string.upper((string.format("%06x", (Red % 256) * 65536 + (Green % 256) * 256 + Blue % 256)))
  1582.             end
  1583.  
  1584.             function MoveSatVal(Saturation, Value, rgbGiven, r,g,b)
  1585.                 if rgbGiven then
  1586.                     Hue, Saturation, Value = Color3.toHSV(Color3.fromRGB(r, g, b))
  1587.                     SVDot.Position = UDim2.new(Saturation, -5, 1 - Value, -5)
  1588.                     HexChanged = true
  1589.                 else
  1590.                     SVDot.Position = UDim2.new(Saturation, -5, 1 - Value, -5)
  1591.                     HexChanged = true
  1592.                 end
  1593.             end
  1594.  
  1595.             RainbowButton.MouseButton1Down:connect(function()
  1596.                 if RainbowToggled then
  1597.                     RainbowToggled = false
  1598.                     RainbowButtonbackground.ImageColor3 = Color3.fromRGB(255, 48, 51)
  1599.                 else
  1600.                     RainbowToggled = true
  1601.                     RainbowButtonbackground.ImageColor3 = Color3.fromRGB(0, 225, 100)
  1602.                 end
  1603.             end)
  1604.  
  1605.             RedBox:GetPropertyChangedSignal("Text"):connect(function()
  1606.                 if RedBox:IsFocused() then
  1607.                     local isnum = tonumber(RedBox.Text)
  1608.                     if isnum then
  1609.                         if isnum < 0 or isnum > 255 then
  1610.                             RedBox.Text = (((isnum < 0) and '0') or ((isnum > 255) and '255'))
  1611.                         else
  1612.                             Red_Last = tostring(isnum)
  1613.                             ColorPickerBackground.ImageColor3 = Color3.fromRGB( isnum, tonumber(GreenBox.Text), tonumber(BlueBox.Text) )
  1614.                             location[flagName].Colour = Color3.fromRGB( isnum, tonumber(GreenBox.Text), tonumber(BlueBox.Text) )
  1615.                             if callback then callback(not location[flagName]) end
  1616.                             ColorPickerName.TextColor3 = wcag.text(ColorPickerBackground.ImageColor3)
  1617.                         end
  1618.                     else
  1619.                         RedBox.Text = Red_Last
  1620.                     end
  1621.                     if RedBox.Text == nil or RedBox.Text == "" then R = 0 else R = tonumber(RedBox.Text) end
  1622.                     if GreenBox.Text == nil or GreenBox.Text == "" then G = 0 else G = tonumber(GreenBox.Text) end
  1623.                     if BlueBox.Text == nil or BlueBox.Text == "" then B = 0 else B = tonumber(BlueBox.Text) end
  1624.                     HexBox.Text = string.upper((string.format("%06x", (R % 256) * 65536 + (G % 256) * 256 + B % 256)))
  1625.                     Hue, Saturation, Value = Color3.toHSV(Color3.fromRGB(R, G, B))
  1626.                     PickerItslef.ImageColor3 = Color3.fromHSV(Hue, 1, 1)
  1627.                     HueMove(Hue)
  1628.                     MoveSatVal(nil, nil, true, R, G, B)
  1629.                 end
  1630.             end)
  1631.  
  1632.  
  1633.             GreenBox:GetPropertyChangedSignal("Text"):connect(function()
  1634.                 if GreenBox:IsFocused() then
  1635.                     local isnum = tonumber(GreenBox.Text)
  1636.                     if isnum then
  1637.                         if isnum < 0 or isnum > 255 then
  1638.                             GreenBox.Text = (((isnum < 0) and '0') or ((isnum > 255) and '255'))
  1639.                         else
  1640.                             Green_Last = tostring(isnum)
  1641.                             ColorPickerBackground.ImageColor3 = Color3.fromRGB( tonumber(RedBox.Text), isnum, tonumber(BlueBox.Text) )
  1642.                             location[flagName].Colour = Color3.fromRGB( tonumber(RedBox.Text), isnum, tonumber(BlueBox.Text) )
  1643.                             if callback then callback(not location[flagName]) end
  1644.                             ColorPickerName.TextColor3 = wcag.text(ColorPickerBackground.ImageColor3)
  1645.                         end
  1646.                     else
  1647.                         GreenBox.Text = Green_Last
  1648.                     end
  1649.                     if RedBox.Text == nil or RedBox.Text == "" then R = 0 else R = tonumber(RedBox.Text) end
  1650.                     if GreenBox.Text == nil or GreenBox.Text == "" then G = 0 else G = tonumber(GreenBox.Text) end
  1651.                     if BlueBox.Text == nil or BlueBox.Text == "" then B = 0 else B = tonumber(BlueBox.Text) end
  1652.                     HexBox.Text = string.upper((string.format("%06x", (R % 256) * 65536 + (G % 256) * 256 + B % 256)))
  1653.                     Hue, Saturation, Value = Color3.toHSV(Color3.fromRGB(R, G, B))
  1654.                     PickerItslef.ImageColor3 = Color3.fromHSV(Hue, 1, 1)
  1655.                     HueMove(Hue)
  1656.                     MoveSatVal(nil, nil, true, R, G, B)
  1657.                 end
  1658.             end)
  1659.  
  1660.             BlueBox:GetPropertyChangedSignal("Text"):connect(function()
  1661.                 if BlueBox:IsFocused() then
  1662.                     local isnum = tonumber(BlueBox.Text)
  1663.                     if isnum then
  1664.                         if isnum < 0 or isnum > 255 then
  1665.                             BlueBox.Text = (((isnum < 0) and '0') or ((isnum > 255) and '255'))
  1666.                         else
  1667.                             Blue_Last = tostring(isnum)
  1668.                             ColorPickerBackground.ImageColor3 = Color3.fromRGB( tonumber(RedBox.Text), tonumber(GreenBox.Text), isnum )
  1669.                             location[flagName].Colour = Color3.fromRGB( tonumber(RedBox.Text), tonumber(GreenBox.Text), isnum )
  1670.                             ColorPickerName.TextColor3 = wcag.text(ColorPickerBackground.ImageColor3)
  1671.                         end
  1672.                     else
  1673.                         BlueBox.Text = Blue_Last
  1674.                     end
  1675.                     if RedBox.Text == nil or RedBox.Text == "" then R = 0 else R = tonumber(RedBox.Text) end
  1676.                     if GreenBox.Text == nil or GreenBox.Text == "" then G = 0 else G = tonumber(GreenBox.Text) end
  1677.                     if BlueBox.Text == nil or BlueBox.Text == "" then B = 0 else B = tonumber(BlueBox.Text) end
  1678.                     HexBox.Text = string.upper((string.format("%06x", (R % 256) * 65536 + (G % 256) * 256 + B % 256)))
  1679.                     Hue, Saturation, Value = Color3.toHSV(Color3.fromRGB(R, G, B))
  1680.                     PickerItslef.ImageColor3 = Color3.fromHSV(Hue, 1, 1)
  1681.                     HueMove(Hue)
  1682.                     MoveSatVal(nil, nil, true, R, G, B)
  1683.                 end
  1684.             end)
  1685.  
  1686.             HexBox:GetPropertyChangedSignal("Text"):connect(function()
  1687.                 if HexBox:IsFocused() then
  1688.                     local HexValue = HexBox.Text:gsub("0x", ""):gsub("#", ""):upper()
  1689.                     if #HexValue >= 6 then
  1690.                         RedBox.Text, GreenBox.Text, BlueBox.Text =  Hex2RGB(HexValue)
  1691.  
  1692.                         Hue, Saturation, Value = Color3.toHSV(Color3.fromRGB(R, G, B))
  1693.                         Color = Color3.fromHSV(Hue, Saturation, Value)
  1694.                         ColorPickerBackground.ImageColor3 = Color
  1695.                         location[flagName].Colour = Color
  1696.                         PickerItslef.ImageColor3 = Color3.fromHSV(Hue, 1, 1)
  1697.                         ColorPickerName.TextColor3 = wcag.text(ColorPickerBackground.ImageColor3)
  1698.                         HueMove(1 - Hue)
  1699.                         MoveSatVal(Saturation, Value)
  1700.                    
  1701.                         HexBox:ReleaseFocus()
  1702.                         HexBox.Text = "#" .. string.upper(HexValue)
  1703.                     end
  1704.                 end
  1705.             end)
  1706.  
  1707.             OpacityBox:GetPropertyChangedSignal("Text"):connect(function()
  1708.                 if OpacityBox:IsFocused() then
  1709.                     local isnum = tonumber(OpacityBox.Text)
  1710.                     if isnum then
  1711.                         if isnum < 0 or isnum > 1 then
  1712.                             OpacityBox.Text = (((isnum < 0) and '0') or ((isnum > 1) and '1'))
  1713.                         else
  1714.                             Hex_Last = tostring(isnum)
  1715.                             ColorPickerBackground.ImageTransparency = isnum
  1716.                             location[flagName].Opacity = isnum
  1717.                             ColorPickerName.TextColor3 = wcag.text(ColorPickerBackground.ImageColor3)
  1718.                             OpacityMove(isnum)
  1719.                         end
  1720.                     else
  1721.                         OpacityBox.Text = Hex_Last
  1722.                     end
  1723.                 end
  1724.             end)
  1725.  
  1726.             game:GetService("UserInputService").InputEnded:connect(function(input, processed)
  1727.                 if input.UserInputType == Enum.UserInputType.MouseButton1 then
  1728.                     SVHeld = false
  1729.                 end
  1730.             end)
  1731.             PickerItslef.MouseButton1Down:connect(function()
  1732.                 SVHeld = true
  1733.             end)
  1734.  
  1735.             game:GetService("UserInputService").InputEnded:connect(function(input, processed)
  1736.                 if input.UserInputType == Enum.UserInputType.MouseButton1 then
  1737.                     HueHeld = false
  1738.                 end
  1739.             end)
  1740.             HueSlider.MouseButton1Down:connect(function()
  1741.                 HueHeld = true
  1742.             end)
  1743.  
  1744.             -- Opacity
  1745.  
  1746.             function OpacityMove(Opacity)
  1747.                 OpacitySliderBtn.Position = UDim2.new(Opacity, -5, 0, 5)
  1748.             end
  1749.  
  1750.             game:GetService("UserInputService").InputEnded:connect(function(input, processed)
  1751.                 if input.UserInputType == Enum.UserInputType.MouseButton1 then
  1752.                     OpacityHeld = false
  1753.                 end
  1754.             end)
  1755.             OpacitySlider.MouseButton1Down:connect(function()
  1756.                 OpacityHeld = true
  1757.             end)
  1758.  
  1759.             local Hue, Opacity, Saturation, Value, Red, Green, Blue, Hex
  1760.             Heartbeat:connect(function()
  1761.                 RainbowButton.TextColor3 = GlobalRainbowColor
  1762.                 local Mouse = game:GetService("UserInputService"):GetMouseLocation()
  1763.                 if HueHeld then
  1764.                     local HuePercent = (Mouse.X - HueSlider.AbsolutePosition.X) / (HueSlider.AbsoluteSize.X)
  1765.                     HuePercent = math.clamp(HuePercent, 0, 1)
  1766.                     Hue = 1 - HuePercent
  1767.                     HueMove(HuePercent)
  1768.                 end
  1769.            
  1770.                 if OpacityHeld then
  1771.                     local OpacityPercent = (Mouse.X - OpacitySlider.AbsolutePosition.X) / (OpacitySlider.AbsoluteSize.X)
  1772.                     OpacityPercent = math.clamp(OpacityPercent, 0, 1)
  1773.                     Opacity = 1 - OpacityPercent
  1774.                     location[flagName].Opacity = Opacity
  1775.                     OpacityMove(OpacityPercent)
  1776.                 end
  1777.            
  1778.                 if SVHeld then
  1779.                     local XPos = math.clamp((Mouse.X - PickerItslef.AbsolutePosition.X) / PickerItslef.AbsoluteSize.X, 0, 1)
  1780.                     local YPos = math.clamp((Mouse.Y - 36 - PickerItslef.AbsolutePosition.Y) / PickerItslef.AbsoluteSize.Y, 0, 1)
  1781.                     Saturation = math.clamp(XPos, 0, 1)
  1782.                     Value = math.clamp((1 - YPos), 0, 1)
  1783.                     MoveSatVal(XPos, 1 - YPos)
  1784.                 end
  1785.            
  1786.                 if RainbowToggled then
  1787.                     PickerItslef.ImageColor3 = GlobalRainbowColor
  1788.                     ColorPickerBackground.ImageTransparency = Opacity
  1789.                     location[flagName].Opacity = Opacity
  1790.                     ColorPickerBackground.ImageColor3 = GlobalRainbowColor
  1791.                     location[flagName].Colour = GlobalRainbowColor
  1792.                 elseif HueHeld or OpacityHeld or SVHeld then
  1793.                     PickerItslef.ImageColor3 =  Color3.fromHSV(Hue, 1, 1)
  1794.                     ColorPickerBackground.ImageTransparency = Opacity
  1795.                     location[flagName].Opacity = Opacity
  1796.                     ColorPickerBackground.ImageColor3 = Color3.fromHSV(Hue, Saturation, Value)
  1797.                     location[flagName].Colour = Color3.fromHSV(Hue, Saturation, Value)
  1798.                 end
  1799.  
  1800.                 if RainbowToggled or HueHeld or OpacityHeld or SVHeld or HexChanged then
  1801.                     Red = 255 * ColorPickerBackground.ImageColor3.R
  1802.                     Green = 255 * ColorPickerBackground.ImageColor3.G
  1803.                     Blue = 255 * ColorPickerBackground.ImageColor3.B
  1804.                     Hex = string.upper((string.format("%06x", (Red % 256) * 65536 + (Green % 256) * 256 + Blue % 256)))
  1805.                     ColorPickerName.TextColor3 = wcag.text(ColorPickerBackground.ImageColor3)
  1806.                     if RainbowToggled or HueHeld or OpacityHeld or SVHeld or not HexChanged then
  1807.                         RedBox.Text = math.floor(Red)
  1808.                         GreenBox.Text = math.floor(Green)
  1809.                         BlueBox.Text = math.floor(Blue)
  1810.                         HexBox.Text = Hex
  1811.                     end
  1812.                 end
  1813.  
  1814.                 if OpacityHeld then
  1815.                     OpacityBox.Text = 1 - math.floor(Opacity* 100)/100
  1816.                 end
  1817.             end)
  1818.         end
  1819.         return Section
  1820.     end
  1821.     return Sections
  1822. end
  1823.  
  1824. local function isreallypressed(bind, inp)
  1825.     local key = bind
  1826.     if typeof(key) == "Instance" then
  1827.         if key.UserInputType == Enum.UserInputType.Keyboard and inp.KeyCode == key.KeyCode then
  1828.             return true;
  1829.         elseif tostring(key.UserInputType):find('MouseButton') and inp.UserInputType == key.UserInputType then
  1830.             return true
  1831.         end
  1832.     end
  1833.     if tostring(key):find'MouseButton1' then
  1834.         return key == inp.UserInputType
  1835.     else
  1836.         return key == inp.KeyCode
  1837.     end
  1838. end
  1839.  
  1840. game:GetService("UserInputService").InputBegan:connect(function(input)
  1841.     if not library.binding then
  1842.         for idx, binds in next, library.binds do
  1843.             local real_binding = binds.location[idx];
  1844.             if real_binding and isreallypressed(real_binding, input) then
  1845.                 binds.callback()
  1846.             end
  1847.         end
  1848.     end
  1849. end)
  1850.  
  1851. return library
  1852.  
  1853. --[[
  1854. local Window = library:CreateWindow("I am a epic window")
  1855. local Section = Window:Section("Am section")
  1856.  
  1857. local Tableeeeeeee = {'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'Wally', 'Wally Is Cool', 'bit', 'byte', 'megabyte'}
  1858.  
  1859. Section:Button("Button", function()
  1860.     print('ToggleFlag -', library.flags.EpicFlag)
  1861.     print('BoxFlag -', library.flags.BoxFlag)
  1862.     print('KeYbInD -', library.flags.KeYbInD)
  1863.     print('sliderino -', library.flags.Slideeeeee)
  1864.     print('Dropperino -', library.flags.Dropperino)
  1865.     print('ColorPicker -', 'Color3.new(', library.flags.AMCOLOUR.Colour, ') Opacity =', library.flags.AMCOLOUR.Opacity )
  1866.     print()
  1867.     for i,v in pairs(library.flags.Dropperino) do
  1868.         warn(i,v)
  1869.     end
  1870.     print()
  1871. end)
  1872. Section:Toggle("Am toggle", {flag = 'EpicFlag', Default = true})
  1873. Section:Box('Am box', {flag = 'BoxFlag'})
  1874. Section:Label('A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y, Z.')
  1875. Section:Bind('am KEYbind', {flag = 'KeYbInD'}, function() print("AAAAAA") end)
  1876. Section:Slider('am sliderino', {flag = "Slideeeeee"; Min = -100; Max = 100; Default = 0 ; Precise = false })
  1877. Section:Dropdown('ima drop', {flag = 'Dropperino', list = Tableeeeeeee, Type = 'Toggle'})
  1878. Section:ColorPicker('colour not color >:D', {flag = 'AMCOLOUR'})
  1879. ]]
Add Comment
Please, Sign In to add comment