OK2020

Untitled

Jan 12th, 2024 (edited)
876
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 50.20 KB | Source Code | 0 0
  1. local TweenService = game:GetService("TweenService")
  2. local RunService = game:GetService("RunService")
  3. local InputService = game:GetService("UserInputService")
  4.  
  5. local UILibrary ={
  6.     ["Options"] = {
  7.         ["Size"] = 0.9
  8.     }
  9. }
  10.  
  11. for i,v in next,game.CoreGui:GetChildren() do
  12.     if v.Name == "Library" then
  13.         v:Destroy()
  14.     end
  15. end
  16.  
  17. function UILibrary.Main(PrjName,HideKey)
  18.     local Library = Instance.new("ScreenGui")
  19.     local Main = Instance.new("Frame")
  20.     local HideMain = Instance.new("Frame")
  21.     local UICorner = Instance.new("UICorner")
  22.     local LeftPart = Instance.new("Frame")
  23.     local UICorner_2 = Instance.new("UICorner")
  24.     local ProjectName = Instance.new("TextLabel")
  25.     local Line = Instance.new("Frame")
  26.     local Line_2 = Instance.new("Frame")
  27.     local Line_3 = Instance.new("Frame")
  28.     local ButtonsTab = Instance.new("Frame")
  29.     local List = Instance.new("ScrollingFrame")
  30.     local UIListLayout = Instance.new("UIListLayout")
  31.     local Ignore = Instance.new("Frame")
  32.     local UICorner_3 = Instance.new("UICorner")
  33.     local Pages = Instance.new("Frame")
  34.     local UIPageLayout = Instance.new("UIPageLayout")
  35.  
  36.     --Properties:
  37.  
  38.     Library.Name = "Library"
  39.     Library.Parent = game.CoreGui
  40.     Library.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  41.  
  42.     Main.Name = "Main"
  43.     Main.Parent = Library
  44.     Main.BackgroundColor3 = Color3.fromRGB(27, 27, 27)
  45.     Main.BorderSizePixel = 0
  46.     Main.ClipsDescendants = true
  47.     Main.Position = UDim2.new(0.25, 0, 0.25, 0)
  48.     Main.Size = UDim2.new(0,725,0,450)
  49.     Main.Visible = false
  50.  
  51.     HideMain.Name = "Main"
  52.     HideMain.Parent = Main
  53.     HideMain.BackgroundColor3 = Color3.fromRGB(1, 124, 255)
  54.     HideMain.BorderSizePixel = 0
  55.     HideMain.ClipsDescendants = true
  56.     HideMain.Position = UDim2.new(0, 0, 0, 0)
  57.     HideMain.Size = UDim2.new(1, 0, 1, 0)
  58.     HideMain.ZIndex = 100
  59.     TweenService:Create(HideMain,TweenInfo.new(0.5),{BackgroundTransparency = 0}):Play()
  60.     wait(0.5)
  61.     TweenService:Create(HideMain,TweenInfo.new(0.3),{BackgroundTransparency = 1}):Play()
  62.     Main.Visible = true
  63.     UICorner.Parent = Main
  64.     UICorner.CornerRadius = UDim.new(0,8)
  65.  
  66.     local FadeBackgroundFrame = Instance.new("Frame")
  67.  
  68.     FadeBackgroundFrame.Name = "FadeBackgroundFrame"
  69.     FadeBackgroundFrame.Parent = Main
  70.     FadeBackgroundFrame.BackgroundColor3 = Color3.fromRGB(27,27, 27)
  71.     FadeBackgroundFrame.BackgroundTransparency = 1.000
  72.     FadeBackgroundFrame.BorderSizePixel = 0
  73.     FadeBackgroundFrame.Size = UDim2.new(1, 0, 1, 0)
  74.     FadeBackgroundFrame.ZIndex = 3
  75.  
  76.     LeftPart.Name = "LeftPart"
  77.     LeftPart.Parent = Main
  78.     LeftPart.BackgroundColor3 = Color3.fromRGB(27, 27, 27)
  79.     LeftPart.BorderSizePixel = 0
  80.     LeftPart.Size = UDim2.new(0, 218, 0, 451)
  81.  
  82.     UICorner_2.Parent = LeftPart
  83.     UICorner_2.CornerRadius = UDim.new(0,8)
  84.  
  85.     ProjectName.Name = "ProjectName"
  86.     ProjectName.Parent = LeftPart
  87.     ProjectName.BackgroundColor3 = Color3.fromRGB(31, 31, 31)
  88.     ProjectName.BackgroundTransparency = 1
  89.     ProjectName.BorderSizePixel = 0
  90.     ProjectName.Size = UDim2.new(0, 218, 0, 40)
  91.     ProjectName.Font = Enum.Font.GothamBold
  92.     ProjectName.Text = PrjName
  93.     ProjectName.TextColor3 = Color3.fromRGB(255, 255, 255)
  94.     ProjectName.TextSize = 20.000
  95.  
  96.     Line.Name = "Line"
  97.     Line.Parent = ProjectName
  98.     Line.BackgroundColor3 = Color3.fromRGB(81, 81, 81)
  99.     Line.BorderSizePixel = 0
  100.     Line.Position = UDim2.new(0, 0, 1, 0)
  101.     Line.Size = UDim2.new(1, 0, 0, 1)
  102.  
  103.     Line_2.Name = "Line"
  104.     Line_2.Parent = LeftPart
  105.     Line_2.BackgroundColor3 = Color3.fromRGB(81, 81, 81)
  106.     Line_2.BorderSizePixel = 0
  107.     Line_2.Position = UDim2.new(0, 0, 0.182, 0)
  108.     Line_2.Size = UDim2.new(1, 0, 0, 1)
  109.  
  110.     Line_3.Name = "Line"
  111.     Line_3.Parent = LeftPart
  112.     Line_3.BackgroundColor3 = Color3.fromRGB(81, 81, 81)
  113.     Line_3.BorderSizePixel = 0
  114.     Line_3.Position = UDim2.new(1, 0, 0, 0)
  115.     Line_3.Size = UDim2.new(0, 1, 1, 0)
  116.  
  117.     ButtonsTab.Name = "ButtonsTab"
  118.     ButtonsTab.Parent = LeftPart
  119.     ButtonsTab.BackgroundColor3 = Color3.fromRGB(31, 31, 31)
  120.     ButtonsTab.BorderSizePixel = 0
  121.     ButtonsTab.Position = UDim2.new(0, 0, 0.184829056, 0)
  122.     ButtonsTab.Size = UDim2.new(0, 218, 0, 362)
  123.  
  124.     List.Name = "List"
  125.     List.Parent = ButtonsTab
  126.     List.Active = true
  127.     List.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  128.     List.BackgroundTransparency = 1.000
  129.     List.BorderSizePixel = 0
  130.     List.Size = UDim2.new(0.998000026, 0, 1, 0)
  131.     List.AutomaticCanvasSize = Enum.AutomaticSize.Y
  132.     List.ScrollBarThickness = 2
  133.     List.ScrollBarImageColor3 = Color3.fromRGB(0, 170, 255)
  134.     List.ScrollBarImageTransparency = 0.5
  135.     List.CanvasSize = UDim2.new(0,0,0,0)
  136.  
  137.     UIListLayout.Parent = List
  138.     UIListLayout.HorizontalAlignment = Enum.HorizontalAlignment.Center
  139.     UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
  140.     UIListLayout.Padding = UDim.new(0, 5)
  141.  
  142.     Ignore.Name = "Ignore"
  143.     Ignore.Parent = List
  144.     Ignore.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  145.     Ignore.BackgroundTransparency = 1.000
  146.     Ignore.BorderSizePixel = 0
  147.     Ignore.LayoutOrder = -999
  148.  
  149.     UICorner_3.Parent = ButtonsTab
  150.  
  151.     local IsMenuOpened = true
  152.  
  153.     local LastPos = Main.Position
  154.  
  155.     InputService.InputBegan:Connect(function(Input,IsTyping)
  156.         if Input.KeyCode == Enum.KeyCode[HideKey] and not IsTyping then
  157.             IsMenuOpened = not IsMenuOpened
  158.             if IsMenuOpened then
  159.                 LastPos = Main.Position
  160.                 wait()
  161.                 Main:TweenPosition(UDim2.new(0.25,0,-1.5,0),"In","Quint",0.5,true)
  162.                 TweenService:Create(HideMain,TweenInfo.new(0.15),{BackgroundTransparency = 0}):Play()
  163.             else
  164.                 Main:TweenPosition(LastPos,"Out","Quint",0.5,true)
  165.                 wait(0.25)
  166.                 TweenService:Create(HideMain,TweenInfo.new(0.15),{BackgroundTransparency = 1}):Play()
  167.             end
  168.         end
  169.     end)
  170.  
  171.     local dragging
  172.     local dragInput
  173.     local dragStart
  174.     local startPos
  175.     local off = Vector3.new(0,0,0)
  176.  
  177.  
  178.     local function update(input)
  179.         local delta = input.Position - dragStart
  180.         pcall(function()
  181.             Main:TweenPosition(UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y),"Out","Quad",0.1,true,nil)
  182.         end)
  183.     end
  184.     Main.InputBegan:Connect(function(input)
  185.         if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
  186.             dragging = true
  187.             dragStart = input.Position
  188.             startPos = Main.Position
  189.             input.Changed:Connect(function()
  190.                 if input.UserInputState == Enum.UserInputState.End then
  191.                     dragging = false
  192.                 end
  193.             end)
  194.         end
  195.     end)
  196.  
  197.     Main.InputChanged:Connect(function(input)
  198.         if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then
  199.             dragInput = input
  200.  
  201.         end
  202.     end)
  203.  
  204.     InputService.InputChanged:Connect(function(input)
  205.         if input == dragInput and dragging then
  206.             update(input)
  207.         end
  208.     end)
  209.  
  210.     Pages.Name = "Pages"
  211.     Pages.Parent = Main
  212.     Pages.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  213.     Pages.BackgroundTransparency = 1.000
  214.     Pages.BorderSizePixel = 0
  215.     Pages.Position = UDim2.new(0.307838351, -4, 0, 10)
  216.     Pages.Size = UDim2.new(0, 506, 1, -10)
  217.     Pages.ClipsDescendants = true
  218.  
  219.     UIPageLayout.Parent = Pages
  220.     UIPageLayout.FillDirection = Enum.FillDirection.Vertical
  221.     UIPageLayout.HorizontalAlignment = Enum.HorizontalAlignment.Center
  222.     UIPageLayout.SortOrder = Enum.SortOrder.LayoutOrder
  223.     UIPageLayout.EasingDirection = Enum.EasingDirection.Out
  224.     UIPageLayout.EasingStyle = Enum.EasingStyle.Quint
  225.     UIPageLayout.Padding = UDim.new(0, 25)
  226.     UIPageLayout.TweenTime = 0
  227.     UIPageLayout.ScrollWheelInputEnabled = false
  228.     UIPageLayout.Animated = false
  229.  
  230.     local UISizer = Instance.new("UIScale")
  231.     UISizer.Parent = Library
  232.     UISizer.Scale = UILibrary["Options"]["Size"]
  233.  
  234.     local Tabs = {}
  235.     function Tabs.Loader()
  236.         local Circles = Instance.new("Frame")
  237.         local obj = {}
  238.  
  239.         Circles.Name = "Circles"
  240.         Circles.Parent = Main
  241.         Circles.AnchorPoint = Vector2.new(0.5, 0.5)
  242.         Circles.BackgroundColor3 = Color3.fromRGB(29, 29, 29)
  243.         Circles.BackgroundTransparency = 1
  244.         Circles.BorderSizePixel = 0
  245.         Circles.ClipsDescendants = false
  246.         Circles.Position = UDim2.new(0.5, 0, 0.5, 0)
  247.         Circles.Size = UDim2.new(0, 50, 0, 50)
  248.         Circles.ZIndex = 4
  249.         TweenService:Create(FadeBackgroundFrame,TweenInfo.new(0.1),{BackgroundTransparency = 0}):Play()
  250.  
  251.         for i = 1,4 do
  252.             local Circle = Instance.new("Frame")
  253.             local CircleCorner = Instance.new("UICorner")
  254.  
  255.             Circle.Name = "Circle"
  256.             Circle.Parent = Circles
  257.             Circle.AnchorPoint = Vector2.new(0, 0.5)
  258.             Circle.BackgroundColor3 = Color3.fromRGB(1, 124, 255)
  259.             Circle.BorderSizePixel = 0
  260.             Circle.Position = UDim2.new(0, (i - 1) * 13, 0.5, 0)
  261.             Circle.Size = UDim2.new(0, 12, 0, 12)
  262.  
  263.             CircleCorner.CornerRadius = UDim.new(0, 100)
  264.             CircleCorner.Name = "CircleCorner"
  265.             CircleCorner.Parent = Circle
  266.  
  267.             table.insert(obj, Circle)
  268.         end
  269.  
  270.         spawn(function()
  271.             for _ = 1,5 do wait(0.7)
  272.                 local el = table.remove(obj)
  273.                 table.insert(obj, 1, el)
  274.                 for i, v in pairs(obj) do
  275.                     if i == 1 then
  276.                         v:TweenSize(UDim2.new(0,12,0,12),"Out","Linear",0.15,true)
  277.                     elseif i == 4 then
  278.                         v:TweenSize(UDim2.new(0,0,0,0),"Out","Linear",0.15,true)
  279.                         wait(0.15)
  280.                         v:TweenPosition(UDim2.new(0,0,0.5,0),"Out","Quad",0)
  281.                     end
  282.                     v:TweenPosition(UDim2.new(0,i * 13,0.5,0),"Out","Quad",0.35)
  283.                     if _ == 5 then
  284.                         TweenService:Create(FadeBackgroundFrame,TweenInfo.new(0.3),{BackgroundTransparency = 1}):Play()
  285.                         TweenService:Create(v,TweenInfo.new(0.3),{BackgroundTransparency = 1}):Play()
  286.                     end
  287.                 end
  288.             end
  289.         end)
  290.     end
  291.    
  292.     function Tabs.Nofitication(Text)
  293.  
  294.  
  295.         local Nofitication = Instance.new("Frame")
  296.         local NofiticationLabel = Instance.new("TextLabel")
  297.         local NofiticationButton = Instance.new("TextButton")
  298.         local NofiticationButtonCorner = Instance.new("UICorner")
  299.  
  300.  
  301.         Nofitication.Name = "Nofitication"
  302.         Nofitication.Parent = Main
  303.         Nofitication.AnchorPoint = Vector2.new(0.5, 0.5)
  304.         Nofitication.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
  305.         Nofitication.BackgroundTransparency = 1
  306.         Nofitication.BorderSizePixel = 0
  307.         Nofitication.Position = UDim2.new(0.3, 0, 0.5, 0)
  308.         Nofitication.Size = UDim2.new(0, 350, 0, 100)
  309.         Nofitication.ZIndex = 3
  310.         TweenService:Create(FadeBackgroundFrame,TweenInfo.new(0.3),{BackgroundTransparency = 0.5}):Play()
  311.         TweenService:Create(Nofitication,TweenInfo.new(0.3),{BackgroundTransparency = 0}):Play()
  312.         Nofitication:TweenPosition(UDim2.new(0.5,0,0.5,0),"In","Quad",0.3,true)
  313.  
  314.         NofiticationLabel.Name = "NofiticationLabel"
  315.         NofiticationLabel.Parent = Nofitication
  316.         NofiticationLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  317.         NofiticationLabel.BackgroundTransparency = 1.000
  318.         NofiticationLabel.BorderSizePixel = 0
  319.         NofiticationLabel.Position = UDim2.new(0, 0, 0.0599999987, 0)
  320.         NofiticationLabel.Size = UDim2.new(0, 350, 0, 25)
  321.         NofiticationLabel.Font = Enum.Font.GothamSemibold
  322.         NofiticationLabel.Text = Text
  323.         NofiticationLabel.TextColor3 = Color3.fromRGB(41, 127, 255)
  324.         NofiticationLabel.TextSize = 22.000
  325.         NofiticationLabel.TextWrapped = true
  326.         NofiticationLabel.TextTransparency = 1
  327.         NofiticationLabel.AutomaticSize = Enum.AutomaticSize.Y
  328.  
  329.         NofiticationButton.Name = "NofiticationButton"
  330.         NofiticationButton.Parent = Nofitication
  331.         NofiticationButton.AnchorPoint = Vector2.new(0.5, 0)
  332.         NofiticationButton.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  333.         NofiticationButton.BackgroundTransparency = 1.000
  334.         NofiticationButton.BorderSizePixel = 0
  335.         NofiticationButton.Position = UDim2.new(0.5, 0, 0.560000002, 0)
  336.         NofiticationButton.Size = UDim2.new(0, 330, 0, 36)
  337.         NofiticationButton.AutoButtonColor = false
  338.         NofiticationButton.Font = Enum.Font.GothamSemibold
  339.         NofiticationButton.Text = "OK"
  340.         NofiticationButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  341.         NofiticationButton.TextSize = 16.000
  342.         NofiticationButton.TextTransparency = 1
  343.        
  344.         NofiticationButton.MouseButton1Click:Connect(function()
  345.             TweenService:Create(FadeBackgroundFrame,TweenInfo.new(0.3),{BackgroundTransparency = 1}):Play()
  346.             for i,v in next,Nofitication:GetDescendants() do
  347.                 pcall(function()
  348.                     TweenService:Create(Nofitication,TweenInfo.new(0.3),{BackgroundTransparency = 1}):Play()
  349.                     Nofitication:TweenPosition(UDim2.new(0.3,0,0.5,0),"Out","Quad",0.3,true)
  350.                     TweenService:Create(v,TweenInfo.new(0.3),{BackgroundTransparency = 1}):Play()
  351.                     TweenService:Create(v,TweenInfo.new(0.3),{TextTransparency = 1}):Play()
  352.                 end)
  353.             end
  354.             wait(0.5)
  355.             Nofitication:Destroy()
  356.         end)
  357.        
  358.        
  359.        
  360.         NofiticationButton.MouseEnter:Connect(function()
  361.             TweenService:Create(NofiticationButton,TweenInfo.new(0.3),{BackgroundTransparency = 0.95}):Play()
  362.         end)
  363.        
  364.         NofiticationButton.MouseLeave:Connect(function()
  365.             TweenService:Create(NofiticationButton,TweenInfo.new(0.3),{BackgroundTransparency = 1}):Play()
  366.         end)
  367.        
  368.         NofiticationButton.MouseButton1Down:Connect(function()
  369.             TweenService:Create(NofiticationButton,TweenInfo.new(0.3),{BackgroundTransparency = 0.85}):Play()
  370.         end)
  371.  
  372.         NofiticationButtonCorner.CornerRadius = UDim.new(0, 5)
  373.         NofiticationButtonCorner.Name = "NofiticationButtonCorner"
  374.         NofiticationButtonCorner.Parent = NofiticationButton
  375.        
  376.         for i,v in next,Nofitication:GetDescendants() do
  377.             if v.ClassName == "TextButton" or v.ClassName == "TextLabel" then
  378.                 TweenService:Create(v,TweenInfo.new(0.3),{BackgroundTransparency = 1}):Play()
  379.                 TweenService:Create(v,TweenInfo.new(0.3),{TextTransparency = 0}):Play()
  380.             end
  381.         end
  382.     end
  383.     function Tabs.NewTab(TabName)
  384.  
  385.         local Frame = Instance.new("Frame")
  386.         local TabLabel = Instance.new("TextLabel")
  387.         local Elements = Instance.new("ScrollingFrame")
  388.         local FadeFrame = Instance.new("Frame")
  389.         local UIListLayout = Instance.new("UIListLayout")
  390.  
  391.         UIListLayout.Name = "ff"
  392.         UIListLayout.Parent = Elements
  393.         UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
  394.         UIListLayout.Padding = UDim.new(0, 10)
  395.  
  396.  
  397.         Frame.Parent = Pages
  398.         Frame.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  399.         Frame.BackgroundTransparency = 1
  400.         Frame.BorderSizePixel = 0
  401.         Frame.Size = UDim2.new(1, 0, 1, 0)
  402.         Frame.Name = TabName
  403.  
  404.         TabLabel.Name = "SectionLabel"
  405.         TabLabel.Parent = Frame
  406.         TabLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  407.         TabLabel.BackgroundTransparency = 1.000
  408.         TabLabel.BorderSizePixel = 0
  409.         TabLabel.Position = UDim2.new(0, 7, 0, 7)
  410.         TabLabel.Size = UDim2.new(0, 127, 0, 18)
  411.         TabLabel.Font = Enum.Font.GothamBold
  412.         TabLabel.Text = TabName
  413.         TabLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
  414.         TabLabel.TextSize = 21
  415.         TabLabel.TextXAlignment = Enum.TextXAlignment.Left
  416.  
  417.         Elements.Name = "Elements"
  418.         Elements.Parent = Frame
  419.         Elements.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  420.         Elements.BackgroundTransparency = 1
  421.         Elements.BorderSizePixel = 0
  422.         Elements.Position = UDim2.new(0.0178926438, 0, 0, 37)
  423.         Elements.Size = UDim2.new(1, -20, 0, 385)
  424.         Elements.CanvasSize = UDim2.new(0,0,0,0)
  425.         Elements.AutomaticCanvasSize = Enum.AutomaticSize.Y
  426.         Elements.ScrollBarThickness = 2
  427.         Elements.ScrollBarImageColor3 = Color3.fromRGB(0, 170, 255)
  428.         Elements.ScrollBarImageTransparency = 0.5
  429.  
  430.         FadeFrame.Name = "FadeFrame"
  431.         FadeFrame.Parent = Frame
  432.         FadeFrame.BackgroundColor3 = Color3.fromRGB(27, 27, 27)
  433.         FadeFrame.BackgroundTransparency = 0
  434.         FadeFrame.BorderSizePixel = 0
  435.         FadeFrame.Position = UDim2.new(0, 0, 0, 0)
  436.         FadeFrame.Size = UDim2.new(1, 0, 1, 0)
  437.         FadeFrame.ZIndex = 19
  438.  
  439.         local TabButton = Instance.new("TextButton")
  440.         local TabButtonText = Instance.new("TextLabel")
  441.         local TabCorner = Instance.new("UICorner")
  442.         local IsTabOpened = Instance.new("BoolValue")
  443.  
  444.         IsTabOpened.Parent = TabButton
  445.         for index,page in next,Pages:GetChildren() do
  446.             if page.Name ~= "UIPageLayout" and (page.Name == Frame.Name and index == 2) then
  447.                 IsTabOpened.Value = true
  448.                 TweenService:Create(FadeFrame,TweenInfo.new(1.3),{BackgroundTransparency = 1}):Play()
  449.                 TweenService:Create(TabButton,TweenInfo.new(0.25),{BackgroundTransparency = 0.3,BackgroundColor3 = Color3.fromRGB(1, 124, 255)}):Play()
  450.             elseif page.Name ~= "UIPageLayout" and (page.Name == Frame.Name and index ~= 2) then
  451.                 IsTabOpened.Value = false
  452.             end
  453.         end
  454.         IsTabOpened.Name = "bd"
  455.         --Properties:
  456.  
  457.         TabButton.Name = TabName
  458.         TabButton.Parent = List
  459.         TabButton.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  460.         TabButton.BackgroundTransparency = 1.000
  461.         TabButton.BorderSizePixel = 0
  462.         TabButton.Position = UDim2.new(0.0412844047, 0, 0, 0)
  463.         TabButton.Size = UDim2.new(0, 200, 0, 38)
  464.         TabButton.AutoButtonColor = false
  465.         TabButton.Font = Enum.Font.SourceSansSemibold
  466.         TabButton.Text = ""
  467.         TabButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  468.         TabButton.TextSize = 19.000
  469.  
  470.         TabButtonText.Name = "TabButtonText"
  471.         TabButtonText.Parent = TabButton
  472.         TabButtonText.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  473.         TabButtonText.BackgroundTransparency = 1.000
  474.         TabButtonText.BorderSizePixel = 0
  475.         TabButtonText.Position = UDim2.new(0.0799999982, 0, 0, 0)
  476.         TabButtonText.Size = UDim2.new(0.920000017, 0, 1, 0)
  477.         TabButtonText.Font = Enum.Font.SourceSansSemibold
  478.         TabButtonText.Text = TabName
  479.         TabButtonText.TextColor3 = Color3.fromRGB(255, 255, 255)
  480.         TabButtonText.TextSize = 23.000
  481.         TabButtonText.TextWrapped = true
  482.         TabButtonText.TextXAlignment = Enum.TextXAlignment.Left
  483.  
  484.         TabCorner.Parent = TabButton
  485.         TabCorner.CornerRadius = UDim.new(0,8)
  486.  
  487.         local function ReColorOtherBtns()
  488.             for _,Button in next,List:GetDescendants() do
  489.                 if Button.Name == "bd" and Button.Parent.Name ~= TabButton.Name then
  490.                     TweenService:Create(Button.Parent,TweenInfo.new(0.1),{BackgroundTransparency = 1,BackgroundColor3 = Color3.fromRGB(255,255,255)}):Play()
  491.                     Button.Value = false   
  492.                 end
  493.             end
  494.             for _,Page in next,Pages:GetChildren() do
  495.                 if Page.Name ~= "UIPageLayout" and Page.Name ~= TabName then
  496.                     TweenService:Create(Page.FadeFrame,TweenInfo.new(0.1),{BackgroundTransparency = 0}):Play()
  497.                 end
  498.             end
  499.  
  500.         end
  501.  
  502.         TabButton.MouseButton1Click:Connect(function()
  503.             IsTabOpened.Value = true
  504.             UIPageLayout:JumpTo(Frame)
  505.             TweenService:Create(TabButton,TweenInfo.new(0.25),{BackgroundTransparency = 0.3,BackgroundColor3 = Color3.fromRGB(1, 124, 255)}):Play()
  506.             TweenService:Create(FadeFrame,TweenInfo.new(0.5),{BackgroundTransparency = 1}):Play()
  507.             ReColorOtherBtns()
  508.         end)
  509.  
  510.         TabButton.MouseEnter:Connect(function()
  511.             if not IsTabOpened.Value then
  512.                 TweenService:Create(TabButton,TweenInfo.new(0.25),{BackgroundTransparency = 0.96}):Play()
  513.             else
  514.                 TweenService:Create(TabButton,TweenInfo.new(0.25),{BackgroundTransparency = 0.25}):Play()
  515.             end
  516.         end)
  517.  
  518.         TabButton.MouseLeave:Connect(function()
  519.             if not IsTabOpened.Value then
  520.                 TweenService:Create(TabButton,TweenInfo.new(0.25),{BackgroundTransparency = 1}):Play()
  521.             else
  522.                 TweenService:Create(TabButton,TweenInfo.new(0.25),{BackgroundTransparency = 0.3}):Play()
  523.             end
  524.         end)
  525.  
  526.         local ElementsLib = {}
  527.  
  528.         function ElementsLib.NewSection(SectionName)
  529.             local Section = Instance.new("Frame")
  530.             local UICorner = Instance.new("UICorner")
  531.             local SectionLabel = Instance.new("TextLabel")
  532.             local SectionElements = Instance.new("Frame")
  533.             local UIListLayout = Instance.new("UIListLayout")
  534.  
  535.             --Properties:
  536.  
  537.             Section.Name = SectionName
  538.             Section.Parent = Elements
  539.             Section.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
  540.             Section.BackgroundTransparency = 1
  541.             Section.BorderSizePixel = 0
  542.             Section.Size = UDim2.new(0, 482, 0, 18)
  543.             Section.AutomaticSize = Enum.AutomaticSize.Y
  544.  
  545.             UICorner.CornerRadius = UDim.new(0, 5)
  546.             UICorner.Parent = SectionElements
  547.  
  548.             SectionLabel.Name = "SectionLabel"
  549.             SectionLabel.Parent = Section
  550.             SectionLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  551.             SectionLabel.BackgroundTransparency = 1.000
  552.             SectionLabel.BorderSizePixel = 0
  553.             SectionLabel.Position = UDim2.new(0, 7, 0, 7)
  554.             SectionLabel.Size = UDim2.new(0, 127, 0, 18)
  555.             SectionLabel.Font = Enum.Font.GothamBold
  556.             SectionLabel.Text = SectionName
  557.             SectionLabel.TextColor3 = Color3.fromRGB(209, 209, 209)
  558.             SectionLabel.TextSize = 16.000
  559.             SectionLabel.TextXAlignment = Enum.TextXAlignment.Left
  560.  
  561.             SectionElements.Name = "SectionElements"
  562.             SectionElements.Parent = Section
  563.             SectionElements.BackgroundColor3 = Color3.fromRGB(30,30,30)
  564.             SectionElements.BackgroundTransparency = 0
  565.             SectionElements.BorderSizePixel = 0
  566.             SectionElements.ClipsDescendants = true
  567.             SectionElements.Position = UDim2.new(0, 7, 0, 33)
  568.             SectionElements.Size = UDim2.new(0, 469, 0, 0)
  569.             SectionElements.AutomaticSize = Enum.AutomaticSize.Y
  570.  
  571.             UIListLayout.Parent = SectionElements
  572.             UIListLayout.HorizontalAlignment = Enum.HorizontalAlignment.Center
  573.             UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
  574.             UIListLayout.Padding = UDim.new(0, 5)
  575.  
  576.             local InSection = {}
  577.  
  578.             function InSection.NewToggle(ToggleText,UserFunc,defbool)
  579.  
  580.                 local Toggle = Instance.new("TextButton")
  581.                 local ToggleLabel = Instance.new("TextLabel")
  582.                 local ToggleCorner = Instance.new("UICorner")
  583.                 local Checker = Instance.new("Frame")
  584.                 local CheckerCorner = Instance.new("UICorner")
  585.                 local CheckerStroke = Instance.new("UIStroke")
  586.                 local HideChecker = Instance.new("Frame")
  587.                 local HideCheckerCorner = Instance.new("UICorner")
  588.                 local DownLine = Instance.new("Frame")
  589.  
  590.                 --Properties:
  591.  
  592.                 Toggle.Name = ToggleText
  593.                 Toggle.Parent = SectionElements
  594.                 Toggle.BackgroundColor3 = Color3.fromRGB(31, 31, 31)
  595.                 Toggle.BorderSizePixel = 0
  596.                 Toggle.Position = UDim2.new(0.286780387, 0, 0, 0)
  597.                 Toggle.Size = UDim2.new(1, 0, 0, 40)
  598.                 Toggle.AutoButtonColor = false
  599.                 Toggle.Font = Enum.Font.SourceSans
  600.                 Toggle.Text = ""
  601.                 Toggle.TextColor3 = Color3.fromRGB(0, 0, 0)
  602.                 Toggle.TextSize = 14.000
  603.  
  604.  
  605.                 DownLine.Parent = Toggle
  606.                 DownLine.BackgroundColor3 = Color3.fromRGB(44, 44, 44)
  607.                 DownLine.BorderSizePixel = 0
  608.                 DownLine.Size = UDim2.new(1,0,0,1)
  609.                 DownLine.AnchorPoint = Vector2.new(0.5,0)
  610.                 DownLine.Position = UDim2.new(0.53,0,1,0)
  611.  
  612.                 ToggleLabel.Name = "ToggleLabel"
  613.                 ToggleLabel.Parent = Toggle
  614.                 ToggleLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  615.                 ToggleLabel.BackgroundTransparency = 1.000
  616.                 ToggleLabel.BorderColor3 = Color3.fromRGB(27, 42, 53)
  617.                 ToggleLabel.BorderSizePixel = 0
  618.                 ToggleLabel.Position = UDim2.new(0.0500000007, 0, 0, 0)
  619.                 ToggleLabel.Size = UDim2.new(0.949999988, 0, 1, 0)
  620.                 ToggleLabel.Font = Enum.Font.GothamSemibold
  621.                 ToggleLabel.Text = ToggleText
  622.                 ToggleLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
  623.                 ToggleLabel.TextSize = 16.000
  624.                 ToggleLabel.TextXAlignment = Enum.TextXAlignment.Left
  625.  
  626.                 ToggleCorner.CornerRadius = UDim.new(0, 5)
  627.                 ToggleCorner.Name = "ToggleCorner"
  628.                 ToggleCorner.Parent = Toggle
  629.  
  630.                 Checker.Name = "Checker"
  631.                 Checker.Parent = Toggle
  632.                 Checker.AnchorPoint = Vector2.new(0, 0.5)
  633.                 Checker.BackgroundColor3 = Color3.fromRGB(0, 123, 255)
  634.                 Checker.BorderSizePixel = 0
  635.                 Checker.Position = UDim2.new(0.935, 0, 0.5, 0)
  636.                 Checker.Size = UDim2.new(0, 22, 0, 22)
  637.  
  638.                 CheckerStroke.Parent = Checker
  639.                 CheckerStroke.Color = Color3.fromRGB(42, 42, 42)
  640.                 CheckerStroke.LineJoinMode = Enum.LineJoinMode.Round
  641.                 CheckerStroke.ApplyStrokeMode = Enum.ApplyStrokeMode.Border
  642.                 CheckerStroke.Thickness = 1.55
  643.  
  644.                 CheckerCorner.CornerRadius = UDim.new(0, 5)
  645.                 CheckerCorner.Name = "CheckerCorner"
  646.                 CheckerCorner.Parent = Checker
  647.  
  648.                 HideChecker.Name = "HideChecker"
  649.                 HideChecker.Parent = Checker
  650.                 HideChecker.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
  651.                 HideChecker.BorderSizePixel = 0
  652.                 HideChecker.AnchorPoint = Vector2.new(0.5,0.5)
  653.                 HideChecker.Position = UDim2.new(0.5,0,0.5,0)
  654.                 local IsToggled = false
  655.                 IsToggled = defbool or false
  656.                 if not defbool then
  657.                     HideChecker.Size = UDim2.new(1, 0, 1, 0)
  658.                 else
  659.                     HideChecker.Size = UDim2.new(0, 0, 0, 0)
  660.                 end
  661.  
  662.                 HideCheckerCorner.CornerRadius = UDim.new(0, 5)
  663.                 HideCheckerCorner.Name = "HideCheckerCorner"
  664.                 HideCheckerCorner.Parent = HideChecker
  665.  
  666.  
  667.                 Toggle.MouseButton1Click:Connect(function()
  668.                     if IsToggled then
  669.                         IsToggled = false
  670.                         HideChecker:TweenSize(UDim2.new(1,0,1,0),"Out","Sine",0.1,true)
  671.                     else
  672.                         IsToggled = true
  673.                         HideChecker:TweenSize(UDim2.new(0,0,0,0),"In","Sine",0.1,true)
  674.                     end
  675.                     spawn(function() UserFunc(IsToggled) end)
  676.                 end)
  677.  
  678.                 Toggle.MouseEnter:Connect(function()
  679.                     if not IsToggled then
  680.                         HideChecker:TweenSize(UDim2.new(0,18,0,18),"Out","Sine",0.2,true)
  681.                     else
  682.                         HideChecker:TweenSize(UDim2.new(0,16,0,16),"Out","Sine",0.2,true)
  683.                     end
  684.                 end)
  685.  
  686.                 Toggle.MouseLeave:Connect(function()
  687.                     if not IsToggled then
  688.                         HideChecker:TweenSize(UDim2.new(1,0,1,0),"Out","Sine",0.2,true)
  689.                     else
  690.                         HideChecker:TweenSize(UDim2.new(0,0,0,0),"Out","Sine",0.2,true)
  691.                     end
  692.                 end)
  693.                 return Toggle;
  694.             end
  695.  
  696.             function InSection.NewLabel(LabelText,IsScaled,LabelTextSize,LabelTextColor)
  697.                 local Label = Instance.new("TextLabel")
  698.  
  699.                 Label.Name = LabelText
  700.                 Label.Parent = SectionElements
  701.                 Label.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  702.                 Label.BackgroundTransparency = 1.000
  703.                 Label.BorderColor3 = Color3.fromRGB(27, 42, 53)
  704.                 Label.BorderSizePixel = 0
  705.                 Label.Position = UDim2.new(0.0500000007, 0, 0, 0)
  706.                 Label.Size = UDim2.new(0.949999988, 0, 0, 40)
  707.                 Label.Font = Enum.Font.GothamSemibold
  708.                 Label.Text = LabelText
  709.                 Label.TextSize = LabelTextSize or 14
  710.                 Label.TextColor3 = LabelTextColor or Color3.fromRGB(255, 255, 255)
  711.                 Label.TextScaled = IsScaled or false
  712.                 Label.TextXAlignment = Enum.TextXAlignment.Left
  713.                 return Label;
  714.             end
  715.  
  716.             function InSection.NewLabelWithComment(LabelText,CommentText,IsScaled,LabelTextSize,LabelTextColor)
  717.                 local Label = Instance.new("TextLabel")
  718.                 local DateMes = Instance.new("TextLabel")
  719.  
  720.                 Label.Name = LabelText
  721.                 Label.Parent = SectionElements
  722.                 Label.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  723.                 Label.BackgroundTransparency = 1.000
  724.                 Label.BorderColor3 = Color3.fromRGB(27, 42, 53)
  725.                 Label.BorderSizePixel = 0
  726.                 Label.Position = UDim2.new(0.0500000007, 0, 0, 0)
  727.                 Label.Size = UDim2.new(0.949999988, 0, 0, 40)
  728.                 Label.Font = Enum.Font.GothamSemibold
  729.                 Label.Text = LabelText
  730.                 Label.TextSize = LabelTextSize or 14
  731.                 Label.TextColor3 = LabelTextColor or Color3.fromRGB(255, 255, 255)
  732.                 Label.TextScaled = IsScaled or false
  733.                 Label.TextXAlignment = Enum.TextXAlignment.Left
  734.                 Label.TextYAlignment = Enum.TextYAlignment.Top
  735.  
  736.                 DateMes.Name = "DateMes"
  737.                 DateMes.Parent = Label
  738.                 DateMes.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  739.                 DateMes.BackgroundTransparency = 1.000
  740.                 DateMes.BorderSizePixel = 0
  741.                 DateMes.Position = UDim2.new(0, 0, 0.76, 0)
  742.                 DateMes.Size = UDim2.new(0.970777929, 0, -0.0263157897, 17)
  743.                 DateMes.Font = Enum.Font.GothamSemibold
  744.                 DateMes.Text = CommentText
  745.                 DateMes.TextColor3 = Color3.fromRGB(197, 197, 197)
  746.                 DateMes.TextSize = 12.000
  747.                 DateMes.TextXAlignment = Enum.TextXAlignment.Left
  748.                 return Label;
  749.             end
  750.  
  751.             function InSection.NewSlider(SliderText,min,max,precise,UserFunc,defvalue)
  752.  
  753.                 local Slider = Instance.new("TextButton")
  754.                 local Frame = Instance.new("Frame")
  755.                 local SliderLabel = Instance.new("TextLabel")
  756.                 local SliderCorner = Instance.new("UICorner")
  757.                 local Sliding = Instance.new("Frame")
  758.                 local SlidingCorner = Instance.new("UICorner")
  759.                 local Circle = Instance.new("Frame")
  760.                 local HideColor = Instance.new("Frame")
  761.                 local HideColorCorner = Instance.new("UICorner")
  762.                 local CircleCorner = Instance.new("UICorner")
  763.                 local Progress = Instance.new("Frame")
  764.                 local ProgressCorner = Instance.new("UICorner")
  765.                 local CircleStroke = Instance.new("UIStroke")
  766.                 local ValueLabel = Instance.new("TextLabel")
  767.  
  768.                 --Properties:
  769.  
  770.                 Slider.Name = SliderText
  771.                 Slider.Parent = SectionElements
  772.                 Slider.BackgroundColor3 = Color3.fromRGB(31, 31, 31)
  773.                 Slider.BorderSizePixel = 0
  774.                 Slider.Position = UDim2.new(0.286780387, 0, 0, 0)
  775.                 Slider.Size = UDim2.new(1, 0, 0, 40)
  776.                 Slider.AutoButtonColor = false
  777.                 Slider.Font = Enum.Font.SourceSans
  778.                 Slider.Text = ""
  779.                 Slider.TextColor3 = Color3.fromRGB(0, 0, 0)
  780.                 Slider.TextSize = 14.000
  781.  
  782.                 Frame.Parent = Slider
  783.                 Frame.BackgroundColor3 = Color3.fromRGB(44, 44, 44)
  784.                 Frame.BorderSizePixel = 0
  785.                 Frame.AnchorPoint = Vector2.new(0.5,0)
  786.                 Frame.Position = UDim2.new(0.53, 0, 1, 0)
  787.                 Frame.Size = UDim2.new(1, 0, 0, 1)
  788.  
  789.                 SliderLabel.Name = "SliderLabel"
  790.                 SliderLabel.Parent = Slider
  791.                 SliderLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  792.                 SliderLabel.BackgroundTransparency = 1.000
  793.                 SliderLabel.BorderColor3 = Color3.fromRGB(27, 42, 53)
  794.                 SliderLabel.BorderSizePixel = 0
  795.                 SliderLabel.Position = UDim2.new(0.0500000007, 0, 0, 0)
  796.                 SliderLabel.Size = UDim2.new(0.949999988, 0, 1, 0)
  797.                 SliderLabel.Font = Enum.Font.GothamSemibold
  798.                 SliderLabel.Text = SliderText
  799.                 SliderLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
  800.                 SliderLabel.TextSize = 16.000
  801.                 SliderLabel.TextXAlignment = Enum.TextXAlignment.Left
  802.  
  803.                 SliderCorner.CornerRadius = UDim.new(0, 5)
  804.                 SliderCorner.Name = "SliderCorner"
  805.                 SliderCorner.Parent = Slider
  806.  
  807.                 Sliding.Name = "Sliding"
  808.                 Sliding.Parent = Slider
  809.                 Sliding.BackgroundColor3 = Color3.fromRGB(43, 43, 43)
  810.                 Sliding.BorderSizePixel = 0
  811.                 Sliding.Position = UDim2.new(0.58, 0, 0.421052635, 0)
  812.                 Sliding.Size = UDim2.new(0, 166, 0, 6)
  813.  
  814.                 SlidingCorner.CornerRadius = UDim.new(0, 15)
  815.                 SlidingCorner.Name = "SlidingCorner"
  816.                 SlidingCorner.Parent = Sliding
  817.  
  818.                 Circle.Name = "Circle"
  819.                 Circle.Parent = Progress
  820.                 Circle.AnchorPoint = Vector2.new(0, 0.5)
  821.                 Circle.BackgroundColor3 = Color3.fromRGB(0, 123, 255)
  822.                 Circle.BorderSizePixel = 0
  823.                 Circle.Position = UDim2.new(1, 0, 0.5, 0)
  824.                 Circle.Size = UDim2.new(0, 12, 0, 12)
  825.                 Circle.ZIndex = 2
  826.  
  827.                 CircleStroke.Parent = Circle
  828.                 CircleStroke.ApplyStrokeMode = Enum.ApplyStrokeMode.Border
  829.                 CircleStroke.Thickness = 2
  830.                 CircleStroke.Color = Color3.fromRGB(43,43,43)
  831.  
  832.                 ValueLabel.Name = "ValueLabel"
  833.                 ValueLabel.Parent = Circle
  834.                 ValueLabel.AnchorPoint = Vector2.new(0.5, 0)
  835.                 ValueLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  836.                 ValueLabel.BackgroundTransparency = 1.000
  837.                 ValueLabel.BorderSizePixel = 0
  838.                 ValueLabel.Position = UDim2.new(0.5, 0, -1.49128079, 0)
  839.                 ValueLabel.Size = UDim2.new(0, 25, 0, 18)
  840.                 ValueLabel.Font = Enum.Font.GothamSemibold
  841.                 ValueLabel.Text = (precise and string.format("%.1f", tostring(defvalue))) or (math.floor(defvalue))
  842.                 ValueLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
  843.                 ValueLabel.TextSize = 14.000
  844.  
  845.                 HideColor.Name = "HideColor"
  846.                 HideColor.Parent = Circle
  847.                 HideColor.AnchorPoint = Vector2.new(0.5, 0.5)
  848.                 HideColor.BackgroundColor3 = Color3.fromRGB(43, 43, 43)
  849.                 HideColor.BorderSizePixel = 0
  850.                 HideColor.Position = UDim2.new(0.5, 0, 0.5, 0)
  851.                 HideColor.Size = UDim2.new(1, 1, 1, 1)
  852.                 HideColor.ZIndex = 2
  853.  
  854.                 HideColorCorner.CornerRadius = UDim.new(0, 100)
  855.                 HideColorCorner.Name = "HideColorCorner"
  856.                 HideColorCorner.Parent = HideColor
  857.  
  858.                 CircleCorner.CornerRadius = UDim.new(0, 100)
  859.                 CircleCorner.Name = "CircleCorner"
  860.                 CircleCorner.Parent = Circle
  861.  
  862.                 Progress.Name = "Progress"
  863.                 Progress.Parent = Sliding
  864.                 Progress.BackgroundColor3 = Color3.fromRGB(0, 123, 255)
  865.                 Progress.BorderSizePixel = 0
  866.                 Progress.Size = UDim2.new(0.5, 0, 1, 0)
  867.  
  868.                 ProgressCorner.CornerRadius = UDim.new(0, 15)
  869.                 ProgressCorner.Name = "ProgressCorner"
  870.                 ProgressCorner.Parent = Progress
  871.  
  872.                 local Mouse = game.Players.LocalPlayer:GetMouse()
  873.  
  874.                 local function UpdateSlider(val)
  875.                     local percent = (Mouse.X - Progress.AbsolutePosition.X) / Progress.AbsoluteSize.X
  876.  
  877.                     if val then
  878.                         percent = (val - min) / (max - min)
  879.                     end
  880.  
  881.                     percent = math.clamp(percent, 0, 1)
  882.  
  883.                     Progress:TweenSize(UDim2.new(percent, 0, 1, 0),"Out","Sine",0.3,true)
  884.                 end
  885.  
  886.                 UpdateSlider(defvalue)
  887.  
  888.                 local IsSliding,Dragging = false
  889.                 local RealValue = defvalue
  890.                 local value
  891.                 local function move(Pressed)
  892.                     IsSliding = true;
  893.                     local pos = UDim2.new(math.clamp((Pressed.Position.X - Sliding.AbsolutePosition.X) / Sliding.AbsoluteSize.X, 0, 1), 0, 1, 0)
  894.                     local size = UDim2.new(math.clamp((Pressed.Position.X - Sliding.AbsolutePosition.X) / Sliding.AbsoluteSize.X, 0, 1), 0, 1, 0)
  895.                     Progress:TweenSize(size, "Out", "Quart", 0.2,true);
  896.                     RealValue = (((pos.X.Scale * max) / max) * (max - min) + min)
  897.                     value = (precise and string.format("%.1f", tostring(RealValue))) or (math.floor(RealValue))
  898.                     ValueLabel.Text = tostring(value)
  899.                     UserFunc(value)
  900.                 end
  901.  
  902.                 Slider.InputBegan:Connect(function(Pressed)
  903.                     if Pressed.UserInputType == Enum.UserInputType.MouseButton1 then
  904.                         Dragging = true
  905.                         IsSliding = false
  906.                         move(Pressed)
  907.                     end
  908.                 end)
  909.  
  910.                 Slider.InputEnded:Connect(function(Pressed)
  911.                     if Pressed.UserInputType == Enum.UserInputType.MouseButton1 then
  912.                         Dragging = false
  913.                         IsSliding = false
  914.                         move(Pressed)
  915.                     end
  916.                 end)
  917.  
  918.                 game:GetService("UserInputService").InputChanged:Connect(function(Pressed)
  919.                     if Dragging and Pressed.UserInputType == Enum.UserInputType.MouseMovement then
  920.                         move(Pressed)
  921.                     end
  922.                 end)
  923.  
  924.                 Slider.MouseEnter:Connect(function()
  925.                     HideColor:TweenSize(UDim2.new(0,0,0,0),"Out","Sine",0.2,true)
  926.                 end)
  927.  
  928.                 Slider.MouseLeave:Connect(function()
  929.                     if not Dragging then
  930.                         HideColor:TweenSize(UDim2.new(1,1,1,1),"In","Sine",0.2,true)
  931.                     end
  932.                 end)
  933.                 return Slider;
  934.             end
  935.  
  936.  
  937.             function InSection.NewDropdown(placeholder,Selectables,func,IsMulti)
  938.                 local Dropdown = Instance.new("TextButton")
  939.                 local Frame = Instance.new("Frame")
  940.                 local DropdownCorner = Instance.new("UICorner")
  941.                 local DropdownBox = Instance.new("TextButton")
  942.                 local Frame_2 = Instance.new("Frame")
  943.                 local ImageLabel = Instance.new("ImageLabel")
  944.                 local DropdownList = Instance.new("ScrollingFrame")
  945.                 local UIListLayout = Instance.new("UIListLayout")
  946.                 local ignd = Instance.new("Frame")
  947.                 local ignd2 = Instance.new("Frame")
  948.                 local Tsd = Instance.new("Frame")
  949.                 local DropdownListCorner = Instance.new("UICorner")
  950.                 local DropdownListHeader = Instance.new("TextLabel")
  951.                 local DropdownListHeaderCorner = Instance.new("UICorner")
  952.  
  953.                 --Properties:
  954.  
  955.                 Dropdown.Name = "Dropdown"
  956.                 Dropdown.Parent = SectionElements
  957.                 Dropdown.BackgroundColor3 = Color3.fromRGB(31, 31, 31)
  958.                 Dropdown.BorderSizePixel = 0
  959.                 Dropdown.ClipsDescendants = true
  960.                 Dropdown.Position = UDim2.new(0.286780387, 0, 0, 0)
  961.                 Dropdown.Size = UDim2.new(1, 0, 0, 40)
  962.                 Dropdown.AutoButtonColor = false
  963.                 Dropdown.Font = Enum.Font.GothamSemibold
  964.                 Dropdown.Text = ""
  965.                 Dropdown.TextColor3 = Color3.fromRGB(255, 255, 255)
  966.                 Dropdown.TextSize = 14.000
  967.  
  968.                 Frame.Parent = Dropdown
  969.                 Frame.BackgroundColor3 = Color3.fromRGB(44, 44, 44)
  970.                 Frame.BorderSizePixel = 0
  971.                 Frame.Position = UDim2.new(0, 5, 1, -1)
  972.                 Frame.Size = UDim2.new(1.10000002, 0, 0, 1)
  973.                 Frame.ZIndex = 2
  974.  
  975.                 DropdownCorner.CornerRadius = UDim.new(0, 5)
  976.                 DropdownCorner.Name = "DropdownCorner"
  977.                 DropdownCorner.Parent = Dropdown
  978.  
  979.                 DropdownBox.Name = "DropdownBox"
  980.                 DropdownBox.Parent = Dropdown
  981.                 DropdownBox.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  982.                 DropdownBox.BackgroundTransparency = 1.000
  983.                 DropdownBox.BorderSizePixel = 0
  984.                 DropdownBox.Position = UDim2.new(0.05, 0, 0, 0)
  985.                 DropdownBox.Size = UDim2.new(0.95, 0, 0, 40)
  986.                 DropdownBox.Font = Enum.Font.GothamSemibold
  987.                 DropdownBox.Text = placeholder
  988.                 DropdownBox.TextColor3 = Color3.fromRGB(255, 255, 255)
  989.                 DropdownBox.TextSize = 15.000
  990.                 DropdownBox.TextXAlignment = Enum.TextXAlignment.Left
  991.  
  992.                 Frame_2.Parent = DropdownBox
  993.                 Frame_2.AnchorPoint = Vector2.new(0.5, 0)
  994.                 Frame_2.BackgroundColor3 = Color3.fromRGB(44, 44, 44)
  995.                 Frame_2.BorderSizePixel = 0
  996.                 Frame_2.Position = UDim2.new(0.53, 0, 1, 0)
  997.                 Frame_2.Size = UDim2.new(1, 0, 0, 1)
  998.  
  999.                 ImageLabel.Parent = DropdownBox
  1000.                 ImageLabel.AnchorPoint = Vector2.new(0, 0.5)
  1001.                 ImageLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1002.                 ImageLabel.BackgroundTransparency = 1.000
  1003.                 ImageLabel.BorderSizePixel = 0
  1004.                 ImageLabel.Position = UDim2.new(0.910000026, 0, 0.5, 0)
  1005.                 ImageLabel.Size = UDim2.new(0, 40, 0, 35)
  1006.                 ImageLabel.Image = "rbxassetid://3926305904"
  1007.                 ImageLabel.ImageColor3 = Color3.fromRGB(136, 136, 136)
  1008.                 ImageLabel.ImageRectOffset = Vector2.new(44, 404)
  1009.                 ImageLabel.ImageRectSize = Vector2.new(36, 36)
  1010.                 ImageLabel.Rotation = 90
  1011.  
  1012.                 Tsd.Name = placeholder
  1013.                 Tsd.Parent = Main
  1014.                 Tsd.AnchorPoint = Vector2.new(0.5, 0.5)
  1015.                 Tsd.BackgroundColor3 = Color3.fromRGB(27, 27, 27)
  1016.                 Tsd.BorderSizePixel = 0
  1017.                 Tsd.Position = UDim2.new(0.5, 0, 1.5, 0)
  1018.                 Tsd.Size = UDim2.new(0, 360, 0, 270)
  1019.                 Tsd.ZIndex = 4
  1020.                 Tsd.Visible = true
  1021.  
  1022.                 local CloseButton = Instance.new("TextButton")
  1023.  
  1024.                 CloseButton.Name = "CloseButton"
  1025.                 CloseButton.Parent = Tsd
  1026.                 CloseButton.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1027.                 CloseButton.BackgroundTransparency = 1.000
  1028.                 CloseButton.BorderSizePixel = 0
  1029.                 CloseButton.Position = UDim2.new(0.82035929, 0, 0, 0)
  1030.                 CloseButton.Size = UDim2.new(0, 60, 0, 39)
  1031.                 CloseButton.Font = Enum.Font.GothamSemibold
  1032.                 CloseButton.Text = "Close"
  1033.                 CloseButton.TextColor3 = Color3.fromRGB(0, 124, 255)
  1034.                 CloseButton.TextSize = 15.000
  1035.                 CloseButton.ZIndex = 4
  1036.  
  1037.                 CloseButton.MouseButton1Click:Connect(function()
  1038.                     TweenService:Create(ImageLabel,TweenInfo.new(0.3),{Rotation = 90}):Play()
  1039.                     TweenService:Create(FadeBackgroundFrame,TweenInfo.new(0.3),{BackgroundTransparency = 1}):Play()
  1040.                     Tsd:TweenPosition(UDim2.new(0.5,0,1.5,0),"Out","Quart",0.3)
  1041.                 end)
  1042.  
  1043.                 DropdownListCorner.Name = "DropdownListCorner"
  1044.                 DropdownListCorner.Parent = Tsd
  1045.                 DropdownListCorner.CornerRadius = UDim.new(0,5)
  1046.  
  1047.                 DropdownListHeader.Name = "DropdownListHeader"
  1048.                 DropdownListHeader.Parent = Tsd
  1049.                 DropdownListHeader.BackgroundColor3 = Color3.fromRGB(29, 29, 29)
  1050.                 DropdownListHeader.BackgroundTransparency = 1
  1051.                 DropdownListHeader.Size = UDim2.new(0, 334, 0, 39)
  1052.                 DropdownListHeader.Font = Enum.Font.GothamSemibold
  1053.                 DropdownListHeader.TextColor3 = Color3.fromRGB(255, 255, 255)
  1054.                 DropdownListHeader.TextSize = 17.000
  1055.                 DropdownListHeader.Text = "  " .. placeholder
  1056.                 DropdownListHeader.TextXAlignment = Enum.TextXAlignment.Left
  1057.  
  1058.                 DropdownListHeaderCorner.Name = "DropdownListHeaderCorner"
  1059.                 DropdownListHeaderCorner.Parent = DropdownListHeader
  1060.                 DropdownListHeaderCorner.CornerRadius = UDim.new(0,5)
  1061.  
  1062.                 DropdownList.Name = "DropdownList"
  1063.                 DropdownList.Parent = Tsd
  1064.                 DropdownList.Active = true
  1065.                 DropdownList.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1066.                 DropdownList.BackgroundTransparency = 1
  1067.                 DropdownList.BorderSizePixel = 0
  1068.                 DropdownList.Position = UDim2.new(0, 0, 0, 55)
  1069.                 DropdownList.Size = UDim2.new(1, 0, 0, 210)
  1070.                 DropdownList.CanvasSize = UDim2.new(0, 0, 0, 0)
  1071.                 DropdownList.ScrollBarThickness = 3
  1072.                 DropdownList.AutomaticCanvasSize = Enum.AutomaticSize.Y
  1073.  
  1074.                 local DropdownLineTop = Instance.new("Frame")
  1075.  
  1076.                 local DropdownLineBottom = Instance.new("Frame")
  1077.  
  1078.                 DropdownLineTop.Parent = Tsd
  1079.                 DropdownLineTop.AnchorPoint = Vector2.new(0.5, 0)
  1080.                 DropdownLineTop.BackgroundColor3 = Color3.fromRGB(44, 44, 44)
  1081.                 DropdownLineTop.BorderSizePixel = 0
  1082.                 DropdownLineTop.Position = UDim2.new(0.5, 0, 0, 54)
  1083.                 DropdownLineTop.Size = UDim2.new(1, 0, 0, 1)
  1084.  
  1085.                 DropdownLineBottom.Parent = Tsd
  1086.                 DropdownLineBottom.AnchorPoint = Vector2.new(0.5, 0)
  1087.                 DropdownLineBottom.BackgroundColor3 = Color3.fromRGB(44, 44, 44)
  1088.                 DropdownLineBottom.BorderSizePixel = 0
  1089.                 DropdownLineBottom.Position = UDim2.new(0.5, 0, 0, 265)
  1090.                 DropdownLineBottom.Size = UDim2.new(1, 0, 0, 1)
  1091.  
  1092.  
  1093.                 UIListLayout.Parent = DropdownList
  1094.                 UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
  1095.                 UIListLayout.Padding = UDim.new(0, 0)
  1096.                 UIListLayout.HorizontalAlignment = Enum.HorizontalAlignment.Center
  1097.  
  1098.                 ignd.Name = "ignd"
  1099.                 ignd.Parent = DropdownList
  1100.                 ignd.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1101.                 ignd.BackgroundTransparency = 1.000
  1102.                 ignd.BorderSizePixel = 0
  1103.                 ignd.LayoutOrder = -999
  1104.  
  1105.                 ignd2.Name = "ignd2"
  1106.                 ignd2.Parent = DropdownList
  1107.                 ignd2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1108.                 ignd2.BackgroundTransparency = 1.000
  1109.                 ignd2.BorderSizePixel = 0
  1110.                 ignd2.LayoutOrder = 9999
  1111.  
  1112.                 DropdownBox.MouseButton1Click:Connect(function()
  1113.                     TweenService:Create(ImageLabel,TweenInfo.new(0.3),{Rotation = 180}):Play()
  1114.                     TweenService:Create(FadeBackgroundFrame,TweenInfo.new(0.3),{BackgroundTransparency = 0.3}):Play()
  1115.                     Tsd:TweenPosition(UDim2.new(0.5,0,0.5,0),"Out","Quart",0.3)
  1116.                 end)
  1117.  
  1118.                 local Drop = {}
  1119.                 local function NewSelectable(Text,val)
  1120.  
  1121.                     local SelectableButton = Instance.new("TextButton")
  1122.                     local SecFrame = Instance.new("Frame")
  1123.                     local SelectableText = Instance.new("TextLabel")
  1124.                     local SelectableCorner = Instance.new("UICorner")
  1125.                     local IsSelectableChoosed = Instance.new("BoolValue",SelectableButton)
  1126.  
  1127.                     SelectableButton.Name = Text
  1128.                     SelectableButton.Parent = DropdownList
  1129.                     SelectableButton.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1130.                     SelectableButton.BackgroundTransparency = 1
  1131.                     SelectableButton.BorderSizePixel = 0
  1132.                     SelectableButton.Position = UDim2.new(0.0412844047, 0, 0, 0)
  1133.                     SelectableButton.Size = UDim2.new(1, 0, 0, 40)
  1134.                     SelectableButton.AutoButtonColor = false
  1135.                     SelectableButton.Font = Enum.Font.SourceSansSemibold
  1136.                     SelectableButton.Text = ""
  1137.                     SelectableButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  1138.                     SelectableButton.TextSize = 16.000
  1139.  
  1140.                     SelectableText.Name = "SelectableText"
  1141.                     SelectableText.Parent = SelectableButton
  1142.                     SelectableText.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1143.                     SelectableText.BackgroundTransparency = 1.000
  1144.                     SelectableText.BorderSizePixel = 0
  1145.                     SelectableText.Position = UDim2.new(0.0799999982, 0, 0, 0)
  1146.                     SelectableText.Size = UDim2.new(0.920000017, 0, 1, 0)
  1147.                     SelectableText.Font = Enum.Font.SourceSansSemibold
  1148.                     SelectableText.Text = "    " .. Text
  1149.                     SelectableText.TextColor3 = Color3.fromRGB(255, 255, 255)
  1150.                     SelectableText.TextSize = 18.000
  1151.                     SelectableText.TextWrapped = true
  1152.                     SelectableText.TextXAlignment = Enum.TextXAlignment.Left
  1153.  
  1154.                     SelectableCorner.Parent = SelectableButton
  1155.                     SelectableCorner.CornerRadius = UDim.new(0,3)
  1156.  
  1157.                     SecFrame.Parent = SelectableButton
  1158.                     SecFrame.AnchorPoint = Vector2.new(0.5, 0)
  1159.                     SecFrame.BackgroundColor3 = Color3.fromRGB(44, 44, 44)
  1160.                     SecFrame.BorderSizePixel = 0
  1161.                     SecFrame.Position = UDim2.new(0.5, 24, 1, 0)
  1162.                     SecFrame.Size = UDim2.new(1, 0, 0, 1)
  1163.  
  1164.  
  1165.  
  1166.                     local ChoosedCircle = Instance.new("Frame")
  1167.                     local InnerCircle = Instance.new("ImageButton")
  1168.                     local ChoosedCircleCorner = Instance.new("UICorner")
  1169.                     local ChoosedCircleStroke = Instance.new("UIStroke")
  1170.  
  1171.                     ChoosedCircle.Name = "ChoosedCircle"
  1172.                     ChoosedCircle.Parent = SelectableButton
  1173.                     ChoosedCircle.AnchorPoint = Vector2.new(0,0.5)
  1174.                     ChoosedCircle.BackgroundColor3 = Color3.fromRGB(0, 85, 255)
  1175.                     ChoosedCircle.BackgroundTransparency = 1.000
  1176.                     ChoosedCircle.BorderSizePixel = 0
  1177.                     ChoosedCircle.Position = UDim2.new(0, 5, 0.5, 0)
  1178.                     ChoosedCircle.Size = UDim2.new(0, 16, 0, 16)
  1179.  
  1180.                     InnerCircle.Name = "InnerCircle"
  1181.                     InnerCircle.Parent = ChoosedCircle
  1182.                     InnerCircle.AnchorPoint = Vector2.new(0.5, 0.5)
  1183.                     InnerCircle.BackgroundColor3 = Color3.fromRGB(0, 123, 255)
  1184.                     InnerCircle.BackgroundTransparency = 1.000
  1185.                     InnerCircle.BorderSizePixel = 0
  1186.                     InnerCircle.Position = UDim2.new(0.5, 0, 0.5, 0)
  1187.                     InnerCircle.Size = UDim2.new(0, 0, 0, 0)
  1188.                     InnerCircle.Image = "rbxassetid://3926305904"
  1189.                     InnerCircle.ImageRectOffset = Vector2.new(204, 484)
  1190.                     InnerCircle.ImageRectSize = Vector2.new(36, 36)
  1191.                     InnerCircle.ImageTransparency = 0
  1192.  
  1193.  
  1194.                     ChoosedCircleCorner.CornerRadius = UDim.new(0, 100)
  1195.                     ChoosedCircleCorner.Name = "ChoosedCircleCorner"
  1196.                     ChoosedCircleCorner.Parent = ChoosedCircle
  1197.  
  1198.                     ChoosedCircleStroke.Parent = ChoosedCircle
  1199.                     ChoosedCircleStroke.Name = "CircleStroke"
  1200.                     ChoosedCircleStroke.ApplyStrokeMode = Enum.ApplyStrokeMode.Border
  1201.                     ChoosedCircleStroke.LineJoinMode = Enum.LineJoinMode.Round
  1202.                     ChoosedCircleStroke.Thickness = 1.3
  1203.                     ChoosedCircleStroke.Transparency = 0
  1204.                     ChoosedCircleStroke.Color = Color3.fromRGB(44, 44, 44)
  1205.  
  1206.  
  1207.                     IsSelectableChoosed.Name = "IsChoosedVal"
  1208.  
  1209.                     SelectableButton.MouseButton1Click:Connect(function()
  1210.                         if not IsMulti then
  1211.                             IsSelectableChoosed.Value = true
  1212.                             spawn(function() func(Text,val) end)
  1213.                             InnerCircle:TweenSize(UDim2.new(0,12,0,12),"In","Sine",0.15,true)
  1214.                             TweenService:Create(ChoosedCircle,TweenInfo.new(0.15),{BackgroundTransparency = 0}):Play()
  1215.                             TweenService:Create(ChoosedCircleStroke,TweenInfo.new(0.15),{Thickness = 0}):Play()
  1216.                             for i,v in next,DropdownList:GetDescendants() do
  1217.                                 if v.Name == "IsChoosedVal" and v.Parent.Name ~= Text then
  1218.                                     v.Value = nil
  1219.                                     TweenService:Create(v.Parent.ChoosedCircle.CircleStroke,TweenInfo.new(0.15),{Thickness = 1.3}):Play()
  1220.                                     TweenService:Create(v.Parent.ChoosedCircle,TweenInfo.new(0.15),{BackgroundTransparency = 1}):Play()
  1221.                                     v.Parent.ChoosedCircle.InnerCircle:TweenSize(UDim2.new(0,0,0,0),"Out","Sine",0.15,true)
  1222.                                     TweenService:Create(v.Parent,TweenInfo.new(0.25),{BackgroundTransparency = 1,BackgroundColor3 = Color3.fromRGB(255, 255, 255)}):Play()
  1223.                                 end
  1224.                             end
  1225.                         else
  1226.                             spawn(function() func(Text,IsSelectableChoosed.Value) end)
  1227.                             if IsSelectableChoosed.Value then
  1228.                                 IsSelectableChoosed.Value = false
  1229.                                 InnerCircle:TweenSize(UDim2.new(0,0,0,0),"In","Sine",0.15,true)
  1230.                                 TweenService:Create(ChoosedCircle,TweenInfo.new(0.15),{BackgroundTransparency = 1}):Play()
  1231.                                 TweenService:Create(ChoosedCircleStroke,TweenInfo.new(0.15),{Thickness = 1.3}):Play()
  1232.                             else
  1233.                                 IsSelectableChoosed.Value = true
  1234.                                 InnerCircle:TweenSize(UDim2.new(0,12,0,12),"In","Sine",0.15,true)
  1235.                                 TweenService:Create(ChoosedCircle,TweenInfo.new(0.15),{BackgroundTransparency = 0}):Play()
  1236.                                 TweenService:Create(ChoosedCircleStroke,TweenInfo.new(0.15),{Thickness = 0}):Play()
  1237.                             end
  1238.                         end
  1239.                     end)
  1240.  
  1241.                     SelectableButton.MouseEnter:Connect(function()
  1242.                         TweenService:Create(SelectableButton,TweenInfo.new(0.25),{BackgroundTransparency = 0.96}):Play()
  1243.                     end)
  1244.  
  1245.                     SelectableButton.MouseLeave:Connect(function()
  1246.                         TweenService:Create(SelectableButton,TweenInfo.new(0.25),{BackgroundTransparency = 1}):Play()
  1247.                     end)
  1248.                 end
  1249.  
  1250.                 for _,str in next,Selectables do
  1251.                     if not IsMulti then
  1252.                         NewSelectable(tostring(_),str)
  1253.                     else
  1254.                         NewSelectable(tostring(_))
  1255.                     end
  1256.                 end
  1257.  
  1258.                 function Drop.Refresh(TableToRefresh)
  1259.                     print('updated')
  1260.                     for i,v in next,DropdownList:GetChildren() do
  1261.                         if v.ClassName ~= "UIListLayout" then
  1262.                             v:Destroy()
  1263.                         end
  1264.                     end
  1265.                     if not IsMulti then
  1266.                         NewSelectable(tostring(_),str)
  1267.                     else
  1268.                         NewSelectable(tostring(_))
  1269.                     end
  1270.                 end
  1271.                 return Drop;
  1272.             end
  1273.             function InSection.NewButton(btnText,func)
  1274.  
  1275.                 local Button = Instance.new("TextButton")
  1276.                 local SecFrame = Instance.new("Frame")
  1277.                 local ButtonText = Instance.new("TextLabel")
  1278.                 local ButtonCorner = Instance.new("UICorner")
  1279.  
  1280.                 Button.Name = btnText
  1281.                 Button.Parent = SectionElements
  1282.                 Button.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1283.                 Button.BackgroundTransparency = 1
  1284.                 Button.BorderSizePixel = 0
  1285.                 Button.Position = UDim2.new(0.0412844047, 0, 0, 0)
  1286.                 Button.Size = UDim2.new(1, 0, 0, 40)
  1287.                 Button.AutoButtonColor = false
  1288.                 Button.Font = Enum.Font.SourceSansSemibold
  1289.                 Button.Text = ""
  1290.                 Button.TextColor3 = Color3.fromRGB(255, 255, 255)
  1291.                 Button.TextSize = 19.000
  1292.  
  1293.                 ButtonText.Name = "ButtonText"
  1294.                 ButtonText.Parent = Button
  1295.                 ButtonText.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1296.                 ButtonText.BackgroundTransparency = 1.000
  1297.                 ButtonText.BorderSizePixel = 0
  1298.                 ButtonText.Position = UDim2.new(0.05,0, 0, 0)
  1299.                 ButtonText.Size = UDim2.new(1, 0, 1, 0)
  1300.                 ButtonText.Font = Enum.Font.SourceSansSemibold
  1301.                 ButtonText.Text = btnText
  1302.                 ButtonText.TextColor3 = Color3.fromRGB(255, 255, 255)
  1303.                 ButtonText.TextSize = 18
  1304.                 ButtonText.TextWrapped = true
  1305.                 ButtonText.TextXAlignment = Enum.TextXAlignment.Left
  1306.  
  1307.                 ButtonCorner.Parent = Button
  1308.                 ButtonCorner.CornerRadius = UDim.new(0,3)
  1309.  
  1310.                 SecFrame.Parent = Button
  1311.                 SecFrame.AnchorPoint = Vector2.new(0.5, 0)
  1312.                 SecFrame.BackgroundColor3 = Color3.fromRGB(44, 44, 44)
  1313.                 SecFrame.BorderSizePixel = 0
  1314.                 SecFrame.Position = UDim2.new(0.53, 0, 1, 0)
  1315.                 SecFrame.Size = UDim2.new(1, 0, 0, 1)
  1316.  
  1317.                 local IsMouseOn = false
  1318.  
  1319.                 Button.MouseButton1Click:Connect(function()
  1320.                     spawn(function() func() end)
  1321.                     if not IsMouseOn then
  1322.                         TweenService:Create(Button,TweenInfo.new(0.25),{BackgroundTransparency = 1,BackgroundColor3 = Color3.fromRGB(255,255,255)}):Play()
  1323.                     else
  1324.                         TweenService:Create(Button,TweenInfo.new(0.25),{BackgroundTransparency = 0.98,BackgroundColor3 = Color3.fromRGB(255,255,255)}):Play()
  1325.                     end
  1326.                 end)
  1327.  
  1328.                 Button.MouseButton1Down:Connect(function()
  1329.                     TweenService:Create(Button,TweenInfo.new(0.25),{BackgroundTransparency = 0.3,BackgroundColor3 = Color3.fromRGB(1, 124, 255)}):Play()
  1330.                 end)
  1331.  
  1332.                 Button.MouseEnter:Connect(function()
  1333.                     IsMouseOn = true
  1334.                     TweenService:Create(Button,TweenInfo.new(0.25),{BackgroundTransparency = 0.98}):Play()
  1335.                 end)
  1336.  
  1337.                 Button.MouseLeave:Connect(function()
  1338.                     IsMouseOn = false
  1339.                     TweenService:Create(Button,TweenInfo.new(0.25),{BackgroundTransparency = 1}):Play()
  1340.                 end)
  1341.             end
  1342.  
  1343.             local Ignore_2 = Instance.new("Frame")
  1344.  
  1345.             Ignore_2.Name = "ign"
  1346.             Ignore_2.Parent = SectionElements
  1347.             Ignore_2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1348.             Ignore_2.Size = UDim2.new(0, 0, 0, 3)
  1349.             Ignore_2.BackgroundTransparency = 1
  1350.             Ignore_2.BorderSizePixel = 0
  1351.             Ignore_2.LayoutOrder = 9999
  1352.  
  1353.             local Ignore_3 = Instance.new("Frame")
  1354.  
  1355.             Ignore_3.Name = "ign"
  1356.             Ignore_3.Parent = SectionElements
  1357.             Ignore_3.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1358.             Ignore_3.Size = UDim2.new(0, 0, 0, 0)
  1359.             Ignore_3.BackgroundTransparency = 1
  1360.             Ignore_3.BorderSizePixel = 0
  1361.             Ignore_3.LayoutOrder = -9999
  1362.             return InSection;
  1363.         end
  1364.         return ElementsLib;
  1365.     end
  1366.     return Tabs;
  1367. end
  1368. return UILibrary;
Add Comment
Please, Sign In to add comment