Advertisement
rrixh

jsjsjssj

Jan 2nd, 2025 (edited)
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 80.99 KB | None | 0 0
  1.  --WIZARD UI (modified) --
  2. local UserInputService = game:GetService("UserInputService")
  3.     local TweenService = game:GetService("TweenService")
  4.     local RunService = game:GetService("RunService")
  5. _G.originalToggleKolor = Color3.new(1, 0.341176, 0.341176)
  6. _G.togKolor = getgenv().togKolor or Color3.new(0.341176, 0.6, 0.341176)
  7.  
  8.     local Mouse = game:GetService("Players").LocalPlayer:GetMouse()
  9.  
  10.     local RainbowModeColorValue = 0
  11.     local ColorPickerZIndex = 1
  12.  
  13.     local RainbowModeColorValue = 0
  14.     local ColorPickerZIndex = 1
  15.  
  16.     local WindowPosition = 0
  17.  
  18. if game:GetService("CoreGui"):FindFirstChild("WizardLibrary") then  game:GetService("CoreGui"):FindFirstChild("WizardLibrary"):Destroy()
  19. end
  20.  
  21.     local WizardLibrary = Instance.new("ScreenGui")
  22.     local Container = Instance.new("Frame")
  23.  
  24.     WizardLibrary.Name = "WizardLibrary"
  25.     WizardLibrary.Parent = game:GetService("CoreGui")
  26.  
  27.     Container.Name = "Container"
  28.     Container.Parent = WizardLibrary
  29.     Container.BackgroundColor3 = Color3.new(1, 1, 1)
  30.     Container.BackgroundTransparency = 1
  31.     Container.Size = UDim2.new(0, 100, 0, 100)
  32.  
  33.     UserInputService.InputBegan:Connect(function(input)
  34.         if input.KeyCode == Enum.KeyCode.RightControl then
  35.             CoastifiedLibrary.Enabled = not CoastifiedLibrary.Enabled
  36.         end
  37.     end)
  38.  
  39.     function Dragging(instancename)
  40.         local dragging = nil
  41.         local dragInput = nil
  42.         local dragStart = nil
  43.         local startPos = nil
  44.  
  45.         local function update(input)
  46.             local delta = input.Position - dragStart
  47.             instancename.Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y)
  48.         end
  49.  
  50.         instancename.InputBegan:Connect(function(input)
  51.             if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
  52.                 dragging = true
  53.                 dragStart = input.Position
  54.                 startPos = instancename.Position
  55.                
  56.                 input.Changed:Connect(function()
  57.                     if input.UserInputState == Enum.UserInputState.End then
  58.                         dragging = false
  59.                     end
  60.                 end)
  61.             end
  62.         end)
  63.  
  64.         instancename.InputChanged:Connect(function(input)
  65.             if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then
  66.                 dragInput = input
  67.             end
  68.         end)
  69.  
  70.         UserInputService.InputChanged:Connect(function(input)
  71.             if input == dragInput and dragging then
  72.                 update(input)
  73.             end
  74.         end)
  75.     end
  76.  
  77.     local function RemoveSpaces(str)
  78.         return str:gsub(" ", "")
  79.     end
  80.  
  81.     coroutine.wrap(function()
  82.         while wait() do
  83.             RainbowModeColorValue = RainbowModeColorValue + 1/255
  84.             if RainbowModeColorValue >= 1 then
  85.                 RainbowModeColorValue = 0
  86.             end
  87.         end
  88.     end)()
  89.  
  90.  
  91.     local Library = {}
  92.  
  93.     function Library:NewWindow(name)
  94.         local Window = Instance.new("ImageLabel")
  95.         local Topbar = Instance.new("Frame")
  96.         local WindowToggle = Instance.new("TextButton")
  97.         local WindowTitle = Instance.new("TextLabel")
  98.         local BottomRoundCover = Instance.new("Frame")
  99.         local Body = Instance.new("ImageLabel")
  100.         local Sorter = Instance.new("UIListLayout")
  101.         local TopbarBodyCover = Instance.new("Frame")
  102.  
  103.         local WindowName = RemoveSpaces(name)
  104.  
  105.         WindowPosition = WindowPosition + 2
  106.  
  107.         local BodyYSize = 35
  108.         local IsTabOpen = true
  109.  
  110.         local function ExtendBodySize(value)
  111.             BodyYSize = BodyYSize + value
  112.  
  113.             TweenService:Create(Body, TweenInfo.new(0.5, Enum.EasingStyle.Quart, Enum.EasingDirection.Out), {Size = UDim2.new(0, 170, 0, BodyYSize)}):Play()
  114.         end
  115.  
  116.         local function UnExtendBodySize(value)
  117.             BodyYSize = BodyYSize - value
  118.  
  119.             TweenService:Create(Body, TweenInfo.new(0.5, Enum.EasingStyle.Quart, Enum.EasingDirection.Out), {Size = UDim2.new(0, 170, 0, BodyYSize)}):Play()
  120.         end
  121.  
  122.        
  123.         Window.Name = (WindowName .. "Window")
  124.         Window.Parent = Container
  125.         Window.BackgroundColor3 = Color3.new(0.0980392, 0.0980392, 0.0980392)
  126.         Window.BackgroundTransparency = 1
  127.         Window.Position = UDim2.new(WindowPosition, -100, 3, -265)
  128.         Window.Size = UDim2.new(0, 170, 0, 30)
  129.         Window.ZIndex = 2
  130.         Window.Image = "rbxassetid://3570695787"
  131.         Window.ImageColor3 = Color3.new(0.0980392, 0.0980392, 0.0980392)
  132.         Window.ScaleType = Enum.ScaleType.Slice
  133.         Window.SliceCenter = Rect.new(100, 100, 100, 100)
  134.         Window.SliceScale =  0.05
  135.  
  136.         Topbar.Name = "Topbar"
  137.         Topbar.Parent = Window
  138.         Topbar.BackgroundColor3 = Color3.new(1, 1, 1)
  139.         Topbar.BackgroundTransparency = 1
  140.         Topbar.BorderSizePixel = 0
  141.         Topbar.Size = UDim2.new(0, 170, 0, 30)
  142.         Topbar.ZIndex = 2
  143.  
  144.         WindowToggle.Name = "WindowToggle"
  145.         WindowToggle.Parent = Topbar
  146.         WindowToggle.BackgroundColor3 = Color3.new(1, 1, 1)
  147.         WindowToggle.BackgroundTransparency = 1
  148.         WindowToggle.Position = UDim2.new(0.822450161, 0, 0, 0)
  149.         WindowToggle.Size = UDim2.new(0, 30, 0, 30)
  150.         WindowToggle.ZIndex = 2
  151.         WindowToggle.Font = Enum.Font.SourceSansSemibold
  152.         WindowToggle.Text = "-"
  153.         WindowToggle.TextColor3 = Color3.new(1, 1, 1)
  154.         WindowToggle.TextSize = 20
  155.         WindowToggle.TextWrapped = true
  156.  
  157.         WindowToggle.MouseButton1Down:Connect(function()
  158.             if not IsTabOpen then
  159.                 IsTabOpen = true
  160.                 TweenService:Create(WindowToggle, TweenInfo.new(0.4, Enum.EasingStyle.Quart, Enum.EasingDirection.Out), {TextTransparency = 1}):Play()
  161.  
  162.                 WindowToggle.Text = "-"
  163.                 WindowToggle.TextSize = 20
  164.                 WindowToggle.Visible = false
  165.    
  166.                 repeat wait() until WindowToggle.TextTransparency == 1
  167.                 WindowToggle.Visible = true
  168.                 TweenService:Create(WindowToggle, TweenInfo.new(0.4, Enum.EasingStyle.Quart, Enum.EasingDirection.Out), {TextTransparency = 0}):Play()
  169.             elseif IsTabOpen then
  170.                 IsTabOpen = false
  171.                 TweenService:Create(WindowToggle, TweenInfo.new(0.4, Enum.EasingStyle.Quart, Enum.EasingDirection.Out), {TextTransparency = 1}):Play()
  172.            
  173.                 WindowToggle.Text = "v"
  174.                 WindowToggle.TextSize = 14
  175.                 WindowToggle.Visible = false      
  176.  
  177.                 repeat wait() until WindowToggle.TextTransparency == 1
  178.                 WindowToggle.Visible = true
  179.                 TweenService:Create(WindowToggle, TweenInfo.new(0.4, Enum.EasingStyle.Quart, Enum.EasingDirection.Out), {TextTransparency = 0}):Play()
  180.             end
  181.         end)
  182.  
  183.         WindowTitle.Name = "WindowTitle"
  184.         WindowTitle.Parent = Topbar
  185.         WindowTitle.BackgroundColor3 = Color3.new(1, 1, 1)
  186.         WindowTitle.BackgroundTransparency = 1
  187.         WindowTitle.Size = UDim2.new(0, 170, 0, 30)
  188.         WindowTitle.ZIndex = 2
  189.         WindowTitle.Font = Enum.Font.SourceSansBold
  190.         WindowTitle.Text = name
  191.         WindowTitle.TextColor3 = Color3.new(1, 1, 1)
  192.         WindowTitle.TextSize = 17
  193.  
  194.         BottomRoundCover.Name = "BottomRoundCover"
  195.         BottomRoundCover.Parent = Topbar
  196.         BottomRoundCover.BackgroundColor3 = Color3.new(0.0980392, 0.0980392, 0.0980392)
  197.         BottomRoundCover.BorderSizePixel = 0
  198.         BottomRoundCover.Position = UDim2.new(0, 0, 0.833333313, 0)
  199.         BottomRoundCover.Size = UDim2.new(0, 170, 0, 5)
  200.         BottomRoundCover.ZIndex = 2
  201.  
  202.         Body.Name = "Body"
  203.         Body.Parent = Window
  204.         Body.BackgroundColor3 = Color3.new(0.137255, 0.137255, 0.137255)
  205.         Body.BackgroundTransparency = 1
  206.         Body.ClipsDescendants = true
  207.         Body.Size = UDim2.new(0, 170, 0, BodyYSize)
  208.         Body.Image = "rbxassetid://3570695787"
  209.         Body.ImageColor3 = Color3.new(0.137255, 0.137255, 0.137255)
  210.         Body.ScaleType = Enum.ScaleType.Slice
  211.         Body.SliceCenter = Rect.new(100, 100, 100, 100)
  212.         Body.SliceScale =  0.05
  213.  
  214.         Sorter.Name = "Sorter"
  215.         Sorter.Parent = Body
  216.         Sorter.SortOrder = Enum.SortOrder.LayoutOrder
  217.  
  218.         TopbarBodyCover.Name = "TopbarBodyCover"
  219.         TopbarBodyCover.Parent = Body
  220.         TopbarBodyCover.BackgroundColor3 = Color3.new(1, 1, 1)
  221.         TopbarBodyCover.BackgroundTransparency = 1
  222.         TopbarBodyCover.BorderSizePixel = 0
  223.         TopbarBodyCover.Size = UDim2.new(0, 170, 0, 30)
  224.  
  225.         Dragging(Window)
  226.  
  227.         local Sections = {}
  228.  
  229.         function Sections:NewSection(name)
  230.             local Section1Holder = Instance.new("Frame")
  231.             local SectionInfo = Instance.new("Frame")
  232.             local SectionToggle = Instance.new("TextButton")
  233.             local SectionTitle = Instance.new("TextLabel")
  234.             local Layout = Instance.new("UIListLayout")
  235.  
  236.             local SectionName = RemoveSpaces(name)
  237.             local SectionToggleText = "v"
  238.             local SectionYSize = 30
  239.             local IsSectionOpen = false
  240.  
  241.             local function ExtendSectionSize(value)
  242.                 SectionYSize = SectionYSize + value
  243.        
  244.                 TweenService:Create(Section1Holder, TweenInfo.new(0.5, Enum.EasingStyle.Quart, Enum.EasingDirection.Out), {Size = UDim2.new(0, 170, 0, SectionYSize)}):Play()
  245.             end
  246.        
  247.             local function UnExtendSectionSize(value)
  248.                 SectionYSize = SectionYSize - value
  249.        
  250.                 TweenService:Create(Section1Holder, TweenInfo.new(0.5, Enum.EasingStyle.Quart, Enum.EasingDirection.Out), {Size = UDim2.new(0, 170, 0, SectionYSize)}):Play()
  251.             end
  252.  
  253.             Section1Holder.Name = (SectionName .. "Section")
  254.             Section1Holder.Parent = Body
  255.             Section1Holder.BackgroundColor3 = Color3.new(0.176471, 0.176471, 0.176471)
  256.             Section1Holder.BorderSizePixel = 0
  257.             Section1Holder.ClipsDescendants = true
  258.             Section1Holder.Size = UDim2.new(0, 170, 0, SectionYSize)
  259.            
  260.             ExtendBodySize(30)
  261.  
  262.             SectionInfo.Name = "SectionInfo"
  263.             SectionInfo.Parent = Section1Holder
  264.             SectionInfo.BackgroundColor3 = Color3.new(1, 1, 1)
  265.             SectionInfo.BackgroundTransparency = 1
  266.             SectionInfo.Size = UDim2.new(0, 170, 0, 30)
  267.            
  268.             SectionToggle.Name = "SectionToggle"
  269.             SectionToggle.Parent = SectionInfo
  270.             SectionToggle.BackgroundColor3 = Color3.new(1, 1, 1)
  271.             SectionToggle.BackgroundTransparency = 1
  272.             SectionToggle.Position = UDim2.new(0.822450161, 0, 0, 0)
  273.             SectionToggle.Size = UDim2.new(0, 30, 0, 30)
  274.             SectionToggle.ZIndex = 2
  275.             SectionToggle.Font = Enum.Font.SourceSansSemibold
  276.             SectionToggle.Text = SectionToggleText
  277.             SectionToggle.TextColor3 = Color3.new(1, 1, 1)
  278.             SectionToggle.TextSize = 14
  279.             SectionToggle.TextWrapped = true
  280.            
  281.             SectionTitle.Name = "SectionTitle"
  282.             SectionTitle.Parent = SectionInfo
  283.             SectionTitle.BackgroundColor3 = Color3.new(1, 1, 1)
  284.             SectionTitle.BackgroundTransparency = 1
  285.             SectionTitle.BorderSizePixel = 0
  286.             SectionTitle.Position = UDim2.new(0.052941177, 0, 0, 0)
  287.             SectionTitle.Size = UDim2.new(0, 125, 0, 30)
  288.             SectionTitle.Font = Enum.Font.SourceSansBold
  289.             SectionTitle.Text = name
  290.             SectionTitle.TextColor3 = Color3.new(1, 1, 1)
  291.             SectionTitle.TextSize = 17
  292.             SectionTitle.TextXAlignment = Enum.TextXAlignment.Left
  293.            
  294.             Layout.Name = "Layout"
  295.             Layout.Parent = Section1Holder
  296.             Layout.SortOrder = Enum.SortOrder.LayoutOrder
  297.  
  298.             WindowToggle.MouseButton1Down:Connect(function()
  299.                 if not IsTabOpen then
  300.                     ExtendBodySize(30)
  301.                     SectionToggle.Text = SectionToggleText
  302.                     TweenService:Create(Section1Holder, TweenInfo.new(0.5, Enum.EasingStyle.Quart, Enum.EasingDirection.Out), {BackgroundTransparency = 0}):Play()
  303.                 elseif IsTabOpen then
  304.                     UnExtendBodySize(30)
  305.                     SectionToggle.Text = ""
  306.                     TweenService:Create(Section1Holder, TweenInfo.new(0.5, Enum.EasingStyle.Quart, Enum.EasingDirection.Out), {BackgroundTransparency = 1}):Play()
  307.                 end
  308.             end)
  309.  
  310.             SectionToggle.MouseButton1Down:Connect(function()
  311.                 if not IsSectionOpen then
  312.                     IsSectionOpen = true
  313.                     SectionToggleText = "-"
  314.  
  315.                     TweenService:Create(SectionToggle, TweenInfo.new(0.4, Enum.EasingStyle.Quart, Enum.EasingDirection.Out), {TextTransparency = 1}):Play()
  316.                     TweenService:Create(WindowToggle, TweenInfo.new(0.4, Enum.EasingStyle.Quart, Enum.EasingDirection.Out), {TextTransparency = 1}):Play()
  317.  
  318.                     SectionToggle.Text = SectionToggleText
  319.                     SectionToggle.TextSize = 20
  320.                     SectionToggle.Visible = false
  321.                     WindowToggle.Visible = false
  322.  
  323.                     repeat wait() until SectionToggle.TextTransparency == 1 and WindowToggle.TextTransparency == 1
  324.                     SectionToggle.Visible = true
  325.                     WindowToggle.Visible = true
  326.                     TweenService:Create(SectionToggle, TweenInfo.new(0.4, Enum.EasingStyle.Quart, Enum.EasingDirection.Out), {TextTransparency = 0}):Play()
  327.                     TweenService:Create(WindowToggle, TweenInfo.new(0.4, Enum.EasingStyle.Quart, Enum.EasingDirection.Out), {TextTransparency = 0}):Play()
  328.                 elseif IsSectionOpen then
  329.                     IsSectionOpen = false
  330.                     SectionToggleText = "v"
  331.  
  332.                     TweenService:Create(SectionToggle, TweenInfo.new(0.4, Enum.EasingStyle.Quart, Enum.EasingDirection.Out), {TextTransparency = 1}):Play()
  333.                     TweenService:Create(WindowToggle, TweenInfo.new(0.4, Enum.EasingStyle.Quart, Enum.EasingDirection.Out), {TextTransparency = 1}):Play()
  334.  
  335.                     SectionToggle.Text = SectionToggleText
  336.                     SectionToggle.TextSize = 14
  337.                     SectionToggle.Visible = false
  338.                     WindowToggle.Visible = false
  339.  
  340.                     repeat wait() until SectionToggle.TextTransparency == 1 and WindowToggle.TextTransparency == 1
  341.                     SectionToggle.Visible = true
  342.                     WindowToggle.Visible = true
  343.                     TweenService:Create(SectionToggle, TweenInfo.new(0.4, Enum.EasingStyle.Quart, Enum.EasingDirection.Out), {TextTransparency = 0}):Play()
  344.                     TweenService:Create(WindowToggle, TweenInfo.new(0.4, Enum.EasingStyle.Quart, Enum.EasingDirection.Out), {TextTransparency = 0}):Play()
  345.                 end
  346.             end)
  347.  
  348.             local LibraryElements = {}
  349.  
  350.             function LibraryElements:Toggle(name, action)
  351.                 local ToggleHolder = Instance.new("Frame")
  352.                 local ToggleTitle = Instance.new("TextLabel")
  353.                 local ToggleBackground = Instance.new("ImageLabel")
  354.                 local ToggleButton = Instance.new("ImageButton")
  355.            
  356.                 local ToggleName = RemoveSpaces(name)
  357.                 local Toggled = false
  358.  
  359.                 ToggleHolder.Name = (ToggleName .. "ToggleHolder")
  360.                 ToggleHolder.Parent = Section1Holder
  361.                 ToggleHolder.BackgroundColor3 = Color3.new(0.137255, 0.137255, 0.137255)
  362.                 ToggleHolder.BorderSizePixel = 0
  363.                 ToggleHolder.Size = UDim2.new(0, 170, 0, 30)
  364.            
  365.                 ToggleTitle.Name = "ToggleTitle"
  366.                 ToggleTitle.Parent = ToggleHolder
  367.                 ToggleTitle.BackgroundColor3 = Color3.new(1, 1, 1)
  368.                 ToggleTitle.BackgroundTransparency = 1
  369.                 ToggleTitle.BorderSizePixel = 0
  370.                 ToggleTitle.Position = UDim2.new(0.052941177, 0, 0, 0)
  371.                 ToggleTitle.Size = UDim2.new(0, 125, 0, 30)
  372.                 ToggleTitle.Font = Enum.Font.SourceSansBold
  373.                 ToggleTitle.Text = name
  374.                 ToggleTitle.TextColor3 = Color3.new(1, 1, 1)
  375.                 ToggleTitle.TextSize = 17
  376.                 ToggleTitle.TextXAlignment = Enum.TextXAlignment.Left
  377.            
  378.                 ToggleBackground.Name = "ToggleBackground"
  379.                 ToggleBackground.Parent = ToggleHolder
  380.                 ToggleBackground.BackgroundColor3 = Color3.new(1, 1, 1)
  381.                 ToggleBackground.BackgroundTransparency = 1
  382.                 ToggleBackground.BorderSizePixel = 0
  383.                 ToggleBackground.Position = UDim2.new(0.847058833, 0, 0.166666672, 0)
  384.                 ToggleBackground.Size = UDim2.new(0, 20, 0, 20)
  385.                 ToggleBackground.Image = "rbxassetid://3570695787"
  386.                 ToggleBackground.ImageColor3 = Color3.new(0.254902, 0.254902, 0.254902)
  387.            
  388.                 ToggleButton.Name = "ToggleButton"
  389.                 ToggleButton.Parent = ToggleBackground
  390.                 ToggleButton.BackgroundColor3 = Color3.new(1, 1, 1)
  391.                 ToggleButton.BackgroundTransparency = 1
  392.                 ToggleButton.Position = UDim2.new(0, 2, 0, 2)
  393.                 ToggleButton.Size = UDim2.new(0, 16, 0, 16)
  394.                 ToggleButton.Image = "rbxassetid://3570695787"
  395.  ToggleButton.ImageColor3 = _G.togKolor
  396.                 ToggleButton.ImageTransparency = 1
  397.  
  398.                 ToggleButton.MouseButton1Down:Connect(function()   
  399.                     Toggled = not Toggled
  400.                
  401.                     if Toggled then
  402.                         TweenService:Create(ToggleButton, TweenInfo.new(0.5, Enum.EasingStyle.Quart, Enum.EasingDirection.Out), {ImageTransparency = 0}):Play()
  403.                     elseif not Toggled then
  404.                         TweenService:Create(ToggleButton, TweenInfo.new(0.5, Enum.EasingStyle.Quart, Enum.EasingDirection.Out), {ImageTransparency = 1}):Play()
  405.                     end
  406.  
  407.                     action(Toggled)
  408.                 end)
  409.  
  410.                 SectionToggle.MouseButton1Down:Connect(function()
  411.                     if not IsSectionOpen then
  412.                         ExtendSectionSize(30)
  413.                         ExtendBodySize(30)
  414.                     elseif IsSectionOpen then
  415.                         UnExtendSectionSize(30)
  416.                         UnExtendBodySize(30)
  417.                     end
  418.                 end)
  419.  
  420.                 WindowToggle.MouseButton1Down:Connect(function()
  421.                     if not IsTabOpen then
  422.                         if IsSectionOpen then
  423.                             ExtendBodySize(30)
  424.                             TweenService:Create(SectionToggle, TweenInfo.new(0, Enum.EasingStyle.Quart, Enum.EasingDirection.Out), {Rotation = 360}):Play()
  425.                             TweenService:Create(Section1Holder, TweenInfo.new(0.5, Enum.EasingStyle.Quart, Enum.EasingDirection.Out), {BackgroundTransparency = 0}):Play()
  426.                         elseif not IsSectionOpen then
  427.                             TweenService:Create(Section1Holder, TweenInfo.new(0.5, Enum.EasingStyle.Quart, Enum.EasingDirection.Out), {BackgroundTransparency = 0}):Play()
  428.                         end
  429.  
  430.                        
  431.                     elseif IsTabOpen then
  432.                         if IsSectionOpen then
  433.                             UnExtendBodySize(30)
  434.                             TweenService:Create(SectionToggle, TweenInfo.new(0, Enum.EasingStyle.Quart, Enum.EasingDirection.Out), {Rotation = 0}):Play()
  435.                             TweenService:Create(Section1Holder, TweenInfo.new(0.5, Enum.EasingStyle.Quart, Enum.EasingDirection.Out), {BackgroundTransparency = 1}):Play()
  436.                         elseif not IsSectionOpen then
  437.                             TweenService:Create(Section1Holder, TweenInfo.new(0.5, Enum.EasingStyle.Quart, Enum.EasingDirection.Out), {BackgroundTransparency = 1}):Play()
  438.                         end
  439.                     end
  440.  
  441.                     TweenService:Create(SectionToggle, TweenInfo.new(0.4, Enum.EasingStyle.Quart, Enum.EasingDirection.Out), {TextTransparency = 1}):Play()
  442.            
  443.                     SectionToggle.Visible = false
  444.            
  445.                     repeat wait() until SectionToggle.TextTransparency == 1
  446.                     SectionToggle.Visible = true
  447.                     TweenService:Create(SectionToggle, TweenInfo.new(0.4, Enum.EasingStyle.Quart, Enum.EasingDirection.Out), {TextTransparency = 0}):Play()
  448.                 end)
  449.             end
  450.  
  451.             function LibraryElements:Slider(name, minimumvalue, maximumvalue, startvalue, precisevalue, action)
  452.                 local SliderHolder = Instance.new("Frame")
  453.                 local SliderTitle = Instance.new("TextLabel")
  454.                 local SliderValueHolder = Instance.new("ImageLabel")
  455.                 local SliderValue = Instance.new("TextLabel")
  456.                 local SliderBackground = Instance.new("ImageLabel")
  457.                 local Slider = Instance.new("ImageLabel")
  458.  
  459.                 local SliderName = RemoveSpaces(name)
  460.                 local Dragging = false
  461.                 local PreciseSliderValue = precisevalue
  462.  
  463.                 SliderHolder.Name = (SliderName .. "SliderHolder")
  464.                 SliderHolder.Parent = Section1Holder
  465.                 SliderHolder.BackgroundColor3 = Color3.new(0.137255, 0.137255, 0.137255)
  466.                 SliderHolder.BorderSizePixel = 0
  467.                 SliderHolder.Size = UDim2.new(0, 170, 0, 30)
  468.  
  469.                 SliderTitle.Name = "SliderTitle"
  470.                 SliderTitle.Parent = SliderHolder
  471.                 SliderTitle.BackgroundColor3 = Color3.new(1, 1, 1)
  472.                 SliderTitle.BackgroundTransparency = 1
  473.                 SliderTitle.BorderSizePixel = 0
  474.                 SliderTitle.Position = UDim2.new(0.052941177, 0, 0, 0)
  475.                 SliderTitle.Size = UDim2.new(0, 125, 0, 15)
  476.                 SliderTitle.Font = Enum.Font.SourceSansSemibold
  477.                 SliderTitle.Text = name
  478.                 SliderTitle.TextColor3 = Color3.new(1, 1, 1)
  479.                 SliderTitle.TextSize = 17
  480.                 SliderTitle.TextXAlignment = Enum.TextXAlignment.Left
  481.  
  482.                 SliderValueHolder.Name = "SliderValueHolder"
  483.                 SliderValueHolder.Parent = SliderHolder
  484.                 SliderValueHolder.BackgroundColor3 = Color3.new(0.254902, 0.254902, 0.254902)
  485.                 SliderValueHolder.BackgroundTransparency = 1
  486.                 SliderValueHolder.Position = UDim2.new(0.747058809, 0, 0, 0)
  487.                 SliderValueHolder.Size = UDim2.new(0, 35, 0, 15)
  488.                 SliderValueHolder.Image = "rbxassetid://3570695787"
  489.                 SliderValueHolder.ImageColor3 = Color3.new(0.254902, 0.254902, 0.254902)
  490.                 SliderValueHolder.ImageTransparency = 0.5
  491.                 SliderValueHolder.ScaleType = Enum.ScaleType.Slice
  492.                 SliderValueHolder.SliceCenter = Rect.new(100, 100, 100, 100)
  493.                 SliderValueHolder.SliceScale = 0.02
  494.  
  495.                 SliderValue.Name = "SliderValue"
  496.                 SliderValue.Parent = SliderValueHolder
  497.                 SliderValue.BackgroundColor3 = Color3.new(1, 1, 1)
  498.                 SliderValue.BackgroundTransparency = 1
  499.                 SliderValue.Size = UDim2.new(0, 35, 0, 15)
  500.                 SliderValue.Font = Enum.Font.SourceSansSemibold
  501.                 SliderValue.Text = tostring(startvalue or PreciseSliderValue and tonumber(string.format("%.2f", startvalue)))
  502.                 SliderValue.TextColor3 = Color3.new(1, 1, 1)
  503.                 SliderValue.TextSize = 14
  504.  
  505.                 SliderBackground.Name = "SliderBackground"
  506.                 SliderBackground.Parent = SliderHolder
  507.                 SliderBackground.BackgroundColor3 = Color3.new(0.254902, 0.254902, 0.254902)
  508.                 SliderBackground.BackgroundTransparency = 1
  509.                 SliderBackground.Position = UDim2.new(0.0529999994, 0, 0.649999976, 0)
  510.                 SliderBackground.Selectable = true
  511.                 SliderBackground.Size = UDim2.new(0, 153, 0, 5)
  512.                 SliderBackground.Image = "rbxassetid://3570695787"
  513.                 SliderBackground.ImageColor3 = Color3.new(0.254902, 0.254902, 0.254902)
  514.                 SliderBackground.ImageTransparency = 0.5
  515.                 SliderBackground.ScaleType = Enum.ScaleType.Slice
  516.                 SliderBackground.SliceCenter = Rect.new(100, 100, 100, 100)
  517.                 SliderBackground.ClipsDescendants = true
  518.                 SliderBackground.SliceScale = 0.02
  519.  
  520.                 Slider.Name = "Slider"
  521.                 Slider.Parent = SliderBackground
  522.                 Slider.BackgroundColor3 = Color3.new(1, 1, 1)
  523.                 Slider.BackgroundTransparency = 1
  524.                 Slider.Size = UDim2.new(((startvalue or minimumvalue) - minimumvalue) / (maximumvalue - minimumvalue), 0, 0, 5)
  525.                 Slider.Image = "rbxassetid://3570695787"
  526.                 Slider.ScaleType = Enum.ScaleType.Slice
  527.                 Slider.SliceCenter = Rect.new(100, 100, 100, 100)
  528.                 Slider.SliceScale = 0.02
  529.  
  530.                 local function Sliding(input)
  531.                     local Pos = UDim2.new(math.clamp((input.Position.X - SliderBackground.AbsolutePosition.X) / SliderBackground.AbsoluteSize.X, 0, 1), 0, 1.15, 0)
  532.                     TweenService:Create(Slider, TweenInfo.new(0.25, Enum.EasingStyle.Quart, Enum.EasingDirection.Out), {Size = Pos}):Play()
  533.  
  534.                     local NonSliderPreciseValue = math.floor(((Pos.X.Scale * maximumvalue) / maximumvalue) * (maximumvalue - minimumvalue) + minimumvalue)
  535.                     local SliderPreciseValue = ((Pos.X.Scale * maximumvalue) / maximumvalue) * (maximumvalue - minimumvalue) + minimumvalue
  536.        
  537.                     local Value = (PreciseSliderValue and SliderPreciseValue or NonSliderPreciseValue)
  538.                     Value = tonumber(string.format("%.2f", Value))
  539.        
  540.                     SliderValue.Text = tostring(Value)
  541.                     action(Value)
  542.                 end
  543.            
  544.                 SliderBackground.InputBegan:Connect(function(input)
  545.                     if input.UserInputType == Enum.UserInputType.MouseButton1 then
  546.                         Dragging = true
  547.                     end
  548.                 end)
  549.                
  550.                 SliderBackground.InputEnded:Connect(function(input)
  551.                     if input.UserInputType == Enum.UserInputType.MouseButton1 then
  552.                         Dragging = false
  553.                     end
  554.                 end)
  555.                
  556.                 SliderBackground.InputBegan:Connect(function(input)
  557.                     if input.UserInputType == Enum.UserInputType.MouseButton1 then
  558.                         Sliding(input)
  559.                     end
  560.                 end)
  561.            
  562.                 UserInputService.InputChanged:Connect(function(input)
  563.                     if Dragging and input.UserInputType == Enum.UserInputType.MouseMovement then
  564.                         Sliding(input)
  565.                     end
  566.                 end)
  567.  
  568.                 SectionToggle.MouseButton1Down:Connect(function()
  569.                     if not IsSectionOpen then
  570.                         ExtendSectionSize(30)
  571.                         ExtendBodySize(30)
  572.                     elseif IsSectionOpen then
  573.                         UnExtendSectionSize(30)
  574.                         UnExtendBodySize(30)
  575.                     end
  576.                 end)
  577.  
  578.                 WindowToggle.MouseButton1Down:Connect(function()
  579.                     if not IsTabOpen then
  580.                         if IsSectionOpen then
  581.                             ExtendBodySize(30)
  582.                             TweenService:Create(SectionToggle, TweenInfo.new(0, Enum.EasingStyle.Quart, Enum.EasingDirection.Out), {Rotation = 360}):Play()
  583.                             TweenService:Create(Section1Holder, TweenInfo.new(0.5, Enum.EasingStyle.Quart, Enum.EasingDirection.Out), {BackgroundTransparency = 0}):Play()
  584.                         elseif not IsSectionOpen then
  585.                             TweenService:Create(Section1Holder, TweenInfo.new(0.5, Enum.EasingStyle.Quart, Enum.EasingDirection.Out), {BackgroundTransparency = 0}):Play()
  586.                         end
  587.  
  588.                        
  589.                     elseif IsTabOpen then
  590.                         if IsSectionOpen then
  591.                             UnExtendBodySize(30)
  592.                             TweenService:Create(SectionToggle, TweenInfo.new(0, Enum.EasingStyle.Quart, Enum.EasingDirection.Out), {Rotation = 0}):Play()
  593.                             TweenService:Create(Section1Holder, TweenInfo.new(0.5, Enum.EasingStyle.Quart, Enum.EasingDirection.Out), {BackgroundTransparency = 1}):Play()
  594.                         elseif not IsSectionOpen then
  595.                             TweenService:Create(Section1Holder, TweenInfo.new(0.5, Enum.EasingStyle.Quart, Enum.EasingDirection.Out), {BackgroundTransparency = 1}):Play()
  596.                         end
  597.                     end
  598.  
  599.                     TweenService:Create(SectionToggle, TweenInfo.new(0.4, Enum.EasingStyle.Quart, Enum.EasingDirection.Out), {TextTransparency = 1}):Play()
  600.            
  601.                     SectionToggle.Visible = false
  602.            
  603.                     repeat wait() until SectionToggle.TextTransparency == 1
  604.                     SectionToggle.Visible = true
  605.                     TweenService:Create(SectionToggle, TweenInfo.new(0.4, Enum.EasingStyle.Quart, Enum.EasingDirection.Out), {TextTransparency = 0}):Play()
  606.                 end)
  607.             end
  608.  
  609.             function LibraryElements:Kolorpixker(name, presetcolor, action)
  610.                 local ColorPickerHolder = Instance.new("Frame")
  611.                 local RainbowToggleHolder = Instance.new("Frame")
  612.                 local RainbowTitle = Instance.new("TextLabel")
  613.                 local RainbowBackground = Instance.new("ImageLabel")
  614.                 local RainbowToggleButton = Instance.new("ImageButton")
  615.                 local ColorPickerTitle = Instance.new("TextLabel")
  616.                 local ColorPickerToggle = Instance.new("ImageButton")
  617.                 local ColorPickerMain = Instance.new("ImageLabel")
  618.                 local ColorValueR = Instance.new("TextLabel")
  619.                 local ColorValueRRound = Instance.new("ImageLabel")
  620.                 local ColorValueB = Instance.new("TextLabel")
  621.                 local ColorValueBRound = Instance.new("ImageLabel")
  622.                 local ColorValueG = Instance.new("TextLabel")
  623.                 local ColorValueGRound = Instance.new("ImageLabel")
  624.                 local RoundHueHolder = Instance.new("ImageLabel")
  625.                 local ColorHue = Instance.new("ImageLabel")
  626.                 local HueMarker = Instance.new("Frame")
  627.                 local RoundSaturationHolder = Instance.new("ImageLabel")
  628.                 local ColorSelector = Instance.new("ImageLabel")
  629.                 local SaturationMarker = Instance.new("ImageLabel")
  630.  
  631.                 local ColorPickerName = RemoveSpaces(name)
  632.  
  633.                 ColorPickerZIndex = ColorPickerZIndex + 1
  634.  
  635.                 local ColorPickerOpen = false
  636.                 local RainbowColorMode = false
  637.                
  638.                 local Color = nil
  639.                 local ColorValue = 0
  640.                 local RainbowColor = nil
  641.  
  642.                 ColorPickerHolder.Name = (ColorPickerName .. "ColorPickerHolder")
  643.                 ColorPickerHolder.Parent = Section1Holder
  644.                 ColorPickerHolder.BackgroundColor3 = Color3.new(0.137255, 0.137255, 0.137255)
  645.                 ColorPickerHolder.BorderSizePixel = 0
  646.                 ColorPickerHolder.Size = UDim2.new(0, 170, 0, 30)
  647.  
  648.                 ColorPickerTitle.Name = "ColorPickerTitle"
  649.                 ColorPickerTitle.Parent = ColorPickerHolder
  650.                 ColorPickerTitle.BackgroundColor3 = Color3.new(1, 1, 1)
  651.                 ColorPickerTitle.BackgroundTransparency = 1
  652.                 ColorPickerTitle.BorderSizePixel = 0
  653.                 ColorPickerTitle.Position = UDim2.new(0.052941177, 0, 0, 0)
  654.                 ColorPickerTitle.Size = UDim2.new(0, 125, 0, 30)
  655.                 ColorPickerTitle.Font = Enum.Font.SourceSansBold
  656.                 ColorPickerTitle.Text = name
  657.                 ColorPickerTitle.TextColor3 = Color3.new(1, 1, 1)
  658.                 ColorPickerTitle.TextSize = 17
  659.                 ColorPickerTitle.TextXAlignment = Enum.TextXAlignment.Left
  660.                
  661.                 ColorPickerToggle.Name = "ColorPickerToggle"
  662.                 ColorPickerToggle.Parent = ColorPickerHolder
  663.                 ColorPickerToggle.BackgroundColor3 = Color3.new(1, 1, 1)
  664.                 ColorPickerToggle.BackgroundTransparency = 1
  665.                 ColorPickerToggle.Position = UDim2.new(0.822000027, 0, 0.166999996, 0)
  666.                 ColorPickerToggle.Size = UDim2.new(0, 22, 0, 20)
  667.                 ColorPickerToggle.Image = "rbxassetid://3570695787"
  668.                 ColorPickerToggle.ImageColor3 = presetcolor
  669.                 ColorPickerToggle.ScaleType = Enum.ScaleType.Slice
  670.                 ColorPickerToggle.SliceCenter = Rect.new(100, 100, 100, 100)
  671.                 ColorPickerToggle.SliceScale = 0.04
  672.                
  673.                 ColorPickerMain.Name = "ColorPickerMain"
  674.                 ColorPickerMain.Parent = ColorPickerHolder
  675.                 ColorPickerMain.BackgroundColor3 = Color3.new(0.137255, 0.137255, 0.137255)
  676.                 ColorPickerMain.BackgroundTransparency = 1
  677.                 ColorPickerMain.ClipsDescendants = true
  678.                 ColorPickerMain.BorderSizePixel = 0
  679.                 ColorPickerMain.Position = UDim2.new(1.04705882, 0, -1.36666667, 0)
  680.                 ColorPickerMain.Size = UDim2.new(0, 0, 0, 175)
  681.                 ColorPickerMain.Image = "rbxassetid://3570695787"
  682.                 ColorPickerMain.ImageColor3 = Color3.new(0.137255, 0.137255, 0.137255)
  683.                 ColorPickerMain.ScaleType = Enum.ScaleType.Slice
  684.                 ColorPickerMain.SliceCenter = Rect.new(100, 100, 100, 100)
  685.                 ColorPickerMain.SliceScale = 0.05
  686.                 ColorPickerMain.ZIndex = 1 + ColorPickerZIndex
  687.                
  688.                 RainbowToggleHolder.Name = "RainbowToggleHolder"
  689.                 RainbowToggleHolder.Parent = ColorPickerMain
  690.                 RainbowToggleHolder.BackgroundColor3 = Color3.new(0.137255, 0.137255, 0.137255)
  691.                 RainbowToggleHolder.BackgroundTransparency = 1
  692.                 RainbowToggleHolder.BorderSizePixel = 0
  693.                 RainbowToggleHolder.Position = UDim2.new(0, 0, 0.819999993, 0)
  694.                 RainbowToggleHolder.Size = UDim2.new(0, 170, 0, 30)
  695.                 RainbowToggleHolder.ZIndex = 1 + ColorPickerZIndex
  696.  
  697.                 RainbowTitle.Name = "RainbowTitle"
  698.                 RainbowTitle.Parent = RainbowToggleHolder
  699.                 RainbowTitle.BackgroundColor3 = Color3.new(1, 1, 1)
  700.                 RainbowTitle.BackgroundTransparency = 1
  701.                 RainbowTitle.BorderSizePixel = 0
  702.                 RainbowTitle.Position = UDim2.new(0.052941177, 0, 0, 0)
  703.                 RainbowTitle.Size = UDim2.new(0, 125, 0, 30)
  704.                 RainbowTitle.Font = Enum.Font.SourceSansBold
  705.                 RainbowTitle.Text = "Rainbow"
  706.                 RainbowTitle.TextColor3 = Color3.new(1, 1, 1)
  707.                 RainbowTitle.TextSize = 17
  708.                 RainbowTitle.TextXAlignment = Enum.TextXAlignment.Left
  709.                 RainbowTitle.ZIndex = 1 + ColorPickerZIndex
  710.  
  711.                 RainbowBackground.Name = "RainbowBackground"
  712.                 RainbowBackground.Parent = RainbowToggleHolder
  713.                 RainbowBackground.BackgroundColor3 = Color3.new(1, 1, 1)
  714.                 RainbowBackground.BackgroundTransparency = 1
  715.                 RainbowBackground.BorderSizePixel = 0
  716.                 RainbowBackground.Position = UDim2.new(0.847058833, 0, 0.166666672, 0)
  717.                 RainbowBackground.Size = UDim2.new(0, 20, 0, 20)
  718.                 RainbowBackground.Image = "rbxassetid://3570695787"
  719.                 RainbowBackground.ImageColor3 = Color3.new(0.254902, 0.254902, 0.254902)
  720.                 RainbowBackground.ZIndex = 1 + ColorPickerZIndex
  721.  
  722.                 RainbowToggleButton.Name = "RainbowToggleButton"
  723.                 RainbowToggleButton.Parent = RainbowBackground
  724.                 RainbowToggleButton.BackgroundColor3 = Color3.new(1, 1, 1)
  725.                 RainbowToggleButton.BackgroundTransparency = 1
  726.                 RainbowToggleButton.Position = UDim2.new(0, 2, 0, 2)
  727.                 RainbowToggleButton.Size = UDim2.new(0, 16, 0, 16)
  728.                 RainbowToggleButton.Image = "rbxassetid://3570695787"
  729.                 RainbowToggleButton.ImageColor3 = Color3.new(1, 0.341176, 0.341176)
  730.                 RainbowToggleButton.ImageTransparency = 1
  731.                 RainbowToggleButton.ZIndex = 1 + ColorPickerZIndex
  732.  
  733.                 ColorValueR.Name = "ColorValueR"
  734.                 ColorValueR.Parent = ColorPickerMain
  735.                 ColorValueR.BackgroundColor3 = Color3.new(0.254902, 0.254902, 0.254902)
  736.                 ColorValueR.BackgroundTransparency = 1
  737.                 ColorValueR.BorderSizePixel = 0
  738.                 ColorValueR.ClipsDescendants = true
  739.                 ColorValueR.Position = UDim2.new(0, 7, 0, 127)
  740.                 ColorValueR.Size = UDim2.new(0, 50, 0, 16)
  741.                 ColorValueR.ZIndex = 2 + ColorPickerZIndex
  742.                 ColorValueR.Font = Enum.Font.SourceSansBold
  743.                 ColorValueR.Text = "R: 000"
  744.                 ColorValueR.TextColor3 = Color3.new(1, 1, 1)
  745.                 ColorValueR.TextSize = 14
  746.  
  747.                 ColorValueRRound.Name = "ColorValueRRound"
  748.                 ColorValueRRound.Parent = ColorValueR
  749.                 ColorValueRRound.Active = true
  750.                 ColorValueRRound.AnchorPoint = Vector2.new(0.5, 0.5)
  751.                 ColorValueRRound.BackgroundColor3 = Color3.new(1, 1, 1)
  752.                 ColorValueRRound.BackgroundTransparency = 1
  753.                 ColorValueRRound.Position = UDim2.new(0.5, 0, 0.5, 0)
  754.                 ColorValueRRound.Selectable = true
  755.                 ColorValueRRound.Size = UDim2.new(1, 0, 1, 0)
  756.                 ColorValueRRound.Image = "rbxassetid://3570695787"
  757.                 ColorValueRRound.ImageColor3 = Color3.new(0.254902, 0.254902, 0.254902)
  758.                 ColorValueRRound.ScaleType = Enum.ScaleType.Slice
  759.                 ColorValueRRound.SliceCenter = Rect.new(100, 100, 100, 100)
  760.                 ColorValueRRound.SliceScale = 0.04
  761.                 ColorValueRRound.ZIndex = 1 + ColorPickerZIndex
  762.  
  763.                 ColorValueG.Name = "ColorValueG"
  764.                 ColorValueG.Parent = ColorPickerMain
  765.                 ColorValueG.BackgroundColor3 = Color3.new(0.254902, 0.254902, 0.254902)
  766.                 ColorValueG.BackgroundTransparency = 1
  767.                 ColorValueG.BorderSizePixel = 0
  768.                 ColorValueG.ClipsDescendants = true
  769.                 ColorValueG.Position = UDim2.new(0, 60, 0, 127)
  770.                 ColorValueG.Size = UDim2.new(0, 51, 0, 16)
  771.                 ColorValueG.ZIndex = 2 + ColorPickerZIndex
  772.                 ColorValueG.Font = Enum.Font.SourceSansBold
  773.                 ColorValueG.Text = "G: 000"
  774.                 ColorValueG.TextColor3 = Color3.new(1, 1, 1)
  775.                 ColorValueG.TextSize = 14
  776.  
  777.                 ColorValueGRound.Name = "ColorValueGRound"
  778.                 ColorValueGRound.Parent = ColorValueG
  779.                 ColorValueGRound.Active = true
  780.                 ColorValueGRound.AnchorPoint = Vector2.new(0.5, 0.5)
  781.                 ColorValueGRound.BackgroundColor3 = Color3.new(1, 1, 1)
  782.                 ColorValueGRound.BackgroundTransparency = 1
  783.                 ColorValueGRound.Position = UDim2.new(0.5, 0, 0.5, 0)
  784.                 ColorValueGRound.Selectable = true
  785.                 ColorValueGRound.Size = UDim2.new(1, 0, 1, 0)
  786.                 ColorValueGRound.Image = "rbxassetid://3570695787"
  787.                 ColorValueGRound.ImageColor3 = Color3.new(0.254902, 0.254902, 0.254902)
  788.                 ColorValueGRound.ScaleType = Enum.ScaleType.Slice
  789.                 ColorValueGRound.SliceCenter = Rect.new(100, 100, 100, 100)
  790.                 ColorValueGRound.SliceScale = 0.04
  791.                 ColorValueGRound.ZIndex = 1 + ColorPickerZIndex
  792.  
  793.                 ColorValueB.Name = "ColorValueB"
  794.                 ColorValueB.Parent = ColorPickerMain
  795.                 ColorValueB.BackgroundColor3 = Color3.new(0.254902, 0.254902, 0.254902)
  796.                 ColorValueB.BackgroundTransparency = 1
  797.                 ColorValueB.BorderSizePixel = 0
  798.                 ColorValueB.ClipsDescendants = true
  799.                 ColorValueB.Position = UDim2.new(0, 114, 0, 127)
  800.                 ColorValueB.Size = UDim2.new(0, 50, 0, 16)
  801.                 ColorValueB.ZIndex = 2 + ColorPickerZIndex
  802.                 ColorValueB.Font = Enum.Font.SourceSansBold
  803.                 ColorValueB.Text = "B: 000"
  804.                 ColorValueB.TextColor3 = Color3.new(1, 1, 1)
  805.                 ColorValueB.TextSize = 14
  806.  
  807.                 ColorValueBRound.Name = "ColorValueBRound"
  808.                 ColorValueBRound.Parent = ColorValueB
  809.                 ColorValueBRound.Active = true
  810.                 ColorValueBRound.AnchorPoint = Vector2.new(0.5, 0.5)
  811.                 ColorValueBRound.BackgroundColor3 = Color3.new(1, 1, 1)
  812.                 ColorValueBRound.BackgroundTransparency = 1
  813.                 ColorValueBRound.Position = UDim2.new(0.5, 0, 0.5, 0)
  814.                 ColorValueBRound.Selectable = true
  815.                 ColorValueBRound.Size = UDim2.new(1, 0, 1, 0)
  816.                 ColorValueBRound.Image = "rbxassetid://3570695787"
  817.                 ColorValueBRound.ImageColor3 = Color3.new(0.254902, 0.254902, 0.254902)
  818.                 ColorValueBRound.ScaleType = Enum.ScaleType.Slice
  819.                 ColorValueBRound.SliceCenter = Rect.new(100, 100, 100, 100)
  820.                 ColorValueBRound.SliceScale = 0.04
  821.                 ColorValueBRound.ZIndex = 1 + ColorPickerZIndex
  822.  
  823.                 RoundHueHolder.Name = "RoundHueHolder"
  824.                 RoundHueHolder.Parent = ColorPickerMain
  825.                 RoundHueHolder.BackgroundColor3 = Color3.new(1, 1, 1)
  826.                 RoundHueHolder.BackgroundTransparency = 1
  827.                 RoundHueHolder.ClipsDescendants = true
  828.                 RoundHueHolder.Position = UDim2.new(0, 136, 0, 6)
  829.                 RoundHueHolder.Size = UDim2.new(0, 28, 0, 114)
  830.                 RoundHueHolder.ZIndex = 2 + ColorPickerZIndex
  831.                 RoundHueHolder.Image = "rbxassetid://4695575676"
  832.                 RoundHueHolder.ImageColor3 = Color3.new(0.137255, 0.137255, 0.137255)
  833.                 RoundHueHolder.ScaleType = Enum.ScaleType.Slice
  834.                 RoundHueHolder.SliceCenter = Rect.new(128, 128, 128, 128)
  835.                 RoundHueHolder.SliceScale = 0.05
  836.  
  837.                 ColorHue.Name = "ColorHue"
  838.                 ColorHue.Parent = RoundHueHolder
  839.                 ColorHue.BackgroundColor3 = Color3.new(1, 1, 1)
  840.                 ColorHue.BackgroundTransparency = 1
  841.                 ColorHue.BorderSizePixel = 0
  842.                 ColorHue.Size = UDim2.new(0, 28, 0, 114)
  843.                 ColorHue.Image = "http://www.roblox.com/asset/?id=4801885250"
  844.                 ColorHue.ScaleType = Enum.ScaleType.Crop
  845.                 ColorHue.ZIndex = 1 + ColorPickerZIndex
  846.  
  847.                 HueMarker.Name = "HueMarker"
  848.                 HueMarker.Parent = RoundHueHolder
  849.                 HueMarker.BackgroundColor3 = Color3.new(0.294118, 0.294118, 0.294118)
  850.                 HueMarker.BorderSizePixel = 0
  851.                 HueMarker.Position = UDim2.new(-0.25, 0, 0, 0)
  852.                 HueMarker.Size = UDim2.new(0, 42, 0, 5)
  853.                 HueMarker.ZIndex = 1 + ColorPickerZIndex
  854.  
  855.                 RoundSaturationHolder.Name = "RoundSaturationHolder"
  856.                 RoundSaturationHolder.Parent = ColorPickerMain
  857.                 RoundSaturationHolder.BackgroundColor3 = Color3.new(1, 1, 1)
  858.                 RoundSaturationHolder.BackgroundTransparency = 1
  859.                 RoundSaturationHolder.ClipsDescendants = true
  860.                 RoundSaturationHolder.Position = UDim2.new(0, 7, 0, 6)
  861.                 RoundSaturationHolder.Size = UDim2.new(0, 122, 0, 114)
  862.                 RoundSaturationHolder.ZIndex = 2 + ColorPickerZIndex
  863.                 RoundSaturationHolder.Image = "rbxassetid://4695575676"
  864.                 RoundSaturationHolder.ImageColor3 = Color3.new(0.137255, 0.137255, 0.137255)
  865.                 RoundSaturationHolder.ScaleType = Enum.ScaleType.Slice
  866.                 RoundSaturationHolder.SliceCenter = Rect.new(128, 128, 128, 128)
  867.                 RoundSaturationHolder.SliceScale = 0.05
  868.  
  869.                 ColorSelector.Name = "ColorSelector"
  870.                 ColorSelector.Parent = RoundSaturationHolder
  871.                 ColorSelector.BackgroundColor3 = presetcolor
  872.                 ColorSelector.BorderSizePixel = 0
  873.                 ColorSelector.Size = UDim2.new(0, 122, 0, 114)
  874.                 ColorSelector.Image = "rbxassetid://4805274903"
  875.                 ColorSelector.ZIndex = 1 + ColorPickerZIndex
  876.  
  877.                 SaturationMarker.Name = "SaturationMarker"
  878.                 SaturationMarker.Parent = RoundSaturationHolder
  879.                 SaturationMarker.BackgroundColor3 = Color3.new(1, 1, 1)
  880.                 SaturationMarker.BackgroundTransparency = 1
  881.                 SaturationMarker.Size = UDim2.new(0, 0, 0, 0)
  882.                 SaturationMarker.Image = "http://www.roblox.com/asset/?id=4805639000"
  883.                 SaturationMarker.ZIndex = 1 + ColorPickerZIndex
  884.  
  885.                 local function SetRGBValues()
  886.                     local RedValue, GreenValue, BlueValue = ColorPickerToggle.ImageColor3.r * 255, ColorPickerToggle.ImageColor3.g * 255, ColorPickerToggle.ImageColor3.b * 255
  887.  
  888.                     ColorValueR.Text = ("R: " .. math.floor(RedValue))
  889.                     ColorValueG.Text = ("G: " .. math.floor(GreenValue))
  890.                     ColorValueB.Text = ("B: " .. math.floor(BlueValue))
  891.                 end
  892.  
  893.                 SetRGBValues()
  894.  
  895.                 ColorPickerToggle.MouseButton1Down:Connect(function()
  896.                     if not ColorPickerOpen then
  897.                         ColorPickerOpen = true
  898.                         Body.ClipsDescendants = false
  899.                         Section1Holder.ClipsDescendants = false
  900.  
  901.                         TweenService:Create(ColorPickerMain, TweenInfo.new(0.75, Enum.EasingStyle.Quart, Enum.EasingDirection.Out), {Size = UDim2.new(0, 171, 0, 175)}):Play()
  902.                     elseif ColorPickerOpen then
  903.                         ColorPickerOpen = false
  904.                         TweenService:Create(ColorPickerMain, TweenInfo.new(0.75, Enum.EasingStyle.Quart, Enum.EasingDirection.Out), {Size = UDim2.new(0, 0, 0, 175)}):Play()
  905.                     end
  906.                 end)
  907.  
  908.                 local ColorData = {
  909.                     H = 1;
  910.                     S = 1;
  911.                     V = 1
  912.                 }
  913.  
  914.                 local Connection1 = nil
  915.                 local Connection2 = nil
  916.  
  917.                 local function GetXY(frame)
  918.                     local X, Y = Mouse.X - frame.AbsolutePosition.X, Mouse.Y - frame.AbsolutePosition.Y
  919.                     local MaxX, MaxY = frame.AbsoluteSize.X, frame.AbsoluteSize.Y
  920.                     X = math.clamp(X, 0, MaxX)
  921.                     Y = math.clamp(Y, 0, MaxY)
  922.                     return X / MaxX, Y / MaxY
  923.                 end
  924.  
  925.                 local function GetY(frame)
  926.                     local Y2 = Mouse.Y - frame.AbsolutePosition.Y
  927.                     MaxY2 = frame.AbsoluteSize.Y
  928.                     Y2 = math.clamp(Y2, -10, MaxY2)
  929.                     return Y2 / MaxY2
  930.                 end
  931.  
  932.                 local function Update()
  933.                     SetRGBValues()
  934.  
  935.                     Color = Color3.fromHSV(ColorData.H, ColorData.S, ColorData.V)
  936.  
  937.                     ColorPickerToggle.ImageColor3 = Color
  938.                     ColorSelector.BackgroundColor3 = Color3.fromHSV(ColorData.H, 1, 1)
  939.                     action(ColorPickerToggle.ImageColor3)
  940.                 end
  941.  
  942.                 ColorSelector.MouseLeave:Connect(function()
  943.                     if Connection1 then
  944.                         Connection1:Disconnect()
  945.                         Connection1 = nil
  946.                     end
  947.                     if Connection2 then
  948.                         Connection2:Disconnect()
  949.                         Connection2 = nil
  950.                     end
  951.                 end)
  952.  
  953.                 ColorHue.MouseLeave:Connect(function()
  954.                     if Connection1 then
  955.                         Connection1:Disconnect()
  956.                         Connection1 = nil
  957.                     end
  958.                     if Connection2 then
  959.                         Connection2:Disconnect()
  960.                         Connection2 = nil
  961.                     end
  962.                 end)
  963.  
  964.                 RainbowToggleButton.MouseButton1Down:Connect(function()
  965.                     if not RainbowColorMode then
  966.                         RainbowColorMode = true
  967.                         TweenService:Create(RainbowToggleButton, TweenInfo.new(0.5, Enum.EasingStyle.Quart, Enum.EasingDirection.Out), {ImageTransparency = 0}):Play()
  968.                     elseif RainbowColorMode then
  969.                         RainbowColorMode = false
  970.                         TweenService:Create(RainbowToggleButton, TweenInfo.new(0.5, Enum.EasingStyle.Quart, Enum.EasingDirection.Out), {ImageTransparency = 1}):Play()
  971.                     end
  972.  
  973.                     while RainbowColorMode do
  974.                         RainbowColor = Color3.fromHSV(RainbowModeColorValue, 1, 1)
  975.  
  976.                         ColorPickerToggle.ImageColor3 = RainbowColor
  977.                         ColorSelector.BackgroundColor3 = RainbowColor
  978.  
  979.                         action(RainbowColor)
  980.                         SetRGBValues()
  981.                         wait()
  982.                     end
  983.                 end)
  984.  
  985.                 ColorSelector.InputBegan:Connect(function(input)
  986.                     if input.UserInputType == Enum.UserInputType.MouseButton1 then
  987.                         if not RainbowColorMode then
  988.                             if Connection1 then
  989.                                 Connection1:Disconnect()
  990.                             end
  991.                             Connection1 = RunService.RenderStepped:Connect(function()
  992.                                 local X, Y = GetXY(RoundSaturationHolder)
  993.  
  994.                                 SaturationMarker.Position = UDim2.new(X, 0, Y, 0)
  995.                                 ColorData.S = X
  996.                                 ColorData.V = 1 - Y
  997.                                 Update()
  998.                             end)
  999.                         end
  1000.                     end
  1001.                 end)
  1002.  
  1003.                 ColorSelector.InputEnded:Connect(function(input)
  1004.                     if input.UserInputType == Enum.UserInputType.MouseButton1 then
  1005.                         if Connection1 then
  1006.                             Connection1:Disconnect()
  1007.                         end
  1008.                     end
  1009.                 end)
  1010.  
  1011.                 ColorHue.InputBegan:Connect(function(input)
  1012.                     if input.UserInputType == Enum.UserInputType.MouseButton1 then
  1013.                         if not RainbowColorMode then
  1014.                             if Connection2 then
  1015.                                 Connection2:Disconnect()
  1016.                             end
  1017.  
  1018.                             Connection2 = RunService.RenderStepped:Connect(function()
  1019.                                 local X, Y = GetXY(RoundHueHolder)
  1020.                                 local Y2 = GetY(RoundHueHolder)
  1021.  
  1022.                                 ColorData.H = 1 - Y
  1023.                                 TweenService:Create(HueMarker, TweenInfo.new(0.25, Enum.EasingStyle.Quart, Enum.EasingDirection.Out), {Position = UDim2.new(-0.25, 0, Y2, 0)}):Play()
  1024.                                 Update()
  1025.                             end)
  1026.                         end
  1027.                     end
  1028.                 end)
  1029.  
  1030.                 ColorHue.InputEnded:Connect(function(input)
  1031.                     if input.UserInputType == Enum.UserInputType.MouseButton1 then
  1032.                         if Connection2 then
  1033.                             Connection2:Disconnect()
  1034.                         end
  1035.                     end
  1036.                 end)
  1037.  
  1038.                 SectionToggle.MouseButton1Down:Connect(function()
  1039.                     if not IsSectionOpen then
  1040.                         Body.ClipsDescendants = true
  1041.                         Section1Holder.ClipsDescendants = true
  1042.  
  1043.                         ExtendSectionSize(30)
  1044.                         ExtendBodySize(30)
  1045.                     elseif IsSectionOpen then
  1046.                         ColorPickerOpen = false
  1047.                         TweenService:Create(ColorPickerMain, TweenInfo.new(0.75, Enum.EasingStyle.Quart, Enum.EasingDirection.Out), {Size = UDim2.new(0, 0, 0, 175)}):Play()
  1048.  
  1049.                         Body.ClipsDescendants = true
  1050.                         Section1Holder.ClipsDescendants = true
  1051.  
  1052.                         UnExtendSectionSize(30)
  1053.                         UnExtendBodySize(30)
  1054.                     end
  1055.                 end)
  1056.  
  1057.                 WindowToggle.MouseButton1Down:Connect(function()
  1058.                     ColorPickerOpen = false
  1059.                     TweenService:Create(ColorPickerMain, TweenInfo.new(0.75, Enum.EasingStyle.Quart, Enum.EasingDirection.Out), {Size = UDim2.new(0, 0, 0, 175)}):Play()
  1060.  
  1061.                     Body.ClipsDescendants = true
  1062.                     Section1Holder.ClipsDescendants = true
  1063.  
  1064.                     if not IsTabOpen then
  1065.                         if IsSectionOpen then
  1066.                             ExtendBodySize(30)
  1067.                             TweenService:Create(SectionToggle, TweenInfo.new(0, Enum.EasingStyle.Quart, Enum.EasingDirection.Out), {Rotation = 360}):Play()
  1068.                             TweenService:Create(Section1Holder, TweenInfo.new(0.5, Enum.EasingStyle.Quart, Enum.EasingDirection.Out), {BackgroundTransparency = 0}):Play()
  1069.                         elseif not IsSectionOpen then
  1070.                             TweenService:Create(Section1Holder, TweenInfo.new(0.5, Enum.EasingStyle.Quart, Enum.EasingDirection.Out), {BackgroundTransparency = 0}):Play()
  1071.                         end
  1072.  
  1073.                        
  1074.                     elseif IsTabOpen then
  1075.                         if IsSectionOpen then
  1076.                             UnExtendBodySize(30)
  1077.                             TweenService:Create(SectionToggle, TweenInfo.new(0, Enum.EasingStyle.Quart, Enum.EasingDirection.Out), {Rotation = 0}):Play()
  1078.                             TweenService:Create(Section1Holder, TweenInfo.new(0.5, Enum.EasingStyle.Quart, Enum.EasingDirection.Out), {BackgroundTransparency = 1}):Play()
  1079.                         elseif not IsSectionOpen then
  1080.                             TweenService:Create(Section1Holder, TweenInfo.new(0.5, Enum.EasingStyle.Quart, Enum.EasingDirection.Out), {BackgroundTransparency = 1}):Play()
  1081.                         end
  1082.                     end
  1083.  
  1084.                     TweenService:Create(SectionToggle, TweenInfo.new(0.4, Enum.EasingStyle.Quart, Enum.EasingDirection.Out), {TextTransparency = 1}):Play()
  1085.            
  1086.                     SectionToggle.Visible = false
  1087.            
  1088.                     repeat wait() until SectionToggle.TextTransparency == 1
  1089.                     SectionToggle.Visible = true
  1090.                     TweenService:Create(SectionToggle, TweenInfo.new(0.4, Enum.EasingStyle.Quart, Enum.EasingDirection.Out), {TextTransparency = 0}):Play()
  1091.                 end)
  1092.             end
  1093.  
  1094.             function LibraryElements:Button(name, action)
  1095.                 local ButtonHolder = Instance.new("Frame")
  1096.                 local Button = Instance.new("TextButton")
  1097.                 local ButtonRound = Instance.new("ImageLabel")
  1098.  
  1099.                 local ButtonName = RemoveSpaces(name)
  1100.  
  1101.                 ButtonHolder.Name = (ButtonName .. "ButtonHolder")
  1102.                 ButtonHolder.Parent = Section1Holder
  1103.                 ButtonHolder.BackgroundColor3 = Color3.new(0.137255, 0.137255, 0.137255)
  1104.                 ButtonHolder.BorderSizePixel = 0
  1105.                 ButtonHolder.Size = UDim2.new(0, 170, 0, 30)
  1106.                
  1107.                 Button.Name = "Button"
  1108.                 Button.Parent = ButtonHolder
  1109.                 Button.BackgroundColor3 = Color3.new(0.254902, 0.254902, 0.254902)
  1110.                 Button.BackgroundTransparency = 1
  1111.                 Button.BorderSizePixel = 0
  1112.                 Button.Position = UDim2.new(0.052941177, 0, 0, 0)
  1113.                 Button.Size = UDim2.new(0, 153, 0, 24)
  1114.                 Button.ZIndex = 2
  1115.                 Button.AutoButtonColor = false
  1116.                 Button.Font = Enum.Font.SourceSansBold
  1117.                 Button.Text = name
  1118.                 Button.TextColor3 = Color3.new(1, 1, 1)
  1119.                 Button.TextSize = 14
  1120.                
  1121.                 ButtonRound.Name = "ButtonRound"
  1122.                 ButtonRound.Parent = Button
  1123.                 ButtonRound.Active = true
  1124.                 ButtonRound.AnchorPoint = Vector2.new(0.5, 0.5)
  1125.                 ButtonRound.BackgroundColor3 = Color3.new(1, 1, 1)
  1126.                 ButtonRound.BackgroundTransparency = 1
  1127.                 ButtonRound.BorderSizePixel = 0
  1128.                 ButtonRound.ClipsDescendants = true
  1129.                 ButtonRound.Position = UDim2.new(0.5, 0, 0.5, 0)
  1130.                 ButtonRound.Selectable = true
  1131.                 ButtonRound.Size = UDim2.new(1, 0, 1, 0)
  1132.                 ButtonRound.Image = "rbxassetid://3570695787"
  1133.                 ButtonRound.ImageColor3 = Color3.new(0.254902, 0.254902, 0.254902)
  1134.                 ButtonRound.ScaleType = Enum.ScaleType.Slice
  1135.                 ButtonRound.SliceCenter = Rect.new(100, 100, 100, 100)
  1136.                 ButtonRound.SliceScale = 0.04
  1137.  
  1138.                 Button.MouseButton1Down:Connect(function()
  1139.                     action(Button)
  1140.                 end)
  1141.                
  1142.                 SectionToggle.MouseButton1Down:Connect(function()
  1143.                     if not IsSectionOpen then
  1144.                         ExtendSectionSize(30)
  1145.                         ExtendBodySize(30)
  1146.                     elseif IsSectionOpen then
  1147.                         UnExtendSectionSize(30)
  1148.                         UnExtendBodySize(30)
  1149.                     end
  1150.                 end)
  1151.  
  1152.                 WindowToggle.MouseButton1Down:Connect(function()
  1153.                     if not IsTabOpen then
  1154.                         if IsSectionOpen then
  1155.                             ExtendBodySize(30)
  1156.                             TweenService:Create(SectionToggle, TweenInfo.new(0, Enum.EasingStyle.Quart, Enum.EasingDirection.Out), {Rotation = 360}):Play()
  1157.                             TweenService:Create(Section1Holder, TweenInfo.new(0.5, Enum.EasingStyle.Quart, Enum.EasingDirection.Out), {BackgroundTransparency = 0}):Play()
  1158.                         elseif not IsSectionOpen then
  1159.                             TweenService:Create(Section1Holder, TweenInfo.new(0.5, Enum.EasingStyle.Quart, Enum.EasingDirection.Out), {BackgroundTransparency = 0}):Play()
  1160.                         end
  1161.  
  1162.                        
  1163.                     elseif IsTabOpen then
  1164.                         if IsSectionOpen then
  1165.                             UnExtendBodySize(30)
  1166.                             TweenService:Create(SectionToggle, TweenInfo.new(0, Enum.EasingStyle.Quart, Enum.EasingDirection.Out), {Rotation = 0}):Play()
  1167.                             TweenService:Create(Section1Holder, TweenInfo.new(0.5, Enum.EasingStyle.Quart, Enum.EasingDirection.Out), {BackgroundTransparency = 1}):Play()
  1168.                         elseif not IsSectionOpen then
  1169.                             TweenService:Create(Section1Holder, TweenInfo.new(0.5, Enum.EasingStyle.Quart, Enum.EasingDirection.Out), {BackgroundTransparency = 1}):Play()
  1170.                         end
  1171.                     end
  1172.  
  1173.                     TweenService:Create(SectionToggle, TweenInfo.new(0.4, Enum.EasingStyle.Quart, Enum.EasingDirection.Out), {TextTransparency = 1}):Play()
  1174.            
  1175.                     SectionToggle.Visible = false
  1176.            
  1177.                     repeat wait() until SectionToggle.TextTransparency == 1
  1178.                     SectionToggle.Visible = true
  1179.                     TweenService:Create(SectionToggle, TweenInfo.new(0.4, Enum.EasingStyle.Quart, Enum.EasingDirection.Out), {TextTransparency = 0}):Play()
  1180.                 end)
  1181.             end
  1182.  
  1183.             function LibraryElements:Txtbox(name, action)
  1184.                 local TextBoxHolder = Instance.new("Frame")
  1185.                 local TextBox = Instance.new("TextBox")
  1186.                 local TextBoxRound = Instance.new("ImageLabel")
  1187.  
  1188.                 local TextBoxName = RemoveSpaces(name)
  1189.  
  1190.                 TextBoxHolder.Name = (TextBoxName .. "TextBoxHolder")
  1191.                 TextBoxHolder.Parent = Section1Holder
  1192.                 TextBoxHolder.BackgroundColor3 = Color3.new(0.137255, 0.137255, 0.137255)
  1193.                 TextBoxHolder.BorderSizePixel = 0
  1194.                 TextBoxHolder.Size = UDim2.new(0, 170, 0, 30)
  1195.                
  1196.                 TextBox.Parent = TextBoxHolder
  1197.                 TextBox.BackgroundColor3 = Color3.new(0.254902, 0.254902, 0.254902)
  1198.                 TextBox.BackgroundTransparency = 1
  1199.                 TextBox.ClipsDescendants = true
  1200.                 TextBox.Position = UDim2.new(0.0529999994, 0, 0, 0)
  1201.                 TextBox.Size = UDim2.new(0, 153, 0, 24)
  1202.                 TextBox.ZIndex = 2
  1203.                 TextBox.Font = Enum.Font.SourceSansBold
  1204.                 TextBox.PlaceholderText = name
  1205.                 TextBox.Text = ""
  1206.                 TextBox.TextColor3 = Color3.new(1, 1, 1)
  1207.                 TextBox.TextSize = 14
  1208.                
  1209.                 TextBoxRound.Name = "TextBoxRound"
  1210.                 TextBoxRound.Parent = TextBox
  1211.                 TextBoxRound.Active = true
  1212.                 TextBoxRound.AnchorPoint = Vector2.new(0.5, 0.5)
  1213.                 TextBoxRound.BackgroundColor3 = Color3.new(1, 1, 1)
  1214.                 TextBoxRound.BackgroundTransparency = 1
  1215.                 TextBoxRound.BorderSizePixel = 0
  1216.                 TextBoxRound.ClipsDescendants = true
  1217.                 TextBoxRound.Position = UDim2.new(0.5, 0, 0.5, 0)
  1218.                 TextBoxRound.Selectable = true
  1219.                 TextBoxRound.Size = UDim2.new(1, 0, 1, 0)
  1220.                 TextBoxRound.Image = "rbxassetid://3570695787"
  1221.                 TextBoxRound.ImageColor3 = Color3.new(0.254902, 0.254902, 0.254902)
  1222.                 TextBoxRound.ScaleType = Enum.ScaleType.Slice
  1223.                 TextBoxRound.SliceCenter = Rect.new(100, 100, 100, 100)
  1224.                 TextBoxRound.SliceScale = 0.04
  1225.  
  1226.                 TextBox.FocusLost:Connect(function(enterPressed)
  1227.                     if enterPressed then
  1228.                         action(TextBox.Text)
  1229.                     end
  1230.                 end)
  1231.  
  1232.                 SectionToggle.MouseButton1Down:Connect(function()
  1233.                     if not IsSectionOpen then
  1234.                         ExtendSectionSize(30)
  1235.                         ExtendBodySize(30)
  1236.                     elseif IsSectionOpen then
  1237.                         UnExtendSectionSize(30)
  1238.                         UnExtendBodySize(30)
  1239.                     end
  1240.                 end)
  1241.  
  1242.                 WindowToggle.MouseButton1Down:Connect(function()
  1243.                     if not IsTabOpen then
  1244.                         if IsSectionOpen then
  1245.                             ExtendBodySize(30)
  1246.                             TweenService:Create(SectionToggle, TweenInfo.new(0, Enum.EasingStyle.Quart, Enum.EasingDirection.Out), {Rotation = 360}):Play()
  1247.                             TweenService:Create(Section1Holder, TweenInfo.new(0.5, Enum.EasingStyle.Quart, Enum.EasingDirection.Out), {BackgroundTransparency = 0}):Play()
  1248.                         elseif not IsSectionOpen then
  1249.                             TweenService:Create(Section1Holder, TweenInfo.new(0.5, Enum.EasingStyle.Quart, Enum.EasingDirection.Out), {BackgroundTransparency = 0}):Play()
  1250.                         end
  1251.  
  1252.                        
  1253.                     elseif IsTabOpen then
  1254.                         if IsSectionOpen then
  1255.                             UnExtendBodySize(30)
  1256.                             TweenService:Create(SectionToggle, TweenInfo.new(0, Enum.EasingStyle.Quart, Enum.EasingDirection.Out), {Rotation = 0}):Play()
  1257.                             TweenService:Create(Section1Holder, TweenInfo.new(0.5, Enum.EasingStyle.Quart, Enum.EasingDirection.Out), {BackgroundTransparency = 1}):Play()
  1258.                         elseif not IsSectionOpen then
  1259.                             TweenService:Create(Section1Holder, TweenInfo.new(0.5, Enum.EasingStyle.Quart, Enum.EasingDirection.Out), {BackgroundTransparency = 1}):Play()
  1260.                         end
  1261.                     end
  1262.  
  1263.                     TweenService:Create(SectionToggle, TweenInfo.new(0.4, Enum.EasingStyle.Quart, Enum.EasingDirection.Out), {TextTransparency = 1}):Play()
  1264.            
  1265.                     SectionToggle.Visible = false
  1266.            
  1267.                     repeat wait() until SectionToggle.TextTransparency == 1
  1268.                     SectionToggle.Visible = true
  1269.                     TweenService:Create(SectionToggle, TweenInfo.new(0.4, Enum.EasingStyle.Quart, Enum.EasingDirection.Out), {TextTransparency = 0}):Play()
  1270.                 end)
  1271.             end
  1272.  
  1273.             function LibraryElements:List(name, options, presetoption, action)
  1274.                 local DropdownHolder = Instance.new("Frame")
  1275.                 local DropdownTitle = Instance.new("TextLabel")
  1276.                 local DropdownRound = Instance.new("ImageLabel")
  1277.                 local DropdownToggle = Instance.new("TextButton")
  1278.                 local DropdownMain = Instance.new("ImageLabel")
  1279.                 local ScrollingFrame = Instance.new("ScrollingFrame")
  1280.                 local ButtonLayout = Instance.new("UIListLayout")
  1281.  
  1282.                 local DropdownName = RemoveSpaces(name)
  1283.  
  1284.                 local StartingCanvasSize = 1
  1285.                 local StartScrollingFrame = false
  1286.  
  1287.                 local SelectedOptionName = options[presetoption]
  1288.                 local NumberOfOptions = 0
  1289.                 local DropdownYSize = 0
  1290.                 local IsDropdownWindowOpen = false
  1291.  
  1292.                 DropdownHolder.Name = (DropdownName .. "DropdownHolder")
  1293.                 DropdownHolder.Parent = Section1Holder
  1294.                 DropdownHolder.BackgroundColor3 = Color3.new(0.137255, 0.137255, 0.137255)
  1295.                 DropdownHolder.BorderSizePixel = 0
  1296.                 DropdownHolder.Size = UDim2.new(0, 170, 0, 30)
  1297.                
  1298.                 DropdownTitle.Name = "DropdownTitle"
  1299.                 DropdownTitle.Parent = DropdownHolder
  1300.                 DropdownTitle.BackgroundColor3 = Color3.new(0.254902, 0.254902, 0.254902)
  1301.                 DropdownTitle.BackgroundTransparency = 1
  1302.                 DropdownTitle.BorderSizePixel = 0
  1303.                 DropdownTitle.Position = UDim2.new(0.0529999994, 0, 0, 0)
  1304.                 DropdownTitle.Size = UDim2.new(0, 153, 0, 24)
  1305.                 DropdownTitle.ZIndex = 2
  1306.                 DropdownTitle.Font = Enum.Font.SourceSansBold
  1307.                 DropdownTitle.Text = SelectedOptionName
  1308.                 DropdownTitle.TextColor3 = Color3.new(1, 1, 1)
  1309.                 DropdownTitle.TextSize = 14
  1310.                
  1311.                 DropdownRound.Name = "DropdownRound"
  1312.                 DropdownRound.Parent = DropdownTitle
  1313.                 DropdownRound.Active = true
  1314.                 DropdownRound.AnchorPoint = Vector2.new(0.5, 0.5)
  1315.                 DropdownRound.BackgroundColor3 = Color3.new(1, 1, 1)
  1316.                 DropdownRound.BackgroundTransparency = 1
  1317.                 DropdownRound.BorderSizePixel = 0
  1318.                 DropdownRound.ClipsDescendants = true
  1319.                 DropdownRound.Position = UDim2.new(0.5, 0, 0.5, 0)
  1320.                 DropdownRound.Selectable = true
  1321.                 DropdownRound.Size = UDim2.new(1, 0, 1, 0)
  1322.                 DropdownRound.Image = "rbxassetid://3570695787"
  1323.                 DropdownRound.ImageColor3 = Color3.new(0.254902, 0.254902, 0.254902)
  1324.                 DropdownRound.ScaleType = Enum.ScaleType.Slice
  1325.                 DropdownRound.SliceCenter = Rect.new(100, 100, 100, 100)
  1326.                 DropdownRound.SliceScale = 0.04
  1327.  
  1328.                 DropdownToggle.Name = "DropdownToggle"
  1329.                 DropdownToggle.Parent = DropdownTitle
  1330.                 DropdownToggle.BackgroundColor3 = Color3.new(1, 1, 1)
  1331.                 DropdownToggle.BackgroundTransparency = 1
  1332.                 DropdownToggle.Position = UDim2.new(0.816928029, 0, 0, 0)
  1333.                 DropdownToggle.Size = UDim2.new(0, 28, 0, 24)
  1334.                 DropdownToggle.AutoButtonColor = false
  1335.                 DropdownToggle.Font = Enum.Font.SourceSansBold
  1336.                 DropdownToggle.Text = ">"
  1337.                 DropdownToggle.TextColor3 = Color3.new(1, 1, 1)
  1338.                 DropdownToggle.TextSize = 15
  1339.                
  1340.                 DropdownMain.Name = "DropdownMain"
  1341.                 DropdownMain.Parent = DropdownTitle
  1342.                 DropdownMain.BackgroundColor3 = Color3.new(0.137255, 0.137255, 0.137255)
  1343.                 DropdownMain.BackgroundTransparency = 1
  1344.                 DropdownMain.ClipsDescendants = true
  1345.                 DropdownMain.Position = UDim2.new(1.09275186, 0, -0.0336658955, 0)
  1346.                 DropdownMain.Size = UDim2.new(0, 0, 0, DropdownYSize)
  1347.                 DropdownMain.Image = "rbxassetid://3570695787"
  1348.                 DropdownMain.ImageColor3 = Color3.new(0.137255, 0.137255, 0.137255)
  1349.                 DropdownMain.ScaleType = Enum.ScaleType.Slice
  1350.                 DropdownMain.SliceCenter = Rect.new(100, 100, 100, 100)
  1351.                 DropdownMain.SliceScale = 0.04
  1352.  
  1353.                 ScrollingFrame.Parent = DropdownMain
  1354.                 ScrollingFrame.BackgroundColor3 = Color3.new(1, 1, 1)
  1355.                 ScrollingFrame.BackgroundTransparency = 1
  1356.                 ScrollingFrame.BorderSizePixel = 0
  1357.                 ScrollingFrame.Size = UDim2.new(0, 153, 0, DropdownYSize)
  1358.                 ScrollingFrame.BottomImage = "rbxasset://textures/ui/Scroll/scroll-middle.png"
  1359.                 ScrollingFrame.CanvasSize = UDim2.new(0, 0, StartingCanvasSize, 0)
  1360.                 ScrollingFrame.ScrollBarThickness = 3
  1361.                 ScrollingFrame.TopImage = "rbxasset://textures/ui/Scroll/scroll-middle.png"
  1362.                 ScrollingFrame.ScrollingDirection = "Y"
  1363.  
  1364.                 ButtonLayout.Name = "ButtonLayout"
  1365.                 ButtonLayout.Parent = ScrollingFrame
  1366.                 ButtonLayout.SortOrder = Enum.SortOrder.LayoutOrder
  1367.  
  1368.                 for i, v in pairs(options) do
  1369.                     local DropdownOption = Instance.new("TextButton")
  1370.        
  1371.                     NumberOfOptions = NumberOfOptions + 1
  1372.  
  1373.                     local DropdownButtonName = RemoveSpaces(v)
  1374.  
  1375.                     DropdownOption.Name = (DropdownButtonName .. "Button")
  1376.                     DropdownOption.Parent = ScrollingFrame
  1377.                     DropdownOption.BackgroundColor3 = Color3.new(0.215686, 0.215686, 0.215686)
  1378.                     DropdownOption.BackgroundTransparency = 1
  1379.                     DropdownOption.BorderSizePixel = 0
  1380.                     DropdownOption.Position = UDim2.new(0, 0, 0, 0)
  1381.                     DropdownOption.Size = UDim2.new(0, 153, 0, 25)
  1382.                     DropdownOption.AutoButtonColor = false
  1383.                     DropdownOption.Font = Enum.Font.SourceSansBold
  1384.                     DropdownOption.Text = v
  1385.                     DropdownOption.TextColor3 = Color3.new(1, 1, 1)
  1386.                     DropdownOption.TextSize = 14
  1387.  
  1388.                     if NumberOfOptions <= 4 then
  1389.                         DropdownYSize = DropdownYSize + 25
  1390.                         DropdownMain.Size = UDim2.new(0, 0, 0, DropdownYSize)
  1391.                     elseif NumberOfOptions >= 4 then
  1392.                         StartScrollingFrame = true
  1393.                     end
  1394.  
  1395.                     if StartScrollingFrame then
  1396.                         StartingCanvasSize = StartingCanvasSize + 0.25
  1397.                         ScrollingFrame.CanvasSize = UDim2.new(0, 0, StartingCanvasSize, 0)
  1398.                     end
  1399.  
  1400.                     DropdownOption.InputBegan:Connect(function(input)
  1401.                         if input.UserInputType == Enum.UserInputType.MouseMovement then
  1402.                             TweenService:Create(DropdownOption, TweenInfo.new(0.5, Enum.EasingStyle.Quart, Enum.EasingDirection.Out), {BackgroundTransparency = 0.5}):Play()
  1403.                         end
  1404.                     end)
  1405.                        
  1406.                     DropdownOption.InputEnded:Connect(function(input)
  1407.                         if input.UserInputType == Enum.UserInputType.MouseMovement then
  1408.                             TweenService:Create(DropdownOption, TweenInfo.new(0.5, Enum.EasingStyle.Quart, Enum.EasingDirection.Out), {BackgroundTransparency = 1}):Play()
  1409.                         end
  1410.                     end)
  1411.  
  1412.                     DropdownOption.MouseButton1Down:Connect(function()
  1413.                         SelectedOptionName = v
  1414.                         action(v)
  1415.  
  1416.                         IsDropdownWindowOpen = false
  1417.  
  1418.                         DropdownToggle.Text = ">"
  1419.                         TweenService:Create(DropdownToggle, TweenInfo.new(0.5, Enum.EasingStyle.Quart, Enum.EasingDirection.Out), {Rotation = 0}):Play()
  1420.  
  1421.                         TweenService:Create(DropdownTitle, TweenInfo.new(0.5, Enum.EasingStyle.Quart, Enum.EasingDirection.Out), {TextColor3 = Color3.new(1, 1, 1)}):Play()
  1422.                         DropdownTitle.Text = SelectedOptionName
  1423.  
  1424.                         TweenService:Create(ScrollingFrame, TweenInfo.new(0.5, Enum.EasingStyle.Quart, Enum.EasingDirection.Out), {ScrollBarImageTransparency = 1}):Play()
  1425.                         TweenService:Create(ScrollingFrame, TweenInfo.new(0.5, Enum.EasingStyle.Quart, Enum.EasingDirection.Out), {Size = UDim2.new(0, 0, 0, DropdownYSize)}):Play()
  1426.  
  1427.                         TweenService:Create(DropdownMain, TweenInfo.new(0.5, Enum.EasingStyle.Quart, Enum.EasingDirection.Out), {Size = UDim2.new(0, 0, 0, DropdownYSize)}):Play()
  1428.                     end)
  1429.                 end
  1430.        
  1431.                 DropdownToggle.MouseButton1Down:Connect(function()
  1432.              if IsDropdownWindowOpen then
  1433.           IsDropdownWindowOpen = false
  1434.  
  1435.                DropdownToggle.Text = ">"
  1436.                         TweenService:Create(DropdownToggle, TweenInfo.new(0.5, Enum.EasingStyle.Quart, Enum.EasingDirection.Out), {Rotation = 0}):Play()
  1437.  
  1438.                         TweenService:Create(DropdownTitle, TweenInfo.new(0.5, Enum.EasingStyle.Quart, Enum.EasingDirection.Out), {TextColor3 = Color3.new(1, 1, 1)}):Play()
  1439.                         DropdownTitle.Text = SelectedOptionName
  1440.  
  1441.                         TweenService:Create(ScrollingFrame, TweenInfo.new(0.5, Enum.EasingStyle.Quart, Enum.EasingDirection.Out), {ScrollBarImageTransparency = 1}):Play()
  1442.                         TweenService:Create(ScrollingFrame, TweenInfo.new(0.5, Enum.EasingStyle.Quart, Enum.EasingDirection.Out), {Size = UDim2.new(0, 0, 0, DropdownYSize)}):Play()
  1443.  
  1444.                         TweenService:Create(DropdownMain, TweenInfo.new(0.5, Enum.EasingStyle.Quart, Enum.EasingDirection.Out), {Size = UDim2.new(0, 0, 0, DropdownYSize)}):Play()
  1445.                     elseif not IsDropdownWindowOpen then
  1446.                         Body.ClipsDescendants = false
  1447.                         Section1Holder.ClipsDescendants = false
  1448.  
  1449.                         IsDropdownWindowOpen = true
  1450.  
  1451.                         DropdownToggle.Text = "<"
  1452.                         TweenService:Create(DropdownToggle, TweenInfo.new(0.5, Enum.EasingStyle.Quart, Enum.EasingDirection.Out), {Rotation = -360}):Play()
  1453.  
  1454.                         TweenService:Create(DropdownTitle, TweenInfo.new(0.5, Enum.EasingStyle.Quart, Enum.EasingDirection.Out), {TextColor3 = Color3.new(0.698039, 0.698039, 0.698039)}):Play()
  1455.                         DropdownTitle.Text = name
  1456.  
  1457.                         TweenService:Create(ScrollingFrame, TweenInfo.new(0.5, Enum.EasingStyle.Quart, Enum.EasingDirection.Out), {ScrollBarImageTransparency = 0}):Play()
  1458.                         TweenService:Create(ScrollingFrame, TweenInfo.new(0.5, Enum.EasingStyle.Quart, Enum.EasingDirection.Out), {Size = UDim2.new(0, 153, 0, DropdownYSize)}):Play()
  1459.  
  1460.                         TweenService:Create(DropdownMain, TweenInfo.new(0.5, Enum.EasingStyle.Quart, Enum.EasingDirection.Out), {Size = UDim2.new(0, 153, 0, DropdownYSize)}):Play()
  1461.                     end
  1462.                 end)
  1463.  
  1464.                 SectionToggle.MouseButton1Down:Connect(function()
  1465.                     if not IsSectionOpen then
  1466.                         ExtendSectionSize(30)
  1467.                         ExtendBodySize(30)
  1468.                     elseif IsSectionOpen then
  1469.                         IsDropdownWindowOpen = false
  1470.  
  1471.                         DropdownToggle.Text = ">"
  1472.                         TweenService:Create(DropdownToggle, TweenInfo.new(0.5, Enum.EasingStyle.Quart, Enum.EasingDirection.Out), {Rotation = 0}):Play()
  1473.  
  1474.                         TweenService:Create(DropdownTitle, TweenInfo.new(0.5, Enum.EasingStyle.Quart, Enum.EasingDirection.Out), {TextColor3 = Color3.new(1, 1, 1)}):Play()
  1475.                         DropdownTitle.Text = SelectedOptionName
  1476.  
  1477.                         TweenService:Create(ScrollingFrame, TweenInfo.new(0.5, Enum.EasingStyle.Quart, Enum.EasingDirection.Out), {ScrollBarImageTransparency = 1}):Play()
  1478.                         TweenService:Create(ScrollingFrame, TweenInfo.new(0.5, Enum.EasingStyle.Quart, Enum.EasingDirection.Out), {Size = UDim2.new(0, 0, 0, 0)}):Play()
  1479.  
  1480.                         TweenService:Create(DropdownMain, TweenInfo.new(0.5, Enum.EasingStyle.Quart, Enum.EasingDirection.Out), {Size = UDim2.new(0, 0, 0, DropdownYSize)}):Play()
  1481.                        
  1482.                         Body.ClipsDescendants = true
  1483.                         Section1Holder.ClipsDescendants = true
  1484.  
  1485.                         UnExtendSectionSize(30)
  1486.                         UnExtendBodySize(30)
  1487.                     end
  1488.                 end)
  1489.  
  1490.                 WindowToggle.MouseButton1Down:Connect(function()
  1491.                     IsDropdownWindowOpen = false
  1492.  
  1493.                     DropdownToggle.Text = ">"
  1494.                     TweenService:Create(DropdownToggle, TweenInfo.new(0.5, Enum.EasingStyle.Quart, Enum.EasingDirection.Out), {Rotation = 0}):Play()
  1495.  
  1496.                     TweenService:Create(DropdownTitle, TweenInfo.new(0.5, Enum.EasingStyle.Quart, Enum.EasingDirection.Out), {TextColor3 = Color3.new(1, 1, 1)}):Play()
  1497.  
  1498.                     DropdownTitle.Text = SelectedOptionName
  1499.                     TweenService:Create(ScrollingFrame, TweenInfo.new(0.5, Enum.EasingStyle.Quart, Enum.EasingDirection.Out), {ScrollBarImageTransparency = 1}):Play()
  1500.                     TweenService:Create(ScrollingFrame, TweenInfo.new(0.5, Enum.EasingStyle.Quart, Enum.EasingDirection.Out), {Size = UDim2.new(0, 0, 0, DropdownYSize)}):Play()
  1501.  
  1502.                     TweenService:Create(DropdownMain, TweenInfo.new(0.5, Enum.EasingStyle.Quart, Enum.EasingDirection.Out), {Size = UDim2.new(0, 0, 0, DropdownYSize)}):Play()
  1503.                    
  1504.                     Body.ClipsDescendants = true
  1505.                     Section1Holder.ClipsDescendants = true
  1506.  
  1507.                     if not IsTabOpen then
  1508.                         if IsSectionOpen then
  1509.                             ExtendBodySize(30)
  1510.                             TweenService:Create(SectionToggle, TweenInfo.new(0, Enum.EasingStyle.Quart, Enum.EasingDirection.Out), {Rotation = -360}):Play()
  1511.                             TweenService:Create(Section1Holder, TweenInfo.new(0.5, Enum.EasingStyle.Quart, Enum.EasingDirection.Out), {BackgroundTransparency = 0}):Play()
  1512.                         elseif not IsSectionOpen then
  1513.                             TweenService:Create(Section1Holder, TweenInfo.new(0.5, Enum.EasingStyle.Quart, Enum.EasingDirection.Out), {BackgroundTransparency = 0}):Play()
  1514.                         end
  1515.  
  1516.                        
  1517.                     elseif IsTabOpen then
  1518.                         if IsSectionOpen then
  1519.                             UnExtendBodySize(30)
  1520.                             TweenService:Create(SectionToggle, TweenInfo.new(0, Enum.EasingStyle.Quart, Enum.EasingDirection.Out), {Rotation = 0}):Play()
  1521.                             TweenService:Create(Section1Holder, TweenInfo.new(0.5, Enum.EasingStyle.Quart, Enum.EasingDirection.Out), {BackgroundTransparency = 1}):Play()
  1522.                         elseif not IsSectionOpen then
  1523.                             TweenService:Create(Section1Holder, TweenInfo.new(0.5, Enum.EasingStyle.Quart, Enum.EasingDirection.Out), {BackgroundTransparency = 1}):Play()
  1524.                         end
  1525.                     end
  1526.  
  1527.                     TweenService:Create(SectionToggle, TweenInfo.new(0.4, Enum.EasingStyle.Quart, Enum.EasingDirection.Out), {TextTransparency = 1}):Play()
  1528.            
  1529.                     SectionToggle.Visible = false
  1530.            
  1531.                     repeat wait() until SectionToggle.TextTransparency == 1
  1532.                     SectionToggle.Visible = true
  1533.                     TweenService:Create(SectionToggle, TweenInfo.new(0.4, Enum.EasingStyle.Quart, Enum.EasingDirection.Out), {TextTransparency = 0}):Play()
  1534.                 end)
  1535.             end
  1536.  
  1537.             return LibraryElements;
  1538.         end
  1539.         return Sections;
  1540. end
  1541. return Library;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement