pastebin - collaborative debugging tool
xyz.kpaste.net RSS


Kavo UI
Posted by Anonymous on Wed 7th Aug 2024 15:37
raw | new post

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

Submit a correction or amendment below (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.

Syntax highlighting:

To highlight particular lines, prefix each line with {%HIGHLIGHT}




All content is user-submitted.
The administrators of this site (kpaste.net) are not responsible for their content.
Abuse reports should be emailed to us at