Advertisement
ku_

VapeUI Modified

ku_
Nov 20th, 2024
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 54.15 KB | None | 0 0
  1. --!strict
  2. local lib = {RainbowColorValue = 0, HueSelectionPosition = 0}
  3. local UserInputService = game:GetService("UserInputService")
  4. local TweenService = game:GetService("TweenService")
  5. local RunService = game:GetService("RunService")
  6. local LocalPlayer = game:GetService("Players").LocalPlayer
  7. local Mouse = LocalPlayer:GetMouse()
  8. local PresetColor = Color3.fromRGB(44, 120, 224)
  9. local CloseBind = Enum.KeyCode.RightControl
  10.  
  11. local ui = Instance.new("ScreenGui")
  12. ui.Name = "ui"
  13. ui.Parent = game.CoreGui
  14. ui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  15.  
  16. coroutine.wrap(
  17.     function()
  18.         while wait() do
  19.             lib.RainbowColorValue = lib.RainbowColorValue + 1 / 255
  20.             lib.HueSelectionPosition = lib.HueSelectionPosition + 1
  21.  
  22.             if lib.RainbowColorValue >= 1 then
  23.                 lib.RainbowColorValue = 0
  24.             end
  25.  
  26.             if lib.HueSelectionPosition == 80 then
  27.                 lib.HueSelectionPosition = 0
  28.             end
  29.         end
  30.     end
  31. )()
  32.  
  33. local function MakeDraggable(topbarobject, object)
  34.     local Dragging = nil
  35.     local DragInput = nil
  36.     local DragStart = nil
  37.     local StartPosition = nil :: any
  38.  
  39.     local function Update(input: any)
  40.         local Delta = input.Position - DragStart
  41.         local pos =
  42.             UDim2.new(
  43.                 StartPosition.X.Scale,
  44.                 StartPosition.X.Offset + Delta.X,
  45.                 StartPosition.Y.Scale,
  46.                 StartPosition.Y.Offset + Delta.Y
  47.             )
  48.         object.Position = pos
  49.     end
  50.  
  51.     topbarobject.InputBegan:Connect(
  52.         function(input)
  53.             if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
  54.                 Dragging = true
  55.                 DragStart = input.Position
  56.                 StartPosition = object.Position
  57.  
  58.                 input.Changed:Connect(
  59.                     function()
  60.                         if input.UserInputState == Enum.UserInputState.End then
  61.                             Dragging = false
  62.                         end
  63.                     end
  64.                 )
  65.             end
  66.         end
  67.     )
  68.  
  69.     topbarobject.InputChanged:Connect(
  70.         function(input)
  71.             if
  72.                 input.UserInputType == Enum.UserInputType.MouseMovement
  73.             or
  74.                 input.UserInputType == Enum.UserInputType.Touch
  75.             then
  76.                 DragInput = input
  77.             end
  78.         end
  79.     )
  80.  
  81.     UserInputService.InputChanged:Connect(
  82.         function(input)
  83.             if input == DragInput and Dragging then
  84.                 Update(input)
  85.             end
  86.         end
  87.     )
  88. end
  89.  
  90. function lib:Window(text, preset, closebind)
  91.     CloseBind = closebind or Enum.KeyCode.RightControl
  92.     PresetColor = preset or Color3.fromRGB(44, 120, 224)
  93.  
  94.     local fs = false
  95.     local Main = Instance.new("Frame")
  96.     local TabHold = Instance.new("Frame")
  97.     local TabHoldLayout = Instance.new("UIListLayout")
  98.     local Title = Instance.new("TextLabel")
  99.     local TabFolder = Instance.new("Folder")
  100.     local DragFrame = Instance.new("Frame")
  101.  
  102.     Main.Name = "Main"
  103.     Main.Parent = ui
  104.     Main.AnchorPoint = Vector2.new(0.5, 0.5)
  105.     Main.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
  106.     Main.BorderSizePixel = 0
  107.     Main.Position = UDim2.new(0.5, 0, 0.5, 0)
  108.     Main.Size = UDim2.new(0, 0, 0, 0)
  109.     Main.ClipsDescendants = true
  110.     Main.Visible = true
  111.  
  112.     TabHold.Name = "TabHold"
  113.     TabHold.Parent = Main
  114.     TabHold.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  115.     TabHold.BackgroundTransparency = 1.000
  116.     TabHold.Position = UDim2.new(0.0339285731, 0, 0.147335425, 0)
  117.     TabHold.Size = UDim2.new(0, 107, 0, 254)
  118.  
  119.     TabHoldLayout.Name = "TabHoldLayout"
  120.     TabHoldLayout.Parent = TabHold
  121.     TabHoldLayout.SortOrder = Enum.SortOrder.LayoutOrder
  122.     TabHoldLayout.Padding = UDim.new(0, 11)
  123.  
  124.     Title.Name = "Title"
  125.     Title.Parent = Main
  126.     Title.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  127.     Title.BackgroundTransparency = 1.000
  128.     Title.Position = UDim2.new(0.0339285731, 0, 0.0564263314, 0)
  129.     Title.Size = UDim2.new(0, 200, 0, 23)
  130.     Title.Font = Enum.Font.GothamMedium
  131.     Title.Text = text
  132.     Title.TextColor3 = Color3.fromRGB(68, 68, 68)
  133.     Title.TextSize = 12.000
  134.     Title.TextXAlignment = Enum.TextXAlignment.Left
  135.  
  136.     DragFrame.Name = "DragFrame"
  137.     DragFrame.Parent = Main
  138.     DragFrame.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  139.     DragFrame.BackgroundTransparency = 1.000
  140.     DragFrame.Size = UDim2.new(0, 560, 0, 41)
  141.  
  142.     Main:TweenSize(UDim2.new(0, 560, 0, 319), Enum.EasingDirection.Out, Enum.EasingStyle.Quart, .6, true)
  143.  
  144.     MakeDraggable(DragFrame, Main)
  145.  
  146.     local uitoggled = false
  147.     UserInputService.InputBegan:Connect(
  148.         function(io, p)
  149.             if io.KeyCode == CloseBind then
  150.                 if uitoggled == false then
  151.                     uitoggled = true
  152.  
  153.                     Main:TweenSize(
  154.                         UDim2.new(0, 0, 0, 0),
  155.                         Enum.EasingDirection.Out,
  156.                         Enum.EasingStyle.Quart,
  157.                         .6,
  158.                         true,
  159.                         function()
  160.                             ui.Enabled = false
  161.                         end
  162.                     )
  163.  
  164.                 else
  165.                     uitoggled = false
  166.                     ui.Enabled = true
  167.  
  168.                     Main:TweenSize(
  169.                         UDim2.new(0, 560, 0, 319),
  170.                         Enum.EasingDirection.Out,
  171.                         Enum.EasingStyle.Quart,
  172.                         .6,
  173.                         true
  174.                     )
  175.                 end
  176.             end
  177.         end
  178.     )
  179.  
  180.     TabFolder.Name = "TabFolder"
  181.     TabFolder.Parent = Main
  182.  
  183.     function lib:ChangePresetColor(toch)
  184.         PresetColor = toch
  185.     end
  186.  
  187.     function lib:Notification(texttitle, textdesc, textbtn)
  188.         local NotificationHold = Instance.new("TextButton")
  189.         local NotificationFrame = Instance.new("Frame")
  190.         local OkayBtn = Instance.new("TextButton")
  191.         local OkayBtnCorner = Instance.new("UICorner")
  192.         local OkayBtnTitle = Instance.new("TextLabel")
  193.         local NotificationTitle = Instance.new("TextLabel")
  194.         local NotificationDesc = Instance.new("TextLabel")
  195.  
  196.         NotificationHold.Name = "NotificationHold"
  197.         NotificationHold.Parent = Main
  198.         NotificationHold.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  199.         NotificationHold.BackgroundTransparency = 1.000
  200.         NotificationHold.BorderSizePixel = 0
  201.         NotificationHold.Size = UDim2.new(0, 560, 0, 319)
  202.         NotificationHold.AutoButtonColor = false
  203.         NotificationHold.Font = Enum.Font.SourceSans
  204.         NotificationHold.Text = ""
  205.         NotificationHold.TextColor3 = Color3.fromRGB(0, 0, 0)
  206.         NotificationHold.TextSize = 14.000
  207.  
  208.         TweenService:Create(
  209.             NotificationHold,
  210.             TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  211.             {BackgroundTransparency = 0.7}
  212.         ):Play()
  213.         wait(0.4)
  214.  
  215.         NotificationFrame.Name = "NotificationFrame"
  216.         NotificationFrame.Parent = NotificationHold
  217.         NotificationFrame.AnchorPoint = Vector2.new(0.5, 0.5)
  218.         NotificationFrame.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
  219.         NotificationFrame.BorderSizePixel = 0
  220.         NotificationFrame.ClipsDescendants = true
  221.         NotificationFrame.Position = UDim2.new(0.5, 0, 0.498432577, 0)
  222.  
  223.         NotificationFrame:TweenSize(
  224.             UDim2.new(0, 164, 0, 193),
  225.             Enum.EasingDirection.Out,
  226.             Enum.EasingStyle.Quart,
  227.             .6,
  228.             true
  229.         )
  230.  
  231.         OkayBtn.Name = "OkayBtn"
  232.         OkayBtn.Parent = NotificationFrame
  233.         OkayBtn.BackgroundColor3 = Color3.fromRGB(34, 34, 34)
  234.         OkayBtn.Position = UDim2.new(0.0609756112, 0, 0.720207274, 0)
  235.         OkayBtn.Size = UDim2.new(0, 144, 0, 42)
  236.         OkayBtn.AutoButtonColor = false
  237.         OkayBtn.Font = Enum.Font.SourceSans
  238.         OkayBtn.Text = ""
  239.         OkayBtn.TextColor3 = Color3.fromRGB(0, 0, 0)
  240.         OkayBtn.TextSize = 14.000
  241.  
  242.         OkayBtnCorner.CornerRadius = UDim.new(0, 5)
  243.         OkayBtnCorner.Name = "OkayBtnCorner"
  244.         OkayBtnCorner.Parent = OkayBtn
  245.  
  246.         OkayBtnTitle.Name = "OkayBtnTitle"
  247.         OkayBtnTitle.Parent = OkayBtn
  248.         OkayBtnTitle.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  249.         OkayBtnTitle.BackgroundTransparency = 1.000
  250.         OkayBtnTitle.Position = UDim2.new(0.0763888881, 0, 0, 0)
  251.         OkayBtnTitle.Size = UDim2.new(0, 181, 0, 42)
  252.         OkayBtnTitle.Font = Enum.Font.Gotham
  253.         OkayBtnTitle.Text = textbtn
  254.         OkayBtnTitle.TextColor3 = Color3.fromRGB(255, 255, 255)
  255.         OkayBtnTitle.TextSize = 14.000
  256.         OkayBtnTitle.TextXAlignment = Enum.TextXAlignment.Left
  257.  
  258.         NotificationTitle.Name = "NotificationTitle"
  259.         NotificationTitle.Parent = NotificationFrame
  260.         NotificationTitle.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  261.         NotificationTitle.BackgroundTransparency = 1.000
  262.         NotificationTitle.Position = UDim2.new(0.0670731738, 0, 0.0829015523, 0)
  263.         NotificationTitle.Size = UDim2.new(0, 143, 0, 26)
  264.         NotificationTitle.Font = Enum.Font.Gotham
  265.         NotificationTitle.Text = texttitle
  266.         NotificationTitle.TextColor3 = Color3.fromRGB(255, 255, 255)
  267.         NotificationTitle.TextSize = 18.000
  268.         NotificationTitle.TextXAlignment = Enum.TextXAlignment.Left
  269.  
  270.         NotificationDesc.Name = "NotificationDesc"
  271.         NotificationDesc.Parent = NotificationFrame
  272.         NotificationDesc.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  273.         NotificationDesc.BackgroundTransparency = 1.000
  274.         NotificationDesc.Position = UDim2.new(0.0670000017, 0, 0.218999997, 0)
  275.         NotificationDesc.Size = UDim2.new(0, 143, 0, 91)
  276.         NotificationDesc.Font = Enum.Font.Gotham
  277.         NotificationDesc.Text = textdesc
  278.         NotificationDesc.TextColor3 = Color3.fromRGB(255, 255, 255)
  279.         NotificationDesc.TextSize = 15.000
  280.         NotificationDesc.TextWrapped = true
  281.         NotificationDesc.TextXAlignment = Enum.TextXAlignment.Left
  282.         NotificationDesc.TextYAlignment = Enum.TextYAlignment.Top
  283.  
  284.         OkayBtn.MouseEnter:Connect(
  285.             function()
  286.                 TweenService:Create(
  287.                     OkayBtn,
  288.                     TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  289.                     {BackgroundColor3 = Color3.fromRGB(37, 37, 37)}
  290.                 ):Play()
  291.             end
  292.         )
  293.  
  294.         OkayBtn.MouseLeave:Connect(
  295.             function()
  296.                 TweenService:Create(
  297.                     OkayBtn,
  298.                     TweenInfo.new(.2, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  299.                     {BackgroundColor3 = Color3.fromRGB(34, 34, 34)}
  300.                 ):Play()
  301.             end
  302.         )
  303.  
  304.         OkayBtn.MouseButton1Click:Connect(
  305.             function()
  306.                 NotificationFrame:TweenSize(
  307.                     UDim2.new(0, 0, 0, 0),
  308.                     Enum.EasingDirection.Out,
  309.                     Enum.EasingStyle.Quart,
  310.                     .6,
  311.                     true
  312.                 )
  313.  
  314.                 wait(0.4)
  315.  
  316.                 TweenService:Create(
  317.                     NotificationHold,
  318.                     TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  319.                     {BackgroundTransparency = 1}
  320.                 ):Play()
  321.  
  322.                 wait(.3)
  323.  
  324.                 NotificationHold:Destroy()
  325.             end
  326.         )
  327.     end
  328.     local tabhold = {}
  329.     function tabhold:Tab(text)
  330.         local TabBtn = Instance.new("TextButton")
  331.         local TabTitle = Instance.new("TextLabel")
  332.         local TabBtnIndicator = Instance.new("Frame")
  333.         local TabBtnIndicatorCorner = Instance.new("UICorner")
  334.  
  335.         TabBtn.Name = "TabBtn"
  336.         TabBtn.Parent = TabHold
  337.         TabBtn.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  338.         TabBtn.BackgroundTransparency = 1.000
  339.         TabBtn.Size = UDim2.new(0, 107, 0, 21)
  340.         TabBtn.Font = Enum.Font.SourceSans
  341.         TabBtn.Text = ""
  342.         TabBtn.TextColor3 = Color3.fromRGB(0, 0, 0)
  343.         TabBtn.TextSize = 14.000
  344.  
  345.         TabTitle.Name = "TabTitle"
  346.         TabTitle.Parent = TabBtn
  347.         TabTitle.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  348.         TabTitle.BackgroundTransparency = 1.000
  349.         TabTitle.Size = UDim2.new(0, 107, 0, 21)
  350.         TabTitle.Font = Enum.Font.Gotham
  351.         TabTitle.Text = text
  352.         TabTitle.TextColor3 = Color3.fromRGB(150, 150, 150)
  353.         TabTitle.TextSize = 14.000
  354.         TabTitle.TextXAlignment = Enum.TextXAlignment.Left
  355.  
  356.         TabBtnIndicator.Name = "TabBtnIndicator"
  357.         TabBtnIndicator.Parent = TabBtn
  358.         TabBtnIndicator.BackgroundColor3 = PresetColor
  359.         TabBtnIndicator.BorderSizePixel = 0
  360.         TabBtnIndicator.Position = UDim2.new(0, 0, 1, 0)
  361.         TabBtnIndicator.Size = UDim2.new(0, 0, 0, 2)
  362.  
  363.         TabBtnIndicatorCorner.Name = "TabBtnIndicatorCorner"
  364.         TabBtnIndicatorCorner.Parent = TabBtnIndicator
  365.  
  366.         coroutine.wrap(
  367.             function()
  368.                 while wait() do
  369.                     TabBtnIndicator.BackgroundColor3 = PresetColor
  370.                 end
  371.             end
  372.         )()
  373.  
  374.         local Tab = Instance.new("ScrollingFrame")
  375.         local TabLayout = Instance.new("UIListLayout")
  376.  
  377.         Tab.Name = "Tab"
  378.         Tab.Parent = TabFolder
  379.         Tab.Active = true
  380.         Tab.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  381.         Tab.BackgroundTransparency = 1.000
  382.         Tab.BorderSizePixel = 0
  383.         Tab.Position = UDim2.new(0.31400001, 0, 0.147, 0)
  384.         Tab.Size = UDim2.new(0, 373, 0, 254)
  385.         Tab.CanvasSize = UDim2.new(0, 0, 0, 0)
  386.         Tab.ScrollBarThickness = 3
  387.         Tab.Visible = false
  388.  
  389.         TabLayout.Name = "TabLayout"
  390.         TabLayout.Parent = Tab
  391.         TabLayout.SortOrder = Enum.SortOrder.LayoutOrder
  392.         TabLayout.Padding = UDim.new(0, 6)
  393.  
  394.         if fs == false then
  395.             fs = true
  396.             TabBtnIndicator.Size = UDim2.new(0, 13, 0, 2)
  397.             TabTitle.TextColor3 = Color3.fromRGB(255, 255, 255)
  398.             Tab.Visible = true
  399.         end
  400.  
  401.         TabBtn.MouseButton1Click:Connect(
  402.             function()
  403.                 for i, v: any in next, TabFolder:GetChildren() do
  404.                     if v.Name == "Tab" then
  405.                         v.Visible = false
  406.                     end
  407.                     Tab.Visible = true
  408.                 end
  409.                 for i, v: any in next, TabHold:GetChildren() do
  410.                     if v.Name == "TabBtn" then
  411.                         v.TabBtnIndicator:TweenSize(
  412.                             UDim2.new(0, 0, 0, 2),
  413.                             Enum.EasingDirection.Out,
  414.                             Enum.EasingStyle.Quart,
  415.                             .2,
  416.                             true
  417.                         )
  418.                         TabBtnIndicator:TweenSize(
  419.                             UDim2.new(0, 13, 0, 2),
  420.                             Enum.EasingDirection.Out,
  421.                             Enum.EasingStyle.Quart,
  422.                             .2,
  423.                             true
  424.                         )
  425.                         TweenService:Create(
  426.                             v.TabTitle,
  427.                             TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  428.                             {TextColor3 = Color3.fromRGB(150, 150, 150)}
  429.                         ):Play()
  430.                         TweenService:Create(
  431.                             TabTitle,
  432.                             TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  433.                             {TextColor3 = Color3.fromRGB(255, 255, 255)}
  434.                         ):Play()
  435.                     end
  436.                 end
  437.             end
  438.         )
  439.         local tabcontent = {}
  440.         function tabcontent:Button(text, callback)
  441.             local Button = Instance.new("TextButton")
  442.             local ButtonCorner = Instance.new("UICorner")
  443.             local ButtonTitle = Instance.new("TextLabel")
  444.  
  445.             Button.Name = "Button"
  446.             Button.Parent = Tab
  447.             Button.BackgroundColor3 = Color3.fromRGB(34, 34, 34)
  448.             Button.Size = UDim2.new(0, 363, 0, 42)
  449.             Button.AutoButtonColor = false
  450.             Button.Font = Enum.Font.SourceSans
  451.             Button.Text = ""
  452.             Button.TextColor3 = Color3.fromRGB(0, 0, 0)
  453.             Button.TextSize = 14.000
  454.  
  455.             ButtonCorner.CornerRadius = UDim.new(0, 5)
  456.             ButtonCorner.Name = "ButtonCorner"
  457.             ButtonCorner.Parent = Button
  458.  
  459.             ButtonTitle.Name = "ButtonTitle"
  460.             ButtonTitle.Parent = Button
  461.             ButtonTitle.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  462.             ButtonTitle.BackgroundTransparency = 1.000
  463.             ButtonTitle.Position = UDim2.new(0.0358126722, 0, 0, 0)
  464.             ButtonTitle.Size = UDim2.new(0, 187, 0, 42)
  465.             ButtonTitle.Font = Enum.Font.Gotham
  466.             ButtonTitle.Text = text
  467.             ButtonTitle.TextColor3 = Color3.fromRGB(255, 255, 255)
  468.             ButtonTitle.TextSize = 14.000
  469.             ButtonTitle.TextXAlignment = Enum.TextXAlignment.Left
  470.  
  471.             Button.MouseEnter:Connect(
  472.                 function()
  473.                     TweenService:Create(
  474.                         Button,
  475.                         TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  476.                         {BackgroundColor3 = Color3.fromRGB(37, 37, 37)}
  477.                     ):Play()
  478.                 end
  479.             )
  480.  
  481.             Button.MouseLeave:Connect(
  482.                 function()
  483.                     TweenService:Create(
  484.                         Button,
  485.                         TweenInfo.new(.2, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  486.                         {BackgroundColor3 = Color3.fromRGB(34, 34, 34)}
  487.                     ):Play()
  488.                 end
  489.             )
  490.  
  491.             Button.MouseButton1Click:Connect(
  492.                 function()
  493.                     pcall(callback)
  494.                 end
  495.             )
  496.  
  497.             Tab.CanvasSize = UDim2.new(0, 0, 0, TabLayout.AbsoluteContentSize.Y)
  498.         end
  499.         function tabcontent:Toggle(text,default, callback)
  500.             local toggled = false
  501.  
  502.             local Toggle = Instance.new("TextButton")
  503.             local ToggleCorner = Instance.new("UICorner")
  504.             local ToggleTitle = Instance.new("TextLabel")
  505.             local FrameToggle1 = Instance.new("Frame")
  506.             local FrameToggle1Corner = Instance.new("UICorner")
  507.             local FrameToggle2 = Instance.new("Frame")
  508.             local FrameToggle2Corner = Instance.new("UICorner")
  509.             local FrameToggle3 = Instance.new("Frame")
  510.             local FrameToggle3Corner = Instance.new("UICorner")
  511.             local FrameToggleCircle = Instance.new("Frame")
  512.             local FrameToggleCircleCorner = Instance.new("UICorner")
  513.  
  514.             Toggle.Name = "Toggle"
  515.             Toggle.Parent = Tab
  516.             Toggle.BackgroundColor3 = Color3.fromRGB(34, 34, 34)
  517.             Toggle.Position = UDim2.new(0.215625003, 0, 0.446271926, 0)
  518.             Toggle.Size = UDim2.new(0, 363, 0, 42)
  519.             Toggle.AutoButtonColor = false
  520.             Toggle.Font = Enum.Font.SourceSans
  521.             Toggle.Text = ""
  522.             Toggle.TextColor3 = Color3.fromRGB(0, 0, 0)
  523.             Toggle.TextSize = 14.000
  524.  
  525.             ToggleCorner.CornerRadius = UDim.new(0, 5)
  526.             ToggleCorner.Name = "ToggleCorner"
  527.             ToggleCorner.Parent = Toggle
  528.  
  529.             ToggleTitle.Name = "ToggleTitle"
  530.             ToggleTitle.Parent = Toggle
  531.             ToggleTitle.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  532.             ToggleTitle.BackgroundTransparency = 1.000
  533.             ToggleTitle.Position = UDim2.new(0.0358126722, 0, 0, 0)
  534.             ToggleTitle.Size = UDim2.new(0, 187, 0, 42)
  535.             ToggleTitle.Font = Enum.Font.Gotham
  536.             ToggleTitle.Text = text
  537.             ToggleTitle.TextColor3 = Color3.fromRGB(255, 255, 255)
  538.             ToggleTitle.TextSize = 14.000
  539.             ToggleTitle.TextXAlignment = Enum.TextXAlignment.Left
  540.  
  541.             FrameToggle1.Name = "FrameToggle1"
  542.             FrameToggle1.Parent = Toggle
  543.             FrameToggle1.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
  544.             FrameToggle1.Position = UDim2.new(0.859504104, 0, 0.285714298, 0)
  545.             FrameToggle1.Size = UDim2.new(0, 37, 0, 18)
  546.  
  547.             FrameToggle1Corner.Name = "FrameToggle1Corner"
  548.             FrameToggle1Corner.Parent = FrameToggle1
  549.  
  550.             FrameToggle2.Name = "FrameToggle2"
  551.             FrameToggle2.Parent = FrameToggle1
  552.             FrameToggle2.BackgroundColor3 = Color3.fromRGB(34, 34, 34)
  553.             FrameToggle2.Position = UDim2.new(0.0489999987, 0, 0.0930000022, 0)
  554.             FrameToggle2.Size = UDim2.new(0, 33, 0, 14)
  555.  
  556.             FrameToggle2Corner.Name = "FrameToggle2Corner"
  557.             FrameToggle2Corner.Parent = FrameToggle2
  558.  
  559.             FrameToggle3.Name = "FrameToggle3"
  560.             FrameToggle3.Parent = FrameToggle1
  561.             FrameToggle3.BackgroundColor3 = PresetColor
  562.             FrameToggle3.BackgroundTransparency = 1.000
  563.             FrameToggle3.Size = UDim2.new(0, 37, 0, 18)
  564.  
  565.             FrameToggle3Corner.Name = "FrameToggle3Corner"
  566.             FrameToggle3Corner.Parent = FrameToggle3
  567.  
  568.             FrameToggleCircle.Name = "FrameToggleCircle"
  569.             FrameToggleCircle.Parent = FrameToggle1
  570.             FrameToggleCircle.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
  571.             FrameToggleCircle.Position = UDim2.new(0.127000004, 0, 0.222000003, 0)
  572.             FrameToggleCircle.Size = UDim2.new(0, 10, 0, 10)
  573.  
  574.             FrameToggleCircleCorner.Name = "FrameToggleCircleCorner"
  575.             FrameToggleCircleCorner.Parent = FrameToggleCircle
  576.  
  577.             coroutine.wrap(
  578.                 function()
  579.                     while wait() do
  580.                         FrameToggle3.BackgroundColor3 = PresetColor
  581.                     end
  582.                 end
  583.             )()
  584.  
  585.             Toggle.MouseButton1Click:Connect(
  586.                 function()
  587.                     if toggled == false then
  588.                         TweenService:Create(
  589.                             Toggle,
  590.                             TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  591.                             {BackgroundColor3 = Color3.fromRGB(37, 37, 37)}
  592.                         ):Play()
  593.                         TweenService:Create(
  594.                             FrameToggle1,
  595.                             TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  596.                             {BackgroundTransparency = 1}
  597.                         ):Play()
  598.                         TweenService:Create(
  599.                             FrameToggle2,
  600.                             TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  601.                             {BackgroundTransparency = 1}
  602.                         ):Play()
  603.                         TweenService:Create(
  604.                             FrameToggle3,
  605.                             TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  606.                             {BackgroundTransparency = 0}
  607.                         ):Play()
  608.                         TweenService:Create(
  609.                             FrameToggleCircle,
  610.                             TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  611.                             {BackgroundColor3 = Color3.fromRGB(255, 255, 255)}
  612.                         ):Play()
  613.                         FrameToggleCircle:TweenPosition(
  614.                             UDim2.new(0.587, 0, 0.222000003, 0),
  615.                             Enum.EasingDirection.Out,
  616.                             Enum.EasingStyle.Quart,
  617.                             .2,
  618.                             true
  619.                         )
  620.                     else
  621.                         TweenService:Create(
  622.                             Toggle,
  623.                             TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  624.                             {BackgroundColor3 = Color3.fromRGB(34, 34, 34)}
  625.                         ):Play()
  626.                         TweenService:Create(
  627.                             FrameToggle1,
  628.                             TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  629.                             {BackgroundTransparency = 0}
  630.                         ):Play()
  631.                         TweenService:Create(
  632.                             FrameToggle2,
  633.                             TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  634.                             {BackgroundTransparency = 0}
  635.                         ):Play()
  636.                         TweenService:Create(
  637.                             FrameToggle3,
  638.                             TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  639.                             {BackgroundTransparency = 1}
  640.                         ):Play()
  641.                         TweenService:Create(
  642.                             FrameToggleCircle,
  643.                             TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  644.                             {BackgroundColor3 = Color3.fromRGB(50, 50, 50)}
  645.                         ):Play()
  646.                         FrameToggleCircle:TweenPosition(
  647.                             UDim2.new(0.127000004, 0, 0.222000003, 0),
  648.                             Enum.EasingDirection.Out,
  649.                             Enum.EasingStyle.Quart,
  650.                             .2,
  651.                             true
  652.                         )
  653.                     end
  654.                     toggled = not toggled
  655.                     pcall(callback, toggled)
  656.                 end
  657.             )
  658.  
  659.             if default == true then
  660.                 TweenService:Create(
  661.                     Toggle,
  662.                     TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  663.                     {BackgroundColor3 = Color3.fromRGB(37, 37, 37)}
  664.                 ):Play()
  665.                 TweenService:Create(
  666.                     FrameToggle1,
  667.                     TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  668.                     {BackgroundTransparency = 1}
  669.                 ):Play()
  670.                 TweenService:Create(
  671.                     FrameToggle2,
  672.                     TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  673.                     {BackgroundTransparency = 1}
  674.                 ):Play()
  675.                 TweenService:Create(
  676.                     FrameToggle3,
  677.                     TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  678.                     {BackgroundTransparency = 0}
  679.                 ):Play()
  680.                 TweenService:Create(
  681.                     FrameToggleCircle,
  682.                     TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  683.                     {BackgroundColor3 = Color3.fromRGB(255, 255, 255)}
  684.                 ):Play()
  685.                 FrameToggleCircle:TweenPosition(
  686.                     UDim2.new(0.587, 0, 0.222000003, 0),
  687.                     Enum.EasingDirection.Out,
  688.                     Enum.EasingStyle.Quart,
  689.                     .2,
  690.                     true
  691.                 )
  692.                 toggled = not toggled
  693.             end
  694.  
  695.             Tab.CanvasSize = UDim2.new(0, 0, 0, TabLayout.AbsoluteContentSize.Y)
  696.         end
  697.         function tabcontent:Slider(text, min, max: any, start: any, callback)
  698.             local dragging = false
  699.             local Slider = Instance.new("TextButton")
  700.             local SliderCorner = Instance.new("UICorner")
  701.             local SliderTitle = Instance.new("TextLabel")
  702.             local SliderValue = Instance.new("TextLabel")
  703.             local SlideFrame = Instance.new("Frame")
  704.             local CurrentValueFrame = Instance.new("Frame")
  705.             local SlideCircle = Instance.new("ImageButton")
  706.  
  707.             Slider.Name = "Slider"
  708.             Slider.Parent = Tab
  709.             Slider.BackgroundColor3 = Color3.fromRGB(34, 34, 34)
  710.             Slider.Position = UDim2.new(-0.48035714, 0, -0.570532918, 0)
  711.             Slider.Size = UDim2.new(0, 363, 0, 60)
  712.             Slider.AutoButtonColor = false
  713.             Slider.Font = Enum.Font.SourceSans
  714.             Slider.Text = ""
  715.             Slider.TextColor3 = Color3.fromRGB(0, 0, 0)
  716.             Slider.TextSize = 14.000
  717.  
  718.             SliderCorner.CornerRadius = UDim.new(0, 5)
  719.             SliderCorner.Name = "SliderCorner"
  720.             SliderCorner.Parent = Slider
  721.  
  722.             SliderTitle.Name = "SliderTitle"
  723.             SliderTitle.Parent = Slider
  724.             SliderTitle.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  725.             SliderTitle.BackgroundTransparency = 1.000
  726.             SliderTitle.Position = UDim2.new(0.0358126722, 0, 0, 0)
  727.             SliderTitle.Size = UDim2.new(0, 187, 0, 42)
  728.             SliderTitle.Font = Enum.Font.Gotham
  729.             SliderTitle.Text = text
  730.             SliderTitle.TextColor3 = Color3.fromRGB(255, 255, 255)
  731.             SliderTitle.TextSize = 14.000
  732.             SliderTitle.TextXAlignment = Enum.TextXAlignment.Left
  733.  
  734.             SliderValue.Name = "SliderValue"
  735.             SliderValue.Parent = Slider
  736.             SliderValue.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  737.             SliderValue.BackgroundTransparency = 1.000
  738.             SliderValue.Position = UDim2.new(0.0358126722, 0, 0, 0)
  739.             SliderValue.Size = UDim2.new(0, 335, 0, 42)
  740.             SliderValue.Font = Enum.Font.Gotham
  741.             SliderValue.Text = tostring(start and math.floor((start / max) * (max - min) + min) or 0)
  742.             SliderValue.TextColor3 = Color3.fromRGB(255, 255, 255)
  743.             SliderValue.TextSize = 14.000
  744.             SliderValue.TextXAlignment = Enum.TextXAlignment.Right
  745.  
  746.             SlideFrame.Name = "SlideFrame"
  747.             SlideFrame.Parent = Slider
  748.             SlideFrame.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
  749.             SlideFrame.BorderSizePixel = 0
  750.             SlideFrame.Position = UDim2.new(0.0342647657, 0, 0.686091602, 0)
  751.             SlideFrame.Size = UDim2.new(0, 335, 0, 3)
  752.  
  753.             CurrentValueFrame.Name = "CurrentValueFrame"
  754.             CurrentValueFrame.Parent = SlideFrame
  755.             CurrentValueFrame.BackgroundColor3 = PresetColor
  756.             CurrentValueFrame.BorderSizePixel = 0
  757.             CurrentValueFrame.Size = UDim2.new((start or 0) / max, 0, 0, 3)
  758.  
  759.             SlideCircle.Name = "SlideCircle"
  760.             SlideCircle.Parent = SlideFrame
  761.             SlideCircle.BackgroundColor3 = PresetColor
  762.             SlideCircle.BackgroundTransparency = 1.000
  763.             SlideCircle.Position = UDim2.new((start or 0) / max, -6, -1.30499995, 0)
  764.             SlideCircle.Size = UDim2.new(0, 11, 0, 11)
  765.             SlideCircle.Image = "rbxassetid://3570695787"
  766.             SlideCircle.ImageColor3 = PresetColor
  767.  
  768.             coroutine.wrap(
  769.                 function()
  770.                     while wait() do
  771.                         CurrentValueFrame.BackgroundColor3 = PresetColor
  772.                         SlideCircle.ImageColor3 = PresetColor
  773.                     end
  774.                 end
  775.             )()
  776.  
  777.             local function move(input: any)
  778.                 local pos =
  779.                     UDim2.new(
  780.                         math.clamp((input.Position.X - SlideFrame.AbsolutePosition.X) / SlideFrame.AbsoluteSize.X, 0, 1),
  781.                         -6,
  782.                         -1.30499995,
  783.                         0
  784.                     )
  785.                 local pos1 =
  786.                     UDim2.new(
  787.                         math.clamp((input.Position.X - SlideFrame.AbsolutePosition.X) / SlideFrame.AbsoluteSize.X, 0, 1),
  788.                         0,
  789.                         0,
  790.                         3
  791.                     )
  792.                 CurrentValueFrame:TweenSize(pos1, Enum.EasingDirection.Out, Enum.EasingStyle.Sine, 0.1, true)
  793.                 SlideCircle:TweenPosition(pos, Enum.EasingDirection.Out, Enum.EasingStyle.Sine, 0.1, true)
  794.                 local value = math.floor(((pos.X.Scale * max) / max) * (max - min) + min)
  795.                 SliderValue.Text = tostring(value)
  796.                 pcall(callback, value)
  797.             end
  798.             SlideCircle.InputBegan:Connect(
  799.                 function(input)
  800.                     if input.UserInputType == Enum.UserInputType.MouseButton1 then
  801.                         dragging = true
  802.                     end
  803.                 end
  804.             )
  805.             SlideCircle.InputEnded:Connect(
  806.                 function(input)
  807.                     if input.UserInputType == Enum.UserInputType.MouseButton1 then
  808.                         dragging = false
  809.                     end
  810.                 end
  811.             )
  812.             game:GetService("UserInputService").InputChanged:Connect(
  813.                 function(input)
  814.                     if dragging and input.UserInputType == Enum.UserInputType.MouseMovement then
  815.                         move(input)
  816.                     end
  817.                 end
  818.             )
  819.             Tab.CanvasSize = UDim2.new(0, 0, 0, TabLayout.AbsoluteContentSize.Y)
  820.         end
  821.         function tabcontent:Dropdown(text, list, callback)
  822.             local droptog = false
  823.             local framesize = 0
  824.             local itemcount = 0
  825.  
  826.             local Dropdown = Instance.new("Frame")
  827.             local DropdownCorner = Instance.new("UICorner")
  828.             local DropdownBtn = Instance.new("TextButton")
  829.             local DropdownTitle = Instance.new("TextLabel")
  830.             local ArrowImg = Instance.new("ImageLabel")
  831.             local DropItemHolder = Instance.new("ScrollingFrame")
  832.             local DropLayout = Instance.new("UIListLayout")
  833.  
  834.             Dropdown.Name = "Dropdown"
  835.             Dropdown.Parent = Tab
  836.             Dropdown.BackgroundColor3 = Color3.fromRGB(34, 34, 34)
  837.             Dropdown.ClipsDescendants = true
  838.             Dropdown.Position = UDim2.new(-0.541071415, 0, -0.532915354, 0)
  839.             Dropdown.Size = UDim2.new(0, 363, 0, 42)
  840.  
  841.             DropdownCorner.CornerRadius = UDim.new(0, 5)
  842.             DropdownCorner.Name = "DropdownCorner"
  843.             DropdownCorner.Parent = Dropdown
  844.  
  845.             DropdownBtn.Name = "DropdownBtn"
  846.             DropdownBtn.Parent = Dropdown
  847.             DropdownBtn.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  848.             DropdownBtn.BackgroundTransparency = 1.000
  849.             DropdownBtn.Size = UDim2.new(0, 363, 0, 42)
  850.             DropdownBtn.Font = Enum.Font.SourceSans
  851.             DropdownBtn.Text = ""
  852.             DropdownBtn.TextColor3 = Color3.fromRGB(0, 0, 0)
  853.             DropdownBtn.TextSize = 14.000
  854.  
  855.             DropdownTitle.Name = "DropdownTitle"
  856.             DropdownTitle.Parent = Dropdown
  857.             DropdownTitle.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  858.             DropdownTitle.BackgroundTransparency = 1.000
  859.             DropdownTitle.Position = UDim2.new(0.0358126722, 0, 0, 0)
  860.             DropdownTitle.Size = UDim2.new(0, 187, 0, 42)
  861.             DropdownTitle.Font = Enum.Font.Gotham
  862.             DropdownTitle.Text = text
  863.             DropdownTitle.TextColor3 = Color3.fromRGB(255, 255, 255)
  864.             DropdownTitle.TextSize = 14.000
  865.             DropdownTitle.TextXAlignment = Enum.TextXAlignment.Left
  866.  
  867.             ArrowImg.Name = "ArrowImg"
  868.             ArrowImg.Parent = DropdownTitle
  869.             ArrowImg.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  870.             ArrowImg.BackgroundTransparency = 1.000
  871.             ArrowImg.Position = UDim2.new(1.65240645, 0, 0.190476194, 0)
  872.             ArrowImg.Size = UDim2.new(0, 26, 0, 26)
  873.             ArrowImg.Image = "http://www.roblox.com/asset/?id=6034818375"
  874.  
  875.             DropItemHolder.Name = "DropItemHolder"
  876.             DropItemHolder.Parent = DropdownTitle
  877.             DropItemHolder.Active = true
  878.             DropItemHolder.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  879.             DropItemHolder.BackgroundTransparency = 1.000
  880.             DropItemHolder.BorderSizePixel = 0
  881.             DropItemHolder.Position = UDim2.new(-0.00400000019, 0, 1.04999995, 0)
  882.             DropItemHolder.Size = UDim2.new(0, 342, 0, 0)
  883.             DropItemHolder.CanvasSize = UDim2.new(0, 0, 0, 0)
  884.             DropItemHolder.ScrollBarThickness = 3
  885.  
  886.             DropLayout.Name = "DropLayout"
  887.             DropLayout.Parent = DropItemHolder
  888.             DropLayout.SortOrder = Enum.SortOrder.LayoutOrder
  889.  
  890.             DropdownBtn.MouseButton1Click:Connect(
  891.                 function()
  892.                     if droptog == false then
  893.                         Dropdown:TweenSize(
  894.                             UDim2.new(0, 363, 0, 55 + framesize),
  895.                             Enum.EasingDirection.Out,
  896.                             Enum.EasingStyle.Quart,
  897.                             .2,
  898.                             true
  899.                         )
  900.                         TweenService:Create(
  901.                             ArrowImg,
  902.                             TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  903.                             {Rotation = 270}
  904.                         ):Play()
  905.                         wait(.2)
  906.                         Tab.CanvasSize = UDim2.new(0, 0, 0, TabLayout.AbsoluteContentSize.Y)
  907.                     else
  908.                         Dropdown:TweenSize(
  909.                             UDim2.new(0, 363, 0, 42),
  910.                             Enum.EasingDirection.Out,
  911.                             Enum.EasingStyle.Quart,
  912.                             .2,
  913.                             true
  914.                         )
  915.                         TweenService:Create(
  916.                             ArrowImg,
  917.                             TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  918.                             {Rotation = 0}
  919.                         ):Play()
  920.                         wait(.2)
  921.                         Tab.CanvasSize = UDim2.new(0, 0, 0, TabLayout.AbsoluteContentSize.Y)
  922.                     end
  923.                     droptog = not droptog
  924.                 end
  925.             )
  926.  
  927.             for i, v in next, list do
  928.                 itemcount = itemcount + 1
  929.                 if itemcount <= 3 then
  930.                     framesize = framesize + 26
  931.                     DropItemHolder.Size = UDim2.new(0, 342, 0, framesize)
  932.                 end
  933.                 local Item = Instance.new("TextButton")
  934.                 local ItemCorner = Instance.new("UICorner")
  935.  
  936.                 Item.Name = "Item"
  937.                 Item.Parent = DropItemHolder
  938.                 Item.BackgroundColor3 = Color3.fromRGB(34, 34, 34)
  939.                 Item.ClipsDescendants = true
  940.                 Item.Size = UDim2.new(0, 335, 0, 25)
  941.                 Item.AutoButtonColor = false
  942.                 Item.Font = Enum.Font.Gotham
  943.                 Item.Text = v
  944.                 Item.TextColor3 = Color3.fromRGB(255, 255, 255)
  945.                 Item.TextSize = 15.000
  946.  
  947.                 ItemCorner.CornerRadius = UDim.new(0, 4)
  948.                 ItemCorner.Name = "ItemCorner"
  949.                 ItemCorner.Parent = Item
  950.  
  951.                 Item.MouseEnter:Connect(
  952.                     function()
  953.                         TweenService:Create(
  954.                             Item,
  955.                             TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  956.                             {BackgroundColor3 = Color3.fromRGB(37, 37, 37)}
  957.                         ):Play()
  958.                     end
  959.                 )
  960.  
  961.                 Item.MouseLeave:Connect(
  962.                     function()
  963.                         TweenService:Create(
  964.                             Item,
  965.                             TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  966.                             {BackgroundColor3 = Color3.fromRGB(34, 34, 34)}
  967.                         ):Play()
  968.                     end
  969.                 )
  970.  
  971.                 Item.MouseButton1Click:Connect(
  972.                     function()
  973.                         droptog = not droptog
  974.                         DropdownTitle.Text = text .. " - " .. v
  975.                         pcall(callback, v)
  976.                         Dropdown:TweenSize(
  977.                             UDim2.new(0, 363, 0, 42),
  978.                             Enum.EasingDirection.Out,
  979.                             Enum.EasingStyle.Quart,
  980.                             .2,
  981.                             true
  982.                         )
  983.                         TweenService:Create(
  984.                             ArrowImg,
  985.                             TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  986.                             {Rotation = 0}
  987.                         ):Play()
  988.                         wait(.2)
  989.                         Tab.CanvasSize = UDim2.new(0, 0, 0, TabLayout.AbsoluteContentSize.Y)
  990.                     end
  991.                 )
  992.  
  993.                 DropItemHolder.CanvasSize = UDim2.new(0, 0, 0, DropLayout.AbsoluteContentSize.Y)
  994.             end
  995.             Tab.CanvasSize = UDim2.new(0, 0, 0, TabLayout.AbsoluteContentSize.Y)
  996.         end
  997.         function tabcontent:Colorpicker(text, preset, callback)
  998.             local ColorPickerToggled = false
  999.             local OldToggleColor = Color3.fromRGB(0, 0, 0)
  1000.             local OldColor = Color3.fromRGB(0, 0, 0)
  1001.             local OldColorSelectionPosition = nil
  1002.             local OldHueSelectionPosition = nil
  1003.             local ColorH, ColorS, ColorV = 1, 1, 1
  1004.             local RainbowColorPicker = false
  1005.             local ColorPickerInput = nil
  1006.             local ColorInput = nil
  1007.             local HueInput = nil
  1008.  
  1009.             local Colorpicker = Instance.new("Frame")
  1010.             local ColorpickerCorner = Instance.new("UICorner")
  1011.             local ColorpickerTitle = Instance.new("TextLabel")
  1012.             local BoxColor = Instance.new("Frame")
  1013.             local BoxColorCorner = Instance.new("UICorner")
  1014.             local ConfirmBtn = Instance.new("TextButton")
  1015.             local ConfirmBtnCorner = Instance.new("UICorner")
  1016.             local ConfirmBtnTitle = Instance.new("TextLabel")
  1017.             local ColorpickerBtn = Instance.new("TextButton")
  1018.             local RainbowToggle = Instance.new("TextButton")
  1019.             local RainbowToggleCorner = Instance.new("UICorner")
  1020.             local RainbowToggleTitle = Instance.new("TextLabel")
  1021.             local FrameRainbowToggle1 = Instance.new("Frame")
  1022.             local FrameRainbowToggle1Corner = Instance.new("UICorner")
  1023.             local FrameRainbowToggle2 = Instance.new("Frame")
  1024.             local FrameRainbowToggle2_2 = Instance.new("UICorner")
  1025.             local FrameRainbowToggle3 = Instance.new("Frame")
  1026.             local FrameToggle3 = Instance.new("UICorner")
  1027.             local FrameRainbowToggleCircle = Instance.new("Frame")
  1028.             local FrameRainbowToggleCircleCorner = Instance.new("UICorner")
  1029.             local Color = Instance.new("ImageLabel")
  1030.             local ColorCorner = Instance.new("UICorner")
  1031.             local ColorSelection = Instance.new("ImageLabel")
  1032.             local Hue = Instance.new("ImageLabel")
  1033.             local HueCorner = Instance.new("UICorner")
  1034.             local HueGradient = Instance.new("UIGradient")
  1035.             local HueSelection = Instance.new("ImageLabel")
  1036.  
  1037.             Colorpicker.Name = "Colorpicker"
  1038.             Colorpicker.Parent = Tab
  1039.             Colorpicker.BackgroundColor3 = Color3.fromRGB(34, 34, 34)
  1040.             Colorpicker.ClipsDescendants = true
  1041.             Colorpicker.Position = UDim2.new(-0.541071415, 0, -0.532915354, 0)
  1042.             Colorpicker.Size = UDim2.new(0, 363, 0, 42)
  1043.  
  1044.             ColorpickerCorner.CornerRadius = UDim.new(0, 5)
  1045.             ColorpickerCorner.Name = "ColorpickerCorner"
  1046.             ColorpickerCorner.Parent = Colorpicker
  1047.  
  1048.             ColorpickerTitle.Name = "ColorpickerTitle"
  1049.             ColorpickerTitle.Parent = Colorpicker
  1050.             ColorpickerTitle.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1051.             ColorpickerTitle.BackgroundTransparency = 1.000
  1052.             ColorpickerTitle.Position = UDim2.new(0.0358126722, 0, 0, 0)
  1053.             ColorpickerTitle.Size = UDim2.new(0, 187, 0, 42)
  1054.             ColorpickerTitle.Font = Enum.Font.Gotham
  1055.             ColorpickerTitle.Text = text
  1056.             ColorpickerTitle.TextColor3 = Color3.fromRGB(255, 255, 255)
  1057.             ColorpickerTitle.TextSize = 14.000
  1058.             ColorpickerTitle.TextXAlignment = Enum.TextXAlignment.Left
  1059.  
  1060.             BoxColor.Name = "BoxColor"
  1061.             BoxColor.Parent = ColorpickerTitle
  1062.             BoxColor.BackgroundColor3 = Color3.fromRGB(255, 0, 4)
  1063.             BoxColor.Position = UDim2.new(1.60427809, 0, 0.214285716, 0)
  1064.             BoxColor.Size = UDim2.new(0, 41, 0, 23)
  1065.  
  1066.             BoxColorCorner.CornerRadius = UDim.new(0, 5)
  1067.             BoxColorCorner.Name = "BoxColorCorner"
  1068.             BoxColorCorner.Parent = BoxColor
  1069.  
  1070.             ConfirmBtn.Name = "ConfirmBtn"
  1071.             ConfirmBtn.Parent = ColorpickerTitle
  1072.             ConfirmBtn.BackgroundColor3 = Color3.fromRGB(34, 34, 34)
  1073.             ConfirmBtn.Position = UDim2.new(1.25814295, 0, 1.09037197, 0)
  1074.             ConfirmBtn.Size = UDim2.new(0, 105, 0, 32)
  1075.             ConfirmBtn.AutoButtonColor = false
  1076.             ConfirmBtn.Font = Enum.Font.SourceSans
  1077.             ConfirmBtn.Text = ""
  1078.             ConfirmBtn.TextColor3 = Color3.fromRGB(0, 0, 0)
  1079.             ConfirmBtn.TextSize = 14.000
  1080.  
  1081.             ConfirmBtnCorner.CornerRadius = UDim.new(0, 5)
  1082.             ConfirmBtnCorner.Name = "ConfirmBtnCorner"
  1083.             ConfirmBtnCorner.Parent = ConfirmBtn
  1084.  
  1085.             ConfirmBtnTitle.Name = "ConfirmBtnTitle"
  1086.             ConfirmBtnTitle.Parent = ConfirmBtn
  1087.             ConfirmBtnTitle.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1088.             ConfirmBtnTitle.BackgroundTransparency = 1.000
  1089.             ConfirmBtnTitle.Size = UDim2.new(0, 33, 0, 32)
  1090.             ConfirmBtnTitle.Font = Enum.Font.Gotham
  1091.             ConfirmBtnTitle.Text = "Confirm"
  1092.             ConfirmBtnTitle.TextColor3 = Color3.fromRGB(255, 255, 255)
  1093.             ConfirmBtnTitle.TextSize = 14.000
  1094.             ConfirmBtnTitle.TextXAlignment = Enum.TextXAlignment.Left
  1095.  
  1096.             ColorpickerBtn.Name = "ColorpickerBtn"
  1097.             ColorpickerBtn.Parent = ColorpickerTitle
  1098.             ColorpickerBtn.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1099.             ColorpickerBtn.BackgroundTransparency = 1.000
  1100.             ColorpickerBtn.Size = UDim2.new(0, 363, 0, 42)
  1101.             ColorpickerBtn.Font = Enum.Font.SourceSans
  1102.             ColorpickerBtn.Text = ""
  1103.             ColorpickerBtn.TextColor3 = Color3.fromRGB(0, 0, 0)
  1104.             ColorpickerBtn.TextSize = 14.000
  1105.  
  1106.             RainbowToggle.Name = "RainbowToggle"
  1107.             RainbowToggle.Parent = ColorpickerTitle
  1108.             RainbowToggle.BackgroundColor3 = Color3.fromRGB(34, 34, 34)
  1109.             RainbowToggle.Position = UDim2.new(1.26349044, 0, 2.12684202, 0)
  1110.             RainbowToggle.Size = UDim2.new(0, 104, 0, 32)
  1111.             RainbowToggle.AutoButtonColor = false
  1112.             RainbowToggle.Font = Enum.Font.SourceSans
  1113.             RainbowToggle.Text = ""
  1114.             RainbowToggle.TextColor3 = Color3.fromRGB(0, 0, 0)
  1115.             RainbowToggle.TextSize = 14.000
  1116.  
  1117.             RainbowToggleCorner.CornerRadius = UDim.new(0, 5)
  1118.             RainbowToggleCorner.Name = "RainbowToggleCorner"
  1119.             RainbowToggleCorner.Parent = RainbowToggle
  1120.  
  1121.             RainbowToggleTitle.Name = "RainbowToggleTitle"
  1122.             RainbowToggleTitle.Parent = RainbowToggle
  1123.             RainbowToggleTitle.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1124.             RainbowToggleTitle.BackgroundTransparency = 1.000
  1125.             RainbowToggleTitle.Size = UDim2.new(0, 33, 0, 32)
  1126.             RainbowToggleTitle.Font = Enum.Font.Gotham
  1127.             RainbowToggleTitle.Text = "Rainbow"
  1128.             RainbowToggleTitle.TextColor3 = Color3.fromRGB(255, 255, 255)
  1129.             RainbowToggleTitle.TextSize = 14.000
  1130.             RainbowToggleTitle.TextXAlignment = Enum.TextXAlignment.Left
  1131.  
  1132.             FrameRainbowToggle1.Name = "FrameRainbowToggle1"
  1133.             FrameRainbowToggle1.Parent = RainbowToggle
  1134.             FrameRainbowToggle1.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
  1135.             FrameRainbowToggle1.Position = UDim2.new(0.649999976, 0, 0.186000004, 0)
  1136.             FrameRainbowToggle1.Size = UDim2.new(0, 37, 0, 18)
  1137.  
  1138.             FrameRainbowToggle1Corner.Name = "FrameRainbowToggle1Corner"
  1139.             FrameRainbowToggle1Corner.Parent = FrameRainbowToggle1
  1140.  
  1141.             FrameRainbowToggle2.Name = "FrameRainbowToggle2"
  1142.             FrameRainbowToggle2.Parent = FrameRainbowToggle1
  1143.             FrameRainbowToggle2.BackgroundColor3 = Color3.fromRGB(34, 34, 34)
  1144.             FrameRainbowToggle2.Position = UDim2.new(0.0590000004, 0, 0.112999998, 0)
  1145.             FrameRainbowToggle2.Size = UDim2.new(0, 33, 0, 14)
  1146.  
  1147.             FrameRainbowToggle2_2.Name = "FrameRainbowToggle2"
  1148.             FrameRainbowToggle2_2.Parent = FrameRainbowToggle2
  1149.  
  1150.             FrameRainbowToggle3.Name = "FrameRainbowToggle3"
  1151.             FrameRainbowToggle3.Parent = FrameRainbowToggle1
  1152.             FrameRainbowToggle3.BackgroundColor3 = Color3.fromRGB(34, 34, 34)
  1153.             FrameRainbowToggle3.BackgroundTransparency = 1.000
  1154.             FrameRainbowToggle3.Size = UDim2.new(0, 37, 0, 18)
  1155.  
  1156.             FrameToggle3.Name = "FrameToggle3"
  1157.             FrameToggle3.Parent = FrameRainbowToggle3
  1158.  
  1159.             FrameRainbowToggleCircle.Name = "FrameRainbowToggleCircle"
  1160.             FrameRainbowToggleCircle.Parent = FrameRainbowToggle1
  1161.             FrameRainbowToggleCircle.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
  1162.             FrameRainbowToggleCircle.Position = UDim2.new(0.127000004, 0, 0.222000003, 0)
  1163.             FrameRainbowToggleCircle.Size = UDim2.new(0, 10, 0, 10)
  1164.  
  1165.             FrameRainbowToggleCircleCorner.Name = "FrameRainbowToggleCircleCorner"
  1166.             FrameRainbowToggleCircleCorner.Parent = FrameRainbowToggleCircle
  1167.  
  1168.             Color.Name = "Color"
  1169.             Color.Parent = ColorpickerTitle
  1170.             Color.BackgroundColor3 = Color3.fromRGB(255, 0, 4)
  1171.             Color.Position = UDim2.new(0, 0, 0, 42)
  1172.             Color.Size = UDim2.new(0, 194, 0, 80)
  1173.             Color.ZIndex = 10
  1174.             Color.Image = "rbxassetid://4155801252"
  1175.  
  1176.             ColorCorner.CornerRadius = UDim.new(0, 3)
  1177.             ColorCorner.Name = "ColorCorner"
  1178.             ColorCorner.Parent = Color
  1179.  
  1180.             ColorSelection.Name = "ColorSelection"
  1181.             ColorSelection.Parent = Color
  1182.             ColorSelection.AnchorPoint = Vector2.new(0.5, 0.5)
  1183.             ColorSelection.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1184.             ColorSelection.BackgroundTransparency = 1.000
  1185.             ColorSelection.Position = UDim2.new(preset and select(3, Color3.toHSV(preset)))
  1186.             ColorSelection.Size = UDim2.new(0, 18, 0, 18)
  1187.             ColorSelection.Image = "http://www.roblox.com/asset/?id=4805639000"
  1188.             ColorSelection.ScaleType = Enum.ScaleType.Fit
  1189.             ColorSelection.Visible = false
  1190.  
  1191.             Hue.Name = "Hue"
  1192.             Hue.Parent = ColorpickerTitle
  1193.             Hue.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1194.             Hue.Position = UDim2.new(0, 202, 0, 42)
  1195.             Hue.Size = UDim2.new(0, 25, 0, 80)
  1196.  
  1197.             HueCorner.CornerRadius = UDim.new(0, 3)
  1198.             HueCorner.Name = "HueCorner"
  1199.             HueCorner.Parent = Hue
  1200.  
  1201.             HueGradient.Color =
  1202.                 ColorSequence.new {
  1203.                     ColorSequenceKeypoint.new(0.00, Color3.fromRGB(255, 0, 4)),
  1204.                     ColorSequenceKeypoint.new(0.20, Color3.fromRGB(234, 255, 0)),
  1205.                     ColorSequenceKeypoint.new(0.40, Color3.fromRGB(21, 255, 0)),
  1206.                     ColorSequenceKeypoint.new(0.60, Color3.fromRGB(0, 255, 255)),
  1207.                     ColorSequenceKeypoint.new(0.80, Color3.fromRGB(0, 17, 255)),
  1208.                     ColorSequenceKeypoint.new(0.90, Color3.fromRGB(255, 0, 251)),
  1209.                     ColorSequenceKeypoint.new(1.00, Color3.fromRGB(255, 0, 4))
  1210.                 }
  1211.             HueGradient.Rotation = 270
  1212.             HueGradient.Name = "HueGradient"
  1213.             HueGradient.Parent = Hue
  1214.  
  1215.             HueSelection.Name = "HueSelection"
  1216.             HueSelection.Parent = Hue
  1217.             HueSelection.AnchorPoint = Vector2.new(0.5, 0.5)
  1218.             HueSelection.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1219.             HueSelection.BackgroundTransparency = 1.000
  1220.             HueSelection.Position = UDim2.new(0.48, 0, 1 - select(1, Color3.toHSV(preset)))
  1221.             HueSelection.Size = UDim2.new(0, 18, 0, 18)
  1222.             HueSelection.Image = "http://www.roblox.com/asset/?id=4805639000"
  1223.             HueSelection.Visible = false
  1224.  
  1225.             coroutine.wrap(
  1226.                 function()
  1227.                     while wait() do
  1228.                         FrameRainbowToggle3.BackgroundColor3 = PresetColor
  1229.                     end
  1230.                 end
  1231.             )()
  1232.  
  1233.             ColorpickerBtn.MouseButton1Click:Connect(
  1234.                 function()
  1235.                     if ColorPickerToggled == false then
  1236.                         ColorSelection.Visible = true
  1237.                         HueSelection.Visible = true
  1238.                         Colorpicker:TweenSize(
  1239.                             UDim2.new(0, 363, 0, 132),
  1240.                             Enum.EasingDirection.Out,
  1241.                             Enum.EasingStyle.Quart,
  1242.                             .2,
  1243.                             true
  1244.                         )
  1245.                         wait(.2)
  1246.                         Tab.CanvasSize = UDim2.new(0, 0, 0, TabLayout.AbsoluteContentSize.Y)
  1247.                     else
  1248.                         ColorSelection.Visible = false
  1249.                         HueSelection.Visible = false
  1250.                         Colorpicker:TweenSize(
  1251.                             UDim2.new(0, 363, 0, 42),
  1252.                             Enum.EasingDirection.Out,
  1253.                             Enum.EasingStyle.Quart,
  1254.                             .2,
  1255.                             true
  1256.                         )
  1257.                         wait(.2)
  1258.                         Tab.CanvasSize = UDim2.new(0, 0, 0, TabLayout.AbsoluteContentSize.Y)
  1259.                     end
  1260.                     ColorPickerToggled = not ColorPickerToggled
  1261.                 end
  1262.             )
  1263.  
  1264.             local function UpdateColorPicker(nope)
  1265.                 BoxColor.BackgroundColor3 = Color3.fromHSV(ColorH, ColorS, ColorV)
  1266.                 Color.BackgroundColor3 = Color3.fromHSV(ColorH, 1, 1)
  1267.  
  1268.                 pcall(callback, BoxColor.BackgroundColor3)
  1269.             end
  1270.  
  1271.             ColorH =
  1272.                 1 -
  1273.                 (math.clamp(HueSelection.AbsolutePosition.Y - Hue.AbsolutePosition.Y, 0, Hue.AbsoluteSize.Y) /
  1274.                     Hue.AbsoluteSize.Y)
  1275.             ColorS =
  1276.                 (math.clamp(ColorSelection.AbsolutePosition.X - Color.AbsolutePosition.X, 0, Color.AbsoluteSize.X) /
  1277.                     Color.AbsoluteSize.X)
  1278.             ColorV =
  1279.                 1 -
  1280.                 (math.clamp(ColorSelection.AbsolutePosition.Y - Color.AbsolutePosition.Y, 0, Color.AbsoluteSize.Y) /
  1281.                     Color.AbsoluteSize.Y)
  1282.  
  1283.             BoxColor.BackgroundColor3 = preset
  1284.             Color.BackgroundColor3 = preset
  1285.             pcall(callback, BoxColor.BackgroundColor3)
  1286.  
  1287.             Color.InputBegan:Connect(
  1288.                 function(input)
  1289.                     if input.UserInputType == Enum.UserInputType.MouseButton1 then
  1290.                         if RainbowColorPicker then
  1291.                             return
  1292.                         end
  1293.  
  1294.                         if ColorInput then
  1295.                             ColorInput:Disconnect()
  1296.                         end
  1297.  
  1298.                         ColorInput =
  1299.                             RunService.RenderStepped:Connect(
  1300.                                 function()
  1301.                                     local ColorX = (math.clamp(Mouse.X - Color.AbsolutePosition.X, 0, Color.AbsoluteSize.X) / Color.AbsoluteSize.X)
  1302.                                     local ColorY = (math.clamp(Mouse.Y - Color.AbsolutePosition.Y, 0, Color.AbsoluteSize.Y) / Color.AbsoluteSize.Y)
  1303.  
  1304.                                     ColorSelection.Position = UDim2.new(ColorX, 0, ColorY, 0)
  1305.                                     ColorS = ColorX
  1306.                                     ColorV = 1 - ColorY
  1307.  
  1308.                                     UpdateColorPicker(true)
  1309.                                 end
  1310.                             )
  1311.                     end
  1312.                 end
  1313.             )
  1314.  
  1315.             Color.InputEnded:Connect(
  1316.                 function(input)
  1317.                     if input.UserInputType == Enum.UserInputType.MouseButton1 then
  1318.                         if ColorInput then
  1319.                             ColorInput:Disconnect()
  1320.                         end
  1321.                     end
  1322.                 end
  1323.             )
  1324.  
  1325.             Hue.InputBegan:Connect(
  1326.                 function(input)
  1327.                     if input.UserInputType == Enum.UserInputType.MouseButton1 then
  1328.                         if RainbowColorPicker then
  1329.                             return
  1330.                         end
  1331.  
  1332.                         if HueInput then
  1333.                             HueInput:Disconnect()
  1334.                         end
  1335.  
  1336.                         HueInput =
  1337.                             RunService.RenderStepped:Connect(
  1338.                                 function()
  1339.                                     local HueY = (math.clamp(Mouse.Y - Hue.AbsolutePosition.Y, 0, Hue.AbsoluteSize.Y) / Hue.AbsoluteSize.Y)
  1340.  
  1341.                                     HueSelection.Position = UDim2.new(0.48, 0, HueY, 0)
  1342.                                     ColorH = 1 - HueY
  1343.  
  1344.                                     UpdateColorPicker(true)
  1345.                                 end
  1346.                             )
  1347.                     end
  1348.                 end
  1349.             )
  1350.  
  1351.             Hue.InputEnded:Connect(
  1352.                 function(input)
  1353.                     if input.UserInputType == Enum.UserInputType.MouseButton1 then
  1354.                         if HueInput then
  1355.                             HueInput:Disconnect()
  1356.                         end
  1357.                     end
  1358.                 end
  1359.             )
  1360.  
  1361.             RainbowToggle.MouseButton1Down:Connect(
  1362.                 function()
  1363.                     RainbowColorPicker = not RainbowColorPicker
  1364.  
  1365.                     if ColorInput then
  1366.                         ColorInput:Disconnect()
  1367.                     end
  1368.  
  1369.                     if HueInput then
  1370.                         HueInput:Disconnect()
  1371.                     end
  1372.  
  1373.                     if RainbowColorPicker then
  1374.                         TweenService:Create(
  1375.                             FrameRainbowToggle1,
  1376.                             TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  1377.                             {BackgroundTransparency = 1}
  1378.                         ):Play()
  1379.                         TweenService:Create(
  1380.                             FrameRainbowToggle2,
  1381.                             TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  1382.                             {BackgroundTransparency = 1}
  1383.                         ):Play()
  1384.                         TweenService:Create(
  1385.                             FrameRainbowToggle3,
  1386.                             TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  1387.                             {BackgroundTransparency = 0}
  1388.                         ):Play()
  1389.                         TweenService:Create(
  1390.                             FrameRainbowToggleCircle,
  1391.                             TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  1392.                             {BackgroundColor3 = Color3.fromRGB(255, 255, 255)}
  1393.                         ):Play()
  1394.                         FrameRainbowToggleCircle:TweenPosition(
  1395.                             UDim2.new(0.587, 0, 0.222000003, 0),
  1396.                             Enum.EasingDirection.Out,
  1397.                             Enum.EasingStyle.Quart,
  1398.                             .2,
  1399.                             true
  1400.                         )
  1401.  
  1402.                         OldToggleColor = BoxColor.BackgroundColor3
  1403.                         OldColor = Color.BackgroundColor3
  1404.                         OldColorSelectionPosition = ColorSelection.Position
  1405.                         OldHueSelectionPosition = HueSelection.Position
  1406.  
  1407.                         while RainbowColorPicker do
  1408.                             BoxColor.BackgroundColor3 = Color3.fromHSV(lib.RainbowColorValue, 1, 1)
  1409.                             Color.BackgroundColor3 = Color3.fromHSV(lib.RainbowColorValue, 1, 1)
  1410.  
  1411.                             ColorSelection.Position = UDim2.new(1, 0, 0, 0)
  1412.                             HueSelection.Position = UDim2.new(0.48, 0, 0, lib.HueSelectionPosition)
  1413.  
  1414.                             pcall(callback, BoxColor.BackgroundColor3)
  1415.                             wait()
  1416.                         end
  1417.                     elseif not RainbowColorPicker then
  1418.                         TweenService:Create(
  1419.                             FrameRainbowToggle1,
  1420.                             TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  1421.                             {BackgroundTransparency = 0}
  1422.                         ):Play()
  1423.                         TweenService:Create(
  1424.                             FrameRainbowToggle2,
  1425.                             TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  1426.                             {BackgroundTransparency = 0}
  1427.                         ):Play()
  1428.                         TweenService:Create(
  1429.                             FrameRainbowToggle3,
  1430.                             TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  1431.                             {BackgroundTransparency = 1}
  1432.                         ):Play()
  1433.                         TweenService:Create(
  1434.                             FrameRainbowToggleCircle,
  1435.                             TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  1436.                             {BackgroundColor3 = Color3.fromRGB(50, 50, 50)}
  1437.                         ):Play()
  1438.                         FrameRainbowToggleCircle:TweenPosition(
  1439.                             UDim2.new(0.127000004, 0, 0.222000003, 0),
  1440.                             Enum.EasingDirection.Out,
  1441.                             Enum.EasingStyle.Quart,
  1442.                             .2,
  1443.                             true
  1444.                         )
  1445.  
  1446.                         BoxColor.BackgroundColor3 = OldToggleColor
  1447.                         Color.BackgroundColor3 = OldColor
  1448.  
  1449.                         ColorSelection.Position = OldColorSelectionPosition
  1450.                         HueSelection.Position = OldHueSelectionPosition
  1451.  
  1452.                         pcall(callback, BoxColor.BackgroundColor3)
  1453.                     end
  1454.                 end
  1455.             )
  1456.  
  1457.             ConfirmBtn.MouseButton1Click:Connect(
  1458.                 function()
  1459.                     ColorSelection.Visible = false
  1460.                     HueSelection.Visible = false
  1461.                     Colorpicker:TweenSize(
  1462.                         UDim2.new(0, 363, 0, 42),
  1463.                         Enum.EasingDirection.Out,
  1464.                         Enum.EasingStyle.Quart,
  1465.                         .2,
  1466.                         true
  1467.                     )
  1468.                     wait(.2)
  1469.                     Tab.CanvasSize = UDim2.new(0, 0, 0, TabLayout.AbsoluteContentSize.Y)
  1470.                 end
  1471.             )
  1472.             Tab.CanvasSize = UDim2.new(0, 0, 0, TabLayout.AbsoluteContentSize.Y)
  1473.         end
  1474.         function tabcontent:Label(text)
  1475.             local Label = Instance.new("TextButton")
  1476.             local LabelCorner = Instance.new("UICorner")
  1477.             local LabelTitle = Instance.new("TextLabel")
  1478.  
  1479.             Label.Name = "Button"
  1480.             Label.Parent = Tab
  1481.             Label.BackgroundColor3 = Color3.fromRGB(34, 34, 34)
  1482.             Label.Size = UDim2.new(0, 363, 0, 42)
  1483.             Label.AutoButtonColor = false
  1484.             Label.Font = Enum.Font.SourceSans
  1485.             Label.Text = ""
  1486.             Label.TextColor3 = Color3.fromRGB(0, 0, 0)
  1487.             Label.TextSize = 14.000
  1488.  
  1489.             LabelCorner.CornerRadius = UDim.new(0, 5)
  1490.             LabelCorner.Name = "ButtonCorner"
  1491.             LabelCorner.Parent = Label
  1492.  
  1493.             LabelTitle.Name = "ButtonTitle"
  1494.             LabelTitle.Parent = Label
  1495.             LabelTitle.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1496.             LabelTitle.BackgroundTransparency = 1.000
  1497.             LabelTitle.Position = UDim2.new(0.0358126722, 0, 0, 0)
  1498.             LabelTitle.Size = UDim2.new(0, 187, 0, 42)
  1499.             LabelTitle.Font = Enum.Font.Gotham
  1500.             LabelTitle.Text = text
  1501.             LabelTitle.TextColor3 = Color3.fromRGB(255, 255, 255)
  1502.             LabelTitle.TextSize = 14.000
  1503.             LabelTitle.TextXAlignment = Enum.TextXAlignment.Left
  1504.  
  1505.             Tab.CanvasSize = UDim2.new(0, 0, 0, TabLayout.AbsoluteContentSize.Y)
  1506.         end
  1507.         function tabcontent:Textbox(text, disapper, callback)
  1508.             local Textbox = Instance.new("Frame")
  1509.             local TextboxCorner = Instance.new("UICorner")
  1510.             local TextboxTitle = Instance.new("TextLabel")
  1511.             local TextboxFrame = Instance.new("Frame")
  1512.             local TextboxFrameCorner = Instance.new("UICorner")
  1513.             local TextBox = Instance.new("TextBox")
  1514.  
  1515.             Textbox.Name = "Textbox"
  1516.             Textbox.Parent = Tab
  1517.             Textbox.BackgroundColor3 = Color3.fromRGB(34, 34, 34)
  1518.             Textbox.ClipsDescendants = true
  1519.             Textbox.Position = UDim2.new(-0.541071415, 0, -0.532915354, 0)
  1520.             Textbox.Size = UDim2.new(0, 363, 0, 42)
  1521.  
  1522.             TextboxCorner.CornerRadius = UDim.new(0, 5)
  1523.             TextboxCorner.Name = "TextboxCorner"
  1524.             TextboxCorner.Parent = Textbox
  1525.  
  1526.             TextboxTitle.Name = "TextboxTitle"
  1527.             TextboxTitle.Parent = Textbox
  1528.             TextboxTitle.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1529.             TextboxTitle.BackgroundTransparency = 1.000
  1530.             TextboxTitle.Position = UDim2.new(0.0358126722, 0, 0, 0)
  1531.             TextboxTitle.Size = UDim2.new(0, 187, 0, 42)
  1532.             TextboxTitle.Font = Enum.Font.Gotham
  1533.             TextboxTitle.Text = text
  1534.             TextboxTitle.TextColor3 = Color3.fromRGB(255, 255, 255)
  1535.             TextboxTitle.TextSize = 14.000
  1536.             TextboxTitle.TextXAlignment = Enum.TextXAlignment.Left
  1537.  
  1538.             TextboxFrame.Name = "TextboxFrame"
  1539.             TextboxFrame.Parent = TextboxTitle
  1540.             TextboxFrame.BackgroundColor3 = Color3.fromRGB(37, 37, 37)
  1541.             TextboxFrame.Position = UDim2.new(1.28877008, 0, 0.214285716, 0)
  1542.             TextboxFrame.Size = UDim2.new(0, 100, 0, 23)
  1543.  
  1544.             TextboxFrameCorner.CornerRadius = UDim.new(0, 5)
  1545.             TextboxFrameCorner.Name = "TextboxFrameCorner"
  1546.             TextboxFrameCorner.Parent = TextboxFrame
  1547.  
  1548.             TextBox.Parent = TextboxFrame
  1549.             TextBox.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1550.             TextBox.BackgroundTransparency = 1.000
  1551.             TextBox.Size = UDim2.new(0, 100, 0, 23)
  1552.             TextBox.Font = Enum.Font.Gotham
  1553.             TextBox.Text = ""
  1554.             TextBox.TextColor3 = Color3.fromRGB(255, 255, 255)
  1555.             TextBox.TextSize = 14.000
  1556.  
  1557.             TextBox.FocusLost:Connect(
  1558.                 function(ep)
  1559.                     if ep then
  1560.                         if #TextBox.Text > 0 then
  1561.                             pcall(callback, TextBox.Text)
  1562.                             if disapper then
  1563.                                 TextBox.Text = ""
  1564.                             end
  1565.                         end
  1566.                     end
  1567.                 end
  1568.             )
  1569.             Tab.CanvasSize = UDim2.new(0, 0, 0, TabLayout.AbsoluteContentSize.Y)
  1570.         end
  1571.         function tabcontent:Bind(text, keypreset, callback)
  1572.             local binding = false
  1573.             local Key = keypreset.Name
  1574.             local Bind = Instance.new("TextButton")
  1575.             local BindCorner = Instance.new("UICorner")
  1576.             local BindTitle = Instance.new("TextLabel")
  1577.             local BindText = Instance.new("TextLabel")
  1578.  
  1579.             Bind.Name = "Bind"
  1580.             Bind.Parent = Tab
  1581.             Bind.BackgroundColor3 = Color3.fromRGB(34, 34, 34)
  1582.             Bind.Size = UDim2.new(0, 363, 0, 42)
  1583.             Bind.AutoButtonColor = false
  1584.             Bind.Font = Enum.Font.SourceSans
  1585.             Bind.Text = ""
  1586.             Bind.TextColor3 = Color3.fromRGB(0, 0, 0)
  1587.             Bind.TextSize = 14.000
  1588.  
  1589.             BindCorner.CornerRadius = UDim.new(0, 5)
  1590.             BindCorner.Name = "BindCorner"
  1591.             BindCorner.Parent = Bind
  1592.  
  1593.             BindTitle.Name = "BindTitle"
  1594.             BindTitle.Parent = Bind
  1595.             BindTitle.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1596.             BindTitle.BackgroundTransparency = 1.000
  1597.             BindTitle.Position = UDim2.new(0.0358126722, 0, 0, 0)
  1598.             BindTitle.Size = UDim2.new(0, 187, 0, 42)
  1599.             BindTitle.Font = Enum.Font.Gotham
  1600.             BindTitle.Text = text
  1601.             BindTitle.TextColor3 = Color3.fromRGB(255, 255, 255)
  1602.             BindTitle.TextSize = 14.000
  1603.             BindTitle.TextXAlignment = Enum.TextXAlignment.Left
  1604.  
  1605.             BindText.Name = "BindText"
  1606.             BindText.Parent = Bind
  1607.             BindText.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1608.             BindText.BackgroundTransparency = 1.000
  1609.             BindText.Position = UDim2.new(0.0358126722, 0, 0, 0)
  1610.             BindText.Size = UDim2.new(0, 337, 0, 42)
  1611.             BindText.Font = Enum.Font.Gotham
  1612.             BindText.Text = Key
  1613.             BindText.TextColor3 = Color3.fromRGB(255, 255, 255)
  1614.             BindText.TextSize = 14.000
  1615.             BindText.TextXAlignment = Enum.TextXAlignment.Right
  1616.  
  1617.             Tab.CanvasSize = UDim2.new(0, 0, 0, TabLayout.AbsoluteContentSize.Y)
  1618.  
  1619.             Bind.MouseButton1Click:Connect(
  1620.                 function()
  1621.                     BindText.Text = "..."
  1622.                     binding = true
  1623.                     local inputwait = game:GetService("UserInputService").InputBegan:wait()
  1624.                     if inputwait.KeyCode.Name ~= "Unknown" then
  1625.                         BindText.Text = inputwait.KeyCode.Name
  1626.                         Key = inputwait.KeyCode.Name
  1627.                         binding = false
  1628.                     else
  1629.                         binding = false
  1630.                     end
  1631.                 end
  1632.             )
  1633.  
  1634.             game:GetService("UserInputService").InputBegan:connect(
  1635.                 function(current, pressed)
  1636.                     if not pressed then
  1637.                         if current.KeyCode.Name == Key and binding == false then
  1638.                             pcall(callback)
  1639.                         end
  1640.                     end
  1641.                 end
  1642.             )
  1643.         end
  1644.         return tabcontent
  1645.     end
  1646.     return tabhold
  1647. end
  1648. return lib
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement