Sad43

Untitled

Jul 17th, 2025 (edited)
12
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 66.17 KB | None | 0 0
  1. local Kavo = {}
  2.  
  3. local tween = game:GetService("TweenService")
  4. local tweeninfo = TweenInfo.new
  5. local input = game:GetService("UserInputService")
  6. local run = game:GetService("RunService")
  7.  
  8. local Utility = {}
  9. local Objects = {}
  10. function Kavo:DraggingEnabled(frame, parent)
  11. parent = parent or frame
  12. local dragging = false
  13. local dragInput, mousePos, framePos
  14.  
  15. frame.InputBegan:Connect(function(input)
  16. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  17. dragging = true
  18. mousePos = input.Position
  19. framePos = parent.Position
  20.  
  21. input.Changed:Connect(function()
  22. if input.UserInputState == Enum.UserInputState.End then
  23. dragging = false
  24. end
  25. end)
  26. end
  27. end)
  28.  
  29. frame.InputChanged:Connect(function(input)
  30. if input.UserInputType == Enum.UserInputType.MouseMovement then
  31. dragInput = input
  32. end
  33. end)
  34.  
  35. input.InputChanged:Connect(function(input)
  36. if input == dragInput and dragging then
  37. local delta = input.Position - mousePos
  38. parent.Position = UDim2.new(framePos.X.Scale, framePos.X.Offset + delta.X, framePos.Y.Scale, framePos.Y.Offset + delta.Y)
  39. end
  40. end)
  41. end
  42.  
  43. function Utility:TweenObject(obj, properties, duration, ...)
  44. tween:Create(obj, tweeninfo(duration, ...), properties):Play()
  45. end
  46.  
  47. local themes = {
  48. SchemeColor = Color3.fromRGB(74, 99, 135),
  49. Background = Color3.fromRGB(36, 37, 43),
  50. Header = Color3.fromRGB(28, 29, 34),
  51. TextColor = Color3.fromRGB(255,255,255),
  52. ElementColor = Color3.fromRGB(32, 32, 38)
  53. }
  54. local themeStyles = {
  55. DarkTheme = {SchemeColor = Color3.fromRGB(64, 64, 64), Background = Color3.fromRGB(0, 0, 0), Header = Color3.fromRGB(0, 0, 0), TextColor = Color3.fromRGB(255,255,255), ElementColor = Color3.fromRGB(20, 20, 20)},
  56. LightTheme = {SchemeColor = Color3.fromRGB(150, 150, 150), Background = Color3.fromRGB(255,255,255), Header = Color3.fromRGB(200, 200, 200), TextColor = Color3.fromRGB(0,0,0), ElementColor = Color3.fromRGB(224, 224, 224)},
  57. BloodTheme = {SchemeColor = Color3.fromRGB(227, 27, 27), Background = Color3.fromRGB(10, 10, 10), Header = Color3.fromRGB(5, 5, 5), TextColor = Color3.fromRGB(255,255,255), ElementColor = Color3.fromRGB(20, 20, 20)},
  58. GrapeTheme = {SchemeColor = Color3.fromRGB(166, 71, 214), Background = Color3.fromRGB(64, 50, 71), Header = Color3.fromRGB(36, 28, 41), TextColor = Color3.fromRGB(255,255,255), ElementColor = Color3.fromRGB(74, 58, 84)},
  59. Ocean = {SchemeColor = Color3.fromRGB(86, 76, 251), Background = Color3.fromRGB(26, 32, 58), Header = Color3.fromRGB(38, 45, 71), TextColor = Color3.fromRGB(200, 200, 200), ElementColor = Color3.fromRGB(38, 45, 71)},
  60. Midnight = {SchemeColor = Color3.fromRGB(26, 189, 158), Background = Color3.fromRGB(44, 62, 82), Header = Color3.fromRGB(57, 81, 105), TextColor = Color3.fromRGB(255, 255, 255), ElementColor = Color3.fromRGB(52, 74, 95)},
  61. Sentinel = {SchemeColor = Color3.fromRGB(230, 35, 69), Background = Color3.fromRGB(32, 32, 32), Header = Color3.fromRGB(24, 24, 24), TextColor = Color3.fromRGB(119, 209, 138), ElementColor = Color3.fromRGB(24, 24, 24)},
  62. Synapse = {SchemeColor = Color3.fromRGB(46, 48, 43), Background = Color3.fromRGB(13, 15, 12), Header = Color3.fromRGB(36, 38, 35), TextColor = Color3.fromRGB(152, 99, 53), ElementColor = Color3.fromRGB(24, 24, 24)},
  63. Serpent = {SchemeColor = Color3.fromRGB(0, 166, 58), Background = Color3.fromRGB(31, 41, 43), Header = Color3.fromRGB(22, 29, 31), TextColor = Color3.fromRGB(255,255,255), ElementColor = Color3.fromRGB(22, 29, 31)}
  64. }
  65. local oldTheme = ""
  66.  
  67. local SettingsT = {}
  68.  
  69. local Name = "KavoConfig.JSON"
  70.  
  71. pcall(function()
  72. if not pcall(function() readfile(Name) end) then
  73. writefile(Name, game:service'HttpService':JSONEncode(SettingsT))
  74. end
  75. Settings = game:service'HttpService':JSONEncode(readfile(Name))
  76. end)
  77.  
  78. local LibName = tostring(math.random(1, 100))..tostring(math.random(1,50))..tostring(math.random(1, 100))
  79.  
  80. function Kavo:ToggleUI()
  81. if game.CoreGui[LibName].Enabled then
  82. game.CoreGui[LibName].Enabled = false
  83. else
  84. game.CoreGui[LibName].Enabled = true
  85. end
  86. end
  87.  
  88. function Kavo.CreateLib(kavName, themeList)
  89. if not themeList then themeList = themes end
  90. if themeList == "DarkTheme" then themeList = themeStyles.DarkTheme
  91. elseif themeList == "LightTheme" then themeList = themeStyles.LightTheme
  92. elseif themeList == "BloodTheme" then themeList = themeStyles.BloodTheme
  93. elseif themeList == "GrapeTheme" then themeList = themeStyles.GrapeTheme
  94. elseif themeList == "Ocean" then themeList = themeStyles.Ocean
  95. elseif themeList == "Midnight" then themeList = themeStyles.Midnight
  96. elseif themeList == "Sentinel" then themeList = themeStyles.Sentinel
  97. elseif themeList == "Synapse" then themeList = themeStyles.Synapse
  98. elseif themeList == "Serpent" then themeList = themeStyles.Serpent
  99. else
  100. if themeList.SchemeColor == nil then themeList.SchemeColor = Color3.fromRGB(74, 99, 135)
  101. elseif themeList.Background == nil then themeList.Background = Color3.fromRGB(36, 37, 43)
  102. elseif themeList.Header == nil then themeList.Header = Color3.fromRGB(28, 29, 34)
  103. elseif themeList.TextColor == nil then themeList.TextColor = Color3.fromRGB(255,255,255)
  104. elseif themeList.ElementColor == nil then themeList.ElementColor = Color3.fromRGB(32, 32, 38) end
  105. end
  106.  
  107. themeList = themeList or {}
  108. local selectedTab
  109. kavName = kavName or "Library"
  110. table.insert(Kavo, kavName)
  111. for i,v in pairs(game.CoreGui:GetChildren()) do
  112. if v:IsA("ScreenGui") and v.Name == kavName then v:Destroy() end
  113. end
  114. local ScreenGui = Instance.new("ScreenGui")
  115. local Main = Instance.new("Frame")
  116. local MainCorner = Instance.new("UICorner")
  117. local MainHeader = Instance.new("Frame")
  118. local headerCover = Instance.new("UICorner")
  119. local coverup = Instance.new("Frame")
  120. local title = Instance.new("TextLabel")
  121. local close = Instance.new("ImageButton")
  122. local MainSide = Instance.new("Frame")
  123. local sideCorner = Instance.new("UICorner")
  124. local coverup_2 = Instance.new("Frame")
  125. local tabFrames = Instance.new("Frame")
  126. local tabListing = Instance.new("UIListLayout")
  127. local pages = Instance.new("Frame")
  128. local Pages = Instance.new("Folder")
  129. local infoContainer = Instance.new("Frame")
  130.  
  131. local blurFrame = Instance.new("Frame")
  132.  
  133. Kavo:DraggingEnabled(MainHeader, Main)
  134.  
  135. blurFrame.Name = "blurFrame"
  136. blurFrame.Parent = pages
  137. blurFrame.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  138. blurFrame.BackgroundTransparency = 1
  139. blurFrame.BorderSizePixel = 0
  140. blurFrame.Position = UDim2.new(-0.0222222228, 0, -0.0371747203, 0)
  141. blurFrame.Size = UDim2.new(0, 376, 0, 289)
  142. blurFrame.ZIndex = 999
  143.  
  144. ScreenGui.Parent = game.CoreGui
  145. ScreenGui.Name = LibName
  146. ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  147. ScreenGui.ResetOnSpawn = false
  148.  
  149. Main.Name = "Main"
  150. Main.Parent = ScreenGui
  151. Main.BackgroundColor3 = themeList.Background
  152. Main.ClipsDescendants = true
  153. Main.Position = UDim2.new(0.336503863, 0, 0.275485456, 0)
  154. Main.Size = UDim2.new(0, 525, 0, 318)
  155.  
  156. MainCorner.CornerRadius = UDim.new(0, 4)
  157. MainCorner.Name = "MainCorner"
  158. MainCorner.Parent = Main
  159.  
  160. MainHeader.Name = "MainHeader"
  161. MainHeader.Parent = Main
  162. MainHeader.BackgroundColor3 = themeList.Header
  163. Objects[MainHeader] = "BackgroundColor3"
  164. MainHeader.Size = UDim2.new(0, 525, 0, 29)
  165. headerCover.CornerRadius = UDim.new(0, 4)
  166. headerCover.Name = "headerCover"
  167. headerCover.Parent = MainHeader
  168.  
  169. coverup.Name = "coverup"
  170. coverup.Parent = MainHeader
  171. coverup.BackgroundColor3 = themeList.Header
  172. Objects[coverup] = "BackgroundColor3"
  173. coverup.BorderSizePixel = 0
  174. coverup.Position = UDim2.new(0, 0, 0.758620679, 0)
  175. coverup.Size = UDim2.new(0, 525, 0, 7)
  176.  
  177. title.Name = "title"
  178. title.Parent = MainHeader
  179. title.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  180. title.BackgroundTransparency = 1.000
  181. title.BorderSizePixel = 0
  182. title.Position = UDim2.new(0.0171428565, 0, 0.344827592, 0)
  183. title.Size = UDim2.new(0, 204, 0, 8)
  184. title.Font = Enum.Font.Gotham
  185. title.RichText = true
  186. title.Text = kavName
  187. title.TextColor3 = Color3.fromRGB(245, 245, 245)
  188. title.TextSize = 16.000
  189. title.TextXAlignment = Enum.TextXAlignment.Left
  190.  
  191. close.Name = "close"
  192. close.Parent = MainHeader
  193. close.BackgroundTransparency = 1.000
  194. close.Position = UDim2.new(0.949999988, 0, 0.137999997, 0)
  195. close.Size = UDim2.new(0, 21, 0, 21)
  196. close.ZIndex = 2
  197. close.Image = "rbxassetid://3926305904"
  198. close.ImageRectOffset = Vector2.new(284, 4)
  199. close.ImageRectSize = Vector2.new(24, 24)
  200. close.MouseButton1Click:Connect(function()
  201. game.TweenService:Create(close, TweenInfo.new(0.1, Enum.EasingStyle.Quad, Enum.EasingDirection.InOut), {ImageTransparency = 1}):Play()
  202. task.wait(0.1) -- استبدال wait(0.1)
  203. game.TweenService:Create(Main, TweenInfo.new(0.1, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {
  204. Size = UDim2.new(0,0,0,0),
  205. Position = UDim2.new(0, Main.AbsolutePosition.X + (Main.AbsoluteSize.X / 2), 0, Main.AbsolutePosition.Y + (Main.AbsoluteSize.Y / 2))
  206. }):Play()
  207. task.wait(1) -- استبدال wait(1)
  208. ScreenGui:Destroy()
  209. end)
  210.  
  211. MainSide.Name = "MainSide"
  212. MainSide.Parent = Main
  213. MainSide.BackgroundColor3 = themeList.Header
  214. Objects[MainSide] = "Header"
  215. MainSide.Position = UDim2.new(-7.4505806e-09, 0, 0.0911949649, 0)
  216. MainSide.Size = UDim2.new(0, 149, 0, 289)
  217.  
  218. sideCorner.CornerRadius = UDim.new(0, 4)
  219. sideCorner.Name = "sideCorner"
  220. sideCorner.Parent = MainSide
  221.  
  222. coverup_2.Name = "coverup"
  223. coverup_2.Parent = MainSide
  224. coverup_2.BackgroundColor3 = themeList.Header
  225. Objects[coverup_2] = "Header"
  226. coverup_2.BorderSizePixel = 0
  227. coverup_2.Position = UDim2.new(0.949939311, 0, 0, 0)
  228. coverup_2.Size = UDim2.new(0, 7, 0, 289)
  229.  
  230. tabFrames.Name = "tabFrames"
  231. tabFrames.Parent = MainSide
  232. tabFrames.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  233. tabFrames.BackgroundTransparency = 1.000
  234. tabFrames.Position = UDim2.new(0.0438990258, 0, -0.00066378375, 0)
  235. tabFrames.Size = UDim2.new(0, 135, 0, 283)
  236.  
  237. tabListing.Name = "tabListing"
  238. tabListing.Parent = tabFrames
  239. tabListing.SortOrder = Enum.SortOrder.LayoutOrder
  240.  
  241. pages.Name = "pages"
  242. pages.Parent = Main
  243. pages.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  244. pages.BackgroundTransparency = 1.000
  245. pages.BorderSizePixel = 0
  246. pages.Position = UDim2.new(0.299047589, 0, 0.122641519, 0)
  247. pages.Size = UDim2.new(0, 360, 0, 269)
  248.  
  249. Pages.Name = "Pages"
  250. Pages.Parent = pages
  251.  
  252. infoContainer.Name = "infoContainer"
  253. infoContainer.Parent = Main
  254. infoContainer.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  255. infoContainer.BackgroundTransparency = 1.000
  256. infoContainer.BorderColor3 = Color3.fromRGB(27, 42, 53)
  257. infoContainer.ClipsDescendants = true
  258. infoContainer.Position = UDim2.new(0.299047619, 0, 0.874213815, 0)
  259. infoContainer.Size = UDim2.new(0, 368, 0, 33)
  260.  
  261. coroutine.wrap(function()
  262. while task.wait() do -- استبدال wait()
  263. Main.BackgroundColor3 = themeList.Background
  264. MainHeader.BackgroundColor3 = themeList.Header
  265. MainSide.BackgroundColor3 = themeList.Header
  266. coverup_2.BackgroundColor3 = themeList.Header
  267. coverup.BackgroundColor3 = themeList.Header
  268. end
  269. end)()
  270.  
  271. function Kavo:ChangeColor(prope,color)
  272. if prope == "Background" then themeList.Background = color
  273. elseif prope == "SchemeColor" then themeList.SchemeColor = color
  274. elseif prope == "Header" then themeList.Header = color
  275. elseif prope == "TextColor" then themeList.TextColor = color
  276. elseif prope == "ElementColor" then themeList.ElementColor = color end
  277. end
  278. local Tabs = {}
  279.  
  280. local first = true
  281.  
  282. function Tabs:NewTab(tabName)
  283. tabName = tabName or "Tab"
  284. local tabButton = Instance.new("TextButton")
  285. local UICorner = Instance.new("UICorner")
  286. local page = Instance.new("ScrollingFrame")
  287. local pageListing = Instance.new("UIListLayout")
  288.  
  289. local function UpdateSize()
  290. local cS = pageListing.AbsoluteContentSize
  291. game.TweenService:Create(page, TweenInfo.new(0.15, Enum.EasingStyle.Linear, Enum.EasingDirection.In), {CanvasSize = UDim2.new(0,cS.X,0,cS.Y)}):Play()
  292. end
  293.  
  294. page.Name = "Page"
  295. page.Parent = Pages
  296. page.Active = true
  297. page.BackgroundColor3 = themeList.Background
  298. page.BorderSizePixel = 0
  299. page.Position = UDim2.new(0, 0, -0.00371747208, 0)
  300. page.Size = UDim2.new(1, 0, 1, 0)
  301. page.ScrollBarThickness = 5
  302. page.Visible = false
  303. page.ScrollBarImageColor3 = Color3.fromRGB(themeList.SchemeColor.r * 255 - 16, themeList.SchemeColor.g * 255 - 15, themeList.SchemeColor.b * 255 - 28)
  304.  
  305. pageListing.Name = "pageListing"
  306. pageListing.Parent = page
  307. pageListing.SortOrder = Enum.SortOrder.LayoutOrder
  308. pageListing.Padding = UDim.new(0, 5)
  309.  
  310. tabButton.Name = tabName.."TabButton"
  311. tabButton.Parent = tabFrames
  312. tabButton.BackgroundColor3 = themeList.SchemeColor
  313. Objects[tabButton] = "SchemeColor"
  314. tabButton.Size = UDim2.new(0, 135, 0, 28)
  315. tabButton.AutoButtonColor = false
  316. tabButton.Font = Enum.Font.Gotham
  317. tabButton.Text = tabName
  318. tabButton.TextColor3 = themeList.TextColor
  319. Objects[tabButton] = "TextColor3"
  320. tabButton.TextSize = 14.000
  321. tabButton.BackgroundTransparency = 1
  322.  
  323. if first then
  324. first = false
  325. page.Visible = true
  326. tabButton.BackgroundTransparency = 0
  327. UpdateSize()
  328. else
  329. page.Visible = false
  330. tabButton.BackgroundTransparency = 1
  331. end
  332.  
  333. UICorner.CornerRadius = UDim.new(0, 5)
  334. UICorner.Parent = tabButton
  335. table.insert(Tabs, tabName)
  336.  
  337. UpdateSize()
  338. page.ChildAdded:Connect(UpdateSize)
  339. page.ChildRemoved:Connect(UpdateSize)
  340.  
  341. tabButton.MouseButton1Click:Connect(function()
  342. UpdateSize()
  343. for i,v in next, Pages:GetChildren() do v.Visible = false end
  344. page.Visible = true
  345. for i,v in next, tabFrames:GetChildren() do
  346. if v:IsA("TextButton") then
  347. if themeList.SchemeColor == Color3.fromRGB(255,255,255) then Utility:TweenObject(v, {TextColor3 = Color3.fromRGB(255,255,255)}, 0.2) end
  348. if themeList.SchemeColor == Color3.fromRGB(0,0,0) then Utility:TweenObject(v, {TextColor3 = Color3.fromRGB(0,0,0)}, 0.2) end
  349. Utility:TweenObject(v, {BackgroundTransparency = 1}, 0.2)
  350. end
  351. end
  352. if themeList.SchemeColor == Color3.fromRGB(255,255,255) then Utility:TweenObject(tabButton, {TextColor3 = Color3.fromRGB(0,0,0)}, 0.2) end
  353. if themeList.SchemeColor == Color3.fromRGB(0,0,0) then Utility:TweenObject(tabButton, {TextColor3 = Color3.fromRGB(255,255,255)}, 0.2) end
  354. Utility:TweenObject(tabButton, {BackgroundTransparency = 0}, 0.2)
  355. end)
  356. local Sections = {}
  357. local focusing = false
  358. local viewDe = false
  359.  
  360. coroutine.wrap(function()
  361. while task.wait() do -- استبدال wait()
  362. page.BackgroundColor3 = themeList.Background
  363. page.ScrollBarImageColor3 = Color3.fromRGB(themeList.SchemeColor.r * 255 - 16, themeList.SchemeColor.g * 255 - 15, themeList.SchemeColor.b * 255 - 28)
  364. tabButton.TextColor3 = themeList.TextColor
  365. tabButton.BackgroundColor3 = themeList.SchemeColor
  366. end
  367. end)()
  368.  
  369. function Sections:NewSection(secName, hidden)
  370. secName = secName or "Section"
  371. local sectionFunctions = {}
  372. local modules = {}
  373. hidden = hidden or false
  374. local sectionFrame = Instance.new("Frame")
  375. local sectionlistoknvm = Instance.new("UIListLayout")
  376. local sectionHead = Instance.new("Frame")
  377. local sHeadCorner = Instance.new("UICorner")
  378. local sectionName = Instance.new("TextLabel")
  379. local sectionInners = Instance.new("Frame")
  380. local sectionElListing = Instance.new("UIListLayout")
  381.  
  382. if hidden then sectionHead.Visible = false else sectionHead.Visible = true end
  383.  
  384. sectionFrame.Name = "sectionFrame"
  385. sectionFrame.Parent = page
  386. sectionFrame.BackgroundColor3 = themeList.Background
  387. sectionFrame.BorderSizePixel = 0
  388.  
  389. sectionlistoknvm.Name = "sectionlistoknvm"
  390. sectionlistoknvm.Parent = sectionFrame
  391. sectionlistoknvm.SortOrder = Enum.SortOrder.LayoutOrder
  392. sectionlistoknvm.Padding = UDim.new(0, 5)
  393.  
  394. for i,v in pairs(sectionInners:GetChildren()) do
  395. while task.wait() do -- استبدال wait()
  396. if v:IsA("Frame") or v:IsA("TextButton") then
  397. function size(pro)
  398. if pro == "Size" then
  399. UpdateSize()
  400. updateSectionFrame()
  401. end
  402. end
  403. v.Changed:Connect(size)
  404. end
  405. end
  406. end
  407. sectionHead.Name = "sectionHead"
  408. sectionHead.Parent = sectionFrame
  409. sectionHead.BackgroundColor3 = themeList.SchemeColor
  410. Objects[sectionHead] = "BackgroundColor3"
  411. sectionHead.Size = UDim2.new(0, 352, 0, 33)
  412.  
  413. sHeadCorner.CornerRadius = UDim.new(0, 4)
  414. sHeadCorner.Name = "sHeadCorner"
  415. sHeadCorner.Parent = sectionHead
  416.  
  417. sectionName.Name = "sectionName"
  418. sectionName.Parent = sectionHead
  419. sectionName.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  420. sectionName.BackgroundTransparency = 1.000
  421. sectionName.BorderColor3 = Color3.fromRGB(27, 42, 53)
  422. sectionName.Position = UDim2.new(0.0198863633, 0, 0, 0)
  423. sectionName.Size = UDim2.new(0.980113626, 0, 1, 0)
  424. sectionName.Font = Enum.Font.Gotham
  425. sectionName.Text = secName
  426. sectionName.RichText = true
  427. sectionName.TextColor3 = themeList.TextColor
  428. Objects[sectionName] = "TextColor3"
  429. sectionName.TextSize = 14.000
  430. sectionName.TextXAlignment = Enum.TextXAlignment.Left
  431. if themeList.SchemeColor == Color3.fromRGB(255,255,255) then Utility:TweenObject(sectionName, {TextColor3 = Color3.fromRGB(0,0,0)}, 0.2) end
  432. if themeList.SchemeColor == Color3.fromRGB(0,0,0) then Utility:TweenObject(sectionName, {TextColor3 = Color3.fromRGB(255,255,255)}, 0.2) end
  433.  
  434. sectionInners.Name = "sectionInners"
  435. sectionInners.Parent = sectionFrame
  436. sectionInners.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  437. sectionInners.BackgroundTransparency = 1.000
  438. sectionInners.Position = UDim2.new(0, 0, 0.190751448, 0)
  439.  
  440. sectionElListing.Name = "sectionElListing"
  441. sectionElListing.Parent = sectionInners
  442. sectionElListing.SortOrder = Enum.SortOrder.LayoutOrder
  443. sectionElListing.Padding = UDim.new(0, 3)
  444.  
  445. coroutine.wrap(function()
  446. while task.wait() do -- استبدال wait()
  447. sectionFrame.BackgroundColor3 = themeList.Background
  448. sectionHead.BackgroundColor3 = themeList.SchemeColor
  449. tabButton.TextColor3 = themeList.TextColor
  450. tabButton.BackgroundColor3 = themeList.SchemeColor
  451. sectionName.TextColor3 = themeList.TextColor
  452. end
  453. end)()
  454.  
  455. local function updateSectionFrame()
  456. local innerSc = sectionElListing.AbsoluteContentSize
  457. sectionInners.Size = UDim2.new(1, 0, 0, innerSc.Y)
  458. local frameSc = sectionlistoknvm.AbsoluteContentSize
  459. sectionFrame.Size = UDim2.new(0, 352, 0, frameSc.Y)
  460. end
  461. updateSectionFrame()
  462. UpdateSize()
  463. local Elements = {}
  464. function Elements:NewButton(bname,tipINf, callback)
  465. local ButtonFunction = {}
  466. tipINf = tipINf or "Tip: Clicking this nothing will happen!"
  467. bname = bname or "Click Me!"
  468. callback = callback or function() end
  469.  
  470. local buttonElement = Instance.new("TextButton")
  471. local UICorner = Instance.new("UICorner")
  472. local btnInfo = Instance.new("TextLabel")
  473. local viewInfo = Instance.new("ImageButton")
  474. local touch = Instance.new("ImageLabel")
  475. local Sample = Instance.new("ImageLabel")
  476.  
  477. table.insert(modules, bname)
  478.  
  479. buttonElement.Name = bname
  480. buttonElement.Parent = sectionInners
  481. buttonElement.BackgroundColor3 = themeList.ElementColor
  482. buttonElement.ClipsDescendants = true
  483. buttonElement.Size = UDim2.new(0, 352, 0, 33)
  484. buttonElement.AutoButtonColor = false
  485. buttonElement.Font = Enum.Font.SourceSans
  486. buttonElement.Text = ""
  487. buttonElement.TextColor3 = Color3.fromRGB(0, 0, 0)
  488. buttonElement.TextSize = 14.000
  489. Objects[buttonElement] = "BackgroundColor3"
  490.  
  491. UICorner.CornerRadius = UDim.new(0, 4)
  492. UICorner.Parent = buttonElement
  493.  
  494. viewInfo.Name = "viewInfo"
  495. viewInfo.Parent = buttonElement
  496. viewInfo.BackgroundTransparency = 1.000
  497. viewInfo.LayoutOrder = 9
  498. viewInfo.Position = UDim2.new(0.930000007, 0, 0.151999995, 0)
  499. viewInfo.Size = UDim2.new(0, 23, 0, 23)
  500. viewInfo.ZIndex = 2
  501. viewInfo.Image = "rbxassetid://3926305904"
  502. viewInfo.ImageColor3 = themeList.SchemeColor
  503. Objects[viewInfo] = "ImageColor3"
  504. viewInfo.ImageRectOffset = Vector2.new(764, 764)
  505. viewInfo.ImageRectSize = Vector2.new(36, 36)
  506.  
  507. Sample.Name = "Sample"
  508. Sample.Parent = buttonElement
  509. Sample.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  510. Sample.BackgroundTransparency = 1.000
  511. Sample.Image = "http://www.roblox.com/asset/?id=4560909609"
  512. Sample.ImageColor3 = themeList.SchemeColor
  513. Objects[Sample] = "ImageColor3"
  514. Sample.ImageTransparency = 0.600
  515.  
  516. local moreInfo = Instance.new("TextLabel")
  517. local UICorner = Instance.new("UICorner")
  518.  
  519. moreInfo.Name = "TipMore"
  520. moreInfo.Parent = infoContainer
  521. moreInfo.BackgroundColor3 = Color3.fromRGB(themeList.SchemeColor.r * 255 - 14, themeList.SchemeColor.g * 255 - 17, themeList.SchemeColor.b * 255 - 13)
  522. moreInfo.Position = UDim2.new(0, 0, 2, 0)
  523. moreInfo.Size = UDim2.new(0, 353, 0, 33)
  524. moreInfo.ZIndex = 9
  525. moreInfo.Font = Enum.Font.GothamSemibold
  526. moreInfo.Text = " "..tipINf
  527. moreInfo.RichText = true
  528. moreInfo.TextColor3 = themeList.TextColor
  529. Objects[moreInfo] = "TextColor3"
  530. moreInfo.TextSize = 14.000
  531. moreInfo.TextXAlignment = Enum.TextXAlignment.Left
  532. Objects[moreInfo] = "BackgroundColor3"
  533.  
  534. UICorner.CornerRadius = UDim.new(0, 4)
  535. UICorner.Parent = moreInfo
  536.  
  537. touch.Name = "touch"
  538. touch.Parent = buttonElement
  539. touch.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  540. touch.BackgroundTransparency = 1.000
  541. touch.BorderColor3 = Color3.fromRGB(27, 42, 53)
  542. touch.Position = UDim2.new(0.0199999996, 0, 0.180000007, 0)
  543. touch.Size = UDim2.new(0, 21, 0, 21)
  544. touch.Image = "rbxassetid://3926305904"
  545. touch.ImageColor3 = themeList.SchemeColor
  546. Objects[touch] = "SchemeColor"
  547. touch.ImageRectOffset = Vector2.new(84, 204)
  548. touch.ImageRectSize = Vector2.new(36, 36)
  549. touch.ImageTransparency = 0
  550.  
  551. btnInfo.Name = "btnInfo"
  552. btnInfo.Parent = buttonElement
  553. btnInfo.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  554. btnInfo.BackgroundTransparency = 1.000
  555. btnInfo.Position = UDim2.new(0.096704483, 0, 0.272727281, 0)
  556. btnInfo.Size = UDim2.new(0, 314, 0, 14)
  557. btnInfo.Font = Enum.Font.GothamSemibold
  558. btnInfo.Text = bname
  559. btnInfo.RichText = true
  560. btnInfo.TextColor3 = themeList.TextColor
  561. Objects[btnInfo] = "TextColor3"
  562. btnInfo.TextSize = 14.000
  563. btnInfo.TextXAlignment = Enum.TextXAlignment.Left
  564.  
  565. if themeList.SchemeColor == Color3.fromRGB(255,255,255) then Utility:TweenObject(moreInfo, {TextColor3 = Color3.fromRGB(0,0,0)}, 0.2) end
  566. if themeList.SchemeColor == Color3.fromRGB(0,0,0) then Utility:TweenObject(moreInfo, {TextColor3 = Color3.fromRGB(255,255,255)}, 0.2) end
  567.  
  568. updateSectionFrame()
  569. UpdateSize()
  570.  
  571. local ms = game.Players.LocalPlayer:GetMouse()
  572.  
  573. local btn = buttonElement
  574. local sample = Sample
  575.  
  576. btn.MouseButton1Click:Connect(function()
  577. if not focusing then
  578. callback()
  579. local c = sample:Clone()
  580. c.Parent = btn
  581. local x, y = (ms.X - c.AbsolutePosition.X), (ms.Y - c.AbsolutePosition.Y)
  582. c.Position = UDim2.new(0, x, 0, y)
  583. local len, size = 0.35, nil
  584. if btn.AbsoluteSize.X >= btn.AbsoluteSize.Y then size = (btn.AbsoluteSize.X * 1.5) else size = (btn.AbsoluteSize.Y * 1.5) end
  585. c:TweenSizeAndPosition(UDim2.new(0, size, 0, size), UDim2.new(0.5, (-size / 2), 0.5, (-size / 2)), 'Out', 'Quad', len, true, nil)
  586. for i = 1, 10 do
  587. c.ImageTransparency = c.ImageTransparency + 0.05
  588. task.wait(len / 12) -- استبدال wait(len / 12)
  589. end
  590. c:Destroy()
  591. else
  592. for i,v in next, infoContainer:GetChildren() do
  593. Utility:TweenObject(v, {Position = UDim2.new(0,0,2,0)}, 0.2)
  594. focusing = false
  595. end
  596. Utility:TweenObject(blurFrame, {BackgroundTransparency = 1}, 0.2)
  597. end
  598. end)
  599. local hovering = false
  600. btn.MouseEnter:Connect(function()
  601. if not focusing then
  602. game.TweenService:Create(btn, TweenInfo.new(0.1, Enum.EasingStyle.Linear, Enum.EasingDirection.In), {BackgroundColor3 = Color3.fromRGB(themeList.ElementColor.r * 255 + 8, themeList.ElementColor.g * 255 + 9, themeList.ElementColor.b * 255 + 10)}):Play()
  603. hovering = true
  604. end
  605. end)
  606. btn.MouseLeave:Connect(function()
  607. if not focusing then
  608. game.TweenService:Create(btn, TweenInfo.new(0.1, Enum.EasingStyle.Linear, Enum.EasingDirection.In), {BackgroundColor3 = themeList.ElementColor}):Play()
  609. hovering = false
  610. end
  611. end)
  612. viewInfo.MouseButton1Click:Connect(function()
  613. if not viewDe then
  614. viewDe = true
  615. focusing = true
  616. for i,v in next, infoContainer:GetChildren() do
  617. if v ~= moreInfo then Utility:TweenObject(v, {Position = UDim2.new(0,0,2,0)}, 0.2) end
  618. end
  619. Utility:TweenObject(moreInfo, {Position = UDim2.new(0,0,0,0)}, 0.2)
  620. Utility:TweenObject(blurFrame, {BackgroundTransparency = 0.5}, 0.2)
  621. Utility:TweenObject(btn, {BackgroundColor3 = themeList.ElementColor}, 0.2)
  622. task.wait(1.5) -- استبدال wait(1.5)
  623. focusing = false
  624. Utility:TweenObject(moreInfo, {Position = UDim2.new(0,0,2,0)}, 0.2)
  625. Utility:TweenObject(blurFrame, {BackgroundTransparency = 1}, 0.2)
  626. task.wait(0) -- استبدال wait(0)
  627. viewDe = false
  628. end
  629. end)
  630. coroutine.wrap(function()
  631. while task.wait() do -- استبدال wait()
  632. if not hovering then buttonElement.BackgroundColor3 = themeList.ElementColor end
  633. viewInfo.ImageColor3 = themeList.SchemeColor
  634. Sample.ImageColor3 = themeList.SchemeColor
  635. moreInfo.BackgroundColor3 = Color3.fromRGB(themeList.SchemeColor.r * 255 - 14, themeList.SchemeColor.g * 255 - 17, themeList.SchemeColor.b * 255 - 13)
  636. moreInfo.TextColor3 = themeList.TextColor
  637. touch.ImageColor3 = themeList.SchemeColor
  638. btnInfo.TextColor3 = themeList.TextColor
  639. end
  640. end)()
  641.  
  642. function ButtonFunction:UpdateButton(newTitle)
  643. btnInfo.Text = newTitle
  644. end
  645. return ButtonFunction
  646. end
  647.  
  648. function Elements:NewTextBox(tname, tTip, callback)
  649. tname = tname or "Textbox"
  650. tTip = tTip or "Gets a value of Textbox"
  651. callback = callback or function() end
  652. local textboxElement = Instance.new("TextButton")
  653. local UICorner = Instance.new("UICorner")
  654. local viewInfo = Instance.new("ImageButton")
  655. local write = Instance.new("ImageLabel")
  656. local TextBox = Instance.new("TextBox")
  657. local UICorner_2 = Instance.new("UICorner")
  658. local togName = Instance.new("TextLabel")
  659.  
  660. textboxElement.Name = "textboxElement"
  661. textboxElement.Parent = sectionInners
  662. textboxElement.BackgroundColor3 = themeList.ElementColor
  663. textboxElement.ClipsDescendants = true
  664. textboxElement.Size = UDim2.new(0, 352, 0, 33)
  665. textboxElement.AutoButtonColor = false
  666. textboxElement.Font = Enum.Font.SourceSans
  667. textboxElement.Text = ""
  668. textboxElement.TextColor3 = Color3.fromRGB(0, 0, 0)
  669. textboxElement.TextSize = 14.000
  670.  
  671. UICorner.CornerRadius = UDim.new(0, 4)
  672. UICorner.Parent = textboxElement
  673.  
  674. viewInfo.Name = "viewInfo"
  675. viewInfo.Parent = textboxElement
  676. viewInfo.BackgroundTransparency = 1.000
  677. viewInfo.LayoutOrder = 9
  678. viewInfo.Position = UDim2.new(0.930000007, 0, 0.151999995, 0)
  679. viewInfo.Size = UDim2.new(0, 23, 0, 23)
  680. viewInfo.ZIndex = 2
  681. viewInfo.Image = "rbxassetid://3926305904"
  682. viewInfo.ImageColor3 = themeList.SchemeColor
  683. viewInfo.ImageRectOffset = Vector2.new(764, 764)
  684. viewInfo.ImageRectSize = Vector2.new(36, 36)
  685.  
  686. write.Name = "write"
  687. write.Parent = textboxElement
  688. write.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  689. write.BackgroundTransparency = 1.000
  690. write.BorderColor3 = Color3.fromRGB(27, 42, 53)
  691. write.Position = UDim2.new(0.0199999996, 0, 0.180000007, 0)
  692. write.Size = UDim2.new(0, 21, 0, 21)
  693. write.Image = "rbxassetid://3926305904"
  694. write.ImageColor3 = themeList.SchemeColor
  695. write.ImageRectOffset = Vector2.new(324, 604)
  696. write.ImageRectSize = Vector2.new(36, 36)
  697.  
  698. TextBox.Parent = textboxElement
  699. TextBox.BackgroundColor3 = Color3.fromRGB(themeList.ElementColor.r * 255 - 6, themeList.ElementColor.g * 255 - 6, themeList.ElementColor.b * 255 - 7)
  700. TextBox.BorderSizePixel = 0
  701. TextBox.ClipsDescendants = true
  702. TextBox.Position = UDim2.new(0.488749921, 0, 0.212121218, 0)
  703. TextBox.Size = UDim2.new(0, 150, 0, 18)
  704. TextBox.ZIndex = 99
  705. TextBox.ClearTextOnFocus = false
  706. TextBox.Font = Enum.Font.Gotham
  707. TextBox.PlaceholderColor3 = Color3.fromRGB(themeList.SchemeColor.r * 255 - 19, themeList.SchemeColor.g * 255 - 26, themeList.SchemeColor.b * 255 - 35)
  708. TextBox.PlaceholderText = "Type here!"
  709. TextBox.Text = ""
  710. TextBox.TextColor3 = themeList.SchemeColor
  711. TextBox.TextSize = 12.000
  712.  
  713. UICorner_2.CornerRadius = UDim.new(0, 4)
  714. UICorner_2.Parent = TextBox
  715.  
  716. togName.Name = "togName"
  717. togName.Parent = textboxElement
  718. togName.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  719. togName.BackgroundTransparency = 1.000
  720. togName.Position = UDim2.new(0.096704483, 0, 0.272727281, 0)
  721. togName.Size = UDim2.new(0, 138, 0, 14)
  722. togName.Font = Enum.Font.GothamSemibold
  723. togName.Text = tname
  724. togName.RichText = true
  725. togName.TextColor3 = themeList.TextColor
  726. togName.TextSize = 14.000
  727. togName.TextXAlignment = Enum.TextXAlignment.Left
  728.  
  729. local moreInfo = Instance.new("TextLabel")
  730. local UICorner = Instance.new("UICorner")
  731.  
  732. moreInfo.Name = "TipMore"
  733. moreInfo.Parent = infoContainer
  734. moreInfo.BackgroundColor3 = Color3.fromRGB(themeList.SchemeColor.r * 255 - 14, themeList.SchemeColor.g * 255 - 17, themeList.SchemeColor.b * 255 - 13)
  735. moreInfo.Position = UDim2.new(0, 0, 2, 0)
  736. moreInfo.Size = UDim2.new(0, 353, 0, 33)
  737. moreInfo.ZIndex = 9
  738. moreInfo.Font = Enum.Font.GothamSemibold
  739. moreInfo.RichText = true
  740. moreInfo.Text = " "..tTip
  741. moreInfo.TextColor3 = Color3.fromRGB(255, 255, 255)
  742. moreInfo.TextSize = 14.000
  743. moreInfo.TextXAlignment = Enum.TextXAlignment.Left
  744.  
  745. if themeList.SchemeColor == Color3.fromRGB(255,255,255) then Utility:TweenObject(moreInfo, {TextColor3 = Color3.fromRGB(0,0,0)}, 0.2) end
  746. if themeList.SchemeColor == Color3.fromRGB(0,0,0) then Utility:TweenObject(moreInfo, {TextColor3 = Color3.fromRGB(255,255,255)}, 0.2) end
  747.  
  748. UICorner.CornerRadius = UDim.new(0, 4)
  749. UICorner.Parent = moreInfo
  750.  
  751. updateSectionFrame()
  752. UpdateSize()
  753.  
  754. local btn = textboxElement
  755. local infBtn = viewInfo
  756.  
  757. btn.MouseButton1Click:Connect(function()
  758. if focusing then
  759. for i,v in next, infoContainer:GetChildren() do
  760. Utility:TweenObject(v, {Position = UDim2.new(0,0,2,0)}, 0.2)
  761. focusing = false
  762. end
  763. Utility:TweenObject(blurFrame, {BackgroundTransparency = 1}, 0.2)
  764. end
  765. end)
  766. local hovering = false
  767. btn.MouseEnter:Connect(function()
  768. if not focusing then
  769. game.TweenService:Create(btn, TweenInfo.new(0.1, Enum.EasingStyle.Linear, Enum.EasingDirection.In), {BackgroundColor3 = Color3.fromRGB(themeList.ElementColor.r * 255 + 8, themeList.ElementColor.g * 255 + 9, themeList.ElementColor.b * 255 + 10)}):Play()
  770. hovering = true
  771. end
  772. end)
  773.  
  774. btn.MouseLeave:Connect(function()
  775. if not focusing then
  776. game.TweenService:Create(btn, TweenInfo.new(0.1, Enum.EasingStyle.Linear, Enum.EasingDirection.In), {BackgroundColor3 = themeList.ElementColor}):Play()
  777. hovering = false
  778. end
  779. end)
  780.  
  781. TextBox.FocusLost:Connect(function(EnterPressed)
  782. if focusing then
  783. for i,v in next, infoContainer:GetChildren() do
  784. Utility:TweenObject(v, {Position = UDim2.new(0,0,2,0)}, 0.2)
  785. focusing = false
  786. end
  787. Utility:TweenObject(blurFrame, {BackgroundTransparency = 1}, 0.2)
  788. end
  789. if not EnterPressed then return
  790. else
  791. callback(TextBox.Text)
  792. task.wait(0.18) -- استبدال wait(0.18)
  793. TextBox.Text = ""
  794. end
  795. end)
  796.  
  797. viewInfo.MouseButton1Click:Connect(function()
  798. if not viewDe then
  799. viewDe = true
  800. focusing = true
  801. for i,v in next, infoContainer:GetChildren() do
  802. if v ~= moreInfo then Utility:TweenObject(v, {Position = UDim2.new(0,0,2,0)}, 0.2) end
  803. end
  804. Utility:TweenObject(moreInfo, {Position = UDim2.new(0,0,0,0)}, 0.2)
  805. Utility:TweenObject(blurFrame, {BackgroundTransparency = 0.5}, 0.2)
  806. Utility:TweenObject(btn, {BackgroundColor3 = themeList.ElementColor}, 0.2)
  807. task.wait(1.5) -- استبدال wait(1.5)
  808. focusing = false
  809. Utility:TweenObject(moreInfo, {Position = UDim2.new(0,0,2,0)}, 0.2)
  810. Utility:TweenObject(blurFrame, {BackgroundTransparency = 1}, 0.2)
  811. task.wait(0) -- استبدال wait(0)
  812. viewDe = false
  813. end
  814. end)
  815. coroutine.wrap(function()
  816. while task.wait() do -- استبدال wait()
  817. if not hovering then textboxElement.BackgroundColor3 = themeList.ElementColor end
  818. TextBox.BackgroundColor3 = Color3.fromRGB(themeList.ElementColor.r * 255 - 6, themeList.ElementColor.g * 255 - 6, themeList.ElementColor.b * 255 - 7)
  819. viewInfo.ImageColor3 = themeList.SchemeColor
  820. moreInfo.BackgroundColor3 = Color3.fromRGB(themeList.SchemeColor.r * 255 - 14, themeList.SchemeColor.g * 255 - 17, themeList.SchemeColor.b * 255 - 13)
  821. moreInfo.TextColor3 = themeList.TextColor
  822. write.ImageColor3 = themeList.SchemeColor
  823. togName.TextColor3 = themeList.TextColor
  824. TextBox.PlaceholderColor3 = Color3.fromRGB(themeList.SchemeColor.r * 255 - 19, themeList.SchemeColor.g * 255 - 26, themeList.SchemeColor.b * 255 - 35)
  825. TextBox.TextColor3 = themeList.SchemeColor
  826. end
  827. end)()
  828. end
  829.  
  830. function Elements:NewToggle(tname, nTip, callback)
  831. local TogFunction = {}
  832. tname = tname or "Toggle"
  833. nTip = nTip or "Prints Current Toggle State"
  834. callback = callback or function() end
  835. local toggled = false
  836. table.insert(SettingsT, tname)
  837.  
  838. local toggleElement = Instance.new("TextButton")
  839. local UICorner = Instance.new("UICorner")
  840. local toggleDisabled = Instance.new("ImageLabel")
  841. local toggleEnabled = Instance.new("ImageLabel")
  842. local togName = Instance.new("TextLabel")
  843. local viewInfo = Instance.new("ImageButton")
  844. local Sample = Instance.new("ImageLabel")
  845.  
  846. toggleElement.Name = "toggleElement"
  847. toggleElement.Parent = sectionInners
  848. toggleElement.BackgroundColor3 = themeList.ElementColor
  849. toggleElement.ClipsDescendants = true
  850. toggleElement.Size = UDim2.new(0, 352, 0, 33)
  851. toggleElement.AutoButtonColor = false
  852. toggleElement.Font = Enum.Font.SourceSans
  853. toggleElement.Text = ""
  854. toggleElement.TextColor3 = Color3.fromRGB(0, 0, 0)
  855. toggleElement.TextSize = 14.000
  856.  
  857. UICorner.CornerRadius = UDim.new(0, 4)
  858. UICorner.Parent = toggleElement
  859.  
  860. toggleDisabled.Name = "toggleDisabled"
  861. toggleDisabled.Parent = toggleElement
  862. toggleDisabled.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  863. toggleDisabled.BackgroundTransparency = 1.000
  864. toggleDisabled.Position = UDim2.new(0.0199999996, 0, 0.180000007, 0)
  865. toggleDisabled.Size = UDim2.new(0, 21, 0, 21)
  866. toggleDisabled.Image = "rbxassetid://3926309567"
  867. toggleDisabled.ImageColor3 = themeList.SchemeColor
  868. toggleDisabled.ImageRectOffset = Vector2.new(628, 420)
  869. toggleDisabled.ImageRectSize = Vector2.new(48, 48)
  870.  
  871. toggleEnabled.Name = "toggleEnabled"
  872. toggleEnabled.Parent = toggleElement
  873. toggleEnabled.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  874. toggleEnabled.BackgroundTransparency = 1.000
  875. toggleEnabled.Position = UDim2.new(0.0199999996, 0, 0.180000007, 0)
  876. toggleEnabled.Size = UDim2.new(0, 21, 0, 21)
  877. toggleEnabled.Image = "rbxassetid://3926309567"
  878. toggleEnabled.ImageColor3 = themeList.SchemeColor
  879. toggleEnabled.ImageRectOffset = Vector2.new(784, 420)
  880. toggleEnabled.ImageRectSize = Vector2.new(48, 48)
  881. toggleEnabled.ImageTransparency = 1.000
  882.  
  883. togName.Name = "togName"
  884. togName.Parent = toggleElement
  885. togName.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  886. togName.BackgroundTransparency = 1.000
  887. togName.Position = UDim2.new(0.096704483, 0, 0.272727281, 0)
  888. togName.Size = UDim2.new(0, 288, 0, 14)
  889. togName.Font = Enum.Font.GothamSemibold
  890. togName.Text = tname
  891. togName.RichText = true
  892. togName.TextColor3 = themeList.TextColor
  893. togName.TextSize = 14.000
  894. togName.TextXAlignment = Enum.TextXAlignment.Left
  895.  
  896. viewInfo.Name = "viewInfo"
  897. viewInfo.Parent = toggleElement
  898. viewInfo.BackgroundTransparency = 1.000
  899. viewInfo.LayoutOrder = 9
  900. viewInfo.Position = UDim2.new(0.930000007, 0, 0.151999995, 0)
  901. viewInfo.Size = UDim2.new(0, 23, 0, 23)
  902. viewInfo.ZIndex = 2
  903. viewInfo.Image = "rbxassetid://3926305904"
  904. viewInfo.ImageColor3 = themeList.SchemeColor
  905. viewInfo.ImageRectOffset = Vector2.new(764, 764)
  906. viewInfo.ImageRectSize = Vector2.new(36, 36)
  907.  
  908. Sample.Name = "Sample"
  909. Sample.Parent = toggleElement
  910. Sample.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  911. Sample.BackgroundTransparency = 1.000
  912. Sample.Image = "http://www.roblox.com/asset/?id=4560909609"
  913. Sample.ImageColor3 = themeList.SchemeColor
  914. Sample.ImageTransparency = 0.600
  915.  
  916. local moreInfo = Instance.new("TextLabel")
  917. local UICorner = Instance.new("UICorner")
  918.  
  919. moreInfo.Name = "TipMore"
  920. moreInfo.Parent = infoContainer
  921. moreInfo.BackgroundColor3 = Color3.fromRGB(themeList.SchemeColor.r * 255 - 14, themeList.SchemeColor.g * 255 - 17, themeList.SchemeColor.b * 255 - 13)
  922. moreInfo.Position = UDim2.new(0, 0, 2, 0)
  923. moreInfo.Size = UDim2.new(0, 353, 0, 33)
  924. moreInfo.ZIndex = 9
  925. moreInfo.Font = Enum.Font.GothamSemibold
  926. moreInfo.RichText = true
  927. moreInfo.Text = " "..nTip
  928. moreInfo.TextColor3 = themeList.TextColor
  929. moreInfo.TextSize = 14.000
  930. moreInfo.TextXAlignment = Enum.TextXAlignment.Left
  931.  
  932. UICorner.CornerRadius = UDim.new(0, 4)
  933. UICorner.Parent = moreInfo
  934.  
  935. local ms = game.Players.LocalPlayer:GetMouse()
  936.  
  937. if themeList.SchemeColor == Color3.fromRGB(255,255,255) then Utility:TweenObject(moreInfo, {TextColor3 = Color3.fromRGB(0,0,0)}, 0.2) end
  938. if themeList.SchemeColor == Color3.fromRGB(0,0,0) then Utility:TweenObject(moreInfo, {TextColor3 = Color3.fromRGB(255,255,255)}, 0.2) end
  939.  
  940. local btn = toggleElement
  941. local sample = Sample
  942. local img = toggleEnabled
  943. local infBtn = viewInfo
  944.  
  945. updateSectionFrame()
  946. UpdateSize()
  947.  
  948. btn.MouseButton1Click:Connect(function()
  949. if not focusing then
  950. if toggled == false then
  951. game.TweenService:Create(img, TweenInfo.new(0.11, Enum.EasingStyle.Linear,Enum.EasingDirection.In), {ImageTransparency = 0}):Play()
  952. local c = sample:Clone()
  953. c.Parent = btn
  954. local x, y = (ms.X - c.AbsolutePosition.X), (ms.Y - c.AbsolutePosition.Y)
  955. c.Position = UDim2.new(0, x, 0, y)
  956. local len, size = 0.35, nil
  957. if btn.AbsoluteSize.X >= btn.AbsoluteSize.Y then size = (btn.AbsoluteSize.X * 1.5) else size = (btn.AbsoluteSize.Y * 1.5) end
  958. c:TweenSizeAndPosition(UDim2.new(0, size, 0, size), UDim2.new(0.5, (-size / 2), 0.5, (-size / 2)), 'Out', 'Quad', len, true, nil)
  959. for i = 1, 10 do
  960. c.ImageTransparency = c.ImageTransparency + 0.05
  961. task.wait(len / 12) -- استبدال wait(len / 12)
  962. end
  963. c:Destroy()
  964. else
  965. game.TweenService:Create(img, TweenInfo.new(0.11, Enum.EasingStyle.Linear,Enum.EasingDirection.In), {ImageTransparency = 1}):Play()
  966. local c = sample:Clone()
  967. c.Parent = btn
  968. local x, y = (ms.X - c.AbsolutePosition.X), (ms.Y - c.AbsolutePosition.Y)
  969. c.Position = UDim2.new(0, x, 0, y)
  970. local len, size = 0.35, nil
  971. if btn.AbsoluteSize.X >= btn.AbsoluteSize.Y then size = (btn.AbsoluteSize.X * 1.5) else size = (btn.AbsoluteSize.Y * 1.5) end
  972. c:TweenSizeAndPosition(UDim2.new(0, size, 0, size), UDim2.new(0.5, (-size / 2), 0.5, (-size / 2)), 'Out', 'Quad', len, true, nil)
  973. for i = 1, 10 do
  974. c.ImageTransparency = c.ImageTransparency + 0.05
  975. task.wait(len / 12) -- استبدال wait(len / 12)
  976. end
  977. c:Destroy()
  978. end
  979. toggled = not toggled
  980. pcall(callback, toggled)
  981. else
  982. for i,v in next, infoContainer:GetChildren() do
  983. Utility:TweenObject(v, {Position = UDim2.new(0,0,2,0)}, 0.2)
  984. focusing = false
  985. end
  986. Utility:TweenObject(blurFrame, {BackgroundTransparency = 1}, 0.2)
  987. end
  988. end)
  989. local hovering = false
  990. btn.MouseEnter:Connect(function()
  991. if not focusing then
  992. game.TweenService:Create(btn, TweenInfo.new(0.1, Enum.EasingStyle.Linear, Enum.EasingDirection.In), {BackgroundColor3 = Color3.fromRGB(themeList.ElementColor.r * 255 + 8, themeList.ElementColor.g * 255 + 9, themeList.ElementColor.b * 255 + 10)}):Play()
  993. hovering = true
  994. end
  995. end)
  996. btn.MouseLeave:Connect(function()
  997. if not focusing then
  998. game.TweenService:Create(btn, TweenInfo.new(0.1, Enum.EasingStyle.Linear, Enum.EasingDirection.In), {BackgroundColor3 = themeList.ElementColor}):Play()
  999. hovering = false
  1000. end
  1001. end)
  1002.  
  1003. coroutine.wrap(function()
  1004. while task.wait() do -- استبدال wait()
  1005. if not hovering then toggleElement.BackgroundColor3 = themeList.ElementColor end
  1006. toggleDisabled.ImageColor3 = themeList.SchemeColor
  1007. toggleEnabled.ImageColor3 = themeList.SchemeColor
  1008. togName.TextColor3 = themeList.TextColor
  1009. end
  1010. end)()
  1011.  
  1012. function TogFunction:UpdateToggle(bool)
  1013. toggled = bool
  1014. local img = toggleEnabled
  1015. if toggled then
  1016. game.TweenService:Create(img, TweenInfo.new(0.11, Enum.EasingStyle.Linear, Enum.EasingDirection.In), {ImageTransparency = 0}):Play()
  1017. else
  1018. game.TweenService:Create(img, TweenInfo.new(0.11, Enum.EasingStyle.Linear, Enum.EasingDirection.In), {ImageTransparency = 1}):Play()
  1019. end
  1020. end
  1021. return TogFunction
  1022. end
  1023.  
  1024. function Elements:NewDropdown(dname, dTip, list, callback)
  1025. local DropFunction = {}
  1026. dname = dname or "Dropdown"
  1027. dTip = dTip or "Dropdown Tip"
  1028. callback = callback or function() end
  1029. local opened = false
  1030. local DropYSize = 33
  1031. local dropElement = Instance.new("TextButton")
  1032. local UICorner = Instance.new("UICorner")
  1033. local viewInfo = Instance.new("ImageButton")
  1034. local listImg = Instance.new("ImageLabel")
  1035. local itemTextbox = Instance.new("TextBox")
  1036. local UICorner_2 = Instance.new("UICorner")
  1037. local togName = Instance.new("TextLabel")
  1038. local dropOpen = Instance.new("Frame")
  1039. local dropFrame = Instance.new("Frame")
  1040. local UIListLayout = Instance.new("UIListLayout")
  1041. local Sample = Instance.new("ImageLabel")
  1042.  
  1043. dropElement.Name = "dropElement"
  1044. dropElement.Parent = sectionInners
  1045. dropElement.BackgroundColor3 = themeList.ElementColor
  1046. dropElement.ClipsDescendants = true
  1047. dropElement.Size = UDim2.new(0, 352, 0, 33)
  1048. dropElement.AutoButtonColor = false
  1049. dropElement.Font = Enum.Font.SourceSans
  1050. dropElement.Text = ""
  1051. dropElement.TextColor3 = Color3.fromRGB(0, 0, 0)
  1052. dropElement.TextSize = 14.000
  1053.  
  1054. UICorner.CornerRadius = UDim.new(0, 4)
  1055. UICorner.Parent = dropElement
  1056.  
  1057. viewInfo.Name = "viewInfo"
  1058. viewInfo.Parent = dropElement
  1059. viewInfo.BackgroundTransparency = 1.000
  1060. viewInfo.LayoutOrder = 9
  1061. viewInfo.Position = UDim2.new(0.930000007, 0, 0.151999995, 0)
  1062. viewInfo.Size = UDim2.new(0, 23, 0, 23)
  1063. viewInfo.ZIndex = 2
  1064. viewInfo.Image = "rbxassetid://3926305904"
  1065. viewInfo.ImageColor3 = themeList.SchemeColor
  1066. viewInfo.ImageRectOffset = Vector2.new(764, 764)
  1067. viewInfo.ImageRectSize = Vector2.new(36, 36)
  1068.  
  1069. listImg.Name = "listImg"
  1070. listImg.Parent = dropElement
  1071. listImg.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1072. listImg.BackgroundTransparency = 1.000
  1073. listImg.BorderColor3 = Color3.fromRGB(27, 42, 53)
  1074. listImg.Position = UDim2.new(0.0199999996, 0, 0.180000007, 0)
  1075. listImg.Size = UDim2.new(0, 21, 0, 21)
  1076. listImg.Image = "rbxassetid://3926305904"
  1077. listImg.ImageColor3 = themeList.SchemeColor
  1078. listImg.ImageRectOffset = Vector2.new(644, 4)
  1079. listImg.ImageRectSize = Vector2.new(24, 24)
  1080.  
  1081. itemTextbox.Parent = dropElement
  1082. itemTextbox.BackgroundColor3 = Color3.fromRGB(themeList.ElementColor.r * 255 - 6, themeList.ElementColor.g * 255 - 6, themeList.ElementColor.b * 255 - 7)
  1083. itemTextbox.BorderSizePixel = 0
  1084. itemTextbox.ClipsDescendants = true
  1085. itemTextbox.Position = UDim2.new(0.488749921, 0, 0.212121218, 0)
  1086. itemTextbox.Size = UDim2.new(0, 150, 0, 18)
  1087. itemTextbox.ZIndex = 99
  1088. itemTextbox.ClearTextOnFocus = false
  1089. itemTextbox.Font = Enum.Font.Gotham
  1090. itemTextbox.PlaceholderColor3 = Color3.fromRGB(themeList.SchemeColor.r * 255 - 19, themeList.SchemeColor.g * 255 - 26, themeList.SchemeColor.b * 255 - 35)
  1091. itemTextbox.PlaceholderText = "Select Item"
  1092. itemTextbox.Text = ""
  1093. itemTextbox.TextColor3 = themeList.SchemeColor
  1094. itemTextbox.TextSize = 12.000
  1095.  
  1096. UICorner_2.CornerRadius = UDim.new(0, 4)
  1097. UICorner_2.Parent = itemTextbox
  1098.  
  1099. togName.Name = "togName"
  1100. togName.Parent = dropElement
  1101. togName.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1102. togName.BackgroundTransparency = 1.000
  1103. togName.Position = UDim2.new(0.096704483, 0, 0.272727281, 0)
  1104. togName.Size = UDim2.new(0, 138, 0, 14)
  1105. togName.Font = Enum.Font.GothamSemibold
  1106. togName.Text = dname
  1107. togName.RichText = true
  1108. togName.TextColor3 = themeList.TextColor
  1109. togName.TextSize = 14.000
  1110. togName.TextXAlignment = Enum.TextXAlignment.Left
  1111.  
  1112. dropOpen.Name = "dropOpen"
  1113. dropOpen.Parent = sectionInners
  1114. dropOpen.BackgroundColor3 = themeList.ElementColor
  1115. dropOpen.ClipsDescendants = true
  1116. dropOpen.Position = UDim2.new(0, 0, 0.190751448, 0)
  1117. dropOpen.Size = UDim2.new(0, 352, 0, 0)
  1118.  
  1119. dropFrame.Name = "dropFrame"
  1120. dropFrame.Parent = dropOpen
  1121. dropFrame.BackgroundColor3 = themeList.Background
  1122. dropFrame.BorderSizePixel = 0
  1123. dropFrame.ClipsDescendants = true
  1124. dropFrame.Position = UDim2.new(0, 0, 0, 0)
  1125. dropFrame.Size = UDim2.new(0, 352, 0, 33)
  1126.  
  1127. UIListLayout.Parent = dropFrame
  1128. UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
  1129. UIListLayout.Padding = UDim.new(0, 0)
  1130.  
  1131. Sample.Name = "Sample"
  1132. Sample.Parent = dropElement
  1133. Sample.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1134. Sample.BackgroundTransparency = 1.000
  1135. Sample.Image = "http://www.roblox.com/asset/?id=4560909609"
  1136. Sample.ImageColor3 = themeList.SchemeColor
  1137. Sample.ImageTransparency = 0.600
  1138.  
  1139. local moreInfo = Instance.new("TextLabel")
  1140. local UICorner = Instance.new("UICorner")
  1141.  
  1142. moreInfo.Name = "TipMore"
  1143. moreInfo.Parent = infoContainer
  1144. moreInfo.BackgroundColor3 = Color3.fromRGB(themeList.SchemeColor.r * 255 - 14, themeList.SchemeColor.g * 255 - 17, themeList.SchemeColor.b * 255 - 13)
  1145. moreInfo.Position = UDim2.new(0, 0, 2, 0)
  1146. moreInfo.Size = UDim2.new(0, 353, 0, 33)
  1147. moreInfo.ZIndex = 9
  1148. moreInfo.Font = Enum.Font.GothamSemibold
  1149. moreInfo.Text = " "..dTip
  1150. moreInfo.RichText = true
  1151. moreInfo.TextColor3 = themeList.TextColor
  1152. moreInfo.TextSize = 14.000
  1153. moreInfo.TextXAlignment = Enum.TextXAlignment.Left
  1154.  
  1155. if themeList.SchemeColor == Color3.fromRGB(255,255,255) then Utility:TweenObject(moreInfo, {TextColor3 = Color3.fromRGB(0,0,0)}, 0.2) end
  1156. if themeList.SchemeColor == Color3.fromRGB(0,0,0) then Utility:TweenObject(moreInfo, {TextColor3 = Color3.fromRGB(255,255,255)}, 0.2) end
  1157.  
  1158. UICorner.CornerRadius = UDim.new(0, 4)
  1159. UICorner.Parent = moreInfo
  1160.  
  1161. updateSectionFrame()
  1162. UpdateSize()
  1163.  
  1164. local btn = dropElement
  1165. local sample = Sample
  1166. local ms = game.Players.LocalPlayer:GetMouse()
  1167.  
  1168. btn.MouseButton1Click:Connect(function()
  1169. if not focusing then
  1170. if opened then
  1171. opened = false
  1172. dropOpen:TweenSize(UDim2.new(0, 352, 0, 0), 'InOut', 'Linear', 0.08)
  1173. task.wait(0.1) -- استبدال wait(0.1)
  1174. updateSectionFrame()
  1175. UpdateSize()
  1176. local c = sample:Clone()
  1177. c.Parent = btn
  1178. local x, y = (ms.X - c.AbsolutePosition.X), (ms.Y - c.AbsolutePosition.Y)
  1179. c.Position = UDim2.new(0, x, 0, y)
  1180. local len, size = 0.35, nil
  1181. if btn.AbsoluteSize.X >= btn.AbsoluteSize.Y then size = (btn.AbsoluteSize.X * 1.5) else size = (btn.AbsoluteSize.Y * 1.5) end
  1182. c:TweenSizeAndPosition(UDim2.new(0, size, 0, size), UDim2.new(0.5, (-size / 2), 0.5, (-size / 2)), 'Out', 'Quad', len, true, nil)
  1183. for i = 1, 10 do
  1184. c.ImageTransparency = c.ImageTransparency + 0.05
  1185. task.wait(len / 12) -- استبدال wait(len / 12)
  1186. end
  1187. c:Destroy()
  1188. else
  1189. opened = true
  1190. dropOpen:TweenSize(UDim2.new(0, 352, 0, UIListLayout.AbsoluteContentSize.Y), 'InOut', 'Linear', 0.08, true)
  1191. task.wait(0.1) -- استبدال wait(0.1)
  1192. updateSectionFrame()
  1193. UpdateSize()
  1194. local c = sample:Clone()
  1195. c.Parent = btn
  1196. local x, y = (ms.X - c.AbsolutePosition.X), (ms.Y - c.AbsolutePosition.Y)
  1197. c.Position = UDim2.new(0, x, 0, y)
  1198. local len, size = 0.35, nil
  1199. if btn.AbsoluteSize.X >= btn.AbsoluteSize.Y then size = (btn.AbsoluteSize.X * 1.5) else size = (btn.AbsoluteSize.Y * 1.5) end
  1200. c:TweenSizeAndPosition(UDim2.new(0, size, 0, size), UDim2.new(0.5, (-size / 2), 0.5, (-size / 2)), 'Out', 'Quad', len, true, nil)
  1201. for i = 1, 10 do
  1202. c.ImageTransparency = c.ImageTransparency + 0.05
  1203. task.wait(len / 12) -- استبدال wait(len / 12)
  1204. end
  1205. c:Destroy()
  1206. end
  1207. else
  1208. for i,v in next, infoContainer:GetChildren() do
  1209. Utility:TweenObject(v, {Position = UDim2.new(0,0,2,0)}, 0.2)
  1210. focusing = false
  1211. end
  1212. Utility:TweenObject(blurFrame, {BackgroundTransparency = 1}, 0.2)
  1213. end
  1214. end)
  1215. local hovering = false
  1216. btn.MouseEnter:Connect(function()
  1217. if not focusing then
  1218. game.TweenService:Create(btn, TweenInfo.new(0.1, Enum.EasingStyle.Linear, Enum.EasingDirection.In), {BackgroundColor3 = Color3.fromRGB(themeList.ElementColor.r * 255 + 8, themeList.ElementColor.g * 255 + 9, themeList.ElementColor.b * 255 + 10)}):Play()
  1219. hovering = true
  1220. end
  1221. end)
  1222. btn.MouseLeave:Connect(function()
  1223. if not focusing then
  1224. game.TweenService:Create(btn, TweenInfo.new(0.1, Enum.EasingStyle.Linear, Enum.EasingDirection.In), {BackgroundColor3 = themeList.ElementColor}):Play()
  1225. hovering = false
  1226. end
  1227. end)
  1228. viewInfo.MouseButton1Click:Connect(function()
  1229. if not viewDe then
  1230. viewDe = true
  1231. focusing = true
  1232. for i,v in next, infoContainer:GetChildren() do
  1233. if v ~= moreInfo then Utility:TweenObject(v, {Position = UDim2.new(0,0,2,0)}, 0.2) end
  1234. end
  1235. Utility:TweenObject(moreInfo, {Position = UDim2.new(0,0,0,0)}, 0.2)
  1236. Utility:TweenObject(blurFrame, {BackgroundTransparency = 0.5}, 0.2)
  1237. Utility:TweenObject(btn, {BackgroundColor3 = themeList.ElementColor}, 0.2)
  1238. task.wait(1.5) -- استبدال wait(1.5)
  1239. focusing = false
  1240. Utility:TweenObject(moreInfo, {Position = UDim2.new(0,0,2,0)}, 0.2)
  1241. Utility:TweenObject(blurFrame, {BackgroundTransparency = 1}, 0.2)
  1242. task.wait(0) -- استبدال wait(0)
  1243. viewDe = false
  1244. end
  1245. end)
  1246.  
  1247. for i,v in next, list do
  1248. local optionSelect = Instance.new("TextButton")
  1249. local UICorner_2 = Instance.new("UICorner")
  1250. local Sample1 = Instance.new("ImageLabel")
  1251.  
  1252. local ms = game.Players.LocalPlayer:GetMouse()
  1253. Sample1.Name = "Sample1"
  1254. Sample1.Parent = optionSelect
  1255. Sample1.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1256. Sample1.BackgroundTransparency = 1.000
  1257. Sample1.Image = "http://www.roblox.com/asset/?id=4560909609"
  1258. Sample1.ImageColor3 = themeList.SchemeColor
  1259. Sample1.ImageTransparency = 0.600
  1260.  
  1261. local sample1 = Sample1
  1262. DropYSize = DropYSize + 33
  1263. optionSelect.Name = "optionSelect"
  1264. optionSelect.Parent = dropFrame
  1265. optionSelect.BackgroundColor3 = themeList.ElementColor
  1266. optionSelect.Position = UDim2.new(0, 0, 0.235294119, 0)
  1267. optionSelect.Size = UDim2.new(0, 352, 0, 33)
  1268. optionSelect.AutoButtonColor = false
  1269. optionSelect.Font = Enum.Font.GothamSemibold
  1270. optionSelect.Text = " "..v
  1271. optionSelect.TextColor3 = Color3.fromRGB(themeList.TextColor.r * 255 - 6, themeList.TextColor.g * 255 - 6, themeList.TextColor.b * 255 - 6)
  1272. optionSelect.TextSize = 14.000
  1273. optionSelect.TextXAlignment = Enum.TextXAlignment.Left
  1274. optionSelect.ClipsDescendants = true
  1275. optionSelect.MouseButton1Click:Connect(function()
  1276. if not focusing then
  1277. opened = false
  1278. callback(v)
  1279. itemTextbox.Text = v
  1280. dropFrame:TweenSize(UDim2.new(0, 352, 0, 33), 'InOut', 'Linear', 0.08)
  1281. task.wait(0.1) -- استبدال wait(0.1)
  1282. updateSectionFrame()
  1283. UpdateSize()
  1284. local c = sample1:Clone()
  1285. c.Parent = optionSelect
  1286. local x, y = (ms.X - c.AbsolutePosition.X), (ms.Y - c.AbsolutePosition.Y)
  1287. c.Position = UDim2.new(0, x, 0, y)
  1288. local len, size = 0.35, nil
  1289. if optionSelect.AbsoluteSize.X >= optionSelect.AbsoluteSize.Y then size = (optionSelect.AbsoluteSize.X * 1.5) else size = (optionSelect.AbsoluteSize.Y * 1.5) end
  1290. c:TweenSizeAndPosition(UDim2.new(0, size, 0, size), UDim2.new(0.5, (-size / 2), 0.5,
Add Comment
Please, Sign In to add comment