xBonic

KAVO

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