BoneTheScripter

KavoUpdatedTest

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