kipr987

gui

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