Ameno__GodOH

kavo

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