KrystekYY

Untitled

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