Advertisement
kipr987

gui

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