scripterhaxer

Kavo UI

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