rrixh

kavo mobile drag

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