ssssdsd1213

Untitled

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