Advertisement
magnetos

maggy ui

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