Zodiac_Exploits

Kavo UI

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