Jelasion

dw

Dec 15th, 2020 (edited)
47,941
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 65.49 KB | None | 0 0
  1. local check = false
  2. local Lib = {RainbowColorValue = 0, HueSelectionPosition = 0}
  3. local Accent = Color3.fromRGB(138, 80, 255)
  4. local UserInputService = game:GetService("UserInputService")
  5. local TweenService = game:GetService("TweenService")
  6. local RunService = game:GetService("RunService")
  7. local LocalPlayer = game:GetService("Players").LocalPlayer
  8. local Mouse = LocalPlayer:GetMouse()
  9. coroutine.wrap(
  10.     function()
  11.         while wait() do
  12.             Lib.RainbowColorValue = Lib.RainbowColorValue + 1 / 255
  13.             Lib.HueSelectionPosition = Lib.HueSelectionPosition + 1
  14.             if Lib.RainbowColorValue >= 1 then
  15.                 Lib.RainbowColorValue = 0
  16.             end
  17.             if Lib.HueSelectionPosition == 80 then
  18.                 Lib.HueSelectionPosition = 0
  19.             end
  20.         end
  21.     end
  22. )()
  23. function Ripple(obj)
  24.     spawn(
  25.         function()
  26.             local Mouse = game.Players.LocalPlayer:GetMouse()
  27.             local Circle = Instance.new("ImageLabel")
  28.             Circle.Name = "Circle"
  29.             Circle.Parent = obj
  30.             Circle.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  31.             Circle.BackgroundTransparency = 1.000
  32.             Circle.ZIndex = 10
  33.             Circle.Image = "rbxassetid://266543268"
  34.             Circle.ImageColor3 = Color3.fromRGB(211, 211, 211)
  35.             Circle.ImageTransparency = 0.6
  36.             local NewX, NewY = Mouse.X - Circle.AbsolutePosition.X, Mouse.Y - Circle.AbsolutePosition.Y
  37.             Circle.Position = UDim2.new(0, NewX, 0, NewY)
  38.             local Size = 0
  39.             if obj.AbsoluteSize.X > obj.AbsoluteSize.Y then
  40.                 Size = obj.AbsoluteSize.X * 1
  41.             elseif obj.AbsoluteSize.X < obj.AbsoluteSize.Y then
  42.                 Size = obj.AbsoluteSize.Y * 1
  43.             elseif obj.AbsoluteSize.X == obj.AbsoluteSize.Y then
  44.                 Size = obj.AbsoluteSize.X * 1
  45.             end
  46.             Circle:TweenSizeAndPosition(
  47.                 UDim2.new(0, Size, 0, Size),
  48.                 UDim2.new(0.5, -Size / 2, 0.5, -Size / 2),
  49.                 "Out",
  50.                 "Quad",
  51.                 0.2,
  52.                 false
  53.             )
  54.             for i = 1, 15 do
  55.                 Circle.ImageTransparency = Circle.ImageTransparency + 0.05
  56.                 wait()
  57.             end
  58.             Circle:Destroy()
  59.         end
  60.     )
  61. end
  62. local function MakeDraggable(topbarobject, object)
  63.     local Dragging = nil
  64.     local DragInput = nil
  65.     local DragStart = nil
  66.     local StartPosition = nil
  67.     local function Update(input)
  68.         local Delta = input.Position - DragStart
  69.         local pos =
  70.             UDim2.new(
  71.             StartPosition.X.Scale,
  72.             StartPosition.X.Offset + Delta.X,
  73.             StartPosition.Y.Scale,
  74.             StartPosition.Y.Offset + Delta.Y
  75.         )
  76.         local Tween = TweenService:Create(object, TweenInfo.new(0.2), {Position = pos})
  77.         Tween:Play()
  78.     end
  79.     topbarobject.InputBegan:Connect(
  80.         function(input)
  81.             if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
  82.                 Dragging = true
  83.                 DragStart = input.Position
  84.                 StartPosition = object.Position
  85.                 input.Changed:Connect(
  86.                     function()
  87.                         if input.UserInputState == Enum.UserInputState.End then
  88.                             Dragging = false
  89.                         end
  90.                     end
  91.                 )
  92.             end
  93.         end
  94.     )
  95.     topbarobject.InputChanged:Connect(
  96.         function(input)
  97.             if
  98.                 input.UserInputType == Enum.UserInputType.MouseMovement or
  99.                     input.UserInputType == Enum.UserInputType.Touch
  100.              then
  101.                 DragInput = input
  102.             end
  103.         end
  104.     )
  105.     UserInputService.InputChanged:Connect(
  106.         function(input)
  107.             if input == DragInput and Dragging then
  108.                 Update(input)
  109.             end
  110.         end
  111.     )
  112. end
  113. function Lib:Window(text, accent)
  114.     local FirstTab = false
  115.     Accent = accent
  116.     local Library = Instance.new("ScreenGui")
  117.     local MainFrame = Instance.new("Frame")
  118.     local MainCorner = Instance.new("UICorner")
  119.     local GlowMain = Instance.new("ImageLabel")
  120.     local LeftFrame = Instance.new("Frame")
  121.     local Title = Instance.new("TextLabel")
  122.     local Line = Instance.new("Frame")
  123.     local LineCorner = Instance.new("UICorner")
  124.     local TabFrame = Instance.new("Frame")
  125.     local TabList = Instance.new("UIListLayout")
  126.     local ContainersFolder = Instance.new("Folder")
  127.     local DraggableFrame = Instance.new("Frame")
  128.     Library.Name = "Library"
  129.     Library.Parent = game.CoreGui
  130.     Library.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  131.     MainFrame.Name = "MainFrame"
  132.     MainFrame.Parent = Library
  133.     MainFrame.BackgroundColor3 = Color3.fromRGB(27, 27, 27)
  134.     MainFrame.Position = UDim2.new(0.330208331, 0, 0.304824561, 0)
  135.     MainFrame.Size = UDim2.new(0, 652, 0, 355)
  136.     MainCorner.CornerRadius = UDim.new(0, 9)
  137.     MainCorner.Name = "MainCorner"
  138.     MainCorner.Parent = MainFrame
  139.     UserInputService.InputBegan:Connect(function(input, gameProcessedEvent)
  140.     if input.KeyCode == Enum.KeyCode.M then
  141.     if MainFrame.Visible == true then
  142.     MainFrame.Visible = false
  143.     elseif MainFrame.Visible == false then
  144.     MainFrame.Visible = true
  145.     end
  146.     end
  147.     wait(0.2)
  148.     end)
  149.     GlowMain.Name = "GlowMain"
  150.     GlowMain.Parent = MainFrame
  151.     GlowMain.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  152.     GlowMain.BackgroundTransparency = 1.000
  153.     GlowMain.BorderSizePixel = 0
  154.     GlowMain.Position = UDim2.new(0, -15, 0, -15)
  155.     GlowMain.Size = UDim2.new(1, 30, 1, 30)
  156.     GlowMain.ZIndex = 0
  157.     GlowMain.Image = "rbxassetid://4996891970"
  158.     GlowMain.ImageColor3 = Color3.fromRGB(15, 15, 15)
  159.     GlowMain.ScaleType = Enum.ScaleType.Slice
  160.     GlowMain.SliceCenter = Rect.new(20, 20, 280, 280)
  161.     LeftFrame.Name = "LeftFrame"
  162.     LeftFrame.Parent = MainFrame
  163.     LeftFrame.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  164.     LeftFrame.BackgroundTransparency = 1.000
  165.     LeftFrame.Position = UDim2.new(0.0230061356, 0, 0.0366197191, 0)
  166.     LeftFrame.Size = UDim2.new(0, 139, 0, 328)
  167.     Title.Name = "Title"
  168.     Title.Parent = LeftFrame
  169.     Title.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  170.     Title.BackgroundTransparency = 1.000
  171.     Title.Size = UDim2.new(0, 139, 0, 50)
  172.     Title.Font = Enum.Font.Gotham
  173.     Title.Text = text
  174.     Title.TextColor3 = Accent
  175.     Title.TextSize = 21.000
  176.     Line.Name = "Line"
  177.     Line.Parent = LeftFrame
  178.     Line.BackgroundColor3 = Accent
  179.     Line.Position = UDim2.new(0, 0, 0.14199996, 0)
  180.     Line.Size = UDim2.new(0, 139, 0, 2)
  181.     LineCorner.CornerRadius = UDim.new(0, 9)
  182.     LineCorner.Name = "LineCorner"
  183.     LineCorner.Parent = Line
  184.     TabFrame.Name = "TabFrame"
  185.     TabFrame.Parent = LeftFrame
  186.     TabFrame.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  187.     TabFrame.BackgroundTransparency = 1.000
  188.     TabFrame.Position = UDim2.new(0, 0, 0.189024389, 0)
  189.     TabFrame.Size = UDim2.new(0, 139, 0, 266)
  190.     TabList.Name = "TabList"
  191.     TabList.Parent = TabFrame
  192.     TabList.SortOrder = Enum.SortOrder.LayoutOrder
  193.     TabList.Padding = UDim.new(0, 8)
  194.     ContainersFolder.Name = "ContainersFolder"
  195.     ContainersFolder.Parent = MainFrame
  196.     DraggableFrame.Name = "DraggableFrame"
  197.     DraggableFrame.Parent = MainFrame
  198.     DraggableFrame.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  199.     DraggableFrame.BackgroundTransparency = 1.000
  200.     DraggableFrame.Position = UDim2.new(0.259202451, 0, 0.00563380262, 0)
  201.     DraggableFrame.Size = UDim2.new(0, 483, 0, 57)
  202.     MakeDraggable(DraggableFrame, MainFrame)
  203.     local WindowTabs = {}
  204.     function WindowTabs:Tab(title)
  205.         local Tab = Instance.new("TextButton")
  206.         local UICorner = Instance.new("UICorner")
  207.         local GlowTab = Instance.new("ImageLabel")
  208.         local LabelAccent = Instance.new("TextLabel")
  209.         local Container = Instance.new("Frame")
  210.         local ContainerGlow = Instance.new("ImageLabel")
  211.         local ContainerCorner = Instance.new("UICorner")
  212.         local ContainerItemHolder = Instance.new("ScrollingFrame")
  213.         local ItemHolderList = Instance.new("UIListLayout")
  214.         Tab.Name = "Tab"
  215.         Tab.Parent = TabFrame
  216.         Tab.BackgroundColor3 = Accent
  217.         Tab.BorderSizePixel = 0
  218.         Tab.Size = UDim2.new(0, 139, 0, 27)
  219.         Tab.AutoButtonColor = false
  220.         Tab.Font = Enum.Font.Gotham
  221.         Tab.Text = title
  222.         Tab.TextColor3 = Color3.fromRGB(255, 255, 255)
  223.         Tab.TextSize = 14.000
  224.         Tab.BackgroundTransparency = 1
  225.         UICorner.CornerRadius = UDim.new(0, 6)
  226.         UICorner.Parent = Tab
  227.         GlowTab.Name = "GlowTab"
  228.         GlowTab.Parent = Tab
  229.         GlowTab.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  230.         GlowTab.BackgroundTransparency = 1.000
  231.         GlowTab.BorderSizePixel = 0
  232.         GlowTab.Position = UDim2.new(0, -15, 0, -15)
  233.         GlowTab.Size = UDim2.new(1, 30, 1, 30)
  234.         GlowTab.ZIndex = 0
  235.         GlowTab.Image = "rbxassetid://4996891970"
  236.         GlowTab.ImageColor3 = Accent
  237.         GlowTab.ScaleType = Enum.ScaleType.Slice
  238.         GlowTab.SliceCenter = Rect.new(20, 20, 280, 280)
  239.         GlowTab.ImageTransparency = 1
  240.         LabelAccent.Name = "LabelAccent"
  241.         LabelAccent.Parent = Tab
  242.         LabelAccent.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  243.         LabelAccent.BackgroundTransparency = 1.000
  244.         LabelAccent.Size = UDim2.new(0, 139, 0, 27)
  245.         LabelAccent.Font = Enum.Font.Gotham
  246.         LabelAccent.Text = "Tab"
  247.         LabelAccent.TextColor3 = Accent
  248.         LabelAccent.TextSize = 14.000
  249.         LabelAccent.TextTransparency = 0
  250.         Container.Name = "Container"
  251.         Container.Parent = ContainersFolder
  252.         Container.BackgroundColor3 = Color3.fromRGB(31, 31, 31)
  253.         Container.Position = UDim2.new(0.259, 0, 0.169, 0)
  254.         Container.Size = UDim2.new(0, 471, 0, 281)
  255.         Container.Visible = false
  256.         ContainerGlow.Name = "ContainerGlow"
  257.         ContainerGlow.Parent = Container
  258.         ContainerGlow.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  259.         ContainerGlow.BackgroundTransparency = 1.000
  260.         ContainerGlow.BorderSizePixel = 0
  261.         ContainerGlow.Position = UDim2.new(0, -15, 0, -15)
  262.         ContainerGlow.Size = UDim2.new(1, 30, 1, 30)
  263.         ContainerGlow.ZIndex = 0
  264.         ContainerGlow.Image = "rbxassetid://4996891970"
  265.         ContainerGlow.ImageColor3 = Color3.fromRGB(15, 15, 15)
  266.         ContainerGlow.ScaleType = Enum.ScaleType.Slice
  267.         ContainerGlow.SliceCenter = Rect.new(20, 20, 280, 280)
  268.         ContainerCorner.CornerRadius = UDim.new(0, 9)
  269.         ContainerCorner.Name = "ContainerCorner"
  270.         ContainerCorner.Parent = Container
  271.         ContainerItemHolder.Name = "ContainerItemHolder"
  272.         ContainerItemHolder.Parent = Container
  273.         ContainerItemHolder.Active = true
  274.         ContainerItemHolder.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  275.         ContainerItemHolder.BackgroundTransparency = 1.000
  276.         ContainerItemHolder.BorderSizePixel = 0
  277.         ContainerItemHolder.Position = UDim2.new(0.0254777074, 0, 0.0365853645, 0)
  278.         ContainerItemHolder.Size = UDim2.new(0, 455, 0, 262)
  279.         ContainerItemHolder.CanvasSize = UDim2.new(0, 0, 0, 0)
  280.         ContainerItemHolder.ScrollBarThickness = 2
  281.         ItemHolderList.Name = "ItemHolderList"
  282.         ItemHolderList.Parent = ContainerItemHolder
  283.         ItemHolderList.SortOrder = Enum.SortOrder.LayoutOrder
  284.         ItemHolderList.Padding = UDim.new(0, 5)
  285.         if FirstTab == false then
  286.             FirstTab = true
  287.             LabelAccent.TextTransparency = 1.000
  288.             GlowTab.ImageTransparency = 0
  289.             Tab.BackgroundTransparency = 0
  290.             Container.Visible = true
  291.         end
  292.         Tab.MouseButton1Click:Connect(
  293.             function()
  294.                 for i, v in next, ContainersFolder:GetChildren() do
  295.                     if v.Name == "Container" then
  296.                         v.Visible = false
  297.                     end
  298.                 end
  299.                 for i, v in next, TabFrame:GetChildren() do
  300.                     if v.ClassName == "TextButton" then
  301.                         TweenService:Create(
  302.                             v,
  303.                             TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  304.                             {BackgroundTransparency = 1}
  305.                         ):Play()
  306.                         TweenService:Create(
  307.                             v.GlowTab,
  308.                             TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  309.                             {ImageTransparency = 1}
  310.                         ):Play()
  311.                         TweenService:Create(
  312.                             v.LabelAccent,
  313.                             TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  314.                             {TextTransparency = 0}
  315.                         ):Play()
  316.                         TweenService:Create(
  317.                             Tab,
  318.                             TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  319.                             {BackgroundTransparency = 0}
  320.                         ):Play()
  321.                         TweenService:Create(
  322.                             GlowTab,
  323.                             TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  324.                             {ImageTransparency = 0}
  325.                         ):Play()
  326.                         TweenService:Create(
  327.                             LabelAccent,
  328.                             TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  329.                             {TextTransparency = 1}
  330.                         ):Play()
  331.                     end
  332.                 end
  333.                 Container.Visible = true
  334.             end
  335.         )
  336.         local TabItems = {}
  337.         function TabItems:Button(text, callback)
  338.             local Button = Instance.new("TextButton")
  339.             local ButtonCorner = Instance.new("UICorner")
  340.             Button.Name = "Button"
  341.             Button.Parent = ContainerItemHolder
  342.             Button.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
  343.             Button.Size = UDim2.new(0, 448, 0, 28)
  344.             Button.AutoButtonColor = false
  345.             Button.Font = Enum.Font.Gotham
  346.             Button.TextColor3 = Color3.fromRGB(255, 255, 255)
  347.             Button.TextSize = 14.000
  348.             Button.Text = text
  349.             Button.ClipsDescendants = true
  350.             ButtonCorner.CornerRadius = UDim.new(0, 6)
  351.             ButtonCorner.Name = "ButtonCorner"
  352.             ButtonCorner.Parent = Button
  353.             Button.MouseEnter:Connect(
  354.                 function()
  355.                     TweenService:Create(
  356.                         Button,
  357.                         TweenInfo.new(0.2, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  358.                         {BackgroundColor3 = Color3.fromRGB(45, 45, 45)}
  359.                     ):Play()
  360.                 end
  361.             )
  362.             Button.MouseLeave:Connect(
  363.                 function()
  364.                     TweenService:Create(
  365.                         Button,
  366.                         TweenInfo.new(0.2, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  367.                         {BackgroundColor3 = Color3.fromRGB(40, 40, 40)}
  368.                     ):Play()
  369.                 end
  370.             )
  371.             Button.MouseButton1Click:Connect(
  372.                 function()
  373.                     Ripple(Button)
  374.                     pcall(callback)
  375.                 end
  376.             )
  377.             ContainerItemHolder.CanvasSize = UDim2.new(0, 0, 0, ItemHolderList.AbsoluteContentSize.Y)
  378.         end
  379.         function TabItems:Toggle(text, callback)
  380.             local Toggled = false
  381.             local Toggle = Instance.new("TextButton")
  382.             local ToggleCorner = Instance.new("UICorner")
  383.             local Title = Instance.new("TextLabel")
  384.             local BoxStatus = Instance.new("Frame")
  385.             local BoxCorner = Instance.new("UICorner")
  386.             local Dot = Instance.new("Frame")
  387.             local DotCorner = Instance.new("UICorner")
  388.             Toggle.Name = "Toggle"
  389.             Toggle.Parent = ContainerItemHolder
  390.             Toggle.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
  391.             Toggle.Position = UDim2.new(0.245398775, 0, 0.630985916, 0)
  392.             Toggle.Size = UDim2.new(0, 448, 0, 28)
  393.             Toggle.AutoButtonColor = false
  394.             Toggle.Font = Enum.Font.Gotham
  395.             Toggle.Text = ""
  396.             Toggle.TextColor3 = Color3.fromRGB(255, 255, 255)
  397.             Toggle.TextSize = 14.000
  398.             Toggle.ClipsDescendants = true
  399.             ToggleCorner.CornerRadius = UDim.new(0, 6)
  400.             ToggleCorner.Name = "ToggleCorner"
  401.             ToggleCorner.Parent = Toggle
  402.             Title.Name = "Title"
  403.             Title.Parent = Toggle
  404.             Title.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  405.             Title.BackgroundTransparency = 1.000
  406.             Title.Position = UDim2.new(0.0200892854, 0, 0, 0)
  407.             Title.Size = UDim2.new(0, 0, 0, 28)
  408.             Title.Font = Enum.Font.Gotham
  409.             Title.TextColor3 = Color3.fromRGB(255, 255, 255)
  410.             Title.TextSize = 14.000
  411.             Title.TextXAlignment = Enum.TextXAlignment.Left
  412.             Title.Text = text
  413.             BoxStatus.Name = "BoxStatus"
  414.             BoxStatus.Parent = Toggle
  415.             BoxStatus.BackgroundColor3 = Color3.fromRGB(36, 36, 36)
  416.             BoxStatus.Position = UDim2.new(0.908482134, 0, 0.142857149, 0)
  417.             BoxStatus.Size = UDim2.new(0, 35, 0, 19)
  418.             BoxCorner.CornerRadius = UDim.new(1, 0)
  419.             BoxCorner.Name = "BoxCorner"
  420.             BoxCorner.Parent = BoxStatus
  421.             Dot.Name = "Dot"
  422.             Dot.Parent = BoxStatus
  423.             Dot.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
  424.             Dot.Position = UDim2.new(0.0799999982, 0, 0.126000002, 0)
  425.             Dot.Size = UDim2.new(0, 14, 0, 14)
  426.             DotCorner.CornerRadius = UDim.new(1, 0)
  427.             DotCorner.Name = "DotCorner"
  428.             DotCorner.Parent = Dot
  429.             Toggle.MouseEnter:Connect(
  430.                 function()
  431.                     TweenService:Create(
  432.                         Toggle,
  433.                         TweenInfo.new(0.2, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  434.                         {BackgroundColor3 = Color3.fromRGB(45, 45, 45)}
  435.                     ):Play()
  436.                 end
  437.             )
  438.             Toggle.MouseLeave:Connect(
  439.                 function()
  440.                     TweenService:Create(
  441.                         Toggle,
  442.                         TweenInfo.new(0.2, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  443.                         {BackgroundColor3 = Color3.fromRGB(40, 40, 40)}
  444.                     ):Play()
  445.                 end
  446.             )
  447.             Toggle.MouseButton1Click:Connect(
  448.                 function()
  449.                     if Toggled == false then
  450.                         Toggled = not Toggled
  451.                         TweenService:Create(
  452.                             Dot,
  453.                             TweenInfo.new(0.2, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  454.                             {BackgroundColor3 = Accent}
  455.                         ):Play()
  456.                         TweenService:Create(
  457.                             Dot,
  458.                             TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  459.                             {Position = UDim2.new(0.48, 0, 0.126, 0)}
  460.                         ):Play()
  461.                     else
  462.                         Toggled = not Toggled
  463.                         TweenService:Create(
  464.                             Dot,
  465.                             TweenInfo.new(0.2, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  466.                             {BackgroundColor3 = Color3.fromRGB(40, 40, 40)}
  467.                         ):Play()
  468.                         TweenService:Create(
  469.                             Dot,
  470.                             TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  471.                             {Position = UDim2.new(0.0799999982, 0, 0.126000002, 0)}
  472.                         ):Play()
  473.                     end
  474.                     pcall(callback, Toggled)
  475.                     Ripple(Toggle)
  476.                 end
  477.             )
  478.             ContainerItemHolder.CanvasSize = UDim2.new(0, 0, 0, ItemHolderList.AbsoluteContentSize.Y)
  479.         end
  480.         function TabItems:Slider(text, min, max, start, callback)
  481.             local dragging = false
  482.             local Slider = Instance.new("TextButton")
  483.             local SliderCorner = Instance.new("UICorner")
  484.             local Title = Instance.new("TextLabel")
  485.             local SliderFrame = Instance.new("Frame")
  486.             local SliderFrameCorner = Instance.new("UICorner")
  487.             local Indicator = Instance.new("Frame")
  488.             local IndicatorCorner = Instance.new("UICorner")
  489.             local Value = Instance.new("TextLabel")
  490.             Slider.Name = "Slider"
  491.             Slider.Parent = ContainerItemHolder
  492.             Slider.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
  493.             Slider.Position = UDim2.new(0.245398775, 0, 0.630985916, 0)
  494.             Slider.Size = UDim2.new(0, 448, 0, 28)
  495.             Slider.AutoButtonColor = false
  496.             Slider.Font = Enum.Font.Gotham
  497.             Slider.Text = ""
  498.             Slider.TextColor3 = Color3.fromRGB(255, 255, 255)
  499.             Slider.TextSize = 14.000
  500.             SliderCorner.CornerRadius = UDim.new(0, 6)
  501.             SliderCorner.Name = "SliderCorner"
  502.             SliderCorner.Parent = Slider
  503.             Title.Name = "Title"
  504.             Title.Parent = Slider
  505.             Title.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  506.             Title.BackgroundTransparency = 1.000
  507.             Title.Position = UDim2.new(0.0200892854, 0, 0, 0)
  508.             Title.Size = UDim2.new(0, 0, 0, 28)
  509.             Title.Font = Enum.Font.Gotham
  510.             Title.Text = text
  511.             Title.TextColor3 = Color3.fromRGB(255, 255, 255)
  512.             Title.TextSize = 14.000
  513.             Title.TextXAlignment = Enum.TextXAlignment.Left
  514.             Value.Name = "Value"
  515.             Value.Parent = Slider
  516.             Value.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  517.             Value.BackgroundTransparency = 1.000
  518.             Value.Position = UDim2.new(0.392857134, 0, 0, 0)
  519.             Value.Size = UDim2.new(0, 38, 0, 28)
  520.             Value.Font = Enum.Font.Gotham
  521.             Value.Text = tostring(start and math.floor((start / max) * (max - min) + min) or 0)
  522.             Value.TextColor3 = Color3.fromRGB(255, 255, 255)
  523.             Value.TextSize = 13.000
  524.             Value.TextXAlignment = Enum.TextXAlignment.Right
  525.             SliderFrame.Name = "SliderFrame"
  526.             SliderFrame.Parent = Slider
  527.             SliderFrame.BackgroundColor3 = Color3.fromRGB(36, 36, 36)
  528.             SliderFrame.Position = UDim2.new(0.495535702, 0, 0.285714298, 0)
  529.             SliderFrame.Size = UDim2.new(0, 217, 0, 12)
  530.             SliderFrameCorner.CornerRadius = UDim.new(1, 0)
  531.             SliderFrameCorner.Name = "SliderFrameCorner"
  532.             SliderFrameCorner.Parent = SliderFrame
  533.             Indicator.Name = "Indicator"
  534.             Indicator.Parent = SliderFrame
  535.             Indicator.BackgroundColor3 = Accent
  536.             Indicator.BorderSizePixel = 0
  537.             Indicator.Position = UDim2.new(-0.00216013822, 0, -0.0476175956, 0)
  538.             Indicator.Size = UDim2.new((start or 0) / max, 0, 0, 12)
  539.             IndicatorCorner.CornerRadius = UDim.new(1, 0)
  540.             IndicatorCorner.Name = "IndicatorCorner"
  541.             IndicatorCorner.Parent = Indicator
  542.             local function slide(input)
  543.                 local pos =
  544.                     UDim2.new(
  545.                     math.clamp((input.Position.X - SliderFrame.AbsolutePosition.X) / SliderFrame.AbsoluteSize.X, 0, 1),
  546.                     0,
  547.                     0,
  548.                     12
  549.                 )
  550.                 Indicator:TweenSize(pos, Enum.EasingDirection.Out, Enum.EasingStyle.Quart, 0.3, true)
  551.                 local s = math.floor(((pos.X.Scale * max) / max) * (max - min) + min)
  552.                 Value.Text = tostring(s)
  553.                 pcall(callback, s)
  554.             end
  555.             SliderFrame.InputBegan:Connect(
  556.                 function(input)
  557.                     if input.UserInputType == Enum.UserInputType.MouseButton1 then
  558.                         slide(input)
  559.                         dragging = true
  560.                     end
  561.                 end
  562.             )
  563.             SliderFrame.InputEnded:Connect(
  564.                 function(input)
  565.                     if input.UserInputType == Enum.UserInputType.MouseButton1 then
  566.                         dragging = false
  567.                     end
  568.                 end
  569.             )
  570.             UserInputService.InputChanged:Connect(
  571.                 function(input)
  572.                     if dragging and input.UserInputType == Enum.UserInputType.MouseMovement then
  573.                         slide(input)
  574.                     end
  575.                 end
  576.             )
  577.             ContainerItemHolder.CanvasSize = UDim2.new(0, 0, 0, ItemHolderList.AbsoluteContentSize.Y)
  578.         end
  579.         function TabItems:Dropdown(text, list, callback)
  580.             local ItemCount = 0
  581.             local FrameSize = 9
  582.             local DropToggled = false
  583.             local Dropdown = Instance.new("TextButton")
  584.             local DropdownCorner = Instance.new("UICorner")
  585.             local Title = Instance.new("TextLabel")
  586.             local Icon = Instance.new("ImageButton")
  587.             Dropdown.Name = "Dropdown"
  588.             Dropdown.Parent = ContainerItemHolder
  589.             Dropdown.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
  590.             Dropdown.Position = UDim2.new(0.259202451, 0, 0.594366193, 0)
  591.             Dropdown.Size = UDim2.new(0, 448, 0, 28)
  592.             Dropdown.AutoButtonColor = false
  593.             Dropdown.Font = Enum.Font.Gotham
  594.             Dropdown.Text = ""
  595.             Dropdown.TextColor3 = Color3.fromRGB(255, 255, 255)
  596.             Dropdown.TextSize = 14.000
  597.             Dropdown.BorderSizePixel = 0
  598.             Dropdown.ClipsDescendants = true
  599.             DropdownCorner.CornerRadius = UDim.new(0, 6)
  600.             DropdownCorner.Name = "DropdownCorner"
  601.             DropdownCorner.Parent = Dropdown
  602.             Title.Name = "Title"
  603.             Title.Parent = Dropdown
  604.             Title.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  605.             Title.BackgroundTransparency = 1.000
  606.             Title.Position = UDim2.new(0.0200892854, 0, 0, 0)
  607.             Title.Size = UDim2.new(0, 0, 0, 28)
  608.             Title.Font = Enum.Font.Gotham
  609.             Title.Text = text
  610.             Title.TextColor3 = Color3.fromRGB(255, 255, 255)
  611.             Title.TextSize = 14.000
  612.             Title.TextXAlignment = Enum.TextXAlignment.Left
  613.             Icon.Name = "Icon"
  614.             Icon.Parent = Dropdown
  615.             Icon.BackgroundTransparency = 1.000
  616.             Icon.Position = UDim2.new(0.930803597, 0, 0.0357142873, 0)
  617.             Icon.Size = UDim2.new(0, 25, 0, 25)
  618.             Icon.ZIndex = 2
  619.             Icon.Image = "rbxassetid://3926305904"
  620.             Icon.ImageRectOffset = Vector2.new(44, 404)
  621.             Icon.ImageRectSize = Vector2.new(36, 36)
  622.             local DropdownFrame = Instance.new("Frame")
  623.             local DropdownFrameCorner = Instance.new("UICorner")
  624.             local DropdownItemHolder = Instance.new("ScrollingFrame")
  625.             local DropdownItemHolderList = Instance.new("UIListLayout")
  626.             local DropdownFramePadding = Instance.new("UIPadding")
  627.             DropdownFrame.Name = "DropdownFrame"
  628.             DropdownFrame.Parent = ContainerItemHolder
  629.             DropdownFrame.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
  630.             DropdownFrame.Position = UDim2.new(0.0828220844, 0, 1.04184508, 0)
  631.             DropdownFrame.Size = UDim2.new(0, 448, 0, 0)
  632.             DropdownFrame.ClipsDescendants = true
  633.             DropdownFrame.BorderSizePixel = 0
  634.             DropdownFrame.Visible = false
  635.             DropdownFrameCorner.CornerRadius = UDim.new(0, 6)
  636.             DropdownFrameCorner.Name = "DropdownFrameCorner"
  637.             DropdownFrameCorner.Parent = DropdownFrame
  638.             DropdownItemHolder.Name = "DropdownItemHolder"
  639.             DropdownItemHolder.Parent = DropdownFrame
  640.             DropdownItemHolder.Active = true
  641.             DropdownItemHolder.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  642.             DropdownItemHolder.BackgroundTransparency = 1.000
  643.             DropdownItemHolder.BorderSizePixel = 0
  644.             DropdownItemHolder.Position = UDim2.new(0.0254776813, 0, 0, 0)
  645.             DropdownItemHolder.Size = UDim2.new(0, 431, 0, 0)
  646.             DropdownItemHolder.CanvasSize = UDim2.new(0, 0, 0, 0)
  647.             DropdownItemHolder.ScrollBarThickness = 2
  648.             DropdownItemHolderList.Name = "DropdownItemHolderList"
  649.             DropdownItemHolderList.Parent = DropdownItemHolder
  650.             DropdownItemHolderList.SortOrder = Enum.SortOrder.LayoutOrder
  651.             DropdownItemHolderList.Padding = UDim.new(0, 5)
  652.             DropdownFramePadding.Name = "DropdownFramePadding"
  653.             DropdownFramePadding.Parent = DropdownItemHolder
  654.             DropdownFramePadding.PaddingBottom = UDim.new(0, 8)
  655.             DropdownFramePadding.PaddingTop = UDim.new(0, 8)
  656.             Dropdown.MouseEnter:Connect(
  657.                 function()
  658.                     TweenService:Create(
  659.                         Dropdown,
  660.                         TweenInfo.new(0.2, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  661.                         {BackgroundColor3 = Color3.fromRGB(45, 45, 45)}
  662.                     ):Play()
  663.                 end
  664.             )
  665.             Dropdown.MouseLeave:Connect(
  666.                 function()
  667.                     TweenService:Create(
  668.                         Dropdown,
  669.                         TweenInfo.new(0.2, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  670.                         {BackgroundColor3 = Color3.fromRGB(40, 40, 40)}
  671.                     ):Play()
  672.                 end
  673.             )
  674.             Dropdown.MouseButton1Click:Connect(
  675.                 function()
  676.                     Ripple(Dropdown)
  677.                     if DropToggled == false then
  678.                         DropdownFrame.Visible = true
  679.                         DropdownFrame:TweenSize(
  680.                             UDim2.new(0, 448, 0, FrameSize),
  681.                             Enum.EasingDirection.Out,
  682.                             Enum.EasingStyle.Quart,
  683.                             0.1,
  684.                             true
  685.                         )
  686.                         DropdownItemHolder:TweenSize(
  687.                             UDim2.new(0, 431, 0, FrameSize),
  688.                             Enum.EasingDirection.Out,
  689.                             Enum.EasingStyle.Quart,
  690.                             0.1,
  691.                             true
  692.                         )
  693.                         TweenService:Create(
  694.                             Icon,
  695.                             TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  696.                             {Rotation = 180}
  697.                         ):Play()
  698.                         repeat
  699.                             wait()
  700.                         until DropdownFrame.Size == UDim2.new(0, 448, 0, FrameSize)
  701.                         ContainerItemHolder.CanvasSize = UDim2.new(0, 0, 0, ItemHolderList.AbsoluteContentSize.Y)
  702.                     else
  703.                         DropdownFrame:TweenSize(
  704.                             UDim2.new(0, 448, 0, 0),
  705.                             Enum.EasingDirection.Out,
  706.                             Enum.EasingStyle.Quart,
  707.                             0.1,
  708.                             true
  709.                         )
  710.                         DropdownItemHolder:TweenSize(
  711.                             UDim2.new(0, 431, 0, 0),
  712.                             Enum.EasingDirection.Out,
  713.                             Enum.EasingStyle.Quart,
  714.                             0.1,
  715.                             true
  716.                         )
  717.                         TweenService:Create(
  718.                             Icon,
  719.                             TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  720.                             {Rotation = 0}
  721.                         ):Play()
  722.                         repeat
  723.                             wait()
  724.                         until DropdownFrame.Size == UDim2.new(0, 448, 0, 0)
  725.                         DropdownFrame.Visible = false
  726.                         ContainerItemHolder.CanvasSize = UDim2.new(0, 0, 0, ItemHolderList.AbsoluteContentSize.Y)
  727.                     end
  728.                     DropToggled = not DropToggled
  729.                 end
  730.             )
  731.             for i, v in next, list do
  732.                 ItemCount = ItemCount + 1
  733.                 if ItemCount <= 2 then
  734.                     FrameSize = FrameSize + 30
  735.                 elseif ItemCount >= 3 then
  736.                     FrameSize = 100
  737.                 end
  738.                 local Item = Instance.new("TextButton")
  739.                 local ItemCorner = Instance.new("UICorner")
  740.                 Item.Name = "Item"
  741.                 Item.Parent = DropdownItemHolder
  742.                 Item.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
  743.                 Item.Position = UDim2.new(0.0255220421, 0, -0.0595238097, 0)
  744.                 Item.Size = UDim2.new(0, 425, 0, 24)
  745.                 Item.AutoButtonColor = false
  746.                 Item.Font = Enum.Font.Gotham
  747.                 Item.TextColor3 = Color3.fromRGB(255, 255, 255)
  748.                 Item.TextSize = 14.000
  749.                 Item.Text = v
  750.                 ItemCorner.CornerRadius = UDim.new(0, 6)
  751.                 ItemCorner.Name = "ItemCorner"
  752.                 ItemCorner.Parent = Item
  753.                 Item.MouseEnter:Connect(
  754.                     function()
  755.                         TweenService:Create(
  756.                             Item,
  757.                             TweenInfo.new(0.2, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  758.                             {BackgroundColor3 = Color3.fromRGB(45, 45, 45)}
  759.                         ):Play()
  760.                     end
  761.                 )
  762.                 Item.MouseLeave:Connect(
  763.                     function()
  764.                         TweenService:Create(
  765.                             Item,
  766.                             TweenInfo.new(0.2, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  767.                             {BackgroundColor3 = Color3.fromRGB(40, 40, 40)}
  768.                         ):Play()
  769.                     end
  770.                 )
  771.                 Item.MouseButton1Click:Connect(
  772.                     function()
  773.                         pcall(callback, v)
  774.                         Title.Text = text .. " : " .. v
  775.                         DropdownFrame:TweenSize(
  776.                             UDim2.new(0, 448, 0, 0),
  777.                             Enum.EasingDirection.Out,
  778.                             Enum.EasingStyle.Quart,
  779.                             0.1,
  780.                             true
  781.                         )
  782.                         DropdownItemHolder:TweenSize(
  783.                             UDim2.new(0, 431, 0, 0),
  784.                             Enum.EasingDirection.Out,
  785.                             Enum.EasingStyle.Quart,
  786.                             0.1,
  787.                             true
  788.                         )
  789.                         TweenService:Create(
  790.                             Icon,
  791.                             TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  792.                             {Rotation = 0}
  793.                         ):Play()
  794.                         repeat
  795.                             wait()
  796.                         until DropdownFrame.Size == UDim2.new(0, 448, 0, 0)
  797.                         DropdownFrame.Visible = false
  798.                         ContainerItemHolder.CanvasSize = UDim2.new(0, 0, 0, ItemHolderList.AbsoluteContentSize.Y)
  799.                         DropToggled = not DropToggled
  800.                     end
  801.                 )
  802.                 DropdownItemHolder.CanvasSize = UDim2.new(0, 0, 0, DropdownItemHolderList.AbsoluteContentSize.Y + 15)
  803.             end
  804.             ContainerItemHolder.CanvasSize = UDim2.new(0, 0, 0, ItemHolderList.AbsoluteContentSize.Y)
  805.         end
  806.         function TabItems:Colorpicker(text, preset, callback)
  807.             local ColorPickerToggled = false
  808.             local OldToggleColor = Color3.fromRGB(0, 0, 0)
  809.             local OldColor = Color3.fromRGB(0, 0, 0)
  810.             local OldColorSelectionPosition = nil
  811.             local OldHueSelectionPosition = nil
  812.             local ColorH, ColorS, ColorV = 1, 1, 1
  813.             local RainbowColorPicker = false
  814.             local ColorPickerInput = nil
  815.             local ColorInput = nil
  816.             local HueInput = nil
  817.             local Colorpicker = Instance.new("TextButton")
  818.             local ColorpickerCorner = Instance.new("UICorner")
  819.             local Title = Instance.new("TextLabel")
  820.             local BoxColor = Instance.new("Frame")
  821.             local BoxCorner = Instance.new("UICorner")
  822.             Colorpicker.Name = "Colorpicker"
  823.             Colorpicker.Parent = ContainerItemHolder
  824.             Colorpicker.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
  825.             Colorpicker.Position = UDim2.new(0.245398775, 0, 0.630985916, 0)
  826.             Colorpicker.Size = UDim2.new(0, 448, 0, 28)
  827.             Colorpicker.AutoButtonColor = false
  828.             Colorpicker.Font = Enum.Font.Gotham
  829.             Colorpicker.Text = ""
  830.             Colorpicker.TextColor3 = Color3.fromRGB(255, 255, 255)
  831.             Colorpicker.TextSize = 14.000
  832.             Colorpicker.ClipsDescendants = true
  833.             ColorpickerCorner.CornerRadius = UDim.new(0, 6)
  834.             ColorpickerCorner.Name = "ColorpickerCorner"
  835.             ColorpickerCorner.Parent = Colorpicker
  836.             Title.Name = "Title"
  837.             Title.Parent = Colorpicker
  838.             Title.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  839.             Title.BackgroundTransparency = 1.000
  840.             Title.Position = UDim2.new(0.0200892854, 0, 0, 0)
  841.             Title.Size = UDim2.new(0, 0, 0, 28)
  842.             Title.Font = Enum.Font.Gotham
  843.             Title.Text = text
  844.             Title.TextColor3 = Color3.fromRGB(255, 255, 255)
  845.             Title.TextSize = 14.000
  846.             Title.TextXAlignment = Enum.TextXAlignment.Left
  847.             BoxColor.Name = "BoxColor"
  848.             BoxColor.Parent = Colorpicker
  849.             BoxColor.BackgroundColor3 = preset
  850.             BoxColor.Position = UDim2.new(0.866071403, 0, 0.142857149, 0)
  851.             BoxColor.Size = UDim2.new(0, 54, 0, 19)
  852.             BoxCorner.CornerRadius = UDim.new(0, 6)
  853.             BoxCorner.Name = "BoxCorner"
  854.             BoxCorner.Parent = BoxColor
  855.             local ColorpickerFrame = Instance.new("Frame")
  856.             local ColorpickerFrameCorner = Instance.new("UICorner")
  857.             local Color = Instance.new("ImageLabel")
  858.             local ColorCorner = Instance.new("UICorner")
  859.             local ColorSelection = Instance.new("ImageLabel")
  860.             local Hue = Instance.new("ImageLabel")
  861.             local HueCorner = Instance.new("UICorner")
  862.             local HueGradient = Instance.new("UIGradient")
  863.             local HueSelection = Instance.new("ImageLabel")
  864.             local Confirm = Instance.new("TextButton")
  865.             local ConfirmCorner = Instance.new("UICorner")
  866.             local RainbowToggle = Instance.new("TextButton")
  867.             local RainbowToggleCorner = Instance.new("UICorner")
  868.             local RainbowTitle = Instance.new("TextLabel")
  869.             local RainbowBoxStatus = Instance.new("Frame")
  870.             local RainbowBoxCorner = Instance.new("UICorner")
  871.             local RainbowDot = Instance.new("Frame")
  872.             local RainbowDotCorner = Instance.new("UICorner")
  873.             ColorpickerFrame.Name = "ColorpickerFrame"
  874.             ColorpickerFrame.Parent = ContainerItemHolder
  875.             ColorpickerFrame.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
  876.             ColorpickerFrame.Position = UDim2.new(-0.345092028, 0, 0.816492796, 0)
  877.             ColorpickerFrame.Size = UDim2.new(0, 448, 0, 0)
  878.             ColorpickerFrame.Visible = false
  879.             ColorpickerFrame.ClipsDescendants = true
  880.             ColorpickerFrame.BorderSizePixel = 0
  881.             ColorpickerFrameCorner.CornerRadius = UDim.new(0, 6)
  882.             ColorpickerFrameCorner.Name = "ColorpickerFrameCorner"
  883.             ColorpickerFrameCorner.Parent = ColorpickerFrame
  884.             Color.Name = "Color"
  885.             Color.Parent = ColorpickerFrame
  886.             Color.BackgroundColor3 = preset
  887.             Color.Position = UDim2.new(0, 9, 0, 9)
  888.             Color.Size = UDim2.new(0, 212, 0, 80)
  889.             Color.ZIndex = 10
  890.             Color.Image = "rbxassetid://4155801252"
  891.             ColorCorner.CornerRadius = UDim.new(0, 3)
  892.             ColorCorner.Name = "ColorCorner"
  893.             ColorCorner.Parent = Color
  894.             ColorSelection.Name = "ColorSelection"
  895.             ColorSelection.Parent = Color
  896.             ColorSelection.AnchorPoint = Vector2.new(0.5, 0.5)
  897.             ColorSelection.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  898.             ColorSelection.BackgroundTransparency = 1.000
  899.             ColorSelection.Position = UDim2.new(preset and select(3, Color3.toHSV(preset)))
  900.             ColorSelection.Size = UDim2.new(0, 18, 0, 18)
  901.             ColorSelection.Image = "http://www.roblox.com/asset/?id=4805639000"
  902.             ColorSelection.ScaleType = Enum.ScaleType.Fit
  903.             Hue.Name = "Hue"
  904.             Hue.Parent = ColorpickerFrame
  905.             Hue.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  906.             Hue.Position = UDim2.new(0, 233, 0, 9)
  907.             Hue.Size = UDim2.new(0, 25, 0, 80)
  908.             HueCorner.CornerRadius = UDim.new(0, 3)
  909.             HueCorner.Name = "HueCorner"
  910.             HueCorner.Parent = Hue
  911.             HueGradient.Color =
  912.                 ColorSequence.new {
  913.                 ColorSequenceKeypoint.new(0.00, Color3.fromRGB(255, 0, 4)),
  914.                 ColorSequenceKeypoint.new(0.20, Color3.fromRGB(234, 255, 0)),
  915.                 ColorSequenceKeypoint.new(0.40, Color3.fromRGB(21, 255, 0)),
  916.                 ColorSequenceKeypoint.new(0.60, Color3.fromRGB(0, 255, 255)),
  917.                 ColorSequenceKeypoint.new(0.80, Color3.fromRGB(0, 17, 255)),
  918.                 ColorSequenceKeypoint.new(0.90, Color3.fromRGB(255, 0, 251)),
  919.                 ColorSequenceKeypoint.new(1.00, Color3.fromRGB(255, 0, 4))
  920.             }
  921.             HueGradient.Rotation = 270
  922.             HueGradient.Name = "HueGradient"
  923.             HueGradient.Parent = Hue
  924.             HueSelection.Name = "HueSelection"
  925.             HueSelection.Parent = Hue
  926.             HueSelection.AnchorPoint = Vector2.new(0.5, 0.5)
  927.             HueSelection.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  928.             HueSelection.BackgroundTransparency = 1.000
  929.             HueSelection.Position = UDim2.new(0.48, 0, 1 - select(1, Color3.toHSV(preset)))
  930.             HueSelection.Size = UDim2.new(0, 18, 0, 18)
  931.             HueSelection.Image = "http://www.roblox.com/asset/?id=4805639000"
  932.             Confirm.Name = "Confirm"
  933.             Confirm.Parent = ColorpickerFrame
  934.             Confirm.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
  935.             Confirm.Position = UDim2.new(0.611607134, 0, 0.183673471, 0)
  936.             Confirm.Size = UDim2.new(0, 162, 0, 28)
  937.             Confirm.AutoButtonColor = false
  938.             Confirm.Font = Enum.Font.Gotham
  939.             Confirm.Text = "Confirm"
  940.             Confirm.TextColor3 = Color3.fromRGB(255, 255, 255)
  941.             Confirm.TextSize = 14.000
  942.             ConfirmCorner.CornerRadius = UDim.new(0, 6)
  943.             ConfirmCorner.Name = "ConfirmCorner"
  944.             ConfirmCorner.Parent = Confirm
  945.             RainbowToggle.Name = "RainbowToggle"
  946.             RainbowToggle.Parent = ColorpickerFrame
  947.             RainbowToggle.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
  948.             RainbowToggle.Position = UDim2.new(0.611607134, 0, 0.528944969, 0)
  949.             RainbowToggle.Size = UDim2.new(0, 162, 0, 28)
  950.             RainbowToggle.AutoButtonColor = false
  951.             RainbowToggle.Font = Enum.Font.Gotham
  952.             RainbowToggle.Text = ""
  953.             RainbowToggle.TextColor3 = Color3.fromRGB(255, 255, 255)
  954.             RainbowToggle.TextSize = 14.000
  955.             RainbowToggleCorner.CornerRadius = UDim.new(0, 6)
  956.             RainbowToggleCorner.Name = "RainbowToggleCorner"
  957.             RainbowToggleCorner.Parent = RainbowToggle
  958.             RainbowTitle.Name = "RainbowTitle"
  959.             RainbowTitle.Parent = RainbowToggle
  960.             RainbowTitle.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  961.             RainbowTitle.BackgroundTransparency = 1.000
  962.             RainbowTitle.Position = UDim2.new(0.0400892854, 0, 0, 0)
  963.             RainbowTitle.Size = UDim2.new(0, 0, 0, 28)
  964.             RainbowTitle.Font = Enum.Font.Gotham
  965.             RainbowTitle.Text = "Rainbow"
  966.             RainbowTitle.TextColor3 = Color3.fromRGB(255, 255, 255)
  967.             RainbowTitle.TextSize = 14.000
  968.             RainbowTitle.TextXAlignment = Enum.TextXAlignment.Left
  969.             RainbowBoxStatus.Name = "RainbowBoxStatus"
  970.             RainbowBoxStatus.Parent = RainbowToggle
  971.             RainbowBoxStatus.BackgroundColor3 = Color3.fromRGB(36, 36, 36)
  972.             RainbowBoxStatus.Position = UDim2.new(0.749000013, 0, 0.143000007, 0)
  973.             RainbowBoxStatus.Size = UDim2.new(0, 35, 0, 19)
  974.             RainbowBoxCorner.CornerRadius = UDim.new(1, 0)
  975.             RainbowBoxCorner.Name = "RainbowBoxCorner"
  976.             RainbowBoxCorner.Parent = RainbowBoxStatus
  977.             RainbowDot.Name = "RainbowDot"
  978.             RainbowDot.Parent = RainbowBoxStatus
  979.             RainbowDot.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
  980.             RainbowDot.Position = UDim2.new(0.0799999982, 0, 0.126000002, 0)
  981.             RainbowDot.Size = UDim2.new(0, 14, 0, 14)
  982.             RainbowDotCorner.CornerRadius = UDim.new(1, 0)
  983.             RainbowDotCorner.Name = "RainbowDotCorner"
  984.             RainbowDotCorner.Parent = RainbowDot
  985.             Colorpicker.MouseEnter:Connect(
  986.                 function()
  987.                     TweenService:Create(
  988.                         Colorpicker,
  989.                         TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  990.                         {BackgroundColor3 = Color3.fromRGB(44, 44, 44)}
  991.                     ):Play()
  992.                 end
  993.             )
  994.             Colorpicker.MouseLeave:Connect(
  995.                 function()
  996.                     TweenService:Create(
  997.                         Colorpicker,
  998.                         TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  999.                         {BackgroundColor3 = Color3.fromRGB(39, 39, 39)}
  1000.                     ):Play()
  1001.                 end
  1002.             )
  1003.             local function UpdateColorPicker(nope)
  1004.                 BoxColor.BackgroundColor3 = Color3.fromHSV(ColorH, ColorS, ColorV)
  1005.                 Color.BackgroundColor3 = Color3.fromHSV(ColorH, 1, 1)
  1006.                 pcall(callback, BoxColor.BackgroundColor3)
  1007.             end
  1008.             ColorH =
  1009.                 1 -
  1010.                 (math.clamp(HueSelection.AbsolutePosition.Y - Hue.AbsolutePosition.Y, 0, Hue.AbsoluteSize.Y) /
  1011.                     Hue.AbsoluteSize.Y)
  1012.             ColorS =
  1013.                 (math.clamp(ColorSelection.AbsolutePosition.X - Color.AbsolutePosition.X, 0, Color.AbsoluteSize.X) /
  1014.                 Color.AbsoluteSize.X)
  1015.             ColorV =
  1016.                 1 -
  1017.                 (math.clamp(ColorSelection.AbsolutePosition.Y - Color.AbsolutePosition.Y, 0, Color.AbsoluteSize.Y) /
  1018.                     Color.AbsoluteSize.Y)
  1019.             BoxColor.BackgroundColor3 = preset
  1020.             Color.BackgroundColor3 = preset
  1021.             pcall(callback, BoxColor.BackgroundColor3)
  1022.             Color.InputBegan:Connect(
  1023.                 function(input)
  1024.                     if input.UserInputType == Enum.UserInputType.MouseButton1 then
  1025.                         if RainbowColorPicker then
  1026.                             return
  1027.                         end
  1028.                         if ColorInput then
  1029.                             ColorInput:Disconnect()
  1030.                         end
  1031.                         ColorInput =
  1032.                             RunService.RenderStepped:Connect(
  1033.                             function()
  1034.                                 local ColorX =
  1035.                                     (math.clamp(Mouse.X - Color.AbsolutePosition.X, 0, Color.AbsoluteSize.X) /
  1036.                                     Color.AbsoluteSize.X)
  1037.                                 local ColorY =
  1038.                                     (math.clamp(Mouse.Y - Color.AbsolutePosition.Y, 0, Color.AbsoluteSize.Y) /
  1039.                                     Color.AbsoluteSize.Y)
  1040.                                 ColorSelection.Position = UDim2.new(ColorX, 0, ColorY, 0)
  1041.                                 ColorS = ColorX
  1042.                                 ColorV = 1 - ColorY
  1043.                                 UpdateColorPicker(true)
  1044.                             end
  1045.                         )
  1046.                     end
  1047.                 end
  1048.             )
  1049.             Color.InputEnded:Connect(
  1050.                 function(input)
  1051.                     if input.UserInputType == Enum.UserInputType.MouseButton1 then
  1052.                         if ColorInput then
  1053.                             ColorInput:Disconnect()
  1054.                         end
  1055.                     end
  1056.                 end
  1057.             )
  1058.             Hue.InputBegan:Connect(
  1059.                 function(input)
  1060.                     if input.UserInputType == Enum.UserInputType.MouseButton1 then
  1061.                         if RainbowColorPicker then
  1062.                             return
  1063.                         end
  1064.                         if HueInput then
  1065.                             HueInput:Disconnect()
  1066.                         end
  1067.                         HueInput =
  1068.                             RunService.RenderStepped:Connect(
  1069.                             function()
  1070.                                 local HueY =
  1071.                                     (math.clamp(Mouse.Y - Hue.AbsolutePosition.Y, 0, Hue.AbsoluteSize.Y) /
  1072.                                     Hue.AbsoluteSize.Y)
  1073.                                 HueSelection.Position = UDim2.new(0.48, 0, HueY, 0)
  1074.                                 ColorH = 1 - HueY
  1075.                                 UpdateColorPicker(true)
  1076.                             end
  1077.                         )
  1078.                     end
  1079.                 end
  1080.             )
  1081.             Hue.InputEnded:Connect(
  1082.                 function(input)
  1083.                     if input.UserInputType == Enum.UserInputType.MouseButton1 then
  1084.                         if HueInput then
  1085.                             HueInput:Disconnect()
  1086.                         end
  1087.                     end
  1088.                 end
  1089.             )
  1090.             RainbowToggle.MouseEnter:Connect(
  1091.                 function()
  1092.                     TweenService:Create(
  1093.                         RainbowToggle,
  1094.                         TweenInfo.new(0.2, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  1095.                         {BackgroundColor3 = Color3.fromRGB(45, 45, 45)}
  1096.                     ):Play()
  1097.                 end
  1098.             )
  1099.             RainbowToggle.MouseLeave:Connect(
  1100.                 function()
  1101.                     TweenService:Create(
  1102.                         RainbowToggle,
  1103.                         TweenInfo.new(0.2, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  1104.                         {BackgroundColor3 = Color3.fromRGB(40, 40, 40)}
  1105.                     ):Play()
  1106.                 end
  1107.             )
  1108.             Confirm.MouseEnter:Connect(
  1109.                 function()
  1110.                     TweenService:Create(
  1111.                         Confirm,
  1112.                         TweenInfo.new(0.2, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  1113.                         {BackgroundColor3 = Color3.fromRGB(45, 45, 45)}
  1114.                     ):Play()
  1115.                 end
  1116.             )
  1117.             Confirm.MouseLeave:Connect(
  1118.                 function()
  1119.                     TweenService:Create(
  1120.                         Confirm,
  1121.                         TweenInfo.new(0.2, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  1122.                         {BackgroundColor3 = Color3.fromRGB(40, 40, 40)}
  1123.                     ):Play()
  1124.                 end
  1125.             )
  1126.             RainbowToggle.MouseButton1Down:Connect(
  1127.                 function()
  1128.                     RainbowColorPicker = not RainbowColorPicker
  1129.                     if ColorInput then
  1130.                         ColorInput:Disconnect()
  1131.                     end
  1132.                     if HueInput then
  1133.                         HueInput:Disconnect()
  1134.                     end
  1135.                     if RainbowColorPicker then
  1136.                         TweenService:Create(
  1137.                             RainbowDot,
  1138.                             TweenInfo.new(0.2, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  1139.                             {BackgroundColor3 = Accent}
  1140.                         ):Play()
  1141.                         TweenService:Create(
  1142.                             RainbowDot,
  1143.                             TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  1144.                             {Position = UDim2.new(0.48, 0, 0.126, 0)}
  1145.                         ):Play()
  1146.                         OldToggleColor = BoxColor.BackgroundColor3
  1147.                         OldColor = Color.BackgroundColor3
  1148.                         OldColorSelectionPosition = ColorSelection.Position
  1149.                         OldHueSelectionPosition = HueSelection.Position
  1150.                         while RainbowColorPicker do
  1151.                             BoxColor.BackgroundColor3 = Color3.fromHSV(Lib.RainbowColorValue, 1, 1)
  1152.                             Color.BackgroundColor3 = Color3.fromHSV(Lib.RainbowColorValue, 1, 1)
  1153.                             ColorSelection.Position = UDim2.new(1, 0, 0, 0)
  1154.                             HueSelection.Position = UDim2.new(0.48, 0, 0, Lib.HueSelectionPosition)
  1155.                             pcall(callback, BoxColor.BackgroundColor3)
  1156.                             wait()
  1157.                         end
  1158.                     elseif not RainbowColorPicker then
  1159.                         TweenService:Create(
  1160.                             RainbowDot,
  1161.                             TweenInfo.new(0.2, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  1162.                             {BackgroundColor3 = Color3.fromRGB(40, 40, 40)}
  1163.                         ):Play()
  1164.                         TweenService:Create(
  1165.                             RainbowDot,
  1166.                             TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  1167.                             {Position = UDim2.new(0.0799999982, 0, 0.126000002, 0)}
  1168.                         ):Play()
  1169.                         BoxColor.BackgroundColor3 = OldToggleColor
  1170.                         Color.BackgroundColor3 = OldColor
  1171.                         ColorSelection.Position = OldColorSelectionPosition
  1172.                         HueSelection.Position = OldHueSelectionPosition
  1173.                         pcall(callback, BoxColor.BackgroundColor3)
  1174.                     end
  1175.                 end
  1176.             )
  1177.             Colorpicker.MouseButton1Click:Connect(
  1178.                 function()
  1179.                     Ripple(Colorpicker)
  1180.                     if ColorPickerToggled == false then
  1181.                         ColorPickerToggled = not ColorPickerToggled
  1182.                         ColorpickerFrame.Visible = true
  1183.                         ColorpickerFrame:TweenSize(
  1184.                             UDim2.new(0, 448, 0, 98),
  1185.                             Enum.EasingDirection.Out,
  1186.                             Enum.EasingStyle.Quart,
  1187.                             0.1,
  1188.                             true
  1189.                         )
  1190.                         repeat
  1191.                             wait()
  1192.                         until ColorpickerFrame.Size == UDim2.new(0, 448, 0, 98)
  1193.                         ContainerItemHolder.CanvasSize = UDim2.new(0, 0, 0, ItemHolderList.AbsoluteContentSize.Y)
  1194.                     else
  1195.                         ColorPickerToggled = not ColorPickerToggled
  1196.                         ColorpickerFrame:TweenSize(
  1197.                             UDim2.new(0, 448, 0, 0),
  1198.                             Enum.EasingDirection.Out,
  1199.                             Enum.EasingStyle.Quart,
  1200.                             0.1,
  1201.                             true
  1202.                         )
  1203.                         repeat
  1204.                             wait()
  1205.                         until ColorpickerFrame.Size == UDim2.new(0, 448, 0, 0)
  1206.                         ColorpickerFrame.Visible = false
  1207.                         ContainerItemHolder.CanvasSize = UDim2.new(0, 0, 0, ItemHolderList.AbsoluteContentSize.Y)
  1208.                     end
  1209.                 end
  1210.             )
  1211.             Confirm.MouseButton1Click:Connect(
  1212.                 function()
  1213.                     ColorPickerToggled = not ColorPickerToggled
  1214.                     ColorpickerFrame:TweenSize(
  1215.                         UDim2.new(0, 448, 0, 0),
  1216.                         Enum.EasingDirection.Out,
  1217.                         Enum.EasingStyle.Quart,
  1218.                         0.1,
  1219.                         true
  1220.                     )
  1221.                     repeat
  1222.                         wait()
  1223.                     until ColorpickerFrame.Size == UDim2.new(0, 491, 0, 0)
  1224.                     ColorpickerFrame.Visible = false
  1225.                     ContainerItemHolder.CanvasSize = UDim2.new(0, 0, 0, ItemHolderList.AbsoluteContentSize.Y)
  1226.                 end
  1227.             )
  1228.             ContainerItemHolder.CanvasSize = UDim2.new(0, 0, 0, ItemHolderList.AbsoluteContentSize.Y)
  1229.         end
  1230.         function TabItems:Textbox(text, disapper, callback)
  1231.             local Textbox = Instance.new("TextButton")
  1232.             local TextboxCorner = Instance.new("UICorner")
  1233.             local TextBox = Instance.new("TextBox")
  1234.             local TextBoxCorner = Instance.new("UICorner")
  1235.             Textbox.Name = "Textbox"
  1236.             Textbox.Parent = ContainerItemHolder
  1237.             Textbox.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
  1238.             Textbox.Position = UDim2.new(-0.230061352, 0, 0.856338024, 0)
  1239.             Textbox.Size = UDim2.new(0, 448, 0, 28)
  1240.             Textbox.AutoButtonColor = false
  1241.             Textbox.Font = Enum.Font.Gotham
  1242.             Textbox.Text = ""
  1243.             Textbox.TextColor3 = Color3.fromRGB(255, 255, 255)
  1244.             Textbox.TextSize = 14.000
  1245.             TextboxCorner.CornerRadius = UDim.new(0, 6)
  1246.             TextboxCorner.Name = "TextboxCorner"
  1247.             TextboxCorner.Parent = Textbox
  1248.             TextBox.Parent = Textbox
  1249.             TextBox.AnchorPoint = Vector2.new(0.5, 0.5)
  1250.             TextBox.BackgroundColor3 = Color3.fromRGB(36, 36, 36)
  1251.             TextBox.Position = UDim2.new(0.5, 0, 0.5, 0)
  1252.             TextBox.Size = UDim2.new(0, 349, 0, 20)
  1253.             TextBox.Font = Enum.Font.Gotham
  1254.             TextBox.PlaceholderColor3 = Color3.fromRGB(216, 216, 216)
  1255.             TextBox.PlaceholderText = text
  1256.             TextBox.Text = ""
  1257.             TextBox.TextColor3 = Color3.fromRGB(255, 255, 255)
  1258.             TextBox.TextSize = 14.000
  1259.             TextBoxCorner.CornerRadius = UDim.new(0, 6)
  1260.             TextBoxCorner.Name = "TextBoxCorner"
  1261.             TextBoxCorner.Parent = TextBox
  1262.             TextBox.Focused:Connect(
  1263.                 function()
  1264.                     TextBox:TweenSize(
  1265.                         UDim2.new(0, 399, 0, 20),
  1266.                         Enum.EasingDirection.Out,
  1267.                         Enum.EasingStyle.Quart,
  1268.                         0.2,
  1269.                         true
  1270.                     )
  1271.                 end
  1272.             )
  1273.             TextBox.FocusLost:Connect(
  1274.                 function(ep)
  1275.                     if ep then
  1276.                         if #TextBox.Text > 0 then
  1277.                             pcall(callback, TextBox.Text)
  1278.                             TextBox:TweenSize(
  1279.                                 UDim2.new(0, 349, 0, 20),
  1280.                                 Enum.EasingDirection.Out,
  1281.                                 Enum.EasingStyle.Quart,
  1282.                                 0.2,
  1283.                                 true
  1284.                             )
  1285.                             if disapper then
  1286.                                 TextBox.Text = ""
  1287.                             end
  1288.                         end
  1289.                     end
  1290.                 end
  1291.             )
  1292.             ContainerItemHolder.CanvasSize = UDim2.new(0, 0, 0, ItemHolderList.AbsoluteContentSize.Y)
  1293.         end
  1294.         function TabItems:Label(text)
  1295.             local Label = Instance.new("TextButton")
  1296.             local LabelCorner = Instance.new("UICorner")
  1297.             Label.Name = "Button"
  1298.             Label.Parent = ContainerItemHolder
  1299.             Label.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
  1300.             Label.Size = UDim2.new(0, 448, 0, 28)
  1301.             Label.AutoButtonColor = false
  1302.             Label.Font = Enum.Font.Gotham
  1303.             Label.TextColor3 = Color3.fromRGB(255, 255, 255)
  1304.             Label.TextSize = 14.000
  1305.             Label.Text = text
  1306.             Label.ClipsDescendants = true
  1307.             LabelCorner.CornerRadius = UDim.new(0, 6)
  1308.             LabelCorner.Name = "ButtonCorner"
  1309.             LabelCorner.Parent = Label
  1310.             ContainerItemHolder.CanvasSize = UDim2.new(0, 0, 0, ItemHolderList.AbsoluteContentSize.Y)
  1311.         end
  1312.         function TabItems:Keybind(text, presetbind, callback)
  1313.             local Key = presetbind.Name
  1314.             local KeyBind = Instance.new("TextButton")
  1315.             local KeyBindCorner = Instance.new("UICorner")
  1316.             local Title = Instance.new("TextLabel")
  1317.             local BoxBind = Instance.new("Frame")
  1318.             local BoxCorner = Instance.new("UICorner")
  1319.             local CurrentBind = Instance.new("TextLabel")
  1320.             KeyBind.Name = "KeyBind"
  1321.             KeyBind.Parent = ContainerItemHolder
  1322.             KeyBind.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
  1323.             KeyBind.Position = UDim2.new(0.156441718, 0, 0.816901445, 0)
  1324.             KeyBind.Size = UDim2.new(0, 448, 0, 28)
  1325.             KeyBind.AutoButtonColor = false
  1326.             KeyBind.Font = Enum.Font.Gotham
  1327.             KeyBind.Text = ""
  1328.             KeyBind.TextColor3 = Color3.fromRGB(255, 255, 255)
  1329.             KeyBind.TextSize = 14.000
  1330.             KeyBind.ClipsDescendants = true
  1331.             KeyBindCorner.CornerRadius = UDim.new(0, 6)
  1332.             KeyBindCorner.Name = "KeyBindCorner"
  1333.             KeyBindCorner.Parent = KeyBind
  1334.             Title.Name = "Title"
  1335.             Title.Parent = KeyBind
  1336.             Title.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1337.             Title.BackgroundTransparency = 1.000
  1338.             Title.Position = UDim2.new(0.0200892854, 0, 0, 0)
  1339.             Title.Size = UDim2.new(0, 0, 0, 28)
  1340.             Title.Font = Enum.Font.Gotham
  1341.             Title.Text = text
  1342.             Title.TextColor3 = Color3.fromRGB(255, 255, 255)
  1343.             Title.TextSize = 14.000
  1344.             Title.TextXAlignment = Enum.TextXAlignment.Left
  1345.             BoxBind.Name = "BoxBind"
  1346.             BoxBind.Parent = KeyBind
  1347.             BoxBind.BackgroundColor3 = Color3.fromRGB(36, 36, 36)
  1348.             BoxBind.Position = UDim2.new(0.770089269, 0, 0.142857149, 0)
  1349.             BoxBind.Size = UDim2.new(0, 97, 0, 19)
  1350.             BoxCorner.CornerRadius = UDim.new(0, 6)
  1351.             BoxCorner.Name = "BoxCorner"
  1352.             BoxCorner.Parent = BoxBind
  1353.             CurrentBind.Name = "CurrentBind"
  1354.             CurrentBind.Parent = BoxBind
  1355.             CurrentBind.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1356.             CurrentBind.BackgroundTransparency = 1.000
  1357.             CurrentBind.Position = UDim2.new(0.247, 0, -0.210526317, 0)
  1358.             CurrentBind.Size = UDim2.new(0, 49, 0, 28)
  1359.             CurrentBind.Font = Enum.Font.Gotham
  1360.             CurrentBind.Text = Key
  1361.             CurrentBind.TextColor3 = Color3.fromRGB(255, 255, 255)
  1362.             CurrentBind.TextSize = 14.000
  1363.             KeyBind.MouseEnter:Connect(
  1364.                 function()
  1365.                     TweenService:Create(
  1366.                         KeyBind,
  1367.                         TweenInfo.new(0.2, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  1368.                         {BackgroundColor3 = Color3.fromRGB(45, 45, 45)}
  1369.                     ):Play()
  1370.                 end
  1371.             )
  1372.             KeyBind.MouseLeave:Connect(
  1373.                 function()
  1374.                     TweenService:Create(
  1375.                         KeyBind,
  1376.                         TweenInfo.new(0.2, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  1377.                         {BackgroundColor3 = Color3.fromRGB(40, 40, 40)}
  1378.                     ):Play()
  1379.                 end
  1380.             )
  1381.             KeyBind.MouseButton1Click:connect(
  1382.                 function(e)
  1383.                     Ripple(KeyBind)
  1384.                     CurrentBind.Text = "..."
  1385.                     local a, b = game:GetService("UserInputService").InputBegan:wait()
  1386.                     if a.KeyCode.Name ~= "Unknown" then
  1387.                         CurrentBind.Text = a.KeyCode.Name
  1388.                         Key = a.KeyCode.Name
  1389.                     end
  1390.                 end
  1391.             )
  1392.             game:GetService("UserInputService").InputBegan:connect(
  1393.                 function(current, pressed)
  1394.                     if not pressed then
  1395.                         if current.KeyCode.Name == Key then
  1396.                             pcall(callback)
  1397.                         end
  1398.                     end
  1399.                 end
  1400.             )
  1401.             ContainerItemHolder.CanvasSize = UDim2.new(0, 0, 0, ItemHolderList.AbsoluteContentSize.Y)
  1402.         end
  1403.         return TabItems
  1404.     end
  1405.     return WindowTabs
  1406. end
  1407. return Lib
  1408.  
Add Comment
Please, Sign In to add comment