Advertisement
Prokri43

Untitled

Aug 11th, 2024 (edited)
31
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 17.78 KB | None | 0 0
  1. local lib = {}
  2.  
  3. local Script_Title = "Arceus X <font color=\"rgb(255, 0, 0)\">|</font> Ui Lib"
  4.  
  5.  
  6. -- Instances:
  7. local Arceus = Instance.new("ScreenGui")
  8. local Main = Instance.new("Frame")
  9. local UICorner = Instance.new("UICorner")
  10. local Intro = Instance.new("Frame")
  11. local UICorner_2 = Instance.new("UICorner")
  12. local Logo = Instance.new("ImageButton")
  13. local UIAspectRatioConstraint = Instance.new("UIAspectRatioConstraint")
  14. local Title = Instance.new("TextLabel")
  15. local Menu = Instance.new("ScrollingFrame")
  16. local UIListLayout = Instance.new("UIListLayout")
  17. local Toggle = Instance.new("ImageButton")
  18. local UICorner_3 = Instance.new("UICorner")
  19. local Enabled = Instance.new("Frame")
  20. local UIAspectRatioConstraint_2 = Instance.new("UIAspectRatioConstraint")
  21. local UICorner_4 = Instance.new("UICorner")
  22. local Check = Instance.new("Frame")
  23. local UIAspectRatioConstraint_3 = Instance.new("UIAspectRatioConstraint")
  24. local UICorner_5 = Instance.new("UICorner")
  25. local Name = Instance.new("TextLabel")
  26. local UIGradient = Instance.new("UIGradient")
  27. local Button = Instance.new("ImageButton")
  28. local UICorner_6 = Instance.new("UICorner")
  29. local Name_2 = Instance.new("TextLabel")
  30. local UIGradient_2 = Instance.new("UIGradient")
  31. local tab = Instance.new("Frame")
  32. local Close = Instance.new("TextButton")
  33. local ComboElem = Instance.new("ImageButton")
  34. local UICorner_7 = Instance.new("UICorner")
  35. local Name_3 = Instance.new("TextLabel")
  36. local UIGradient_3 = Instance.new("UIGradient")
  37. local Img = Instance.new("TextLabel")
  38. local UIAspectRatioConstraint_4 = Instance.new("UIAspectRatioConstraint")
  39. local ComboBox = Instance.new("ImageButton")
  40. local UICorner_8 = Instance.new("UICorner")
  41. local Name_4 = Instance.new("TextLabel")
  42. local UIGradient_4 = Instance.new("UIGradient")
  43. local Img_2 = Instance.new("TextLabel")
  44. local UIAspectRatioConstraint_5 = Instance.new("UIAspectRatioConstraint")
  45.  
  46. --Properties:
  47.  
  48. Arceus.Name = "Arceus"
  49. Arceus.Enabled = true
  50. Arceus.ResetOnSpawn = true
  51. Arceus.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  52. Arceus.DisplayOrder = 999999999
  53.  
  54. Main.Name = "Main"
  55. Main.Parent = Arceus
  56. Main.Active = true
  57. Main.Draggable = true
  58. Main.AnchorPoint = Vector2.new(0.5, 0.5)
  59. Main.BackgroundColor3 = Color3.fromRGB(140, 0, 0)
  60. Main.BorderSizePixel = 0
  61. Main.Position = UDim2.new(0.5, 0, -0.2, 0) --UDim2.new(0.5, 0, 0.5, 0)
  62. Main.Size = UDim2.new(0.3, 0, 0.3, 0)
  63.  
  64. UICorner.CornerRadius = UDim.new(0.1, 0)
  65. UICorner.Parent = Main
  66.  
  67. Intro.Name = "Intro"
  68. Intro.Parent = Main
  69. Intro.BackgroundColor3 = Color3.fromRGB(140, 0, 0)
  70. Intro.ClipsDescendants = true
  71. Intro.Size = UDim2.new(1, 0, 1, 0)
  72. Intro.ZIndex = 2
  73.  
  74. UICorner_2.CornerRadius = UDim.new(0.1, 0)
  75. UICorner_2.Parent = Intro
  76.  
  77. Logo.Parent = Intro
  78. Logo.AnchorPoint = Vector2.new(0.5, 0.5)
  79. Logo.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  80. Logo.BackgroundTransparency = 1
  81. Logo.BorderSizePixel = 0
  82. Logo.Position = UDim2.new(0.5, 0, 0.5, 0)
  83. Logo.Size = UDim2.new(0.95, 0, 0.9
  84. 5, 0)
  85. Logo.ZIndex = 2
  86. Logo.Image = "http://www.roblox.com/asset/?id=18742568685"
  87. Logo.ScaleType = Enum.ScaleType.Fit
  88. Logo.Active = false
  89.  
  90. UIAspectRatioConstraint.Parent = Logo
  91.  
  92. Title.Name = "Title"
  93. Title.Parent = Main
  94. Title.AnchorPoint = Vector2.new(1, 0)
  95. Title.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  96. Title.BackgroundTransparency = 1
  97. Title.BorderSizePixel = 0
  98. Title.Position = UDim2.new(0.975, 0, 0.075, 0)
  99. Title.Size = UDim2.new(0.85, 0, 0.155, 0)
  100. Title.Font = Enum.Font.TitilliumWeb
  101. Title.FontFace = Font.new("rbxasset://fonts/families/TitilliumWeb.json", Enum.FontWeight.Bold)
  102. Title.RichText = true
  103. Title.Text = Script_Title
  104. Title.TextColor3 = Color3.fromRGB(255, 255, 255)
  105. Title.TextScaled = true
  106. Title.TextSize = 14
  107. Title.TextWrapped = true
  108. Title.TextXAlignment = Enum.TextXAlignment.Left
  109. Title.TextYAlignment = Enum.TextYAlignment.Center
  110.  
  111. Menu.Name = "Menu"
  112. Menu.Parent = Main
  113. Menu.Active = true
  114. Menu.AnchorPoint = Vector2.new(0.5, 1)
  115. Menu.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  116. Menu.BackgroundTransparency = 1
  117. Menu.AutomaticCanvasSize = Enum.AutomaticSize.Y
  118. Menu.BorderSizePixel = 0
  119. Menu.Position = UDim2.new(0.5, 0, 0.95, 0)
  120. Menu.Size = UDim2.new(0.95, 0, 0.65, 0)
  121. Menu.CanvasSize = UDim2.new(0, 0, 0, 0)
  122. Menu.ScrollBarImageColor3 = Color3.fromRGB(255, 255, 255)
  123. Menu.ScrollBarThickness = Menu.AbsoluteSize.X/25
  124.  
  125. UIListLayout.Parent = Menu
  126. --UIListLayout.Padding = UDim.new(0.025, 0)
  127. UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
  128.  
  129. Toggle.Name = "Toggle"
  130. Toggle.Visible = false
  131. --Toggle.Parent = Arceus
  132. Toggle.BackgroundColor3 = Color3.fromRGB(55, 55, 55)
  133. Toggle.Size = UDim2.new(0.95, 0, 0, 50)
  134.  
  135. UICorner_3.CornerRadius = UDim.new(0.25, 0)
  136. UICorner_3.Parent = Toggle
  137.  
  138. Enabled.Name = "Enabled"
  139. Enabled.Parent = Toggle
  140. Enabled.AnchorPoint = Vector2.new(1, 0.5)
  141. Enabled.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
  142. Enabled.Position = UDim2.new(0.975, 0, 0.5, 0)
  143. Enabled.Size = UDim2.new(0.75, 0, 0.75, 0)
  144.  
  145. UIAspectRatioConstraint_2.Parent = Enabled
  146.  
  147. UICorner_4.CornerRadius = UDim.new(0.3, 0)
  148. UICorner_4.Parent = Enabled
  149.  
  150. Check.Name = "Check"
  151. Check.Parent = Enabled
  152. Check.AnchorPoint = Vector2.new(0.5, 0.5)
  153. Check.BackgroundColor3 = Color3.fromRGB(255, 0, 0)
  154. Check.Position = UDim2.new(0.5, 0, 0.5, 0)
  155. Check.Size = UDim2.new(0.65, 0, 0.65, 0)
  156.  
  157. UIAspectRatioConstraint_3.Parent = Check
  158.  
  159. UICorner_5.CornerRadius = UDim.new(0.3, 0)
  160. UICorner_5.Parent = Check
  161.  
  162. Name.Name = "Name"
  163. Name.Parent = Toggle
  164. Name.AnchorPoint = Vector2.new(0, 0.5)
  165. Name.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  166. Name.BackgroundTransparency = 1
  167. Name.BorderSizePixel = 0
  168. Name.Position = UDim2.new(0.05, 0, 0.5, 0)
  169. Name.Size = UDim2.new(0.75, 0, 0.8, 0)
  170. Name.Font = Enum.Font.TitilliumWeb
  171. Name.Text = "Script"
  172. Name.TextColor3 = Color3.fromRGB(255, 255, 255)
  173. Name.TextScaled = true
  174. Name.TextSize = 14
  175. Name.TextWrapped = true
  176. Name.TextXAlignment = Enum.TextXAlignment.Left
  177. Name.TextYAlignment = Enum.TextYAlignment.Bottom
  178.  
  179. UIGradient.Color = ColorSequence.new{ColorSequenceKeypoint.new(0.00, Color3.fromRGB(255, 255, 255)), ColorSequenceKeypoint.new(1.00, Color3.fromRGB(180, 180, 180))}
  180. UIGradient.Parent = Toggle
  181.  
  182. Button.Name = "Button"
  183. --Button.Parent = Arceus
  184. Button.BackgroundColor3 = Color3.fromRGB(55, 55, 55)
  185. Button.Size = UDim2.new(0.95, 0, 0, 50)
  186.  
  187. UICorner_6.CornerRadius = UDim.new(0.25, 0)
  188. UICorner_6.Parent = Button
  189.  
  190. Name_2.Name = "Name"
  191. Name_2.Parent = Button
  192. Name_2.AnchorPoint = Vector2.new(0, 0.5)
  193. Name_2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  194. Name_2.BackgroundTransparency = 1
  195. Name_2.BorderSizePixel = 0
  196. Name_2.Position = UDim2.new(0.05, 0, 0.5, 0)
  197. Name_2.Size = UDim2.new(0.95, 0, 0.82, 0)
  198. Name_2.Font = Enum.Font.TitilliumWeb
  199. Name_2.Text = "Enabled"
  200. Name_2.TextColor3 = Color3.fromRGB(255, 255, 255)
  201. Name_2.TextScaled = true
  202. Name_2.TextSize = 14
  203. Name_2.TextWrapped = true
  204. Name_2.TextXAlignment = Enum.TextXAlignment.Left
  205. Name_2.TextYAlignment = Enum.TextYAlignment.Bottom
  206.  
  207. UIGradient_2.Color = ColorSequence.new{ColorSequenceKeypoint.new(0.00, Color3.fromRGB(255, 255, 255)), ColorSequenceKeypoint.new(1.00, Color3.fromRGB(180, 180, 180))}
  208. UIGradient_2.Parent = Button
  209.  
  210. tab.Name = "Tab"
  211. tab.Visible = false
  212. --tab.Parent = Arceus
  213. tab.BackgroundTransparency = 1
  214. tab.Size = UDim2.new(0.95, 0, 0.025, 0)
  215.  
  216. Close.Name = "Close"
  217. Close.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  218. Close.BackgroundTransparency = 1
  219. Close.BorderSizePixel = 0
  220. Close.Position = UDim2.new(0.8, 0, 0.1, 0)
  221. Close.Size = UDim2.new(0.15, 0, 0.125, 0)
  222. Close.Font = Enum.Font.FredokaOne
  223. Close.Text = "X"
  224. Close.TextColor3 = Color3.fromRGB(255, 0, 0)
  225. Close.TextScaled = true
  226. Close.TextSize = 14
  227. Close.TextWrapped = true
  228. Close.TextXAlignment = Enum.TextXAlignment.Right
  229. Close.Parent = Main
  230.  
  231. ComboElem.Name = "ComboElem"
  232. ComboElem.BackgroundColor3 = Color3.fromRGB(55, 55, 55)
  233. ComboElem.Size = UDim2.new(0.95, 0, 0, 50)
  234.  
  235. UICorner_7.CornerRadius = UDim.new(0.25, 0)
  236. UICorner_7.Parent = ComboElem
  237.  
  238. Name_3.Name = "Name"
  239. Name_3.Parent = ComboElem
  240. Name_3.AnchorPoint = Vector2.new(0, 0.5)
  241. Name_3.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  242. Name_3.BackgroundTransparency = 1
  243. Name_3.BorderSizePixel = 0
  244. Name_3.Position = UDim2.new(0.05, 0, 0.5, 0)
  245. Name_3.Size = UDim2.new(0.75, 0, 0.8, 0)
  246. Name_3.Font = Enum.Font.TitilliumWeb
  247. Name_3.Text = "Enabled"
  248. Name_3.TextColor3 = Color3.fromRGB(255, 255, 255)
  249. Name_3.TextScaled = true
  250. Name_3.TextSize = 14
  251. Name_3.TextWrapped = true
  252. Name_3.TextXAlignment = Enum.TextXAlignment.Left
  253. Name_3.TextYAlignment = Enum.TextYAlignment.Bottom
  254.  
  255. UIGradient_3.Color = ColorSequence.new{ColorSequenceKeypoint.new(0.00, Color3.fromRGB(255, 255, 255)), ColorSequenceKeypoint.new(1.00, Color3.fromRGB(180, 180, 180))}
  256. UIGradient_3.Rotation = 180
  257. UIGradient_3.Parent = ComboElem
  258.  
  259. Img.Name = "Img"
  260. Img.Parent = ComboElem
  261. Img.AnchorPoint = Vector2.new(1, 0.5)
  262. Img.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  263. Img.BackgroundTransparency = 1
  264. Img.BorderSizePixel = 0
  265. Img.Position = UDim2.new(0.975, 0, 0.5, 0)
  266. Img.Rotation = 90
  267. Img.Size = UDim2.new(0.75, 0, 0.75, 0)
  268. Img.Font = Enum.Font.FredokaOne
  269. Img.Text = "^"
  270. Img.TextColor3 = Color3.fromRGB(255, 255, 255)
  271. Img.TextScaled = true
  272. Img.TextSize = 14
  273. Img.TextWrapped = true
  274.  
  275. UIAspectRatioConstraint_4.Parent = Img
  276.  
  277. ComboBox.Name = "ComboBox"
  278. ComboBox.BackgroundColor3 = Color3.fromRGB(55, 55, 55)
  279. ComboBox.Size = UDim2.new(0.95, 0, 0, 50)
  280.  
  281. UICorner_8.CornerRadius = UDim.new(0.25, 0)
  282. UICorner_8.Parent = ComboBox
  283.  
  284. Name_4.Name = "Name"
  285. Name_4.Parent = ComboBox
  286. Name_4.AnchorPoint = Vector2.new(0, 0.5)
  287. Name_4.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  288. Name_4.BackgroundTransparency = 1.000
  289. Name_4.BorderSizePixel = 0
  290. Name_4.Position = UDim2.new(0.05, 0, 0.5, 0)
  291. Name_4.Size = UDim2.new(0.75, 0, 0.8, 0)
  292. Name_4.Font = Enum.Font.TitilliumWeb
  293. Name_4.Text = "Enabled"
  294. Name_4.TextColor3 = Color3.fromRGB(255, 255, 255)
  295. Name_4.TextScaled = true
  296. Name_4.TextSize = 14
  297. Name_4.TextWrapped = true
  298. Name_4.TextXAlignment = Enum.TextXAlignment.Left
  299. Name_4.TextYAlignment = Enum.TextYAlignment.Bottom
  300.  
  301. UIGradient_4.Color = ColorSequence.new{ColorSequenceKeypoint.new(0.00, Color3.fromRGB(255, 255, 255)), ColorSequenceKeypoint.new(1.00, Color3.fromRGB(180, 180, 180))}
  302. UIGradient_4.Parent = ComboBox
  303.  
  304. Img_2.Name = "Img"
  305. Img_2.Parent = ComboBox
  306. Img_2.AnchorPoint = Vector2.new(1, 0.5)
  307. Img_2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  308. Img_2.BackgroundTransparency = 1
  309. Img_2.BorderSizePixel = 0
  310. Img_2.Rotation = 180
  311. Img_2.Position = UDim2.new(0.975, 0, 0.5, 0)
  312. Img_2.Size = UDim2.new(0.75, 0, 0.75, 0)
  313. Img_2.Font = Enum.Font.FredokaOne
  314. Img_2.Text = "^"
  315. Img_2.TextColor3 = Color3.fromRGB(255, 0, 0)
  316. Img_2.TextScaled = true
  317. Img_2.TextSize = 14
  318. Img_2.TextWrapped = true
  319.  
  320. UIAspectRatioConstraint_5.Parent = Img_2
  321.  
  322. -- SCRIPT
  323.  
  324. local TweenService = game:GetService("TweenService")
  325. Close.MouseButton1Click:Connect(function()
  326. Logo.Active = true
  327. TweenService:Create(Intro, TweenInfo.new(0.25, Enum.EasingStyle.Linear, Enum.EasingDirection.In), {BackgroundTransparency = 0}):Play()
  328.  
  329. task.wait(0.3)
  330. Logo:TweenSizeAndPosition(
  331. UDim2.fromScale(0.75, 0.75),
  332. UDim2.fromScale(0.5, 0.5),
  333. Enum.EasingDirection.Out,
  334. Enum.EasingStyle.Quad,
  335. 0.25, true, nil
  336. )
  337.  
  338. task.wait(0.3)
  339. Main:TweenSize(
  340. UDim2.fromScale(0.1, 0.175),
  341. Enum.EasingDirection.Out,
  342. Enum.EasingStyle.Quad,
  343. 0.25, true, nil
  344. )
  345.  
  346. task.wait(0.3)
  347. for _, obj in pairs(Main:GetChildren()) do
  348. if obj:IsA("GuiObject") and obj ~= Intro then
  349. obj.Visible = false
  350. end
  351. end
  352.  
  353. TweenService:Create(Logo, TweenInfo.new(0.25, Enum.EasingStyle.Linear, Enum.EasingDirection.In), {ImageTransparency = 0.8}):Play()
  354. TweenService:Create(Intro, TweenInfo.new(0.25, Enum.EasingStyle.Linear, Enum.EasingDirection.In), {BackgroundTransparency = 1}):Play()
  355. TweenService:Create(Main, TweenInfo.new(0.25, Enum.EasingStyle.Linear, Enum.EasingDirection.In), {BackgroundTransparency = 0.8}):Play()
  356. end)
  357.  
  358. Logo.MouseButton1Click:Connect(function()
  359. Logo.Active = false
  360. TweenService:Create(Logo, TweenInfo.new(0.25, Enum.EasingStyle.Linear, Enum.EasingDirection.In), {ImageTransparency = 0}):Play()
  361. TweenService:Create(Intro, TweenInfo.new(0.25, Enum.EasingStyle.Linear, Enum.EasingDirection.In), {BackgroundTransparency = 0}):Play()
  362. TweenService:Create(Main, TweenInfo.new(0.25, Enum.EasingStyle.Linear, Enum.EasingDirection.In), {BackgroundTransparency = 0}):Play()
  363.  
  364. task.wait(0.3)
  365. Main:TweenSize(
  366. UDim2.fromScale(0.3, 0.3),
  367. Enum.EasingDirection.Out,
  368. Enum.EasingStyle.Quad,
  369. 0.25, true, nil
  370. )
  371.  
  372. task.wait(0.3)
  373. Logo:TweenSizeAndPosition(
  374. UDim2.fromScale(0.175, 0.175),
  375. UDim2.fromScale(0.075, 0.15),
  376. Enum.EasingDirection.Out,
  377. Enum.EasingStyle.Quad,
  378. 0.25, true, nil
  379. )
  380.  
  381. for _, obj in pairs(Main:GetChildren()) do
  382. if obj:IsA("GuiObject") and obj ~= Intro then
  383. obj.Visible = true
  384. end
  385. end
  386.  
  387. task.wait(0.3)
  388. TweenService:Create(Intro, TweenInfo.new(0.25, Enum.EasingStyle.Linear, Enum.EasingDirection.In), {BackgroundTransparency = 1}):Play()
  389. end)
  390.  
  391. local function uiparent()
  392. local success, parent = pcall(function()
  393. return gethui()
  394. end)
  395.  
  396. if not success then
  397. return game:GetService("CoreGui")
  398. end
  399.  
  400. return parent
  401. end
  402.  
  403. local success, err = pcall(function()
  404. Arceus.Parent = uiparent()
  405. end)
  406.  
  407. if not success then
  408. Arceus.Parent = game:GetService("Players").LocalPlayer.PlayerGui
  409. end
  410.  
  411. local element_height = 50*Menu.AbsoluteSize.Y/210
  412. local elements = 0
  413.  
  414. local function AddSpace(parent)
  415. local space = tab:Clone()
  416. space.Parent = parent
  417. space.LayoutOrder = elements
  418. space.Visible = true
  419.  
  420. elements += 1
  421. end
  422.  
  423. function lib:AddToggle(name, funct, enabled, ...)
  424. local newTog = Toggle:Clone()
  425. local args = {...}
  426.  
  427. newTog.MouseButton1Click:Connect(function()
  428. enabled = not enabled
  429. newTog:WaitForChild("Enabled"):WaitForChild("Check").Visible = enabled
  430. funct(enabled, unpack(args))
  431. end)
  432.  
  433. newTog:WaitForChild("Enabled"):WaitForChild("Check").Visible = enabled
  434. newTog:WaitForChild("Name").Text = name
  435.  
  436. newTog.Size = UDim2.new(0.95, 0, 0, element_height) -- Y1 = 50 : Y2 = X
  437. newTog.Name = name
  438. newTog.Parent = Menu
  439. newTog.LayoutOrder = elements
  440. newTog.Visible = true
  441.  
  442. elements += 1
  443. AddSpace(Menu)
  444.  
  445. return newTog
  446. end
  447.  
  448. function lib:AddButton(name, funct, ...)
  449. local newBut = Button:Clone()
  450. local args = {...}
  451.  
  452. newBut.MouseButton1Click:Connect(function()
  453. funct(unpack(args))
  454. end)
  455.  
  456. newBut:WaitForChild("Name").Text = name
  457. newBut.Size = UDim2.new(0.95, 0, 0, element_height)
  458. newBut.Name = name
  459. newBut.Parent = Menu
  460. newBut.LayoutOrder = elements
  461. newBut.Visible = true
  462.  
  463. elements += 1
  464. AddSpace(Menu)
  465.  
  466. return newBut
  467. end
  468.  
  469. function lib:AddComboBox(text, options, funct, ...) -- ADD CUSTOM ELEMENT INSTEAD
  470. local newCombo = ComboBox:Clone()
  471. local enabled = false
  472. local elems = {}
  473. local args = {...}
  474.  
  475. local function setBoxState()
  476. newCombo:WaitForChild("Img").Rotation = enabled and 0 or 180
  477. for _, elem in ipairs(elems) do
  478. elem.Visible = enabled
  479. end
  480. end
  481.  
  482. newCombo.MouseButton1Click:Connect(function()
  483. enabled = not enabled
  484. setBoxState()
  485. end)
  486.  
  487. newCombo:WaitForChild("Name").Text = text .. ": " .. (#options > 0 and options[1] or "")
  488. newCombo.Size = UDim2.new(0.95, 0, 0, element_height)
  489. newCombo.Name = #options > 0 and options[1] or ""
  490. newCombo.Parent = Menu
  491. newCombo.LayoutOrder = elements
  492. newCombo.Parent = Menu
  493. newCombo.Visible = true
  494.  
  495. elements += 1
  496. AddSpace(Menu)
  497.  
  498. for _, name in ipairs(options) do
  499. local newElem = ComboElem:Clone()
  500. table.insert(elems, newElem)
  501.  
  502. newElem.MouseButton1Click:Connect(function()
  503. newCombo:WaitForChild("Name").Text = text .. ": " .. name
  504. enabled = false
  505. setBoxState()
  506.  
  507. funct(name, unpack(args))
  508. end)
  509.  
  510. newElem:WaitForChild("Name").Text = name
  511. newElem.Size = UDim2.new(0.95, 0, 0, element_height)
  512. newElem.Name = name
  513. newElem.Parent = Menu
  514. newElem.LayoutOrder = elements
  515. newElem.Visible = false
  516.  
  517. elements += 1
  518. AddSpace(Menu)
  519. end
  520.  
  521. return newCombo
  522. end
  523.  
  524. function lib:SetTitle(txt)
  525. Title.Text = txt
  526. end
  527.  
  528. function lib:SetIcon(img)
  529. Logo.Image = img
  530. end
  531.  
  532. function lib:SetBackgroundColor(r, g ,b)
  533. Main.BackgroundColor3 = Color3.fromRGB(r, g, b)
  534. Intro.BackgroundColor3 = Color3.fromRGB(r, g, b)
  535. end
  536.  
  537. function lib:SetTitleColor(r, g, b)
  538. Title.TextColor3 = Color3.fromRGB(r, g, b)
  539. end
  540.  
  541. function lib:SetCloseBtnColor(r, g, b)
  542. Close.TextColor3 = Color3.fromRGB(r, g, b)
  543. Img_2.TextColor3 = Color3.fromRGB(r, g, b)
  544. Check.BackgroundColor3 = Color3.fromRGB(r, g, b)
  545. end
  546.  
  547. function lib:SetButtonsColor(r, g ,b)
  548. Toggle.BackgroundColor3 = Color3.fromRGB(r, g, b)
  549. Button.BackgroundColor3 = Color3.fromRGB(r, g, b)
  550. ComboElem.BackgroundColor3 = Color3.fromRGB(r, g, b)
  551. ComboBox.BackgroundColor3 = Color3.fromRGB(r, g, b)
  552. end
  553.  
  554. function lib:SetTheme(theme)
  555. if theme == "Default" then
  556.  
  557. elseif theme == "TomorrowNightBlue" then
  558. lib:SetButtonsColor(74, 208, 238)
  559. lib:SetCloseBtnColor(74, 208, 238)
  560. lib:SetBackgroundColor(5, 16, 58)
  561. elseif theme == "HighContrast" then
  562. lib:SetBackgroundColor(0, 0, 0)
  563. lib:SetButtonsColor(0, 0, 0)
  564. lib:SetCloseBtnColor(255, 255, 0)
  565. elseif theme == "Aqua" then
  566. lib:SetBackgroundColor(44, 62, 82)
  567. lib:SetButtonsColor(52, 74, 95)
  568. lib:SetCloseBtnColor(26, 189, 158)
  569. elseif theme == "Ocean" then
  570. lib:SetBackgroundColor(26, 32, 58)
  571. lib:SetButtonsColor(38, 45, 71)
  572. lib:SetCloseBtnColor(86, 76, 251)
  573. else
  574. error("Theme not found.")
  575. end
  576. end
  577. -- INIT
  578.  
  579. Main:TweenPosition(
  580. UDim2.fromScale(0.5, 0.5),
  581. Enum.EasingDirection.In,
  582. Enum.EasingStyle.Quad,
  583. 1, true, nil
  584. )
  585.  
  586. task.wait(1.5)
  587. Logo:TweenSizeAndPosition(
  588. UDim2.fromScale(0.175, 0.175),
  589. UDim2.fromScale(0.075, 0.15),
  590. Enum.EasingDirection.In,
  591. Enum.EasingStyle.Quad,
  592. 1, true, nil
  593. )
  594.  
  595. task.wait(1.5)
  596. TweenService:Create(Intro, TweenInfo.new(1, Enum.EasingStyle.Linear, Enum.EasingDirection.In), {BackgroundTransparency = 1}):Play()
  597.  
  598. return lib
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement