Advertisement
Marty2000

Vape UI

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