Advertisement
mon5500000

Untitled

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