BoneTheScripter

d

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