RobloxLuaDeveloper

KAVO LIBRARY [MODDED]

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