ssssdsd1213

test2

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