C-H-4-0-S

.

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