2AreYouMental110

kavo ui archive

Sep 24th, 2022
161
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 131.02 KB | None | 0 0
  1. -- https://raw.githubusercontent.com/xHeptc/Kavo-UI-Library/main/source.lua
  2.  
  3.  
  4.  
  5.  
  6. local Kavo = {}
  7.  
  8. local tween = game:GetService("TweenService")
  9. local tweeninfo = TweenInfo.new
  10. local input = game:GetService("UserInputService")
  11. local run = game:GetService("RunService")
  12.  
  13. local Utility = {}
  14. local Objects = {}
  15. function Kavo:DraggingEnabled(frame, parent)
  16.        
  17.     parent = parent or frame
  18.    
  19.     -- stolen from wally or kiriot, kek
  20.     local dragging = false
  21.     local dragInput, mousePos, framePos
  22.  
  23.     frame.InputBegan:Connect(function(input)
  24.         if input.UserInputType == Enum.UserInputType.MouseButton1 then
  25.             dragging = true
  26.             mousePos = input.Position
  27.             framePos = parent.Position
  28.            
  29.             input.Changed:Connect(function()
  30.                 if input.UserInputState == Enum.UserInputState.End then
  31.                     dragging = false
  32.                 end
  33.             end)
  34.         end
  35.     end)
  36.  
  37.     frame.InputChanged:Connect(function(input)
  38.         if input.UserInputType == Enum.UserInputType.MouseMovement then
  39.             dragInput = input
  40.         end
  41.     end)
  42.  
  43.     input.InputChanged:Connect(function(input)
  44.         if input == dragInput and dragging then
  45.             local delta = input.Position - mousePos
  46.             parent.Position  = UDim2.new(framePos.X.Scale, framePos.X.Offset + delta.X, framePos.Y.Scale, framePos.Y.Offset + delta.Y)
  47.         end
  48.     end)
  49. end
  50.  
  51. function Utility:TweenObject(obj, properties, duration, ...)
  52.     tween:Create(obj, tweeninfo(duration, ...), properties):Play()
  53. end
  54.  
  55.  
  56. local themes = {
  57.     SchemeColor = Color3.fromRGB(74, 99, 135),
  58.     Background = Color3.fromRGB(36, 37, 43),
  59.     Header = Color3.fromRGB(28, 29, 34),
  60.     TextColor = Color3.fromRGB(255,255,255),
  61.     ElementColor = Color3.fromRGB(32, 32, 38)
  62. }
  63. local themeStyles = {
  64.     DarkTheme = {
  65.         SchemeColor = Color3.fromRGB(64, 64, 64),
  66.         Background = Color3.fromRGB(0, 0, 0),
  67.         Header = Color3.fromRGB(0, 0, 0),
  68.         TextColor = Color3.fromRGB(255,255,255),
  69.         ElementColor = Color3.fromRGB(20, 20, 20)
  70.     },
  71.     LightTheme = {
  72.         SchemeColor = Color3.fromRGB(150, 150, 150),
  73.         Background = Color3.fromRGB(255,255,255),
  74.         Header = Color3.fromRGB(200, 200, 200),
  75.         TextColor = Color3.fromRGB(0,0,0),
  76.         ElementColor = Color3.fromRGB(224, 224, 224)
  77.     },
  78.     BloodTheme = {
  79.         SchemeColor = Color3.fromRGB(227, 27, 27),
  80.         Background = Color3.fromRGB(10, 10, 10),
  81.         Header = Color3.fromRGB(5, 5, 5),
  82.         TextColor = Color3.fromRGB(255,255,255),
  83.         ElementColor = Color3.fromRGB(20, 20, 20)
  84.     },
  85.     GrapeTheme = {
  86.         SchemeColor = Color3.fromRGB(166, 71, 214),
  87.         Background = Color3.fromRGB(64, 50, 71),
  88.         Header = Color3.fromRGB(36, 28, 41),
  89.         TextColor = Color3.fromRGB(255,255,255),
  90.         ElementColor = Color3.fromRGB(74, 58, 84)
  91.     },
  92.     Ocean = {
  93.         SchemeColor = Color3.fromRGB(86, 76, 251),
  94.         Background = Color3.fromRGB(26, 32, 58),
  95.         Header = Color3.fromRGB(38, 45, 71),
  96.         TextColor = Color3.fromRGB(200, 200, 200),
  97.         ElementColor = Color3.fromRGB(38, 45, 71)
  98.     },
  99.     Midnight = {
  100.         SchemeColor = Color3.fromRGB(26, 189, 158),
  101.         Background = Color3.fromRGB(44, 62, 82),
  102.         Header = Color3.fromRGB(57, 81, 105),
  103.         TextColor = Color3.fromRGB(255, 255, 255),
  104.         ElementColor = Color3.fromRGB(52, 74, 95)
  105.     },
  106.     Sentinel = {
  107.         SchemeColor = Color3.fromRGB(230, 35, 69),
  108.         Background = Color3.fromRGB(32, 32, 32),
  109.         Header = Color3.fromRGB(24, 24, 24),
  110.         TextColor = Color3.fromRGB(119, 209, 138),
  111.         ElementColor = Color3.fromRGB(24, 24, 24)
  112.     },
  113.     Synapse = {
  114.         SchemeColor = Color3.fromRGB(46, 48, 43),
  115.         Background = Color3.fromRGB(13, 15, 12),
  116.         Header = Color3.fromRGB(36, 38, 35),
  117.         TextColor = Color3.fromRGB(152, 99, 53),
  118.         ElementColor = Color3.fromRGB(24, 24, 24)
  119.     },
  120.     Serpent = {
  121.         SchemeColor = Color3.fromRGB(0, 166, 58),
  122.         Background = Color3.fromRGB(31, 41, 43),
  123.         Header = Color3.fromRGB(22, 29, 31),
  124.         TextColor = Color3.fromRGB(255,255,255),
  125.         ElementColor = Color3.fromRGB(22, 29, 31)
  126.     }
  127. }
  128. local oldTheme = ""
  129.  
  130. local SettingsT = {
  131.  
  132. }
  133.  
  134. local Name = "KavoConfig.JSON"
  135.  
  136. pcall(function()
  137.  
  138. if not pcall(function() readfile(Name) end) then
  139. writefile(Name, game:service'HttpService':JSONEncode(SettingsT))
  140. end
  141.  
  142. Settings = game:service'HttpService':JSONEncode(readfile(Name))
  143. end)
  144.  
  145. local LibName = tostring(math.random(1, 100))..tostring(math.random(1,50))..tostring(math.random(1, 100))
  146.  
  147. function Kavo:ToggleUI()
  148.     if game.CoreGui[LibName].Enabled then
  149.         game.CoreGui[LibName].Enabled = false
  150.     else
  151.         game.CoreGui[LibName].Enabled = true
  152.     end
  153. end
  154.  
  155. function Kavo.CreateLib(kavName, themeList)
  156.     if not themeList then
  157.         themeList = themes
  158.     end
  159.     if themeList == "DarkTheme" then
  160.         themeList = themeStyles.DarkTheme
  161.     elseif themeList == "LightTheme" then
  162.         themeList = themeStyles.LightTheme
  163.     elseif themeList == "BloodTheme" then
  164.         themeList = themeStyles.BloodTheme
  165.     elseif themeList == "GrapeTheme" then
  166.         themeList = themeStyles.GrapeTheme
  167.     elseif themeList == "Ocean" then
  168.         themeList = themeStyles.Ocean
  169.     elseif themeList == "Midnight" then
  170.         themeList = themeStyles.Midnight
  171.     elseif themeList == "Sentinel" then
  172.         themeList = themeStyles.Sentinel
  173.     elseif themeList == "Synapse" then
  174.         themeList = themeStyles.Synapse
  175.     elseif themeList == "Serpent" then
  176.         themeList = themeStyles.Serpent
  177.     else
  178.         if themeList.SchemeColor == nil then
  179.             themeList.SchemeColor = Color3.fromRGB(74, 99, 135)
  180.         elseif themeList.Background == nil then
  181.             themeList.Background = Color3.fromRGB(36, 37, 43)
  182.         elseif themeList.Header == nil then
  183.             themeList.Header = Color3.fromRGB(28, 29, 34)
  184.         elseif themeList.TextColor == nil then
  185.             themeList.TextColor = Color3.fromRGB(255,255,255)
  186.         elseif themeList.ElementColor == nil then
  187.             themeList.ElementColor = Color3.fromRGB(32, 32, 38)
  188.         end
  189.     end
  190.  
  191.     themeList = themeList or {}
  192.     local selectedTab
  193.     kavName = kavName or "Library"
  194.     table.insert(Kavo, kavName)
  195.     for i,v in pairs(game.CoreGui:GetChildren()) do
  196.         if v:IsA("ScreenGui") and v.Name == kavName then
  197.             v:Destroy()
  198.         end
  199.     end
  200.     local ScreenGui = Instance.new("ScreenGui")
  201.     local Main = Instance.new("Frame")
  202.     local MainCorner = Instance.new("UICorner")
  203.     local MainHeader = Instance.new("Frame")
  204.     local headerCover = Instance.new("UICorner")
  205.     local coverup = Instance.new("Frame")
  206.     local title = Instance.new("TextLabel")
  207.     local close = Instance.new("ImageButton")
  208.     local MainSide = Instance.new("Frame")
  209.     local sideCorner = Instance.new("UICorner")
  210.     local coverup_2 = Instance.new("Frame")
  211.     local tabFrames = Instance.new("Frame")
  212.     local tabListing = Instance.new("UIListLayout")
  213.     local pages = Instance.new("Frame")
  214.     local Pages = Instance.new("Folder")
  215.     local infoContainer = Instance.new("Frame")
  216.  
  217.     local blurFrame = Instance.new("Frame")
  218.  
  219.     Kavo:DraggingEnabled(MainHeader, Main)
  220.  
  221.     blurFrame.Name = "blurFrame"
  222.     blurFrame.Parent = pages
  223.     blurFrame.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  224.     blurFrame.BackgroundTransparency = 1
  225.     blurFrame.BorderSizePixel = 0
  226.     blurFrame.Position = UDim2.new(-0.0222222228, 0, -0.0371747203, 0)
  227.     blurFrame.Size = UDim2.new(0, 376, 0, 289)
  228.     blurFrame.ZIndex = 999
  229.  
  230.     ScreenGui.Parent = game.CoreGui
  231.     ScreenGui.Name = LibName
  232.     ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  233.     ScreenGui.ResetOnSpawn = false
  234.  
  235.     Main.Name = "Main"
  236.     Main.Parent = ScreenGui
  237.     Main.BackgroundColor3 = themeList.Background
  238.     Main.ClipsDescendants = true
  239.     Main.Position = UDim2.new(0.336503863, 0, 0.275485456, 0)
  240.     Main.Size = UDim2.new(0, 525, 0, 318)
  241.  
  242.     MainCorner.CornerRadius = UDim.new(0, 4)
  243.     MainCorner.Name = "MainCorner"
  244.     MainCorner.Parent = Main
  245.  
  246.     MainHeader.Name = "MainHeader"
  247.     MainHeader.Parent = Main
  248.     MainHeader.BackgroundColor3 = themeList.Header
  249.     Objects[MainHeader] = "BackgroundColor3"
  250.     MainHeader.Size = UDim2.new(0, 525, 0, 29)
  251.     headerCover.CornerRadius = UDim.new(0, 4)
  252.     headerCover.Name = "headerCover"
  253.     headerCover.Parent = MainHeader
  254.  
  255.     coverup.Name = "coverup"
  256.     coverup.Parent = MainHeader
  257.     coverup.BackgroundColor3 = themeList.Header
  258.     Objects[coverup] = "BackgroundColor3"
  259.     coverup.BorderSizePixel = 0
  260.     coverup.Position = UDim2.new(0, 0, 0.758620679, 0)
  261.     coverup.Size = UDim2.new(0, 525, 0, 7)
  262.  
  263.     title.Name = "title"
  264.     title.Parent = MainHeader
  265.     title.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  266.     title.BackgroundTransparency = 1.000
  267.     title.BorderSizePixel = 0
  268.     title.Position = UDim2.new(0.0171428565, 0, 0.344827592, 0)
  269.     title.Size = UDim2.new(0, 204, 0, 8)
  270.     title.Font = Enum.Font.Gotham
  271.     title.RichText = true
  272.     title.Text = kavName
  273.     title.TextColor3 = Color3.fromRGB(245, 245, 245)
  274.     title.TextSize = 16.000
  275.     title.TextXAlignment = Enum.TextXAlignment.Left
  276.  
  277.     close.Name = "close"
  278.     close.Parent = MainHeader
  279.     close.BackgroundTransparency = 1.000
  280.     close.Position = UDim2.new(0.949999988, 0, 0.137999997, 0)
  281.     close.Size = UDim2.new(0, 21, 0, 21)
  282.     close.ZIndex = 2
  283.     close.Image = "rbxassetid://3926305904"
  284.     close.ImageRectOffset = Vector2.new(284, 4)
  285.     close.ImageRectSize = Vector2.new(24, 24)
  286.     close.MouseButton1Click:Connect(function()
  287.         game.TweenService:Create(close, TweenInfo.new(0.1, Enum.EasingStyle.Quad, Enum.EasingDirection.InOut), {
  288.             ImageTransparency = 1
  289.         }):Play()
  290.         wait()
  291.         game.TweenService:Create(Main, TweenInfo.new(0.1, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {
  292.             Size = UDim2.new(0,0,0,0),
  293.             Position = UDim2.new(0, Main.AbsolutePosition.X + (Main.AbsoluteSize.X / 2), 0, Main.AbsolutePosition.Y + (Main.AbsoluteSize.Y / 2))
  294.         }):Play()
  295.         wait(1)
  296.         ScreenGui:Destroy()
  297.     end)
  298.  
  299.     MainSide.Name = "MainSide"
  300.     MainSide.Parent = Main
  301.     MainSide.BackgroundColor3 = themeList.Header
  302.     Objects[MainSide] = "Header"
  303.     MainSide.Position = UDim2.new(-7.4505806e-09, 0, 0.0911949649, 0)
  304.     MainSide.Size = UDim2.new(0, 149, 0, 289)
  305.  
  306.     sideCorner.CornerRadius = UDim.new(0, 4)
  307.     sideCorner.Name = "sideCorner"
  308.     sideCorner.Parent = MainSide
  309.  
  310.     coverup_2.Name = "coverup"
  311.     coverup_2.Parent = MainSide
  312.     coverup_2.BackgroundColor3 = themeList.Header
  313.     Objects[coverup_2] = "Header"
  314.     coverup_2.BorderSizePixel = 0
  315.     coverup_2.Position = UDim2.new(0.949939311, 0, 0, 0)
  316.     coverup_2.Size = UDim2.new(0, 7, 0, 289)
  317.  
  318.     tabFrames.Name = "tabFrames"
  319.     tabFrames.Parent = MainSide
  320.     tabFrames.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  321.     tabFrames.BackgroundTransparency = 1.000
  322.     tabFrames.Position = UDim2.new(0.0438990258, 0, -0.00066378375, 0)
  323.     tabFrames.Size = UDim2.new(0, 135, 0, 283)
  324.  
  325.     tabListing.Name = "tabListing"
  326.     tabListing.Parent = tabFrames
  327.     tabListing.SortOrder = Enum.SortOrder.LayoutOrder
  328.  
  329.     pages.Name = "pages"
  330.     pages.Parent = Main
  331.     pages.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  332.     pages.BackgroundTransparency = 1.000
  333.     pages.BorderSizePixel = 0
  334.     pages.Position = UDim2.new(0.299047589, 0, 0.122641519, 0)
  335.     pages.Size = UDim2.new(0, 360, 0, 269)
  336.  
  337.     Pages.Name = "Pages"
  338.     Pages.Parent = pages
  339.  
  340.     infoContainer.Name = "infoContainer"
  341.     infoContainer.Parent = Main
  342.     infoContainer.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  343.     infoContainer.BackgroundTransparency = 1.000
  344.     infoContainer.BorderColor3 = Color3.fromRGB(27, 42, 53)
  345.     infoContainer.ClipsDescendants = true
  346.     infoContainer.Position = UDim2.new(0.299047619, 0, 0.874213815, 0)
  347.     infoContainer.Size = UDim2.new(0, 368, 0, 33)
  348.  
  349.    
  350.     coroutine.wrap(function()
  351.         while wait() do
  352.             Main.BackgroundColor3 = themeList.Background
  353.             MainHeader.BackgroundColor3 = themeList.Header
  354.             MainSide.BackgroundColor3 = themeList.Header
  355.             coverup_2.BackgroundColor3 = themeList.Header
  356.             coverup.BackgroundColor3 = themeList.Header
  357.         end
  358.     end)()
  359.  
  360.     function Kavo:ChangeColor(prope,color)
  361.         if prope == "Background" then
  362.             themeList.Background = color
  363.         elseif prope == "SchemeColor" then
  364.             themeList.SchemeColor = color
  365.         elseif prope == "Header" then
  366.             themeList.Header = color
  367.         elseif prope == "TextColor" then
  368.             themeList.TextColor = color
  369.         elseif prope == "ElementColor" then
  370.             themeList.ElementColor = color
  371.         end
  372.     end
  373.     local Tabs = {}
  374.  
  375.     local first = true
  376.  
  377.     function Tabs:NewTab(tabName)
  378.         tabName = tabName or "Tab"
  379.         local tabButton = Instance.new("TextButton")
  380.         local UICorner = Instance.new("UICorner")
  381.         local page = Instance.new("ScrollingFrame")
  382.         local pageListing = Instance.new("UIListLayout")
  383.  
  384.         local function UpdateSize()
  385.             local cS = pageListing.AbsoluteContentSize
  386.  
  387.             game.TweenService:Create(page, TweenInfo.new(0.15, Enum.EasingStyle.Linear, Enum.EasingDirection.In), {
  388.                 CanvasSize = UDim2.new(0,cS.X,0,cS.Y)
  389.             }):Play()
  390.         end
  391.  
  392.         page.Name = "Page"
  393.         page.Parent = Pages
  394.         page.Active = true
  395.         page.BackgroundColor3 = themeList.Background
  396.         page.BorderSizePixel = 0
  397.         page.Position = UDim2.new(0, 0, -0.00371747208, 0)
  398.         page.Size = UDim2.new(1, 0, 1, 0)
  399.         page.ScrollBarThickness = 5
  400.         page.Visible = false
  401.         page.ScrollBarImageColor3 = Color3.fromRGB(themeList.SchemeColor.r * 255 - 16, themeList.SchemeColor.g * 255 - 15, themeList.SchemeColor.b * 255 - 28)
  402.  
  403.         pageListing.Name = "pageListing"
  404.         pageListing.Parent = page
  405.         pageListing.SortOrder = Enum.SortOrder.LayoutOrder
  406.         pageListing.Padding = UDim.new(0, 5)
  407.  
  408.         tabButton.Name = tabName.."TabButton"
  409.         tabButton.Parent = tabFrames
  410.         tabButton.BackgroundColor3 = themeList.SchemeColor
  411.         Objects[tabButton] = "SchemeColor"
  412.         tabButton.Size = UDim2.new(0, 135, 0, 28)
  413.         tabButton.AutoButtonColor = false
  414.         tabButton.Font = Enum.Font.Gotham
  415.         tabButton.Text = tabName
  416.         tabButton.TextColor3 = themeList.TextColor
  417.         Objects[tabButton] = "TextColor3"
  418.         tabButton.TextSize = 14.000
  419.         tabButton.BackgroundTransparency = 1
  420.  
  421.         if first then
  422.             first = false
  423.             page.Visible = true
  424.             tabButton.BackgroundTransparency = 0
  425.             UpdateSize()
  426.         else
  427.             page.Visible = false
  428.             tabButton.BackgroundTransparency = 1
  429.         end
  430.  
  431.         UICorner.CornerRadius = UDim.new(0, 5)
  432.         UICorner.Parent = tabButton
  433.         table.insert(Tabs, tabName)
  434.  
  435.         UpdateSize()
  436.         page.ChildAdded:Connect(UpdateSize)
  437.         page.ChildRemoved:Connect(UpdateSize)
  438.  
  439.         tabButton.MouseButton1Click:Connect(function()
  440.             UpdateSize()
  441.             for i,v in next, Pages:GetChildren() do
  442.                 v.Visible = false
  443.             end
  444.             page.Visible = true
  445.             for i,v in next, tabFrames:GetChildren() do
  446.                 if v:IsA("TextButton") then
  447.                     if themeList.SchemeColor == Color3.fromRGB(255,255,255) then
  448.                         Utility:TweenObject(v, {TextColor3 = Color3.fromRGB(255,255,255)}, 0.2)
  449.                     end
  450.                     if themeList.SchemeColor == Color3.fromRGB(0,0,0) then
  451.                         Utility:TweenObject(v, {TextColor3 = Color3.fromRGB(0,0,0)}, 0.2)
  452.                     end
  453.                     Utility:TweenObject(v, {BackgroundTransparency = 1}, 0.2)
  454.                 end
  455.             end
  456.             if themeList.SchemeColor == Color3.fromRGB(255,255,255) then
  457.                 Utility:TweenObject(tabButton, {TextColor3 = Color3.fromRGB(0,0,0)}, 0.2)
  458.             end
  459.             if themeList.SchemeColor == Color3.fromRGB(0,0,0) then
  460.                 Utility:TweenObject(tabButton, {TextColor3 = Color3.fromRGB(255,255,255)}, 0.2)
  461.             end
  462.             Utility:TweenObject(tabButton, {BackgroundTransparency = 0}, 0.2)
  463.         end)
  464.         local Sections = {}
  465.         local focusing = false
  466.         local viewDe = false
  467.  
  468.         coroutine.wrap(function()
  469.             while wait() do
  470.                 page.BackgroundColor3 = themeList.Background
  471.                 page.ScrollBarImageColor3 = Color3.fromRGB(themeList.SchemeColor.r * 255 - 16, themeList.SchemeColor.g * 255 - 15, themeList.SchemeColor.b * 255 - 28)
  472.                 tabButton.TextColor3 = themeList.TextColor
  473.                 tabButton.BackgroundColor3 = themeList.SchemeColor
  474.             end
  475.         end)()
  476.    
  477.         function Sections:NewSection(secName, hidden)
  478.             secName = secName or "Section"
  479.             local sectionFunctions = {}
  480.             local modules = {}
  481.         hidden = hidden or false
  482.             local sectionFrame = Instance.new("Frame")
  483.             local sectionlistoknvm = Instance.new("UIListLayout")
  484.             local sectionHead = Instance.new("Frame")
  485.             local sHeadCorner = Instance.new("UICorner")
  486.             local sectionName = Instance.new("TextLabel")
  487.             local sectionInners = Instance.new("Frame")
  488.             local sectionElListing = Instance.new("UIListLayout")
  489.            
  490.         if hidden then
  491.         sectionHead.Visible = false
  492.         else
  493.         sectionHead.Visible = true
  494.         end
  495.  
  496.             sectionFrame.Name = "sectionFrame"
  497.             sectionFrame.Parent = page
  498.             sectionFrame.BackgroundColor3 = themeList.Background--36, 37, 43
  499.             sectionFrame.BorderSizePixel = 0
  500.            
  501.             sectionlistoknvm.Name = "sectionlistoknvm"
  502.             sectionlistoknvm.Parent = sectionFrame
  503.             sectionlistoknvm.SortOrder = Enum.SortOrder.LayoutOrder
  504.             sectionlistoknvm.Padding = UDim.new(0, 5)
  505.  
  506.             for i,v in pairs(sectionInners:GetChildren()) do
  507.                 while wait() do
  508.                     if v:IsA("Frame") or v:IsA("TextButton") then
  509.                         function size(pro)
  510.                             if pro == "Size" then
  511.                                 UpdateSize()
  512.                                 updateSectionFrame()
  513.                             end
  514.                         end
  515.                         v.Changed:Connect(size)
  516.                     end
  517.                 end
  518.             end
  519.             sectionHead.Name = "sectionHead"
  520.             sectionHead.Parent = sectionFrame
  521.             sectionHead.BackgroundColor3 = themeList.SchemeColor
  522.             Objects[sectionHead] = "BackgroundColor3"
  523.             sectionHead.Size = UDim2.new(0, 352, 0, 33)
  524.  
  525.             sHeadCorner.CornerRadius = UDim.new(0, 4)
  526.             sHeadCorner.Name = "sHeadCorner"
  527.             sHeadCorner.Parent = sectionHead
  528.  
  529.             sectionName.Name = "sectionName"
  530.             sectionName.Parent = sectionHead
  531.             sectionName.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  532.             sectionName.BackgroundTransparency = 1.000
  533.             sectionName.BorderColor3 = Color3.fromRGB(27, 42, 53)
  534.             sectionName.Position = UDim2.new(0.0198863633, 0, 0, 0)
  535.             sectionName.Size = UDim2.new(0.980113626, 0, 1, 0)
  536.             sectionName.Font = Enum.Font.Gotham
  537.             sectionName.Text = secName
  538.             sectionName.RichText = true
  539.             sectionName.TextColor3 = themeList.TextColor
  540.             Objects[sectionName] = "TextColor3"
  541.             sectionName.TextSize = 14.000
  542.             sectionName.TextXAlignment = Enum.TextXAlignment.Left
  543.             if themeList.SchemeColor == Color3.fromRGB(255,255,255) then
  544.                 Utility:TweenObject(sectionName, {TextColor3 = Color3.fromRGB(0,0,0)}, 0.2)
  545.             end
  546.             if themeList.SchemeColor == Color3.fromRGB(0,0,0) then
  547.                 Utility:TweenObject(sectionName, {TextColor3 = Color3.fromRGB(255,255,255)}, 0.2)
  548.             end
  549.                
  550.             sectionInners.Name = "sectionInners"
  551.             sectionInners.Parent = sectionFrame
  552.             sectionInners.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  553.             sectionInners.BackgroundTransparency = 1.000
  554.             sectionInners.Position = UDim2.new(0, 0, 0.190751448, 0)
  555.  
  556.             sectionElListing.Name = "sectionElListing"
  557.             sectionElListing.Parent = sectionInners
  558.             sectionElListing.SortOrder = Enum.SortOrder.LayoutOrder
  559.             sectionElListing.Padding = UDim.new(0, 3)
  560.  
  561.            
  562.         coroutine.wrap(function()
  563.             while wait() do
  564.                 sectionFrame.BackgroundColor3 = themeList.Background
  565.                 sectionHead.BackgroundColor3 = themeList.SchemeColor
  566.                 tabButton.TextColor3 = themeList.TextColor
  567.                 tabButton.BackgroundColor3 = themeList.SchemeColor
  568.                 sectionName.TextColor3 = themeList.TextColor
  569.             end
  570.         end)()
  571.  
  572.             local function updateSectionFrame()
  573.                 local innerSc = sectionElListing.AbsoluteContentSize
  574.                 sectionInners.Size = UDim2.new(1, 0, 0, innerSc.Y)
  575.                 local frameSc = sectionlistoknvm.AbsoluteContentSize
  576.                 sectionFrame.Size = UDim2.new(0, 352, 0, frameSc.Y)
  577.             end
  578.                 updateSectionFrame()
  579.                 UpdateSize()
  580.             local Elements = {}
  581.             function Elements:NewButton(bname,tipINf, callback)
  582.                 showLogo = showLogo or true
  583.                 local ButtonFunction = {}
  584.                 tipINf = tipINf or "Tip: Clicking this nothing will happen!"
  585.                 bname = bname or "Click Me!"
  586.                 callback = callback or function() end
  587.  
  588.                 local buttonElement = Instance.new("TextButton")
  589.                 local UICorner = Instance.new("UICorner")
  590.                 local btnInfo = Instance.new("TextLabel")
  591.                 local viewInfo = Instance.new("ImageButton")
  592.                 local touch = Instance.new("ImageLabel")
  593.                 local Sample = Instance.new("ImageLabel")
  594.  
  595.                 table.insert(modules, bname)
  596.  
  597.                 buttonElement.Name = bname
  598.                 buttonElement.Parent = sectionInners
  599.                 buttonElement.BackgroundColor3 = themeList.ElementColor
  600.                 buttonElement.ClipsDescendants = true
  601.                 buttonElement.Size = UDim2.new(0, 352, 0, 33)
  602.                 buttonElement.AutoButtonColor = false
  603.                 buttonElement.Font = Enum.Font.SourceSans
  604.                 buttonElement.Text = ""
  605.                 buttonElement.TextColor3 = Color3.fromRGB(0, 0, 0)
  606.                 buttonElement.TextSize = 14.000
  607.                 Objects[buttonElement] = "BackgroundColor3"
  608.  
  609.                 UICorner.CornerRadius = UDim.new(0, 4)
  610.                 UICorner.Parent = buttonElement
  611.  
  612.                 viewInfo.Name = "viewInfo"
  613.                 viewInfo.Parent = buttonElement
  614.                 viewInfo.BackgroundTransparency = 1.000
  615.                 viewInfo.LayoutOrder = 9
  616.                 viewInfo.Position = UDim2.new(0.930000007, 0, 0.151999995, 0)
  617.                 viewInfo.Size = UDim2.new(0, 23, 0, 23)
  618.                 viewInfo.ZIndex = 2
  619.                 viewInfo.Image = "rbxassetid://3926305904"
  620.                 viewInfo.ImageColor3 = themeList.SchemeColor
  621.                 Objects[viewInfo] = "ImageColor3"
  622.                 viewInfo.ImageRectOffset = Vector2.new(764, 764)
  623.                 viewInfo.ImageRectSize = Vector2.new(36, 36)
  624.  
  625.                 Sample.Name = "Sample"
  626.                 Sample.Parent = buttonElement
  627.                 Sample.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  628.                 Sample.BackgroundTransparency = 1.000
  629.                 Sample.Image = "http://www.roblox.com/asset/?id=4560909609"
  630.                 Sample.ImageColor3 = themeList.SchemeColor
  631.                 Objects[Sample] = "ImageColor3"
  632.                 Sample.ImageTransparency = 0.600
  633.  
  634.                 local moreInfo = Instance.new("TextLabel")
  635.                 local UICorner = Instance.new("UICorner")
  636.  
  637.                 moreInfo.Name = "TipMore"
  638.                 moreInfo.Parent = infoContainer
  639.                 moreInfo.BackgroundColor3 = Color3.fromRGB(themeList.SchemeColor.r * 255 - 14, themeList.SchemeColor.g * 255 - 17, themeList.SchemeColor.b * 255 - 13)
  640.                 moreInfo.Position = UDim2.new(0, 0, 2, 0)
  641.                 moreInfo.Size = UDim2.new(0, 353, 0, 33)
  642.                 moreInfo.ZIndex = 9
  643.                 moreInfo.Font = Enum.Font.GothamSemibold
  644.                 moreInfo.Text = "  "..tipINf
  645.                 moreInfo.RichText = true
  646.                 moreInfo.TextColor3 = themeList.TextColor
  647.                 Objects[moreInfo] = "TextColor3"
  648.                 moreInfo.TextSize = 14.000
  649.                 moreInfo.TextXAlignment = Enum.TextXAlignment.Left
  650.                 Objects[moreInfo] = "BackgroundColor3"
  651.  
  652.                 UICorner.CornerRadius = UDim.new(0, 4)
  653.                 UICorner.Parent = moreInfo
  654.  
  655.                 touch.Name = "touch"
  656.                 touch.Parent = buttonElement
  657.                 touch.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  658.                 touch.BackgroundTransparency = 1.000
  659.                 touch.BorderColor3 = Color3.fromRGB(27, 42, 53)
  660.                 touch.Position = UDim2.new(0.0199999996, 0, 0.180000007, 0)
  661.                 touch.Size = UDim2.new(0, 21, 0, 21)
  662.                 touch.Image = "rbxassetid://3926305904"
  663.                 touch.ImageColor3 = themeList.SchemeColor
  664.                 Objects[touch] = "SchemeColor"
  665.                 touch.ImageRectOffset = Vector2.new(84, 204)
  666.                 touch.ImageRectSize = Vector2.new(36, 36)
  667.                 touch.ImageTransparency = 0
  668.  
  669.                 btnInfo.Name = "btnInfo"
  670.                 btnInfo.Parent = buttonElement
  671.                 btnInfo.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  672.                 btnInfo.BackgroundTransparency = 1.000
  673.                 btnInfo.Position = UDim2.new(0.096704483, 0, 0.272727281, 0)
  674.                 btnInfo.Size = UDim2.new(0, 314, 0, 14)
  675.                 btnInfo.Font = Enum.Font.GothamSemibold
  676.                 btnInfo.Text = bname
  677.                 btnInfo.RichText = true
  678.                 btnInfo.TextColor3 = themeList.TextColor
  679.                 Objects[btnInfo] = "TextColor3"
  680.                 btnInfo.TextSize = 14.000
  681.                 btnInfo.TextXAlignment = Enum.TextXAlignment.Left
  682.  
  683.                 if themeList.SchemeColor == Color3.fromRGB(255,255,255) then
  684.                     Utility:TweenObject(moreInfo, {TextColor3 = Color3.fromRGB(0,0,0)}, 0.2)
  685.                 end
  686.                 if themeList.SchemeColor == Color3.fromRGB(0,0,0) then
  687.                     Utility:TweenObject(moreInfo, {TextColor3 = Color3.fromRGB(255,255,255)}, 0.2)
  688.                 end
  689.  
  690.                 updateSectionFrame()
  691.                                 UpdateSize()
  692.  
  693.                 local ms = game.Players.LocalPlayer:GetMouse()
  694.  
  695.                 local btn = buttonElement
  696.                 local sample = Sample
  697.  
  698.                 btn.MouseButton1Click:Connect(function()
  699.                     if not focusing then
  700.                         callback()
  701.                         local c = sample:Clone()
  702.                         c.Parent = btn
  703.                         local x, y = (ms.X - c.AbsolutePosition.X), (ms.Y - c.AbsolutePosition.Y)
  704.                         c.Position = UDim2.new(0, x, 0, y)
  705.                         local len, size = 0.35, nil
  706.                         if btn.AbsoluteSize.X >= btn.AbsoluteSize.Y then
  707.                             size = (btn.AbsoluteSize.X * 1.5)
  708.                         else
  709.                             size = (btn.AbsoluteSize.Y * 1.5)
  710.                         end
  711.                         c:TweenSizeAndPosition(UDim2.new(0, size, 0, size), UDim2.new(0.5, (-size / 2), 0.5, (-size / 2)), 'Out', 'Quad', len, true, nil)
  712.                         for i = 1, 10 do
  713.                             c.ImageTransparency = c.ImageTransparency + 0.05
  714.                             wait(len / 12)
  715.                         end
  716.                         c:Destroy()
  717.                     else
  718.                         for i,v in next, infoContainer:GetChildren() do
  719.                             Utility:TweenObject(v, {Position = UDim2.new(0,0,2,0)}, 0.2)
  720.                             focusing = false
  721.                         end
  722.                         Utility:TweenObject(blurFrame, {BackgroundTransparency = 1}, 0.2)
  723.                     end
  724.                 end)
  725.                 local hovering = false
  726.                 btn.MouseEnter:Connect(function()
  727.                     if not focusing then
  728.                         game.TweenService:Create(btn, TweenInfo.new(0.1, Enum.EasingStyle.Linear, Enum.EasingDirection.In), {
  729.                             BackgroundColor3 = Color3.fromRGB(themeList.ElementColor.r * 255 + 8, themeList.ElementColor.g * 255 + 9, themeList.ElementColor.b * 255 + 10)
  730.                         }):Play()
  731.                         hovering = true
  732.                     end
  733.                 end)
  734.                 btn.MouseLeave:Connect(function()
  735.                     if not focusing then
  736.                         game.TweenService:Create(btn, TweenInfo.new(0.1, Enum.EasingStyle.Linear, Enum.EasingDirection.In), {
  737.                             BackgroundColor3 = themeList.ElementColor
  738.                         }):Play()
  739.                         hovering = false
  740.                     end
  741.                 end)
  742.                 viewInfo.MouseButton1Click:Connect(function()
  743.                     if not viewDe then
  744.                         viewDe = true
  745.                         focusing = true
  746.                         for i,v in next, infoContainer:GetChildren() do
  747.                             if v ~= moreInfo then
  748.                                 Utility:TweenObject(v, {Position = UDim2.new(0,0,2,0)}, 0.2)
  749.                             end
  750.                         end
  751.                         Utility:TweenObject(moreInfo, {Position = UDim2.new(0,0,0,0)}, 0.2)
  752.                         Utility:TweenObject(blurFrame, {BackgroundTransparency = 0.5}, 0.2)
  753.                         Utility:TweenObject(btn, {BackgroundColor3 = themeList.ElementColor}, 0.2)
  754.                         wait(1.5)
  755.                         focusing = false
  756.                         Utility:TweenObject(moreInfo, {Position = UDim2.new(0,0,2,0)}, 0.2)
  757.                         Utility:TweenObject(blurFrame, {BackgroundTransparency = 1}, 0.2)
  758.                         wait(0)
  759.                         viewDe = false
  760.                     end
  761.                 end)
  762.                 coroutine.wrap(function()
  763.                     while wait() do
  764.                         if not hovering then
  765.                             buttonElement.BackgroundColor3 = themeList.ElementColor
  766.                         end
  767.                         viewInfo.ImageColor3 = themeList.SchemeColor
  768.                         Sample.ImageColor3 = themeList.SchemeColor
  769.                         moreInfo.BackgroundColor3 = Color3.fromRGB(themeList.SchemeColor.r * 255 - 14, themeList.SchemeColor.g * 255 - 17, themeList.SchemeColor.b * 255 - 13)
  770.                         moreInfo.TextColor3 = themeList.TextColor
  771.                         touch.ImageColor3 = themeList.SchemeColor
  772.                         btnInfo.TextColor3 = themeList.TextColor
  773.                     end
  774.                 end)()
  775.                
  776.                 function ButtonFunction:UpdateButton(newTitle)
  777.                     btnInfo.Text = newTitle
  778.                 end
  779.                 return ButtonFunction
  780.             end
  781.  
  782.             function Elements:NewTextBox(tname, tTip, callback)
  783.                 tname = tname or "Textbox"
  784.                 tTip = tTip or "Gets a value of Textbox"
  785.                 callback = callback or function() end
  786.                 local textboxElement = Instance.new("TextButton")
  787.                 local UICorner = Instance.new("UICorner")
  788.                 local viewInfo = Instance.new("ImageButton")
  789.                 local write = Instance.new("ImageLabel")
  790.                 local TextBox = Instance.new("TextBox")
  791.                 local UICorner_2 = Instance.new("UICorner")
  792.                 local togName = Instance.new("TextLabel")
  793.  
  794.                 textboxElement.Name = "textboxElement"
  795.                 textboxElement.Parent = sectionInners
  796.                 textboxElement.BackgroundColor3 = themeList.ElementColor
  797.                 textboxElement.ClipsDescendants = true
  798.                 textboxElement.Size = UDim2.new(0, 352, 0, 33)
  799.                 textboxElement.AutoButtonColor = false
  800.                 textboxElement.Font = Enum.Font.SourceSans
  801.                 textboxElement.Text = ""
  802.                 textboxElement.TextColor3 = Color3.fromRGB(0, 0, 0)
  803.                 textboxElement.TextSize = 14.000
  804.  
  805.                 UICorner.CornerRadius = UDim.new(0, 4)
  806.                 UICorner.Parent = textboxElement
  807.  
  808.                 viewInfo.Name = "viewInfo"
  809.                 viewInfo.Parent = textboxElement
  810.                 viewInfo.BackgroundTransparency = 1.000
  811.                 viewInfo.LayoutOrder = 9
  812.                 viewInfo.Position = UDim2.new(0.930000007, 0, 0.151999995, 0)
  813.                 viewInfo.Size = UDim2.new(0, 23, 0, 23)
  814.                 viewInfo.ZIndex = 2
  815.                 viewInfo.Image = "rbxassetid://3926305904"
  816.                 viewInfo.ImageColor3 = themeList.SchemeColor
  817.                 viewInfo.ImageRectOffset = Vector2.new(764, 764)
  818.                 viewInfo.ImageRectSize = Vector2.new(36, 36)
  819.  
  820.                 write.Name = "write"
  821.                 write.Parent = textboxElement
  822.                 write.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  823.                 write.BackgroundTransparency = 1.000
  824.                 write.BorderColor3 = Color3.fromRGB(27, 42, 53)
  825.                 write.Position = UDim2.new(0.0199999996, 0, 0.180000007, 0)
  826.                 write.Size = UDim2.new(0, 21, 0, 21)
  827.                 write.Image = "rbxassetid://3926305904"
  828.                 write.ImageColor3 = themeList.SchemeColor
  829.                 write.ImageRectOffset = Vector2.new(324, 604)
  830.                 write.ImageRectSize = Vector2.new(36, 36)
  831.  
  832.                 TextBox.Parent = textboxElement
  833.                 TextBox.BackgroundColor3 = Color3.fromRGB(themeList.ElementColor.r * 255 - 6, themeList.ElementColor.g * 255 - 6, themeList.ElementColor.b * 255 - 7)
  834.                 TextBox.BorderSizePixel = 0
  835.                 TextBox.ClipsDescendants = true
  836.                 TextBox.Position = UDim2.new(0.488749921, 0, 0.212121218, 0)
  837.                 TextBox.Size = UDim2.new(0, 150, 0, 18)
  838.                 TextBox.ZIndex = 99
  839.                 TextBox.ClearTextOnFocus = false
  840.                 TextBox.Font = Enum.Font.Gotham
  841.                 TextBox.PlaceholderColor3 = Color3.fromRGB(themeList.SchemeColor.r * 255 - 19, themeList.SchemeColor.g * 255 - 26, themeList.SchemeColor.b * 255 - 35)
  842.                 TextBox.PlaceholderText = "Type here!"
  843.                 TextBox.Text = ""
  844.                 TextBox.TextColor3 = themeList.SchemeColor
  845.                 TextBox.TextSize = 12.000
  846.  
  847.                 UICorner_2.CornerRadius = UDim.new(0, 4)
  848.                 UICorner_2.Parent = TextBox
  849.  
  850.                 togName.Name = "togName"
  851.                 togName.Parent = textboxElement
  852.                 togName.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  853.                 togName.BackgroundTransparency = 1.000
  854.                 togName.Position = UDim2.new(0.096704483, 0, 0.272727281, 0)
  855.                 togName.Size = UDim2.new(0, 138, 0, 14)
  856.                 togName.Font = Enum.Font.GothamSemibold
  857.                 togName.Text = tname
  858.                 togName.RichText = true
  859.                 togName.TextColor3 = themeList.TextColor
  860.                 togName.TextSize = 14.000
  861.                 togName.TextXAlignment = Enum.TextXAlignment.Left
  862.  
  863.                 local moreInfo = Instance.new("TextLabel")
  864.                 local UICorner = Instance.new("UICorner")
  865.  
  866.                 moreInfo.Name = "TipMore"
  867.                 moreInfo.Parent = infoContainer
  868.                 moreInfo.BackgroundColor3 = Color3.fromRGB(themeList.SchemeColor.r * 255 - 14, themeList.SchemeColor.g * 255 - 17, themeList.SchemeColor.b * 255 - 13)
  869.                 moreInfo.Position = UDim2.new(0, 0, 2, 0)
  870.                 moreInfo.Size = UDim2.new(0, 353, 0, 33)
  871.                 moreInfo.ZIndex = 9
  872.                 moreInfo.Font = Enum.Font.GothamSemibold
  873.                 moreInfo.RichText = true
  874.                 moreInfo.Text = "  "..tTip
  875.                 moreInfo.TextColor3 = Color3.fromRGB(255, 255, 255)
  876.                 moreInfo.TextSize = 14.000
  877.                 moreInfo.TextXAlignment = Enum.TextXAlignment.Left
  878.  
  879.                 if themeList.SchemeColor == Color3.fromRGB(255,255,255) then
  880.                     Utility:TweenObject(moreInfo, {TextColor3 = Color3.fromRGB(0,0,0)}, 0.2)
  881.                 end
  882.                 if themeList.SchemeColor == Color3.fromRGB(0,0,0) then
  883.                     Utility:TweenObject(moreInfo, {TextColor3 = Color3.fromRGB(255,255,255)}, 0.2)
  884.                 end
  885.  
  886.                 UICorner.CornerRadius = UDim.new(0, 4)
  887.                 UICorner.Parent = moreInfo
  888.  
  889.  
  890.                 updateSectionFrame()
  891.                                 UpdateSize()
  892.            
  893.                 local btn = textboxElement
  894.                 local infBtn = viewInfo
  895.  
  896.                 btn.MouseButton1Click:Connect(function()
  897.                     if focusing then
  898.                         for i,v in next, infoContainer:GetChildren() do
  899.                             Utility:TweenObject(v, {Position = UDim2.new(0,0,2,0)}, 0.2)
  900.                             focusing = false
  901.                         end
  902.                         Utility:TweenObject(blurFrame, {BackgroundTransparency = 1}, 0.2)
  903.                     end
  904.                 end)
  905.                 local hovering = false
  906.                 btn.MouseEnter:Connect(function()
  907.                     if not focusing then
  908.                         game.TweenService:Create(btn, TweenInfo.new(0.1, Enum.EasingStyle.Linear, Enum.EasingDirection.In), {
  909.                             BackgroundColor3 = Color3.fromRGB(themeList.ElementColor.r * 255 + 8, themeList.ElementColor.g * 255 + 9, themeList.ElementColor.b * 255 + 10)
  910.                         }):Play()
  911.                         hovering = true
  912.                     end
  913.                 end)
  914.  
  915.                 btn.MouseLeave:Connect(function()
  916.                     if not focusing then
  917.                         game.TweenService:Create(btn, TweenInfo.new(0.1, Enum.EasingStyle.Linear, Enum.EasingDirection.In), {
  918.                             BackgroundColor3 = themeList.ElementColor
  919.                         }):Play()
  920.                         hovering = false
  921.                     end
  922.                 end)
  923.  
  924.                 TextBox.FocusLost:Connect(function(EnterPressed)
  925.                     if focusing then
  926.                         for i,v in next, infoContainer:GetChildren() do
  927.                             Utility:TweenObject(v, {Position = UDim2.new(0,0,2,0)}, 0.2)
  928.                             focusing = false
  929.                         end
  930.                         Utility:TweenObject(blurFrame, {BackgroundTransparency = 1}, 0.2)
  931.                     end
  932.                     if not EnterPressed then
  933.                         return
  934.                     else
  935.                         callback(TextBox.Text)
  936.                         wait(0.18)
  937.                         TextBox.Text = ""  
  938.                     end
  939.                 end)
  940.  
  941.                 viewInfo.MouseButton1Click:Connect(function()
  942.                     if not viewDe then
  943.                         viewDe = true
  944.                         focusing = true
  945.                         for i,v in next, infoContainer:GetChildren() do
  946.                             if v ~= moreInfo then
  947.                                 Utility:TweenObject(v, {Position = UDim2.new(0,0,2,0)}, 0.2)
  948.                             end
  949.                         end
  950.                         Utility:TweenObject(moreInfo, {Position = UDim2.new(0,0,0,0)}, 0.2)
  951.                         Utility:TweenObject(blurFrame, {BackgroundTransparency = 0.5}, 0.2)
  952.                         Utility:TweenObject(btn, {BackgroundColor3 = themeList.ElementColor}, 0.2)
  953.                         wait(1.5)
  954.                         focusing = false
  955.                         Utility:TweenObject(moreInfo, {Position = UDim2.new(0,0,2,0)}, 0.2)
  956.                         Utility:TweenObject(blurFrame, {BackgroundTransparency = 1}, 0.2)
  957.                         wait(0)
  958.                         viewDe = false
  959.                     end
  960.                 end)
  961.                 coroutine.wrap(function()
  962.                     while wait() do
  963.                         if not hovering then
  964.                             textboxElement.BackgroundColor3 = themeList.ElementColor
  965.                         end
  966.                         TextBox.BackgroundColor3 = Color3.fromRGB(themeList.ElementColor.r * 255 - 6, themeList.ElementColor.g * 255 - 6, themeList.ElementColor.b * 255 - 7)
  967.                         viewInfo.ImageColor3 = themeList.SchemeColor
  968.                         moreInfo.BackgroundColor3 = Color3.fromRGB(themeList.SchemeColor.r * 255 - 14, themeList.SchemeColor.g * 255 - 17, themeList.SchemeColor.b * 255 - 13)
  969.                         moreInfo.TextColor3 = themeList.TextColor
  970.                         write.ImageColor3 = themeList.SchemeColor
  971.                         togName.TextColor3 = themeList.TextColor
  972.                         TextBox.PlaceholderColor3 = Color3.fromRGB(themeList.SchemeColor.r * 255 - 19, themeList.SchemeColor.g * 255 - 26, themeList.SchemeColor.b * 255 - 35)
  973.                         TextBox.TextColor3 = themeList.SchemeColor
  974.                     end
  975.                 end)()
  976.             end
  977.  
  978.                 function Elements:NewToggle(tname, nTip, callback)
  979.                     local TogFunction = {}
  980.                     tname = tname or "Toggle"
  981.                     nTip = nTip or "Prints Current Toggle State"
  982.                     callback = callback or function() end
  983.                     local toggled = false
  984.                     table.insert(SettingsT, tname)
  985.  
  986.                     local toggleElement = Instance.new("TextButton")
  987.                     local UICorner = Instance.new("UICorner")
  988.                     local toggleDisabled = Instance.new("ImageLabel")
  989.                     local toggleEnabled = Instance.new("ImageLabel")
  990.                     local togName = Instance.new("TextLabel")
  991.                     local viewInfo = Instance.new("ImageButton")
  992.                     local Sample = Instance.new("ImageLabel")
  993.  
  994.                     toggleElement.Name = "toggleElement"
  995.                     toggleElement.Parent = sectionInners
  996.                     toggleElement.BackgroundColor3 = themeList.ElementColor
  997.                     toggleElement.ClipsDescendants = true
  998.                     toggleElement.Size = UDim2.new(0, 352, 0, 33)
  999.                     toggleElement.AutoButtonColor = false
  1000.                     toggleElement.Font = Enum.Font.SourceSans
  1001.                     toggleElement.Text = ""
  1002.                     toggleElement.TextColor3 = Color3.fromRGB(0, 0, 0)
  1003.                     toggleElement.TextSize = 14.000
  1004.  
  1005.                     UICorner.CornerRadius = UDim.new(0, 4)
  1006.                     UICorner.Parent = toggleElement
  1007.  
  1008.                     toggleDisabled.Name = "toggleDisabled"
  1009.                     toggleDisabled.Parent = toggleElement
  1010.                     toggleDisabled.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1011.                     toggleDisabled.BackgroundTransparency = 1.000
  1012.                     toggleDisabled.Position = UDim2.new(0.0199999996, 0, 0.180000007, 0)
  1013.                     toggleDisabled.Size = UDim2.new(0, 21, 0, 21)
  1014.                     toggleDisabled.Image = "rbxassetid://3926309567"
  1015.                     toggleDisabled.ImageColor3 = themeList.SchemeColor
  1016.                     toggleDisabled.ImageRectOffset = Vector2.new(628, 420)
  1017.                     toggleDisabled.ImageRectSize = Vector2.new(48, 48)
  1018.  
  1019.                     toggleEnabled.Name = "toggleEnabled"
  1020.                     toggleEnabled.Parent = toggleElement
  1021.                     toggleEnabled.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1022.                     toggleEnabled.BackgroundTransparency = 1.000
  1023.                     toggleEnabled.Position = UDim2.new(0.0199999996, 0, 0.180000007, 0)
  1024.                     toggleEnabled.Size = UDim2.new(0, 21, 0, 21)
  1025.                     toggleEnabled.Image = "rbxassetid://3926309567"
  1026.                     toggleEnabled.ImageColor3 = themeList.SchemeColor
  1027.                     toggleEnabled.ImageRectOffset = Vector2.new(784, 420)
  1028.                     toggleEnabled.ImageRectSize = Vector2.new(48, 48)
  1029.                     toggleEnabled.ImageTransparency = 1.000
  1030.  
  1031.                     togName.Name = "togName"
  1032.                     togName.Parent = toggleElement
  1033.                     togName.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1034.                     togName.BackgroundTransparency = 1.000
  1035.                     togName.Position = UDim2.new(0.096704483, 0, 0.272727281, 0)
  1036.                     togName.Size = UDim2.new(0, 288, 0, 14)
  1037.                     togName.Font = Enum.Font.GothamSemibold
  1038.                     togName.Text = tname
  1039.                     togName.RichText = true
  1040.                     togName.TextColor3 = themeList.TextColor
  1041.                     togName.TextSize = 14.000
  1042.                     togName.TextXAlignment = Enum.TextXAlignment.Left
  1043.  
  1044.                     viewInfo.Name = "viewInfo"
  1045.                     viewInfo.Parent = toggleElement
  1046.                     viewInfo.BackgroundTransparency = 1.000
  1047.                     viewInfo.LayoutOrder = 9
  1048.                     viewInfo.Position = UDim2.new(0.930000007, 0, 0.151999995, 0)
  1049.                     viewInfo.Size = UDim2.new(0, 23, 0, 23)
  1050.                     viewInfo.ZIndex = 2
  1051.                     viewInfo.Image = "rbxassetid://3926305904"
  1052.                     viewInfo.ImageColor3 = themeList.SchemeColor
  1053.                     viewInfo.ImageRectOffset = Vector2.new(764, 764)
  1054.                     viewInfo.ImageRectSize = Vector2.new(36, 36)
  1055.  
  1056.                     Sample.Name = "Sample"
  1057.                     Sample.Parent = toggleElement
  1058.                     Sample.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1059.                     Sample.BackgroundTransparency = 1.000
  1060.                     Sample.Image = "http://www.roblox.com/asset/?id=4560909609"
  1061.                     Sample.ImageColor3 = themeList.SchemeColor
  1062.                     Sample.ImageTransparency = 0.600
  1063.  
  1064.                     local moreInfo = Instance.new("TextLabel")
  1065.                     local UICorner = Instance.new("UICorner")
  1066.    
  1067.                     moreInfo.Name = "TipMore"
  1068.                     moreInfo.Parent = infoContainer
  1069.                     moreInfo.BackgroundColor3 = Color3.fromRGB(themeList.SchemeColor.r * 255 - 14, themeList.SchemeColor.g * 255 - 17, themeList.SchemeColor.b * 255 - 13)
  1070.                     moreInfo.Position = UDim2.new(0, 0, 2, 0)
  1071.                     moreInfo.Size = UDim2.new(0, 353, 0, 33)
  1072.                     moreInfo.ZIndex = 9
  1073.                     moreInfo.Font = Enum.Font.GothamSemibold
  1074.                     moreInfo.RichText = true
  1075.                     moreInfo.Text = "  "..nTip
  1076.                     moreInfo.TextColor3 = themeList.TextColor
  1077.                     moreInfo.TextSize = 14.000
  1078.                     moreInfo.TextXAlignment = Enum.TextXAlignment.Left
  1079.    
  1080.                     UICorner.CornerRadius = UDim.new(0, 4)
  1081.                     UICorner.Parent = moreInfo
  1082.  
  1083.                     local ms = game.Players.LocalPlayer:GetMouse()
  1084.  
  1085.                     if themeList.SchemeColor == Color3.fromRGB(255,255,255) then
  1086.                         Utility:TweenObject(moreInfo, {TextColor3 = Color3.fromRGB(0,0,0)}, 0.2)
  1087.                     end
  1088.                     if themeList.SchemeColor == Color3.fromRGB(0,0,0) then
  1089.                         Utility:TweenObject(moreInfo, {TextColor3 = Color3.fromRGB(255,255,255)}, 0.2)
  1090.                     end
  1091.  
  1092.                     local btn = toggleElement
  1093.                     local sample = Sample
  1094.                     local img = toggleEnabled
  1095.                     local infBtn = viewInfo
  1096.  
  1097.                                     updateSectionFrame()
  1098.                 UpdateSize()
  1099.  
  1100.                     btn.MouseButton1Click:Connect(function()
  1101.                         if not focusing then
  1102.                             if toggled == false then
  1103.                                 game.TweenService:Create(img, TweenInfo.new(0.11, Enum.EasingStyle.Linear,Enum.EasingDirection.In), {
  1104.                                     ImageTransparency = 0
  1105.                                 }):Play()
  1106.                                 local c = sample:Clone()
  1107.                                 c.Parent = btn
  1108.                                 local x, y = (ms.X - c.AbsolutePosition.X), (ms.Y - c.AbsolutePosition.Y)
  1109.                                 c.Position = UDim2.new(0, x, 0, y)
  1110.                                 local len, size = 0.35, nil
  1111.                                 if btn.AbsoluteSize.X >= btn.AbsoluteSize.Y then
  1112.                                     size = (btn.AbsoluteSize.X * 1.5)
  1113.                                 else
  1114.                                     size = (btn.AbsoluteSize.Y * 1.5)
  1115.                                 end
  1116.                                 c:TweenSizeAndPosition(UDim2.new(0, size, 0, size), UDim2.new(0.5, (-size / 2), 0.5, (-size / 2)), 'Out', 'Quad', len, true, nil)
  1117.                                 for i = 1, 10 do
  1118.                                     c.ImageTransparency = c.ImageTransparency + 0.05
  1119.                                     wait(len / 12)
  1120.                                 end
  1121.                                 c:Destroy()
  1122.                             else
  1123.                                 game.TweenService:Create(img, TweenInfo.new(0.11, Enum.EasingStyle.Linear,Enum.EasingDirection.In), {
  1124.                                     ImageTransparency = 1
  1125.                                 }):Play()
  1126.                                 local c = sample:Clone()
  1127.                                 c.Parent = btn
  1128.                                 local x, y = (ms.X - c.AbsolutePosition.X), (ms.Y - c.AbsolutePosition.Y)
  1129.                                 c.Position = UDim2.new(0, x, 0, y)
  1130.                                 local len, size = 0.35, nil
  1131.                                 if btn.AbsoluteSize.X >= btn.AbsoluteSize.Y then
  1132.                                     size = (btn.AbsoluteSize.X * 1.5)
  1133.                                 else
  1134.                                     size = (btn.AbsoluteSize.Y * 1.5)
  1135.                                 end
  1136.                                 c:TweenSizeAndPosition(UDim2.new(0, size, 0, size), UDim2.new(0.5, (-size / 2), 0.5, (-size / 2)), 'Out', 'Quad', len, true, nil)
  1137.                                 for i = 1, 10 do
  1138.                                     c.ImageTransparency = c.ImageTransparency + 0.05
  1139.                                     wait(len / 12)
  1140.                                 end
  1141.                                 c:Destroy()
  1142.                             end
  1143.                             toggled = not toggled
  1144.                             pcall(callback, toggled)
  1145.                         else
  1146.                             for i,v in next, infoContainer:GetChildren() do
  1147.                                 Utility:TweenObject(v, {Position = UDim2.new(0,0,2,0)}, 0.2)
  1148.                                 focusing = false
  1149.                             end
  1150.                             Utility:TweenObject(blurFrame, {BackgroundTransparency = 1}, 0.2)
  1151.                         end
  1152.                     end)
  1153.                     local hovering = false
  1154.                     btn.MouseEnter:Connect(function()
  1155.                         if not focusing then
  1156.                             game.TweenService:Create(btn, TweenInfo.new(0.1, Enum.EasingStyle.Linear, Enum.EasingDirection.In), {
  1157.                                 BackgroundColor3 = Color3.fromRGB(themeList.ElementColor.r * 255 + 8, themeList.ElementColor.g * 255 + 9, themeList.ElementColor.b * 255 + 10)
  1158.                             }):Play()
  1159.                             hovering = true
  1160.                         end
  1161.                     end)
  1162.                     btn.MouseLeave:Connect(function()
  1163.                         if not focusing then
  1164.                             game.TweenService:Create(btn, TweenInfo.new(0.1, Enum.EasingStyle.Linear, Enum.EasingDirection.In), {
  1165.                                 BackgroundColor3 = themeList.ElementColor
  1166.                             }):Play()
  1167.                             hovering = false
  1168.                         end
  1169.                     end)
  1170.  
  1171.                     coroutine.wrap(function()
  1172.                         while wait() do
  1173.                             if not hovering then
  1174.                                 toggleElement.BackgroundColor3 = themeList.ElementColor
  1175.                             end
  1176.                             toggleDisabled.ImageColor3 = themeList.SchemeColor
  1177.                             toggleEnabled.ImageColor3 = themeList.SchemeColor
  1178.                             togName.TextColor3 = themeList.TextColor
  1179.                             viewInfo.ImageColor3 = themeList.SchemeColor
  1180.                             Sample.ImageColor3 = themeList.SchemeColor
  1181.                             moreInfo.BackgroundColor3 = Color3.fromRGB(themeList.SchemeColor.r * 255 - 14, themeList.SchemeColor.g * 255 - 17, themeList.SchemeColor.b * 255 - 13)
  1182.                             moreInfo.TextColor3 = themeList.TextColor
  1183.                         end
  1184.                     end)()
  1185.                     viewInfo.MouseButton1Click:Connect(function()
  1186.                         if not viewDe then
  1187.                             viewDe = true
  1188.                             focusing = true
  1189.                             for i,v in next, infoContainer:GetChildren() do
  1190.                                 if v ~= moreInfo then
  1191.                                     Utility:TweenObject(v, {Position = UDim2.new(0,0,2,0)}, 0.2)
  1192.                                 end
  1193.                             end
  1194.                             Utility:TweenObject(moreInfo, {Position = UDim2.new(0,0,0,0)}, 0.2)
  1195.                             Utility:TweenObject(blurFrame, {BackgroundTransparency = 0.5}, 0.2)
  1196.                             Utility:TweenObject(btn, {BackgroundColor3 = themeList.ElementColor}, 0.2)
  1197.                             wait(1.5)
  1198.                             focusing = false
  1199.                             Utility:TweenObject(moreInfo, {Position = UDim2.new(0,0,2,0)}, 0.2)
  1200.                             Utility:TweenObject(blurFrame, {BackgroundTransparency = 1}, 0.2)
  1201.                             wait(0)
  1202.                             viewDe = false
  1203.                         end
  1204.                     end)
  1205.                     function TogFunction:UpdateToggle(newText, isTogOn)
  1206.                         isTogOn = isTogOn or toggle
  1207.                         if newText ~= nil then
  1208.                             togName.Text = newText
  1209.                         end
  1210.                         if isTogOn then
  1211.                             toggled = true
  1212.                             game.TweenService:Create(img, TweenInfo.new(0.11, Enum.EasingStyle.Linear,Enum.EasingDirection.In), {
  1213.                                 ImageTransparency = 0
  1214.                             }):Play()
  1215.                             pcall(callback, toggled)
  1216.                         else
  1217.                             toggled = false
  1218.                             game.TweenService:Create(img, TweenInfo.new(0.11, Enum.EasingStyle.Linear,Enum.EasingDirection.In), {
  1219.                                 ImageTransparency = 1
  1220.                             }):Play()
  1221.                             pcall(callback, toggled)
  1222.                         end
  1223.                     end
  1224.                     return TogFunction
  1225.             end
  1226.  
  1227.             function Elements:NewSlider(slidInf, slidTip, maxvalue, minvalue, callback)
  1228.                 slidInf = slidInf or "Slider"
  1229.                 slidTip = slidTip or "Slider tip here"
  1230.                 maxvalue = maxvalue or 500
  1231.                 minvalue = minvalue or 16
  1232.                 startVal = startVal or 0
  1233.                 callback = callback or function() end
  1234.  
  1235.                 local sliderElement = Instance.new("TextButton")
  1236.                 local UICorner = Instance.new("UICorner")
  1237.                 local togName = Instance.new("TextLabel")
  1238.                 local viewInfo = Instance.new("ImageButton")
  1239.                 local sliderBtn = Instance.new("TextButton")
  1240.                 local UICorner_2 = Instance.new("UICorner")
  1241.                 local UIListLayout = Instance.new("UIListLayout")
  1242.                 local sliderDrag = Instance.new("Frame")
  1243.                 local UICorner_3 = Instance.new("UICorner")
  1244.                 local write = Instance.new("ImageLabel")
  1245.                 local val = Instance.new("TextLabel")
  1246.  
  1247.                 sliderElement.Name = "sliderElement"
  1248.                 sliderElement.Parent = sectionInners
  1249.                 sliderElement.BackgroundColor3 = themeList.ElementColor
  1250.                 sliderElement.ClipsDescendants = true
  1251.                 sliderElement.Size = UDim2.new(0, 352, 0, 33)
  1252.                 sliderElement.AutoButtonColor = false
  1253.                 sliderElement.Font = Enum.Font.SourceSans
  1254.                 sliderElement.Text = ""
  1255.                 sliderElement.TextColor3 = Color3.fromRGB(0, 0, 0)
  1256.                 sliderElement.TextSize = 14.000
  1257.  
  1258.                 UICorner.CornerRadius = UDim.new(0, 4)
  1259.                 UICorner.Parent = sliderElement
  1260.  
  1261.                 togName.Name = "togName"
  1262.                 togName.Parent = sliderElement
  1263.                 togName.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1264.                 togName.BackgroundTransparency = 1.000
  1265.                 togName.Position = UDim2.new(0.096704483, 0, 0.272727281, 0)
  1266.                 togName.Size = UDim2.new(0, 138, 0, 14)
  1267.                 togName.Font = Enum.Font.GothamSemibold
  1268.                 togName.Text = slidInf
  1269.                 togName.RichText = true
  1270.                 togName.TextColor3 = themeList.TextColor
  1271.                 togName.TextSize = 14.000
  1272.                 togName.TextXAlignment = Enum.TextXAlignment.Left
  1273.  
  1274.                 viewInfo.Name = "viewInfo"
  1275.                 viewInfo.Parent = sliderElement
  1276.                 viewInfo.BackgroundTransparency = 1.000
  1277.                 viewInfo.LayoutOrder = 9
  1278.                 viewInfo.Position = UDim2.new(0.930000007, 0, 0.151999995, 0)
  1279.                 viewInfo.Size = UDim2.new(0, 23, 0, 23)
  1280.                 viewInfo.ZIndex = 2
  1281.                 viewInfo.Image = "rbxassetid://3926305904"
  1282.                 viewInfo.ImageColor3 = themeList.SchemeColor
  1283.                 viewInfo.ImageRectOffset = Vector2.new(764, 764)
  1284.                 viewInfo.ImageRectSize = Vector2.new(36, 36)
  1285.  
  1286.                 sliderBtn.Name = "sliderBtn"
  1287.                 sliderBtn.Parent = sliderElement
  1288.                 sliderBtn.BackgroundColor3 = Color3.fromRGB(themeList.ElementColor.r * 255 + 5, themeList.ElementColor.g * 255 + 5, themeList.ElementColor.b * 255  + 5)
  1289.                 sliderBtn.BorderSizePixel = 0
  1290.                 sliderBtn.Position = UDim2.new(0.488749951, 0, 0.393939406, 0)
  1291.                 sliderBtn.Size = UDim2.new(0, 149, 0, 6)
  1292.                 sliderBtn.AutoButtonColor = false
  1293.                 sliderBtn.Font = Enum.Font.SourceSans
  1294.                 sliderBtn.Text = ""
  1295.                 sliderBtn.TextColor3 = Color3.fromRGB(0, 0, 0)
  1296.                 sliderBtn.TextSize = 14.000
  1297.  
  1298.                 UICorner_2.Parent = sliderBtn
  1299.  
  1300.                 UIListLayout.Parent = sliderBtn
  1301.                 UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
  1302.                 UIListLayout.VerticalAlignment = Enum.VerticalAlignment.Center
  1303.  
  1304.                 sliderDrag.Name = "sliderDrag"
  1305.                 sliderDrag.Parent = sliderBtn
  1306.                 sliderDrag.BackgroundColor3 = themeList.SchemeColor
  1307.                 sliderDrag.BorderColor3 = Color3.fromRGB(74, 99, 135)
  1308.                 sliderDrag.BorderSizePixel = 0
  1309.                 sliderDrag.Size = UDim2.new(-0.671140969, 100,1,0)
  1310.  
  1311.                 UICorner_3.Parent = sliderDrag
  1312.  
  1313.                 write.Name = "write"
  1314.                 write.Parent = sliderElement
  1315.                 write.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1316.                 write.BackgroundTransparency = 1.000
  1317.                 write.BorderColor3 = Color3.fromRGB(27, 42, 53)
  1318.                 write.Position = UDim2.new(0.0199999996, 0, 0.180000007, 0)
  1319.                 write.Size = UDim2.new(0, 21, 0, 21)
  1320.                 write.Image = "rbxassetid://3926307971"
  1321.                 write.ImageColor3 = themeList.SchemeColor
  1322.                 write.ImageRectOffset = Vector2.new(404, 164)
  1323.                 write.ImageRectSize = Vector2.new(36, 36)
  1324.  
  1325.                 val.Name = "val"
  1326.                 val.Parent = sliderElement
  1327.                 val.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1328.                 val.BackgroundTransparency = 1.000
  1329.                 val.Position = UDim2.new(0.352386296, 0, 0.272727281, 0)
  1330.                 val.Size = UDim2.new(0, 41, 0, 14)
  1331.                 val.Font = Enum.Font.GothamSemibold
  1332.                 val.Text = minvalue
  1333.                 val.TextColor3 = themeList.TextColor
  1334.                 val.TextSize = 14.000
  1335.                 val.TextTransparency = 1.000
  1336.                 val.TextXAlignment = Enum.TextXAlignment.Right
  1337.  
  1338.                 local moreInfo = Instance.new("TextLabel")
  1339.                 local UICorner = Instance.new("UICorner")
  1340.  
  1341.                 moreInfo.Name = "TipMore"
  1342.                 moreInfo.Parent = infoContainer
  1343.                 moreInfo.BackgroundColor3 = Color3.fromRGB(themeList.SchemeColor.r * 255 - 14, themeList.SchemeColor.g * 255 - 17, themeList.SchemeColor.b * 255 - 13)
  1344.                 moreInfo.Position = UDim2.new(0, 0, 2, 0)
  1345.                 moreInfo.Size = UDim2.new(0, 353, 0, 33)
  1346.                 moreInfo.ZIndex = 9
  1347.                 moreInfo.Font = Enum.Font.GothamSemibold
  1348.                 moreInfo.Text = "  "..slidTip
  1349.                 moreInfo.TextColor3 = themeList.TextColor
  1350.                 moreInfo.TextSize = 14.000
  1351.                 moreInfo.RichText = true
  1352.                 moreInfo.TextXAlignment = Enum.TextXAlignment.Left
  1353.  
  1354.                 UICorner.CornerRadius = UDim.new(0, 4)
  1355.                 UICorner.Parent = moreInfo
  1356.  
  1357.                 if themeList.SchemeColor == Color3.fromRGB(255,255,255) then
  1358.                     Utility:TweenObject(moreInfo, {TextColor3 = Color3.fromRGB(0,0,0)}, 0.2)
  1359.                 end
  1360.                 if themeList.SchemeColor == Color3.fromRGB(0,0,0) then
  1361.                     Utility:TweenObject(moreInfo, {TextColor3 = Color3.fromRGB(255,255,255)}, 0.2)
  1362.                 end
  1363.  
  1364.  
  1365.                                 updateSectionFrame()
  1366.                 UpdateSize()
  1367.                 local mouse = game:GetService("Players").LocalPlayer:GetMouse();
  1368.  
  1369.                 local ms = game.Players.LocalPlayer:GetMouse()
  1370.                 local uis = game:GetService("UserInputService")
  1371.                 local btn = sliderElement
  1372.                 local infBtn = viewInfo
  1373.                 local hovering = false
  1374.                 btn.MouseEnter:Connect(function()
  1375.                     if not focusing then
  1376.                         game.TweenService:Create(btn, TweenInfo.new(0.1, Enum.EasingStyle.Linear, Enum.EasingDirection.In), {
  1377.                             BackgroundColor3 = Color3.fromRGB(themeList.ElementColor.r * 255 + 8, themeList.ElementColor.g * 255 + 9, themeList.ElementColor.b * 255 + 10)
  1378.                         }):Play()
  1379.                         hovering = true
  1380.                     end
  1381.                 end)
  1382.                 btn.MouseLeave:Connect(function()
  1383.                     if not focusing then
  1384.                         game.TweenService:Create(btn, TweenInfo.new(0.1, Enum.EasingStyle.Linear, Enum.EasingDirection.In), {
  1385.                             BackgroundColor3 = themeList.ElementColor
  1386.                         }):Play()
  1387.                         hovering = false
  1388.                     end
  1389.                 end)        
  1390.  
  1391.                 coroutine.wrap(function()
  1392.                     while wait() do
  1393.                         if not hovering then
  1394.                             sliderElement.BackgroundColor3 = themeList.ElementColor
  1395.                         end
  1396.                         moreInfo.TextColor3 = themeList.TextColor
  1397.                         moreInfo.BackgroundColor3 = Color3.fromRGB(themeList.SchemeColor.r * 255 - 14, themeList.SchemeColor.g * 255 - 17, themeList.SchemeColor.b * 255 - 13)
  1398.                         val.TextColor3 = themeList.TextColor
  1399.                         write.ImageColor3 = themeList.SchemeColor
  1400.                         togName.TextColor3 = themeList.TextColor
  1401.                         viewInfo.ImageColor3 = themeList.SchemeColor
  1402.                         sliderBtn.BackgroundColor3 = Color3.fromRGB(themeList.ElementColor.r * 255 + 5, themeList.ElementColor.g * 255 + 5, themeList.ElementColor.b * 255  + 5)
  1403.                         sliderDrag.BackgroundColor3 = themeList.SchemeColor
  1404.                     end
  1405.                 end)()
  1406.  
  1407.                 local Value
  1408.                 sliderBtn.MouseButton1Down:Connect(function()
  1409.                     if not focusing then
  1410.                         game.TweenService:Create(val, TweenInfo.new(0.1, Enum.EasingStyle.Linear, Enum.EasingDirection.In), {
  1411.                             TextTransparency = 0
  1412.                         }):Play()
  1413.                         Value = math.floor((((tonumber(maxvalue) - tonumber(minvalue)) / 149) * sliderDrag.AbsoluteSize.X) + tonumber(minvalue)) or 0
  1414.                         pcall(function()
  1415.                             callback(Value)
  1416.                         end)
  1417.                         sliderDrag:TweenSize(UDim2.new(0, math.clamp(mouse.X - sliderDrag.AbsolutePosition.X, 0, 149), 0, 6), "InOut", "Linear", 0.05, true)
  1418.                         moveconnection = mouse.Move:Connect(function()
  1419.                             val.Text = Value
  1420.                             Value = math.floor((((tonumber(maxvalue) - tonumber(minvalue)) / 149) * sliderDrag.AbsoluteSize.X) + tonumber(minvalue))
  1421.                             pcall(function()
  1422.                                 callback(Value)
  1423.                             end)
  1424.                             sliderDrag:TweenSize(UDim2.new(0, math.clamp(mouse.X - sliderDrag.AbsolutePosition.X, 0, 149), 0, 6), "InOut", "Linear", 0.05, true)
  1425.                         end)
  1426.                         releaseconnection = uis.InputEnded:Connect(function(Mouse)
  1427.                             if Mouse.UserInputType == Enum.UserInputType.MouseButton1 then
  1428.                                 Value = math.floor((((tonumber(maxvalue) - tonumber(minvalue)) / 149) * sliderDrag.AbsoluteSize.X) + tonumber(minvalue))
  1429.                                 pcall(function()
  1430.                                     callback(Value)
  1431.                                 end)
  1432.                                 val.Text = Value
  1433.                                 game.TweenService:Create(val, TweenInfo.new(0.1, Enum.EasingStyle.Linear, Enum.EasingDirection.In), {
  1434.                                     TextTransparency = 1
  1435.                                 }):Play()
  1436.                                 sliderDrag:TweenSize(UDim2.new(0, math.clamp(mouse.X - sliderDrag.AbsolutePosition.X, 0, 149), 0, 6), "InOut", "Linear", 0.05, true)
  1437.                                 moveconnection:Disconnect()
  1438.                                 releaseconnection:Disconnect()
  1439.                             end
  1440.                         end)
  1441.                     else
  1442.                         for i,v in next, infoContainer:GetChildren() do
  1443.                             Utility:TweenObject(v, {Position = UDim2.new(0,0,2,0)}, 0.2)
  1444.                             focusing = false
  1445.                         end
  1446.                         Utility:TweenObject(blurFrame, {BackgroundTransparency = 1}, 0.2)
  1447.                     end
  1448.                 end)
  1449.                 viewInfo.MouseButton1Click:Connect(function()
  1450.                     if not viewDe then
  1451.                         viewDe = true
  1452.                         focusing = true
  1453.                         for i,v in next, infoContainer:GetChildren() do
  1454.                             if v ~= moreInfo then
  1455.                                 Utility:TweenObject(v, {Position = UDim2.new(0,0,2,0)}, 0.2)
  1456.                             end
  1457.                         end
  1458.                         Utility:TweenObject(moreInfo, {Position = UDim2.new(0,0,0,0)}, 0.2)
  1459.                         Utility:TweenObject(blurFrame, {BackgroundTransparency = 0.5}, 0.2)
  1460.                         Utility:TweenObject(btn, {BackgroundColor3 = themeList.ElementColor}, 0.2)
  1461.                         wait(1.5)
  1462.                         focusing = false
  1463.                         Utility:TweenObject(moreInfo, {Position = UDim2.new(0,0,2,0)}, 0.2)
  1464.                         Utility:TweenObject(blurFrame, {BackgroundTransparency = 1}, 0.2)
  1465.                         wait(0)
  1466.                         viewDe = false
  1467.                     end
  1468.                 end)        
  1469.             end
  1470.  
  1471.             function Elements:NewDropdown(dropname, dropinf, list, callback)
  1472.                 local DropFunction = {}
  1473.                 dropname = dropname or "Dropdown"
  1474.                 list = list or {}
  1475.                 dropinf = dropinf or "Dropdown info"
  1476.                 callback = callback or function() end  
  1477.  
  1478.                 local opened = false
  1479.                 local DropYSize = 33
  1480.  
  1481.  
  1482.                 local dropFrame = Instance.new("Frame")
  1483.                 local dropOpen = Instance.new("TextButton")
  1484.                 local listImg = Instance.new("ImageLabel")
  1485.                 local itemTextbox = Instance.new("TextLabel")
  1486.                 local viewInfo = Instance.new("ImageButton")
  1487.                 local UICorner = Instance.new("UICorner")
  1488.                 local UIListLayout = Instance.new("UIListLayout")
  1489.                 local Sample = Instance.new("ImageLabel")
  1490.  
  1491.                 local ms = game.Players.LocalPlayer:GetMouse()
  1492.                 Sample.Name = "Sample"
  1493.                 Sample.Parent = dropOpen
  1494.                 Sample.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1495.                 Sample.BackgroundTransparency = 1.000
  1496.                 Sample.Image = "http://www.roblox.com/asset/?id=4560909609"
  1497.                 Sample.ImageColor3 = themeList.SchemeColor
  1498.                 Sample.ImageTransparency = 0.600
  1499.                
  1500.                 dropFrame.Name = "dropFrame"
  1501.                 dropFrame.Parent = sectionInners
  1502.                 dropFrame.BackgroundColor3 = themeList.Background
  1503.                 dropFrame.BorderSizePixel = 0
  1504.                 dropFrame.Position = UDim2.new(0, 0, 1.23571432, 0)
  1505.                 dropFrame.Size = UDim2.new(0, 352, 0, 33)
  1506.                 dropFrame.ClipsDescendants = true
  1507.                 local sample = Sample
  1508.                 local btn = dropOpen
  1509.                 dropOpen.Name = "dropOpen"
  1510.                 dropOpen.Parent = dropFrame
  1511.                 dropOpen.BackgroundColor3 = themeList.ElementColor
  1512.                 dropOpen.Size = UDim2.new(0, 352, 0, 33)
  1513.                 dropOpen.AutoButtonColor = false
  1514.                 dropOpen.Font = Enum.Font.SourceSans
  1515.                 dropOpen.Text = ""
  1516.                 dropOpen.TextColor3 = Color3.fromRGB(0, 0, 0)
  1517.                 dropOpen.TextSize = 14.000
  1518.                 dropOpen.ClipsDescendants = true
  1519.                 dropOpen.MouseButton1Click:Connect(function()
  1520.                     if not focusing then
  1521.                         if opened then
  1522.                             opened = false
  1523.                             dropFrame:TweenSize(UDim2.new(0, 352, 0, 33), "InOut", "Linear", 0.08)
  1524.                             wait(0.1)
  1525.                             updateSectionFrame()
  1526.                             UpdateSize()
  1527.                             local c = sample:Clone()
  1528.                             c.Parent = btn
  1529.                             local x, y = (ms.X - c.AbsolutePosition.X), (ms.Y - c.AbsolutePosition.Y)
  1530.                             c.Position = UDim2.new(0, x, 0, y)
  1531.                             local len, size = 0.35, nil
  1532.                             if btn.AbsoluteSize.X >= btn.AbsoluteSize.Y then
  1533.                                 size = (btn.AbsoluteSize.X * 1.5)
  1534.                             else
  1535.                                 size = (btn.AbsoluteSize.Y * 1.5)
  1536.                             end
  1537.                             c:TweenSizeAndPosition(UDim2.new(0, size, 0, size), UDim2.new(0.5, (-size / 2), 0.5, (-size / 2)), 'Out', 'Quad', len, true, nil)
  1538.                             for i = 1, 10 do
  1539.                                 c.ImageTransparency = c.ImageTransparency + 0.05
  1540.                                 wait(len / 12)
  1541.                             end
  1542.                             c:Destroy()
  1543.                         else
  1544.                             opened = true
  1545.                             dropFrame:TweenSize(UDim2.new(0, 352, 0, UIListLayout.AbsoluteContentSize.Y), "InOut", "Linear", 0.08, true)
  1546.                             wait(0.1)
  1547.                             updateSectionFrame()
  1548.                             UpdateSize()
  1549.                             local c = sample:Clone()
  1550.                             c.Parent = btn
  1551.                             local x, y = (ms.X - c.AbsolutePosition.X), (ms.Y - c.AbsolutePosition.Y)
  1552.                             c.Position = UDim2.new(0, x, 0, y)
  1553.                             local len, size = 0.35, nil
  1554.                             if btn.AbsoluteSize.X >= btn.AbsoluteSize.Y then
  1555.                                 size = (btn.AbsoluteSize.X * 1.5)
  1556.                             else
  1557.                                 size = (btn.AbsoluteSize.Y * 1.5)
  1558.                             end
  1559.                             c:TweenSizeAndPosition(UDim2.new(0, size, 0, size), UDim2.new(0.5, (-size / 2), 0.5, (-size / 2)), 'Out', 'Quad', len, true, nil)
  1560.                             for i = 1, 10 do
  1561.                                 c.ImageTransparency = c.ImageTransparency + 0.05
  1562.                                 wait(len / 12)
  1563.                             end
  1564.                             c:Destroy()
  1565.                         end
  1566.                     else
  1567.                         for i,v in next, infoContainer:GetChildren() do
  1568.                             Utility:TweenObject(v, {Position = UDim2.new(0,0,2,0)}, 0.2)
  1569.                             focusing = false
  1570.                         end
  1571.                         Utility:TweenObject(blurFrame, {BackgroundTransparency = 1}, 0.2)
  1572.                     end
  1573.                 end)
  1574.  
  1575.                 listImg.Name = "listImg"
  1576.                 listImg.Parent = dropOpen
  1577.                 listImg.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1578.                 listImg.BackgroundTransparency = 1.000
  1579.                 listImg.BorderColor3 = Color3.fromRGB(27, 42, 53)
  1580.                 listImg.Position = UDim2.new(0.0199999996, 0, 0.180000007, 0)
  1581.                 listImg.Size = UDim2.new(0, 21, 0, 21)
  1582.                 listImg.Image = "rbxassetid://3926305904"
  1583.                 listImg.ImageColor3 = themeList.SchemeColor
  1584.                 listImg.ImageRectOffset = Vector2.new(644, 364)
  1585.                 listImg.ImageRectSize = Vector2.new(36, 36)
  1586.  
  1587.                 itemTextbox.Name = "itemTextbox"
  1588.                 itemTextbox.Parent = dropOpen
  1589.                 itemTextbox.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1590.                 itemTextbox.BackgroundTransparency = 1.000
  1591.                 itemTextbox.Position = UDim2.new(0.0970000029, 0, 0.273000002, 0)
  1592.                 itemTextbox.Size = UDim2.new(0, 138, 0, 14)
  1593.                 itemTextbox.Font = Enum.Font.GothamSemibold
  1594.                 itemTextbox.Text = dropname
  1595.                 itemTextbox.RichText = true
  1596.                 itemTextbox.TextColor3 = themeList.TextColor
  1597.                 itemTextbox.TextSize = 14.000
  1598.                 itemTextbox.TextXAlignment = Enum.TextXAlignment.Left
  1599.  
  1600.                 viewInfo.Name = "viewInfo"
  1601.                 viewInfo.Parent = dropOpen
  1602.                 viewInfo.BackgroundTransparency = 1.000
  1603.                 viewInfo.LayoutOrder = 9
  1604.                 viewInfo.Position = UDim2.new(0.930000007, 0, 0.151999995, 0)
  1605.                 viewInfo.Size = UDim2.new(0, 23, 0, 23)
  1606.                 viewInfo.ZIndex = 2
  1607.                 viewInfo.Image = "rbxassetid://3926305904"
  1608.                 viewInfo.ImageColor3 = themeList.SchemeColor
  1609.                 viewInfo.ImageRectOffset = Vector2.new(764, 764)
  1610.                 viewInfo.ImageRectSize = Vector2.new(36, 36)
  1611.  
  1612.                 UICorner.CornerRadius = UDim.new(0, 4)
  1613.                 UICorner.Parent = dropOpen
  1614.  
  1615.                 local Sample = Instance.new("ImageLabel")
  1616.  
  1617.                 Sample.Name = "Sample"
  1618.                 Sample.Parent = dropOpen
  1619.                 Sample.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1620.                 Sample.BackgroundTransparency = 1.000
  1621.                 Sample.Image = "http://www.roblox.com/asset/?id=4560909609"
  1622.                 Sample.ImageColor3 = themeList.SchemeColor
  1623.                 Sample.ImageTransparency = 0.600
  1624.  
  1625.                 UIListLayout.Parent = dropFrame
  1626.                 UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
  1627.                 UIListLayout.Padding = UDim.new(0, 3)
  1628.  
  1629.                 updateSectionFrame()
  1630.                 UpdateSize()
  1631.  
  1632.                 local ms = game.Players.LocalPlayer:GetMouse()
  1633.                 local uis = game:GetService("UserInputService")
  1634.                 local infBtn = viewInfo
  1635.  
  1636.                 local moreInfo = Instance.new("TextLabel")
  1637.                 local UICorner = Instance.new("UICorner")
  1638.  
  1639.                 moreInfo.Name = "TipMore"
  1640.                 moreInfo.Parent = infoContainer
  1641.                 moreInfo.BackgroundColor3 = Color3.fromRGB(themeList.SchemeColor.r * 255 - 14, themeList.SchemeColor.g * 255 - 17, themeList.SchemeColor.b * 255 - 13)
  1642.                 moreInfo.Position = UDim2.new(0, 0, 2, 0)
  1643.                 moreInfo.Size = UDim2.new(0, 353, 0, 33)
  1644.                 moreInfo.ZIndex = 9
  1645.                 moreInfo.RichText = true
  1646.                 moreInfo.Font = Enum.Font.GothamSemibold
  1647.                 moreInfo.Text = "  "..dropinf
  1648.                 moreInfo.TextColor3 = themeList.TextColor
  1649.                 moreInfo.TextSize = 14.000
  1650.                 moreInfo.TextXAlignment = Enum.TextXAlignment.Left
  1651.  
  1652.                 local hovering = false
  1653.                 btn.MouseEnter:Connect(function()
  1654.                     if not focusing then
  1655.                         game.TweenService:Create(btn, TweenInfo.new(0.1, Enum.EasingStyle.Linear, Enum.EasingDirection.In), {
  1656.                             BackgroundColor3 = Color3.fromRGB(themeList.ElementColor.r * 255 + 8, themeList.ElementColor.g * 255 + 9, themeList.ElementColor.b * 255 + 10)
  1657.                         }):Play()
  1658.                         hovering = true
  1659.                     end
  1660.                 end)
  1661.                 btn.MouseLeave:Connect(function()
  1662.                     if not focusing then
  1663.                         game.TweenService:Create(btn, TweenInfo.new(0.1, Enum.EasingStyle.Linear, Enum.EasingDirection.In), {
  1664.                             BackgroundColor3 = themeList.ElementColor
  1665.                         }):Play()
  1666.                         hovering = false
  1667.                     end
  1668.                 end)        
  1669.                 coroutine.wrap(function()
  1670.                     while wait() do
  1671.                         if not hovering then
  1672.                             dropOpen.BackgroundColor3 = themeList.ElementColor
  1673.                         end
  1674.                         Sample.ImageColor3 = themeList.SchemeColor
  1675.                         dropFrame.BackgroundColor3 = themeList.Background
  1676.                         listImg.ImageColor3 = themeList.SchemeColor
  1677.                         itemTextbox.TextColor3 = themeList.TextColor
  1678.                         viewInfo.ImageColor3 = themeList.SchemeColor
  1679.                         moreInfo.BackgroundColor3 = Color3.fromRGB(themeList.SchemeColor.r * 255 - 14, themeList.SchemeColor.g * 255 - 17, themeList.SchemeColor.b * 255 - 13)
  1680.                         moreInfo.TextColor3 = themeList.TextColor
  1681.                     end
  1682.                 end)()
  1683.                 UICorner.CornerRadius = UDim.new(0, 4)
  1684.                 UICorner.Parent = moreInfo
  1685.  
  1686.                 if themeList.SchemeColor == Color3.fromRGB(255,255,255) then
  1687.                     Utility:TweenObject(moreInfo, {TextColor3 = Color3.fromRGB(0,0,0)}, 0.2)
  1688.                 end
  1689.                 if themeList.SchemeColor == Color3.fromRGB(0,0,0) then
  1690.                     Utility:TweenObject(moreInfo, {TextColor3 = Color3.fromRGB(255,255,255)}, 0.2)
  1691.                 end
  1692.  
  1693.                 viewInfo.MouseButton1Click:Connect(function()
  1694.                     if not viewDe then
  1695.                         viewDe = true
  1696.                         focusing = true
  1697.                         for i,v in next, infoContainer:GetChildren() do
  1698.                             if v ~= moreInfo then
  1699.                                 Utility:TweenObject(v, {Position = UDim2.new(0,0,2,0)}, 0.2)
  1700.                             end
  1701.                         end
  1702.                         Utility:TweenObject(moreInfo, {Position = UDim2.new(0,0,0,0)}, 0.2)
  1703.                         Utility:TweenObject(blurFrame, {BackgroundTransparency = 0.5}, 0.2)
  1704.                         Utility:TweenObject(btn, {BackgroundColor3 = themeList.ElementColor}, 0.2)
  1705.                         wait(1.5)
  1706.                         focusing = false
  1707.                         Utility:TweenObject(moreInfo, {Position = UDim2.new(0,0,2,0)}, 0.2)
  1708.                         Utility:TweenObject(blurFrame, {BackgroundTransparency = 1}, 0.2)
  1709.                         wait(0)
  1710.                         viewDe = false
  1711.                     end
  1712.                 end)    
  1713.  
  1714.                 for i,v in next, list do
  1715.                     local optionSelect = Instance.new("TextButton")
  1716.                     local UICorner_2 = Instance.new("UICorner")
  1717.                     local Sample1 = Instance.new("ImageLabel")
  1718.  
  1719.                     local ms = game.Players.LocalPlayer:GetMouse()
  1720.                     Sample1.Name = "Sample1"
  1721.                     Sample1.Parent = optionSelect
  1722.                     Sample1.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1723.                     Sample1.BackgroundTransparency = 1.000
  1724.                     Sample1.Image = "http://www.roblox.com/asset/?id=4560909609"
  1725.                     Sample1.ImageColor3 = themeList.SchemeColor
  1726.                     Sample1.ImageTransparency = 0.600
  1727.  
  1728.                     local sample1 = Sample1
  1729.                     DropYSize = DropYSize + 33
  1730.                     optionSelect.Name = "optionSelect"
  1731.                     optionSelect.Parent = dropFrame
  1732.                     optionSelect.BackgroundColor3 = themeList.ElementColor
  1733.                     optionSelect.Position = UDim2.new(0, 0, 0.235294119, 0)
  1734.                     optionSelect.Size = UDim2.new(0, 352, 0, 33)
  1735.                     optionSelect.AutoButtonColor = false
  1736.                     optionSelect.Font = Enum.Font.GothamSemibold
  1737.                     optionSelect.Text = "  "..v
  1738.                     optionSelect.TextColor3 = Color3.fromRGB(themeList.TextColor.r * 255 - 6, themeList.TextColor.g * 255 - 6, themeList.TextColor.b * 255 - 6)
  1739.                     optionSelect.TextSize = 14.000
  1740.                     optionSelect.TextXAlignment = Enum.TextXAlignment.Left
  1741.                     optionSelect.ClipsDescendants = true
  1742.                     optionSelect.MouseButton1Click:Connect(function()
  1743.                         if not focusing then
  1744.                             opened = false
  1745.                             callback(v)
  1746.                             itemTextbox.Text = v
  1747.                             dropFrame:TweenSize(UDim2.new(0, 352, 0, 33), 'InOut', 'Linear', 0.08)
  1748.                             wait(0.1)
  1749.                             updateSectionFrame()
  1750.                             UpdateSize()
  1751.                             local c = sample1:Clone()
  1752.                             c.Parent = optionSelect
  1753.                             local x, y = (ms.X - c.AbsolutePosition.X), (ms.Y - c.AbsolutePosition.Y)
  1754.                             c.Position = UDim2.new(0, x, 0, y)
  1755.                             local len, size = 0.35, nil
  1756.                             if optionSelect.AbsoluteSize.X >= optionSelect.AbsoluteSize.Y then
  1757.                                 size = (optionSelect.AbsoluteSize.X * 1.5)
  1758.                             else
  1759.                                 size = (optionSelect.AbsoluteSize.Y * 1.5)
  1760.                             end
  1761.                             c:TweenSizeAndPosition(UDim2.new(0, size, 0, size), UDim2.new(0.5, (-size / 2), 0.5, (-size / 2)), 'Out', 'Quad', len, true, nil)
  1762.                             for i = 1, 10 do
  1763.                                 c.ImageTransparency = c.ImageTransparency + 0.05
  1764.                                 wait(len / 12)
  1765.                             end
  1766.                             c:Destroy()        
  1767.                         else
  1768.                             for i,v in next, infoContainer:GetChildren() do
  1769.                                 Utility:TweenObject(v, {Position = UDim2.new(0,0,2,0)}, 0.2)
  1770.                                 focusing = false
  1771.                             end
  1772.                             Utility:TweenObject(blurFrame, {BackgroundTransparency = 1}, 0.2)
  1773.                         end
  1774.                     end)
  1775.    
  1776.                     UICorner_2.CornerRadius = UDim.new(0, 4)
  1777.                     UICorner_2.Parent = optionSelect
  1778.  
  1779.                     local oHover = false
  1780.                     optionSelect.MouseEnter:Connect(function()
  1781.                         if not focusing then
  1782.                             game.TweenService:Create(optionSelect, TweenInfo.new(0.1, Enum.EasingStyle.Linear, Enum.EasingDirection.In), {
  1783.                                 BackgroundColor3 = Color3.fromRGB(themeList.ElementColor.r * 255 + 8, themeList.ElementColor.g * 255 + 9, themeList.ElementColor.b * 255 + 10)
  1784.                             }):Play()
  1785.                             oHover = true
  1786.                         end
  1787.                     end)
  1788.                     optionSelect.MouseLeave:Connect(function()
  1789.                         if not focusing then
  1790.                             game.TweenService:Create(optionSelect, TweenInfo.new(0.1, Enum.EasingStyle.Linear, Enum.EasingDirection.In), {
  1791.                                 BackgroundColor3 = themeList.ElementColor
  1792.                             }):Play()
  1793.                             oHover = false
  1794.                         end
  1795.                     end)  
  1796.                     coroutine.wrap(function()
  1797.                         while wait() do
  1798.                             if not oHover then
  1799.                                 optionSelect.BackgroundColor3 = themeList.ElementColor
  1800.                             end
  1801.                             optionSelect.TextColor3 = Color3.fromRGB(themeList.TextColor.r * 255 - 6, themeList.TextColor.g * 255 - 6, themeList.TextColor.b * 255 - 6)
  1802.                             Sample1.ImageColor3 = themeList.SchemeColor
  1803.                         end
  1804.                     end)()
  1805.                 end
  1806.  
  1807.                 function DropFunction:Refresh(newList)
  1808.                     newList = newList or {}
  1809.                     for i,v in next, dropFrame:GetChildren() do
  1810.                         if v.Name == "optionSelect" then
  1811.                             v:Destroy()
  1812.                         end
  1813.                     end
  1814.                     for i,v in next, newList do
  1815.                         local optionSelect = Instance.new("TextButton")
  1816.                         local UICorner_2 = Instance.new("UICorner")
  1817.                         local Sample11 = Instance.new("ImageLabel")
  1818.                         local ms = game.Players.LocalPlayer:GetMouse()
  1819.                         Sample11.Name = "Sample11"
  1820.                         Sample11.Parent = optionSelect
  1821.                         Sample11.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1822.                         Sample11.BackgroundTransparency = 1.000
  1823.                         Sample11.Image = "http://www.roblox.com/asset/?id=4560909609"
  1824.                         Sample11.ImageColor3 = themeList.SchemeColor
  1825.                         Sample11.ImageTransparency = 0.600
  1826.    
  1827.                         local sample11 = Sample11
  1828.                         DropYSize = DropYSize + 33
  1829.                         optionSelect.Name = "optionSelect"
  1830.                         optionSelect.Parent = dropFrame
  1831.                         optionSelect.BackgroundColor3 = themeList.ElementColor
  1832.                         optionSelect.Position = UDim2.new(0, 0, 0.235294119, 0)
  1833.                         optionSelect.Size = UDim2.new(0, 352, 0, 33)
  1834.                         optionSelect.AutoButtonColor = false
  1835.                         optionSelect.Font = Enum.Font.GothamSemibold
  1836.                         optionSelect.Text = "  "..v
  1837.                         optionSelect.TextColor3 = Color3.fromRGB(themeList.TextColor.r * 255 - 6, themeList.TextColor.g * 255 - 6, themeList.TextColor.b * 255 - 6)
  1838.                         optionSelect.TextSize = 14.000
  1839.                         optionSelect.TextXAlignment = Enum.TextXAlignment.Left
  1840.                         optionSelect.ClipsDescendants = true
  1841.                         UICorner_2.CornerRadius = UDim.new(0, 4)
  1842.                         UICorner_2.Parent = optionSelect
  1843.                         optionSelect.MouseButton1Click:Connect(function()
  1844.                             if not focusing then
  1845.                                 opened = false
  1846.                                 callback(v)
  1847.                                 itemTextbox.Text = v
  1848.                                 dropFrame:TweenSize(UDim2.new(0, 352, 0, 33), 'InOut', 'Linear', 0.08)
  1849.                                 wait(0.1)
  1850.                                 updateSectionFrame()
  1851.                                 UpdateSize()
  1852.                                 local c = sample11:Clone()
  1853.                                 c.Parent = optionSelect
  1854.                                 local x, y = (ms.X - c.AbsolutePosition.X), (ms.Y - c.AbsolutePosition.Y)
  1855.                                 c.Position = UDim2.new(0, x, 0, y)
  1856.                                 local len, size = 0.35, nil
  1857.                                 if optionSelect.AbsoluteSize.X >= optionSelect.AbsoluteSize.Y then
  1858.                                     size = (optionSelect.AbsoluteSize.X * 1.5)
  1859.                                 else
  1860.                                     size = (optionSelect.AbsoluteSize.Y * 1.5)
  1861.                                 end
  1862.                                 c:TweenSizeAndPosition(UDim2.new(0, size, 0, size), UDim2.new(0.5, (-size / 2), 0.5, (-size / 2)), 'Out', 'Quad', len, true, nil)
  1863.                                 for i = 1, 10 do
  1864.                                     c.ImageTransparency = c.ImageTransparency + 0.05
  1865.                                     wait(len / 12)
  1866.                                 end
  1867.                                 c:Destroy()        
  1868.                             else
  1869.                                 for i,v in next, infoContainer:GetChildren() do
  1870.                                     Utility:TweenObject(v, {Position = UDim2.new(0,0,2,0)}, 0.2)
  1871.                                     focusing = false
  1872.                                 end
  1873.                                 Utility:TweenObject(blurFrame, {BackgroundTransparency = 1}, 0.2)
  1874.                             end
  1875.                         end)
  1876.                                         updateSectionFrame()
  1877.                 UpdateSize()
  1878.                         local hov = false
  1879.                         optionSelect.MouseEnter:Connect(function()
  1880.                             if not focusing then
  1881.                                 game.TweenService:Create(optionSelect, TweenInfo.new(0.1, Enum.EasingStyle.Linear, Enum.EasingDirection.In), {
  1882.                                     BackgroundColor3 = Color3.fromRGB(themeList.ElementColor.r * 255 + 8, themeList.ElementColor.g * 255 + 9, themeList.ElementColor.b * 255 + 10)
  1883.                                 }):Play()
  1884.                                 hov = true
  1885.                             end
  1886.                         end)
  1887.                         optionSelect.MouseLeave:Connect(function()
  1888.                             if not focusing then
  1889.                                 game.TweenService:Create(optionSelect, TweenInfo.new(0.1, Enum.EasingStyle.Linear, Enum.EasingDirection.In), {
  1890.                                     BackgroundColor3 = themeList.ElementColor
  1891.                                 }):Play()
  1892.                                 hov = false
  1893.                             end
  1894.                         end)  
  1895.                         coroutine.wrap(function()
  1896.                             while wait() do
  1897.                                 if not oHover then
  1898.                                     optionSelect.BackgroundColor3 = themeList.ElementColor
  1899.                                 end
  1900.                                 optionSelect.TextColor3 = Color3.fromRGB(themeList.TextColor.r * 255 - 6, themeList.TextColor.g * 255 - 6, themeList.TextColor.b * 255 - 6)
  1901.                                 Sample11.ImageColor3 = themeList.SchemeColor
  1902.                             end
  1903.                         end)()
  1904.                     end
  1905.                     if opened then
  1906.                         dropFrame:TweenSize(UDim2.new(0, 352, 0, UIListLayout.AbsoluteContentSize.Y), "InOut", "Linear", 0.08, true)
  1907.                         wait(0.1)
  1908.                         updateSectionFrame()
  1909.                         UpdateSize()
  1910.                     else
  1911.                         dropFrame:TweenSize(UDim2.new(0, 352, 0, 33), "InOut", "Linear", 0.08)
  1912.                         wait(0.1)
  1913.                         updateSectionFrame()
  1914.                         UpdateSize()
  1915.                     end
  1916.                 end
  1917.                 return DropFunction
  1918.             end
  1919.             function Elements:NewKeybind(keytext, keyinf, first, callback)
  1920.                 keytext = keytext or "KeybindText"
  1921.                 keyinf = keyinf or "KebindInfo"
  1922.                 callback = callback or function() end
  1923.                 local oldKey = first.Name
  1924.                 local keybindElement = Instance.new("TextButton")
  1925.                 local UICorner = Instance.new("UICorner")
  1926.                 local togName = Instance.new("TextLabel")
  1927.                 local viewInfo = Instance.new("ImageButton")
  1928.                 local touch = Instance.new("ImageLabel")
  1929.                 local Sample = Instance.new("ImageLabel")
  1930.                 local togName_2 = Instance.new("TextLabel")
  1931.  
  1932.                 local ms = game.Players.LocalPlayer:GetMouse()
  1933.                 local uis = game:GetService("UserInputService")
  1934.                 local infBtn = viewInfo
  1935.  
  1936.                 local moreInfo = Instance.new("TextLabel")
  1937.                 local UICorner1 = Instance.new("UICorner")
  1938.  
  1939.                 local sample = Sample
  1940.  
  1941.                 keybindElement.Name = "keybindElement"
  1942.                 keybindElement.Parent = sectionInners
  1943.                 keybindElement.BackgroundColor3 = themeList.ElementColor
  1944.                 keybindElement.ClipsDescendants = true
  1945.                 keybindElement.Size = UDim2.new(0, 352, 0, 33)
  1946.                 keybindElement.AutoButtonColor = false
  1947.                 keybindElement.Font = Enum.Font.SourceSans
  1948.                 keybindElement.Text = ""
  1949.                 keybindElement.TextColor3 = Color3.fromRGB(0, 0, 0)
  1950.                 keybindElement.TextSize = 14.000
  1951.                 keybindElement.MouseButton1Click:connect(function(e)
  1952.                     if not focusing then
  1953.                         togName_2.Text = ". . ."
  1954.                         local a, b = game:GetService('UserInputService').InputBegan:wait();
  1955.                         if a.KeyCode.Name ~= "Unknown" then
  1956.                             togName_2.Text = a.KeyCode.Name
  1957.                             oldKey = a.KeyCode.Name;
  1958.                         end
  1959.                         local c = sample:Clone()
  1960.                         c.Parent = keybindElement
  1961.                         local x, y = (ms.X - c.AbsolutePosition.X), (ms.Y - c.AbsolutePosition.Y)
  1962.                         c.Position = UDim2.new(0, x, 0, y)
  1963.                         local len, size = 0.35, nil
  1964.                         if keybindElement.AbsoluteSize.X >= keybindElement.AbsoluteSize.Y then
  1965.                             size = (keybindElement.AbsoluteSize.X * 1.5)
  1966.                         else
  1967.                             size = (keybindElement.AbsoluteSize.Y * 1.5)
  1968.                         end
  1969.                         c:TweenSizeAndPosition(UDim2.new(0, size, 0, size), UDim2.new(0.5, (-size / 2), 0.5, (-size / 2)), 'Out', 'Quad', len, true, nil)
  1970.                         for i = 1, 10 do
  1971.                         c.ImageTransparency = c.ImageTransparency + 0.05
  1972.                             wait(len / 12)
  1973.                         end
  1974.                     else
  1975.                         for i,v in next, infoContainer:GetChildren() do
  1976.                             Utility:TweenObject(v, {Position = UDim2.new(0,0,2,0)}, 0.2)
  1977.                             focusing = false
  1978.                         end
  1979.                         Utility:TweenObject(blurFrame, {BackgroundTransparency = 1}, 0.2)
  1980.                     end
  1981.                 end)
  1982.        
  1983.                 game:GetService("UserInputService").InputBegan:connect(function(current, ok)
  1984.                     if not ok then
  1985.                         if current.KeyCode.Name == oldKey then
  1986.                             callback()
  1987.                         end
  1988.                     end
  1989.                 end)
  1990.  
  1991.                 moreInfo.Name = "TipMore"
  1992.                 moreInfo.Parent = infoContainer
  1993.                 moreInfo.BackgroundColor3 = Color3.fromRGB(themeList.SchemeColor.r * 255 - 14, themeList.SchemeColor.g * 255 - 17, themeList.SchemeColor.b * 255 - 13)
  1994.                 moreInfo.Position = UDim2.new(0, 0, 2, 0)
  1995.                 moreInfo.Size = UDim2.new(0, 353, 0, 33)
  1996.                 moreInfo.ZIndex = 9
  1997.                 moreInfo.RichText = true
  1998.                 moreInfo.Font = Enum.Font.GothamSemibold
  1999.                 moreInfo.Text = "  "..keyinf
  2000.                 moreInfo.TextColor3 = themeList.TextColor
  2001.                 moreInfo.TextSize = 14.000
  2002.                 moreInfo.TextXAlignment = Enum.TextXAlignment.Left
  2003.  
  2004.                 Sample.Name = "Sample"
  2005.                 Sample.Parent = keybindElement
  2006.                 Sample.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  2007.                 Sample.BackgroundTransparency = 1.000
  2008.                 Sample.Image = "http://www.roblox.com/asset/?id=4560909609"
  2009.                 Sample.ImageColor3 = themeList.SchemeColor
  2010.                 Sample.ImageTransparency = 0.600
  2011.  
  2012.                
  2013.                 togName.Name = "togName"
  2014.                 togName.Parent = keybindElement
  2015.                 togName.BackgroundColor3 = themeList.TextColor
  2016.                 togName.BackgroundTransparency = 1.000
  2017.                 togName.Position = UDim2.new(0.096704483, 0, 0.272727281, 0)
  2018.                 togName.Size = UDim2.new(0, 222, 0, 14)
  2019.                 togName.Font = Enum.Font.GothamSemibold
  2020.                 togName.Text = keytext
  2021.                 togName.RichText = true
  2022.                 togName.TextColor3 = themeList.TextColor
  2023.                 togName.TextSize = 14.000
  2024.                 togName.TextXAlignment = Enum.TextXAlignment.Left
  2025.  
  2026.                 viewInfo.Name = "viewInfo"
  2027.                 viewInfo.Parent = keybindElement
  2028.                 viewInfo.BackgroundTransparency = 1.000
  2029.                 viewInfo.LayoutOrder = 9
  2030.                 viewInfo.Position = UDim2.new(0.930000007, 0, 0.151999995, 0)
  2031.                 viewInfo.Size = UDim2.new(0, 23, 0, 23)
  2032.                 viewInfo.ZIndex = 2
  2033.                 viewInfo.Image = "rbxassetid://3926305904"
  2034.                 viewInfo.ImageColor3 = themeList.SchemeColor
  2035.                 viewInfo.ImageRectOffset = Vector2.new(764, 764)
  2036.                 viewInfo.ImageRectSize = Vector2.new(36, 36)
  2037.                 viewInfo.MouseButton1Click:Connect(function()
  2038.                     if not viewDe then
  2039.                         viewDe = true
  2040.                         focusing = true
  2041.                         for i,v in next, infoContainer:GetChildren() do
  2042.                             if v ~= moreInfo then
  2043.                                 Utility:TweenObject(v, {Position = UDim2.new(0,0,2,0)}, 0.2)
  2044.                             end
  2045.                         end
  2046.                         Utility:TweenObject(moreInfo, {Position = UDim2.new(0,0,0,0)}, 0.2)
  2047.                         Utility:TweenObject(blurFrame, {BackgroundTransparency = 0.5}, 0.2)
  2048.                         Utility:TweenObject(keybindElement, {BackgroundColor3 = themeList.ElementColor}, 0.2)
  2049.                         wait(1.5)
  2050.                         focusing = false
  2051.                         Utility:TweenObject(moreInfo, {Position = UDim2.new(0,0,2,0)}, 0.2)
  2052.                         Utility:TweenObject(blurFrame, {BackgroundTransparency = 1}, 0.2)
  2053.                         wait(0)
  2054.                         viewDe = false
  2055.                     end
  2056.                 end)  
  2057.                                 updateSectionFrame()
  2058.                 UpdateSize()
  2059.                 local oHover = false
  2060.                 keybindElement.MouseEnter:Connect(function()
  2061.                     if not focusing then
  2062.                         game.TweenService:Create(keybindElement, TweenInfo.new(0.1, Enum.EasingStyle.Linear, Enum.EasingDirection.In), {
  2063.                             BackgroundColor3 = Color3.fromRGB(themeList.ElementColor.r * 255 + 8, themeList.ElementColor.g * 255 + 9, themeList.ElementColor.b * 255 + 10)
  2064.                         }):Play()
  2065.                         oHover = true
  2066.                     end
  2067.                 end)
  2068.                 keybindElement.MouseLeave:Connect(function()
  2069.                     if not focusing then
  2070.                         game.TweenService:Create(keybindElement, TweenInfo.new(0.1, Enum.EasingStyle.Linear, Enum.EasingDirection.In), {
  2071.                             BackgroundColor3 = themeList.ElementColor
  2072.                         }):Play()
  2073.                         oHover = false
  2074.                     end
  2075.                 end)        
  2076.  
  2077.                 UICorner1.CornerRadius = UDim.new(0, 4)
  2078.                 UICorner1.Parent = moreInfo
  2079.  
  2080.                 if themeList.SchemeColor == Color3.fromRGB(255,255,255) then
  2081.                     Utility:TweenObject(moreInfo, {TextColor3 = Color3.fromRGB(0,0,0)}, 0.2)
  2082.                 end
  2083.                 if themeList.SchemeColor == Color3.fromRGB(0,0,0) then
  2084.                     Utility:TweenObject(moreInfo, {TextColor3 = Color3.fromRGB(255,255,255)}, 0.2)
  2085.                 end
  2086.  
  2087.                 UICorner.CornerRadius = UDim.new(0, 4)
  2088.                 UICorner.Parent = keybindElement
  2089.  
  2090.                 touch.Name = "touch"
  2091.                 touch.Parent = keybindElement
  2092.                 touch.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  2093.                 touch.BackgroundTransparency = 1.000
  2094.                 touch.BorderColor3 = Color3.fromRGB(27, 42, 53)
  2095.                 touch.Position = UDim2.new(0.0199999996, 0, 0.180000007, 0)
  2096.                 touch.Size = UDim2.new(0, 21, 0, 21)
  2097.                 touch.Image = "rbxassetid://3926305904"
  2098.                 touch.ImageColor3 = themeList.SchemeColor
  2099.                 touch.ImageRectOffset = Vector2.new(364, 284)
  2100.                 touch.ImageRectSize = Vector2.new(36, 36)
  2101.  
  2102.                 togName_2.Name = "togName"
  2103.                 togName_2.Parent = keybindElement
  2104.                 togName_2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  2105.                 togName_2.BackgroundTransparency = 1.000
  2106.                 togName_2.Position = UDim2.new(0.727386296, 0, 0.272727281, 0)
  2107.                 togName_2.Size = UDim2.new(0, 70, 0, 14)
  2108.                 togName_2.Font = Enum.Font.GothamSemibold
  2109.                 togName_2.Text = oldKey
  2110.                 togName_2.TextColor3 = themeList.SchemeColor
  2111.                 togName_2.TextSize = 14.000
  2112.                 togName_2.TextXAlignment = Enum.TextXAlignment.Right  
  2113.  
  2114.                 coroutine.wrap(function()
  2115.                     while wait() do
  2116.                         if not oHover then
  2117.                             keybindElement.BackgroundColor3 = themeList.ElementColor
  2118.                         end
  2119.                         togName_2.TextColor3 = themeList.SchemeColor
  2120.                         touch.ImageColor3 = themeList.SchemeColor
  2121.                         viewInfo.ImageColor3 = themeList.SchemeColor
  2122.                         togName.BackgroundColor3 = themeList.TextColor
  2123.                         togName.TextColor3 = themeList.TextColor
  2124.                         Sample.ImageColor3 = themeList.SchemeColor
  2125.                         moreInfo.TextColor3 = themeList.TextColor
  2126.                         moreInfo.BackgroundColor3 = Color3.fromRGB(themeList.SchemeColor.r * 255 - 14, themeList.SchemeColor.g * 255 - 17, themeList.SchemeColor.b * 255 - 13)
  2127.  
  2128.                     end
  2129.                 end)()
  2130.             end
  2131.  
  2132.             function Elements:NewColorPicker(colText, colInf, defcolor, callback)
  2133.                 colText = colText or "ColorPicker"
  2134.                 callback = callback or function() end
  2135.                 defcolor = defcolor or Color3.fromRGB(1,1,1)
  2136.                 local h, s, v = Color3.toHSV(defcolor)
  2137.                 local ms = game.Players.LocalPlayer:GetMouse()
  2138.                 local colorOpened = false
  2139.                 local colorElement = Instance.new("TextButton")
  2140.                 local UICorner = Instance.new("UICorner")
  2141.                 local colorHeader = Instance.new("Frame")
  2142.                 local UICorner_2 = Instance.new("UICorner")
  2143.                 local touch = Instance.new("ImageLabel")
  2144.                 local togName = Instance.new("TextLabel")
  2145.                 local viewInfo = Instance.new("ImageButton")
  2146.                 local colorCurrent = Instance.new("Frame")
  2147.                 local UICorner_3 = Instance.new("UICorner")
  2148.                 local UIListLayout = Instance.new("UIListLayout")
  2149.                 local colorInners = Instance.new("Frame")
  2150.                 local UICorner_4 = Instance.new("UICorner")
  2151.                 local rgb = Instance.new("ImageButton")
  2152.                 local UICorner_5 = Instance.new("UICorner")
  2153.                 local rbgcircle = Instance.new("ImageLabel")
  2154.                 local darkness = Instance.new("ImageButton")
  2155.                 local UICorner_6 = Instance.new("UICorner")
  2156.                 local darkcircle = Instance.new("ImageLabel")
  2157.                 local toggleDisabled = Instance.new("ImageLabel")
  2158.                 local toggleEnabled = Instance.new("ImageLabel")
  2159.                 local onrainbow = Instance.new("TextButton")
  2160.                 local togName_2 = Instance.new("TextLabel")
  2161.  
  2162.                 --Properties:
  2163.                 local Sample = Instance.new("ImageLabel")
  2164.                 Sample.Name = "Sample"
  2165.                 Sample.Parent = colorHeader
  2166.                 Sample.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  2167.                 Sample.BackgroundTransparency = 1.000
  2168.                 Sample.Image = "http://www.roblox.com/asset/?id=4560909609"
  2169.                 Sample.ImageColor3 = themeList.SchemeColor
  2170.                 Sample.ImageTransparency = 0.600
  2171.  
  2172.                 local btn = colorHeader
  2173.                 local sample = Sample
  2174.  
  2175.                 colorElement.Name = "colorElement"
  2176.                 colorElement.Parent = sectionInners
  2177.                 colorElement.BackgroundColor3 = themeList.ElementColor
  2178.                 colorElement.BackgroundTransparency = 1.000
  2179.                 colorElement.ClipsDescendants = true
  2180.                 colorElement.Position = UDim2.new(0, 0, 0.566834569, 0)
  2181.                 colorElement.Size = UDim2.new(0, 352, 0, 33)
  2182.                 colorElement.AutoButtonColor = false
  2183.                 colorElement.Font = Enum.Font.SourceSans
  2184.                 colorElement.Text = ""
  2185.                 colorElement.TextColor3 = Color3.fromRGB(0, 0, 0)
  2186.                 colorElement.TextSize = 14.000
  2187.                 colorElement.MouseButton1Click:Connect(function()
  2188.                     if not focusing then
  2189.                         if colorOpened then
  2190.                             colorOpened = false
  2191.                             colorElement:TweenSize(UDim2.new(0, 352, 0, 33), "InOut", "Linear", 0.08)
  2192.                             wait(0.1)
  2193.                             updateSectionFrame()
  2194.                             UpdateSize()
  2195.                             local c = sample:Clone()
  2196.                             c.Parent = btn
  2197.                             local x, y = (ms.X - c.AbsolutePosition.X), (ms.Y - c.AbsolutePosition.Y)
  2198.                             c.Position = UDim2.new(0, x, 0, y)
  2199.                             local len, size = 0.35, nil
  2200.                             if btn.AbsoluteSize.X >= btn.AbsoluteSize.Y then
  2201.                                 size = (btn.AbsoluteSize.X * 1.5)
  2202.                             else
  2203.                                 size = (btn.AbsoluteSize.Y * 1.5)
  2204.                             end
  2205.                             c:TweenSizeAndPosition(UDim2.new(0, size, 0, size), UDim2.new(0.5, (-size / 2), 0.5, (-size / 2)), 'Out', 'Quad', len, true, nil)
  2206.                             for i = 1, 10 do
  2207.                                 c.ImageTransparency = c.ImageTransparency + 0.05
  2208.                                 wait(len / 12)
  2209.                             end
  2210.                             c:Destroy()
  2211.                         else
  2212.                             colorOpened = true
  2213.                             colorElement:TweenSize(UDim2.new(0, 352, 0, 141), "InOut", "Linear", 0.08, true)
  2214.                             wait(0.1)
  2215.                             updateSectionFrame()
  2216.                             UpdateSize()
  2217.                             local c = sample:Clone()
  2218.                             c.Parent = btn
  2219.                             local x, y = (ms.X - c.AbsolutePosition.X), (ms.Y - c.AbsolutePosition.Y)
  2220.                             c.Position = UDim2.new(0, x, 0, y)
  2221.                             local len, size = 0.35, nil
  2222.                             if btn.AbsoluteSize.X >= btn.AbsoluteSize.Y then
  2223.                                 size = (btn.AbsoluteSize.X * 1.5)
  2224.                             else
  2225.                                 size = (btn.AbsoluteSize.Y * 1.5)
  2226.                             end
  2227.                             c:TweenSizeAndPosition(UDim2.new(0, size, 0, size), UDim2.new(0.5, (-size / 2), 0.5, (-size / 2)), 'Out', 'Quad', len, true, nil)
  2228.                             for i = 1, 10 do
  2229.                                 c.ImageTransparency = c.ImageTransparency + 0.05
  2230.                                 wait(len / 12)
  2231.                             end
  2232.                             c:Destroy()
  2233.                         end
  2234.                     else
  2235.                         for i,v in next, infoContainer:GetChildren() do
  2236.                             Utility:TweenObject(v, {Position = UDim2.new(0,0,2,0)}, 0.2)
  2237.                             focusing = false
  2238.                         end
  2239.                         Utility:TweenObject(blurFrame, {BackgroundTransparency = 1}, 0.2)
  2240.                     end
  2241.                 end)
  2242.                 UICorner.CornerRadius = UDim.new(0, 4)
  2243.                 UICorner.Parent = colorElement
  2244.  
  2245.                 colorHeader.Name = "colorHeader"
  2246.                 colorHeader.Parent = colorElement
  2247.                 colorHeader.BackgroundColor3 = themeList.ElementColor
  2248.                 colorHeader.Size = UDim2.new(0, 352, 0, 33)
  2249.                 colorHeader.ClipsDescendants = true
  2250.  
  2251.                 UICorner_2.CornerRadius = UDim.new(0, 4)
  2252.                 UICorner_2.Parent = colorHeader
  2253.                
  2254.                 touch.Name = "touch"
  2255.                 touch.Parent = colorHeader
  2256.                 touch.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  2257.                 touch.BackgroundTransparency = 1.000
  2258.                 touch.BorderColor3 = Color3.fromRGB(27, 42, 53)
  2259.                 touch.Position = UDim2.new(0.0199999996, 0, 0.180000007, 0)
  2260.                 touch.Size = UDim2.new(0, 21, 0, 21)
  2261.                 touch.Image = "rbxassetid://3926305904"
  2262.                 touch.ImageColor3 = themeList.SchemeColor
  2263.                 touch.ImageRectOffset = Vector2.new(44, 964)
  2264.                 touch.ImageRectSize = Vector2.new(36, 36)
  2265.  
  2266.                 togName.Name = "togName"
  2267.                 togName.Parent = colorHeader
  2268.                 togName.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  2269.                 togName.BackgroundTransparency = 1.000
  2270.                 togName.Position = UDim2.new(0.096704483, 0, 0.272727281, 0)
  2271.                 togName.Size = UDim2.new(0, 288, 0, 14)
  2272.                 togName.Font = Enum.Font.GothamSemibold
  2273.                 togName.Text = colText
  2274.                 togName.TextColor3 = themeList.TextColor
  2275.                 togName.TextSize = 14.000
  2276.                 togName.RichText = true
  2277.                 togName.TextXAlignment = Enum.TextXAlignment.Left
  2278.  
  2279.                 local moreInfo = Instance.new("TextLabel")
  2280.                 local UICorner = Instance.new("UICorner")
  2281.  
  2282.                 moreInfo.Name = "TipMore"
  2283.                 moreInfo.Parent = infoContainer
  2284.                 moreInfo.BackgroundColor3 = Color3.fromRGB(themeList.SchemeColor.r * 255 - 14, themeList.SchemeColor.g * 255 - 17, themeList.SchemeColor.b * 255 - 13)
  2285.                 moreInfo.Position = UDim2.new(0, 0, 2, 0)
  2286.                 moreInfo.Size = UDim2.new(0, 353, 0, 33)
  2287.                 moreInfo.ZIndex = 9
  2288.                 moreInfo.Font = Enum.Font.GothamSemibold
  2289.                 moreInfo.Text = "  "..colInf
  2290.                 moreInfo.TextColor3 = themeList.TextColor
  2291.                 moreInfo.TextSize = 14.000
  2292.                 moreInfo.RichText = true
  2293.                 moreInfo.TextXAlignment = Enum.TextXAlignment.Left
  2294.  
  2295.                 UICorner.CornerRadius = UDim.new(0, 4)
  2296.                 UICorner.Parent = moreInfo
  2297.  
  2298.                 viewInfo.Name = "viewInfo"
  2299.                 viewInfo.Parent = colorHeader
  2300.                 viewInfo.BackgroundTransparency = 1.000
  2301.                 viewInfo.LayoutOrder = 9
  2302.                 viewInfo.Position = UDim2.new(0.930000007, 0, 0.151999995, 0)
  2303.                 viewInfo.Size = UDim2.new(0, 23, 0, 23)
  2304.                 viewInfo.ZIndex = 2
  2305.                 viewInfo.Image = "rbxassetid://3926305904"
  2306.                 viewInfo.ImageColor3 = themeList.SchemeColor
  2307.                 viewInfo.ImageRectOffset = Vector2.new(764, 764)
  2308.                 viewInfo.ImageRectSize = Vector2.new(36, 36)
  2309.                 viewInfo.MouseButton1Click:Connect(function()
  2310.                     if not viewDe then
  2311.                         viewDe = true
  2312.                         focusing = true
  2313.                         for i,v in next, infoContainer:GetChildren() do
  2314.                             if v ~= moreInfo then
  2315.                                 Utility:TweenObject(v, {Position = UDim2.new(0,0,2,0)}, 0.2)
  2316.                             end
  2317.                         end
  2318.                         Utility:TweenObject(moreInfo, {Position = UDim2.new(0,0,0,0)}, 0.2)
  2319.                         Utility:TweenObject(blurFrame, {BackgroundTransparency = 0.5}, 0.2)
  2320.                         Utility:TweenObject(colorElement, {BackgroundColor3 = themeList.ElementColor}, 0.2)
  2321.                         wait(1.5)
  2322.                         focusing = false
  2323.                         Utility:TweenObject(moreInfo, {Position = UDim2.new(0,0,2,0)}, 0.2)
  2324.                         Utility:TweenObject(blurFrame, {BackgroundTransparency = 1}, 0.2)
  2325.                         wait(0)
  2326.                         viewDe = false
  2327.                     end
  2328.                 end)  
  2329.  
  2330.                 colorCurrent.Name = "colorCurrent"
  2331.                 colorCurrent.Parent = colorHeader
  2332.                 colorCurrent.BackgroundColor3 = defcolor
  2333.                 colorCurrent.Position = UDim2.new(0.792613626, 0, 0.212121218, 0)
  2334.                 colorCurrent.Size = UDim2.new(0, 42, 0, 18)
  2335.  
  2336.                 UICorner_3.CornerRadius = UDim.new(0, 4)
  2337.                 UICorner_3.Parent = colorCurrent
  2338.  
  2339.                 UIListLayout.Parent = colorElement
  2340.                 UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
  2341.                 UIListLayout.Padding = UDim.new(0, 3)
  2342.  
  2343.                 colorInners.Name = "colorInners"
  2344.                 colorInners.Parent = colorElement
  2345.                 colorInners.BackgroundColor3 = themeList.ElementColor
  2346.                 colorInners.Position = UDim2.new(0, 0, 0.255319148, 0)
  2347.                 colorInners.Size = UDim2.new(0, 352, 0, 105)
  2348.  
  2349.                 UICorner_4.CornerRadius = UDim.new(0, 4)
  2350.                 UICorner_4.Parent = colorInners
  2351.  
  2352.                 rgb.Name = "rgb"
  2353.                 rgb.Parent = colorInners
  2354.                 rgb.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  2355.                 rgb.BackgroundTransparency = 1.000
  2356.                 rgb.Position = UDim2.new(0.0198863633, 0, 0.0476190485, 0)
  2357.                 rgb.Size = UDim2.new(0, 211, 0, 93)
  2358.                 rgb.Image = "http://www.roblox.com/asset/?id=6523286724"
  2359.  
  2360.                 UICorner_5.CornerRadius = UDim.new(0, 4)
  2361.                 UICorner_5.Parent = rgb
  2362.  
  2363.                 rbgcircle.Name = "rbgcircle"
  2364.                 rbgcircle.Parent = rgb
  2365.                 rbgcircle.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  2366.                 rbgcircle.BackgroundTransparency = 1.000
  2367.                 rbgcircle.Size = UDim2.new(0, 14, 0, 14)
  2368.                 rbgcircle.Image = "rbxassetid://3926309567"
  2369.                 rbgcircle.ImageColor3 = Color3.fromRGB(0, 0, 0)
  2370.                 rbgcircle.ImageRectOffset = Vector2.new(628, 420)
  2371.                 rbgcircle.ImageRectSize = Vector2.new(48, 48)
  2372.  
  2373.                 darkness.Name = "darkness"
  2374.                 darkness.Parent = colorInners
  2375.                 darkness.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  2376.                 darkness.BackgroundTransparency = 1.000
  2377.                 darkness.Position = UDim2.new(0.636363626, 0, 0.0476190485, 0)
  2378.                 darkness.Size = UDim2.new(0, 18, 0, 93)
  2379.                 darkness.Image = "http://www.roblox.com/asset/?id=6523291212"
  2380.  
  2381.                 UICorner_6.CornerRadius = UDim.new(0, 4)
  2382.                 UICorner_6.Parent = darkness
  2383.  
  2384.                 darkcircle.Name = "darkcircle"
  2385.                 darkcircle.Parent = darkness
  2386.                 darkcircle.AnchorPoint = Vector2.new(0.5, 0)
  2387.                 darkcircle.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  2388.                 darkcircle.BackgroundTransparency = 1.000
  2389.                 darkcircle.Size = UDim2.new(0, 14, 0, 14)
  2390.                 darkcircle.Image = "rbxassetid://3926309567"
  2391.                 darkcircle.ImageColor3 = Color3.fromRGB(0, 0, 0)
  2392.                 darkcircle.ImageRectOffset = Vector2.new(628, 420)
  2393.                 darkcircle.ImageRectSize = Vector2.new(48, 48)
  2394.  
  2395.                 toggleDisabled.Name = "toggleDisabled"
  2396.                 toggleDisabled.Parent = colorInners
  2397.                 toggleDisabled.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  2398.                 toggleDisabled.BackgroundTransparency = 1.000
  2399.                 toggleDisabled.Position = UDim2.new(0.704659104, 0, 0.0657142699, 0)
  2400.                 toggleDisabled.Size = UDim2.new(0, 21, 0, 21)
  2401.                 toggleDisabled.Image = "rbxassetid://3926309567"
  2402.                 toggleDisabled.ImageColor3 = themeList.SchemeColor
  2403.                 toggleDisabled.ImageRectOffset = Vector2.new(628, 420)
  2404.                 toggleDisabled.ImageRectSize = Vector2.new(48, 48)
  2405.  
  2406.                 toggleEnabled.Name = "toggleEnabled"
  2407.                 toggleEnabled.Parent = colorInners
  2408.                 toggleEnabled.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  2409.                 toggleEnabled.BackgroundTransparency = 1.000
  2410.                 toggleEnabled.Position = UDim2.new(0.704999983, 0, 0.0659999996, 0)
  2411.                 toggleEnabled.Size = UDim2.new(0, 21, 0, 21)
  2412.                 toggleEnabled.Image = "rbxassetid://3926309567"
  2413.                 toggleEnabled.ImageColor3 = themeList.SchemeColor
  2414.                 toggleEnabled.ImageRectOffset = Vector2.new(784, 420)
  2415.                 toggleEnabled.ImageRectSize = Vector2.new(48, 48)
  2416.                 toggleEnabled.ImageTransparency = 1.000
  2417.  
  2418.                 onrainbow.Name = "onrainbow"
  2419.                 onrainbow.Parent = toggleEnabled
  2420.                 onrainbow.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  2421.                 onrainbow.BackgroundTransparency = 1.000
  2422.                 onrainbow.Position = UDim2.new(2.90643607e-06, 0, 0, 0)
  2423.                 onrainbow.Size = UDim2.new(1, 0, 1, 0)
  2424.                 onrainbow.Font = Enum.Font.SourceSans
  2425.                 onrainbow.Text = ""
  2426.                 onrainbow.TextColor3 = Color3.fromRGB(0, 0, 0)
  2427.                 onrainbow.TextSize = 14.000
  2428.  
  2429.                 togName_2.Name = "togName"
  2430.                 togName_2.Parent = colorInners
  2431.                 togName_2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  2432.                 togName_2.BackgroundTransparency = 1.000
  2433.                 togName_2.Position = UDim2.new(0.779999971, 0, 0.100000001, 0)
  2434.                 togName_2.Size = UDim2.new(0, 278, 0, 14)
  2435.                 togName_2.Font = Enum.Font.GothamSemibold
  2436.                 togName_2.Text = "Rainbow"
  2437.                 togName_2.TextColor3 = themeList.TextColor
  2438.                 togName_2.TextSize = 14.000
  2439.                 togName_2.TextXAlignment = Enum.TextXAlignment.Left
  2440.  
  2441.                 if themeList.SchemeColor == Color3.fromRGB(255,255,255) then
  2442.                     Utility:TweenObject(moreInfo, {TextColor3 = Color3.fromRGB(0,0,0)}, 0.2)
  2443.                 end
  2444.                 if themeList.SchemeColor == Color3.fromRGB(0,0,0) then
  2445.                     Utility:TweenObject(moreInfo, {TextColor3 = Color3.fromRGB(255,255,255)}, 0.2)
  2446.                 end
  2447.                 local hovering = false
  2448.  
  2449.                 colorElement.MouseEnter:Connect(function()
  2450.                     if not focusing then
  2451.                         game.TweenService:Create(colorElement, TweenInfo.new(0.1, Enum.EasingStyle.Linear, Enum.EasingDirection.In), {
  2452.                             BackgroundColor3 = Color3.fromRGB(themeList.ElementColor.r * 255 + 8, themeList.ElementColor.g * 255 + 9, themeList.ElementColor.b * 255 + 10)
  2453.                         }):Play()
  2454.                         hovering = true
  2455.                     end
  2456.                 end)
  2457.                 colorElement.MouseLeave:Connect(function()
  2458.                     if not focusing then
  2459.                         game.TweenService:Create(colorElement, TweenInfo.new(0.1, Enum.EasingStyle.Linear, Enum.EasingDirection.In), {
  2460.                             BackgroundColor3 = themeList.ElementColor
  2461.                         }):Play()
  2462.                         hovering = false
  2463.                     end
  2464.                 end)        
  2465.  
  2466.                 if themeList.SchemeColor == Color3.fromRGB(255,255,255) then
  2467.                     Utility:TweenObject(moreInfo, {TextColor3 = Color3.fromRGB(0,0,0)}, 0.2)
  2468.                 end
  2469.                 if themeList.SchemeColor == Color3.fromRGB(0,0,0) then
  2470.                     Utility:TweenObject(moreInfo, {TextColor3 = Color3.fromRGB(255,255,255)}, 0.2)
  2471.                 end
  2472.                 coroutine.wrap(function()
  2473.                     while wait() do
  2474.                         if not hovering then
  2475.                             colorElement.BackgroundColor3 = themeList.ElementColor
  2476.                         end
  2477.                         touch.ImageColor3 = themeList.SchemeColor
  2478.                         colorHeader.BackgroundColor3 = themeList.ElementColor
  2479.                         togName.TextColor3 = themeList.TextColor
  2480.                         moreInfo.BackgroundColor3 = Color3.fromRGB(themeList.SchemeColor.r * 255 - 14, themeList.SchemeColor.g * 255 - 17, themeList.SchemeColor.b * 255 - 13)
  2481.                         moreInfo.TextColor3 = themeList.TextColor
  2482.                         viewInfo.ImageColor3 = themeList.SchemeColor
  2483.                         colorInners.BackgroundColor3 = themeList.ElementColor
  2484.                         toggleDisabled.ImageColor3 = themeList.SchemeColor
  2485.                         toggleEnabled.ImageColor3 = themeList.SchemeColor
  2486.                         togName_2.TextColor3 = themeList.TextColor
  2487.                         Sample.ImageColor3 = themeList.SchemeColor
  2488.                     end
  2489.                 end)()
  2490.                 updateSectionFrame()
  2491.                 UpdateSize()
  2492.                 local plr = game.Players.LocalPlayer
  2493.                 local mouse = plr:GetMouse()
  2494.                 local uis = game:GetService('UserInputService')
  2495.                 local rs = game:GetService("RunService")
  2496.                 local colorpicker = false
  2497.                 local darknesss = false
  2498.                 local dark = false
  2499.                 local rgb = rgb    
  2500.                 local dark = darkness    
  2501.                 local cursor = rbgcircle
  2502.                 local cursor2 = darkcircle
  2503.                 local color = {1,1,1}
  2504.                 local rainbow = false
  2505.                 local rainbowconnection
  2506.                 local counter = 0
  2507.                 --
  2508.                 local function zigzag(X) return math.acos(math.cos(X*math.pi))/math.pi end
  2509.                 counter = 0
  2510.                 local function mouseLocation()
  2511.                     return plr:GetMouse()
  2512.                 end
  2513.                 local function cp()
  2514.                     if colorpicker then
  2515.                         local ml = mouseLocation()
  2516.                         local x,y = ml.X - rgb.AbsolutePosition.X,ml.Y - rgb.AbsolutePosition.Y
  2517.                         local maxX,maxY = rgb.AbsoluteSize.X,rgb.AbsoluteSize.Y
  2518.                         if x<0 then x=0 end
  2519.                         if x>maxX then x=maxX end
  2520.                         if y<0 then y=0 end
  2521.                         if y>maxY then y=maxY end
  2522.                         x = x/maxX
  2523.                         y = y/maxY
  2524.                         local cx = cursor.AbsoluteSize.X/2
  2525.                         local cy = cursor.AbsoluteSize.Y/2
  2526.                         cursor.Position = UDim2.new(x,-cx,y,-cy)
  2527.                         color = {1-x,1-y,color[3]}
  2528.                         local realcolor = Color3.fromHSV(color[1],color[2],color[3])
  2529.                         colorCurrent.BackgroundColor3 = realcolor
  2530.                         callback(realcolor)
  2531.                     end
  2532.                     if darknesss then
  2533.                         local ml = mouseLocation()
  2534.                         local y = ml.Y - dark.AbsolutePosition.Y
  2535.                         local maxY = dark.AbsoluteSize.Y
  2536.                         if y<0 then y=0 end
  2537.                         if y>maxY then y=maxY end
  2538.                         y = y/maxY
  2539.                         local cy = cursor2.AbsoluteSize.Y/2
  2540.                         cursor2.Position = UDim2.new(0.5,0,y,-cy)
  2541.                         cursor2.ImageColor3 = Color3.fromHSV(0,0,y)
  2542.                         color = {color[1],color[2],1-y}
  2543.                         local realcolor = Color3.fromHSV(color[1],color[2],color[3])
  2544.                         colorCurrent.BackgroundColor3 = realcolor
  2545.                         callback(realcolor)
  2546.                     end
  2547.                 end
  2548.  
  2549.                 local function setcolor(tbl)
  2550.                     local cx = cursor.AbsoluteSize.X/2
  2551.                     local cy = cursor.AbsoluteSize.Y/2
  2552.                     color = {tbl[1],tbl[2],tbl[3]}
  2553.                     cursor.Position = UDim2.new(color[1],-cx,color[2]-1,-cy)
  2554.                     cursor2.Position = UDim2.new(0.5,0,color[3]-1,-cy)
  2555.                     local realcolor = Color3.fromHSV(color[1],color[2],color[3])
  2556.                     colorCurrent.BackgroundColor3 = realcolor
  2557.                 end
  2558.                 local function setrgbcolor(tbl)
  2559.                     local cx = cursor.AbsoluteSize.X/2
  2560.                     local cy = cursor.AbsoluteSize.Y/2
  2561.                     color = {tbl[1],tbl[2],color[3]}
  2562.                     cursor.Position = UDim2.new(color[1],-cx,color[2]-1,-cy)
  2563.                     local realcolor = Color3.fromHSV(color[1],color[2],color[3])
  2564.                     colorCurrent.BackgroundColor3 = realcolor
  2565.                     callback(realcolor)
  2566.                 end
  2567.                 local function togglerainbow()
  2568.                     if rainbow then
  2569.                         game.TweenService:Create(toggleEnabled, TweenInfo.new(0.1, Enum.EasingStyle.Linear, Enum.EasingDirection.InOut), {
  2570.                             ImageTransparency = 1
  2571.                         }):Play()
  2572.                         rainbow = false
  2573.                         rainbowconnection:Disconnect()
  2574.                     else
  2575.                         game.TweenService:Create(toggleEnabled, TweenInfo.new(0.1, Enum.EasingStyle.Linear, Enum.EasingDirection.InOut), {
  2576.                             ImageTransparency = 0
  2577.                         }):Play()
  2578.                         rainbow = true
  2579.                         rainbowconnection = rs.RenderStepped:Connect(function()
  2580.                             setrgbcolor({zigzag(counter),1,1})
  2581.                             counter = counter + 0.01
  2582.                         end)
  2583.                     end
  2584.                 end
  2585.  
  2586.                 onrainbow.MouseButton1Click:Connect(togglerainbow)
  2587.                 --
  2588.                 mouse.Move:connect(cp)
  2589.                 rgb.MouseButton1Down:connect(function()colorpicker=true end)
  2590.                 dark.MouseButton1Down:connect(function()darknesss=true end)
  2591.                 uis.InputEnded:Connect(function(input)
  2592.                     if input.UserInputType.Name == 'MouseButton1' then
  2593.                         if darknesss then darknesss = false end
  2594.                         if colorpicker then colorpicker = false end
  2595.                     end
  2596.                 end)
  2597.                 setcolor({h,s,v})
  2598.             end
  2599.            
  2600.             function Elements:NewLabel(title)
  2601.                 local labelFunctions = {}
  2602.                 local label = Instance.new("TextLabel")
  2603.                 local UICorner = Instance.new("UICorner")
  2604.                 label.Name = "label"
  2605.                 label.Parent = sectionInners
  2606.                 label.BackgroundColor3 = themeList.SchemeColor
  2607.                 label.BorderSizePixel = 0
  2608.                 label.ClipsDescendants = true
  2609.                 label.Text = title
  2610.                 label.Size = UDim2.new(0, 352, 0, 33)
  2611.                 label.Font = Enum.Font.Gotham
  2612.                 label.Text = "  "..title
  2613.                 label.RichText = true
  2614.                 label.TextColor3 = themeList.TextColor
  2615.                 Objects[label] = "TextColor3"
  2616.                 label.TextSize = 14.000
  2617.                 label.TextXAlignment = Enum.TextXAlignment.Left
  2618.                
  2619.                 UICorner.CornerRadius = UDim.new(0, 4)
  2620.                 UICorner.Parent = label
  2621.                
  2622.                 if themeList.SchemeColor == Color3.fromRGB(255,255,255) then
  2623.                     Utility:TweenObject(label, {TextColor3 = Color3.fromRGB(0,0,0)}, 0.2)
  2624.                 end
  2625.                 if themeList.SchemeColor == Color3.fromRGB(0,0,0) then
  2626.                     Utility:TweenObject(label, {TextColor3 = Color3.fromRGB(255,255,255)}, 0.2)
  2627.                 end
  2628.  
  2629.                 coroutine.wrap(function()
  2630.                     while wait() do
  2631.                         label.BackgroundColor3 = themeList.SchemeColor
  2632.                         label.TextColor3 = themeList.TextColor
  2633.                     end
  2634.                 end)()
  2635.                 updateSectionFrame()
  2636.                 UpdateSize()
  2637.                 function labelFunctions:UpdateLabel(newText)
  2638.                     if label.Text ~= "  "..newText then
  2639.                         label.Text = "  "..newText
  2640.                     end
  2641.                 end
  2642.                 return labelFunctions
  2643.             end
  2644.             return Elements
  2645.         end
  2646.         return Sections
  2647.     end  
  2648.     return Tabs
  2649. end
  2650. return Kavo
Add Comment
Please, Sign In to add comment