wghcbgfftgh

Untitled

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