Messi33536086

Untitled

Mar 7th, 2026
25
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 23.72 KB | None | 0 0
  1. local TweenService = game:GetService("TweenService")
  2. local UserInputService = game:GetService("UserInputService")
  3. local CoreGui = game:GetService("CoreGui")
  4. local RunService = game:GetService("RunService")
  5.  
  6. local function Create(className, properties)
  7. local instance = Instance.new(className)
  8. for k, v in pairs(properties) do
  9. if k ~= "Parent" then
  10. instance[k] = v
  11. end
  12. end
  13. if properties.Parent then
  14. instance.Parent = properties.Parent
  15. end
  16. return instance
  17. end
  18.  
  19. local function MakeDraggable(topbarObject, object)
  20. local dragging = false
  21. local dragInput = nil
  22. local dragStart = nil
  23. local startPos = nil
  24.  
  25. local function update(input)
  26. local delta = input.Position - dragStart
  27. local targetPos = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y)
  28. TweenService:Create(object, TweenInfo.new(0.15, Enum.EasingStyle.Sine, Enum.EasingDirection.Out), {Position = targetPos}):Play()
  29. end
  30.  
  31. topbarObject.InputBegan:Connect(function(input)
  32. if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
  33. dragging = true
  34. dragStart = input.Position
  35. startPos = object.Position
  36.  
  37. input.Changed:Connect(function()
  38. if input.UserInputState == Enum.UserInputState.End then
  39. dragging = false
  40. end
  41. end)
  42. end
  43. end)
  44.  
  45. topbarObject.InputChanged:Connect(function(input)
  46. if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then
  47. dragInput = input
  48. end
  49. end)
  50.  
  51. UserInputService.InputChanged:Connect(function(input)
  52. if input == dragInput and dragging then
  53. update(input)
  54. end
  55. end)
  56. end
  57.  
  58. local Library = {}
  59.  
  60. function Library:Create(config)
  61. local titleText = config.Title or "Library"
  62. local subTitleText = config.SubTitle or "Version"
  63. local useLoader = config.Loader or false
  64.  
  65. local targetParent = (gethui and gethui()) or CoreGui
  66. local existing = targetParent:FindFirstChild("StellarUI")
  67. if existing then existing:Destroy() end
  68.  
  69. local gui = Create("ScreenGui", {
  70. Name = "StellarUI",
  71. Parent = targetParent,
  72. ResetOnSpawn = false,
  73. ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  74. })
  75.  
  76. local MainFrame = Create("Frame", {
  77. Name = "MainFrame",
  78. Parent = gui,
  79. Size = UDim2.new(0, 650, 0, 420),
  80. Position = UDim2.new(0.5, -325, 0.5, -210),
  81. BackgroundColor3 = Color3.fromRGB(15, 15, 15),
  82. BorderSizePixel = 0,
  83. Visible = not useLoader,
  84. ClipsDescendants = true
  85. })
  86. Create("UICorner", {Parent = MainFrame, CornerRadius = UDim.new(0, 6)})
  87.  
  88. local Sidebar = Create("Frame", {
  89. Name = "Sidebar",
  90. Parent = MainFrame,
  91. Size = UDim2.new(0, 160, 1, 0),
  92. Position = UDim2.new(0, 0, 0, 0),
  93. BackgroundColor3 = Color3.fromRGB(11, 11, 12),
  94. BorderSizePixel = 0
  95. })
  96.  
  97. local TitleArea = Create("Frame", {
  98. Name = "TitleArea",
  99. Parent = Sidebar,
  100. Size = UDim2.new(1, 0, 0, 60),
  101. BackgroundTransparency = 1
  102. })
  103. MakeDraggable(TitleArea, MainFrame)
  104.  
  105. Create("TextLabel", {
  106. Parent = TitleArea,
  107. Size = UDim2.new(1, -20, 0, 20),
  108. Position = UDim2.new(0, 15, 0, 15),
  109. BackgroundTransparency = 1,
  110. Text = titleText,
  111. TextColor3 = Color3.fromRGB(255, 255, 255),
  112. Font = Enum.Font.GothamBold,
  113. TextSize = 14,
  114. TextXAlignment = Enum.TextXAlignment.Left
  115. })
  116.  
  117. Create("TextLabel", {
  118. Parent = TitleArea,
  119. Size = UDim2.new(1, -20, 0, 15),
  120. Position = UDim2.new(0, 15, 0, 35),
  121. BackgroundTransparency = 1,
  122. Text = subTitleText,
  123. TextColor3 = Color3.fromRGB(150, 150, 150),
  124. Font = Enum.Font.Gotham,
  125. TextSize = 11,
  126. TextXAlignment = Enum.TextXAlignment.Left
  127. })
  128.  
  129. local TabContainer = Create("ScrollingFrame", {
  130. Name = "TabContainer",
  131. Parent = Sidebar,
  132. Size = UDim2.new(1, 0, 1, -120),
  133. Position = UDim2.new(0, 0, 0, 60),
  134. BackgroundTransparency = 1,
  135. ScrollBarThickness = 0,
  136. CanvasSize = UDim2.new(0, 0, 0, 0)
  137. })
  138. local TabListLayout = Create("UIListLayout", {
  139. Parent = TabContainer,
  140. SortOrder = Enum.SortOrder.LayoutOrder,
  141. Padding = UDim.new(0, 5),
  142. HorizontalAlignment = Enum.HorizontalAlignment.Center
  143. })
  144.  
  145. local ContentContainer = Create("Frame", {
  146. Name = "ContentContainer",
  147. Parent = MainFrame,
  148. Size = UDim2.new(1, -170, 1, -20),
  149. Position = UDim2.new(0, 165, 0, 10),
  150. BackgroundTransparency = 1
  151. })
  152.  
  153. local LoaderObj = {}
  154. if useLoader then
  155. local LoaderFrame = Create("Frame", {
  156. Parent = gui,
  157. Size = UDim2.new(0, 650, 0, 420),
  158. Position = UDim2.new(0.5, -325, 0.5, -210),
  159. BackgroundTransparency = 1,
  160. Visible = false,
  161. ClipsDescendants = true
  162. })
  163.  
  164. local LeftHalf = Create("Frame", {
  165. Parent = LoaderFrame,
  166. Size = UDim2.new(0.5, 0, 1, 0),
  167. Position = UDim2.new(0, 0, 0, 0),
  168. BackgroundColor3 = Color3.fromRGB(15, 15, 15),
  169. BorderSizePixel = 0
  170. })
  171.  
  172. local RightHalf = Create("Frame", {
  173. Parent = LoaderFrame,
  174. Size = UDim2.new(0.5, 0, 1, 0),
  175. Position = UDim2.new(0.5, 0, 0, 0),
  176. BackgroundColor3 = Color3.fromRGB(15, 15, 15),
  177. BorderSizePixel = 0
  178. })
  179.  
  180. local LoadText = Create("TextLabel", {
  181. Parent = LoaderFrame,
  182. Size = UDim2.new(1, 0, 1, 0),
  183. Position = UDim2.new(0, 0, 0, 0),
  184. BackgroundTransparency = 1,
  185. Text = "Loading...",
  186. TextColor3 = Color3.fromRGB(255, 255, 255),
  187. TextSize = 22,
  188. Font = Enum.Font.GothamBold,
  189. ZIndex = 10
  190. })
  191.  
  192. function LoaderObj:Start()
  193. LoaderFrame.Visible = true
  194. MainFrame.Visible = false
  195. end
  196.  
  197. function LoaderObj:SetText(txt)
  198. LoadText.Text = txt
  199. end
  200.  
  201. function LoaderObj:End()
  202. local tInfo = TweenInfo.new(0.7, Enum.EasingStyle.Cubic, Enum.EasingDirection.InOut)
  203. TweenService:Create(LoadText, TweenInfo.new(0.3), {TextTransparency = 1}):Play()
  204. task.wait(0.3)
  205. TweenService:Create(LeftHalf, tInfo, {Position = UDim2.new(-0.5, 0, 0, 0)}):Play()
  206. TweenService:Create(RightHalf, tInfo, {Position = UDim2.new(1, 0, 0, 0)}):Play()
  207. task.wait(0.7)
  208. LoaderFrame:Destroy()
  209. MainFrame.Visible = true
  210. MainFrame.Size = UDim2.new(0, 550, 0, 320)
  211. MainFrame.Position = UDim2.new(0.5, -275, 0.5, -160)
  212. MainFrame.BackgroundTransparency = 1
  213. for _, v in pairs(MainFrame:GetDescendants()) do
  214. if v:IsA("Frame") or v:IsA("TextLabel") or v:IsA("ScrollingFrame") then
  215. if v.BackgroundTransparency < 1 then
  216. local orig = v.BackgroundTransparency
  217. v.BackgroundTransparency = 1
  218. TweenService:Create(v, TweenInfo.new(0.5), {BackgroundTransparency = orig}):Play()
  219. end
  220. if v:IsA("TextLabel") then
  221. local origTxt = v.TextTransparency
  222. v.TextTransparency = 1
  223. TweenService:Create(v, TweenInfo.new(0.5), {TextTransparency = origTxt}):Play()
  224. end
  225. end
  226. end
  227. TweenService:Create(MainFrame, TweenInfo.new(0.5, Enum.EasingStyle.Back, Enum.EasingDirection.Out), {
  228. Size = UDim2.new(0, 650, 0, 420),
  229. Position = UDim2.new(0.5, -325, 0.5, -210),
  230. BackgroundTransparency = 0
  231. }):Play()
  232. end
  233. end
  234.  
  235. local firstTab = true
  236. local activeTabBtn = nil
  237.  
  238. local Window = {}
  239. Window.Loader = LoaderObj
  240.  
  241. function Window:Tab(tabName)
  242. local TabBtn = Create("TextButton", {
  243. Parent = TabContainer,
  244. Size = UDim2.new(0.9, 0, 0, 32),
  245. BackgroundColor3 = Color3.fromRGB(166, 243, 230),
  246. BackgroundTransparency = firstTab and 0 or 1,
  247. Text = " " .. tabName,
  248. TextColor3 = firstTab and Color3.fromRGB(0, 0, 0) or Color3.fromRGB(150, 150, 150),
  249. Font = Enum.Font.GothamSemibold,
  250. TextSize = 12,
  251. TextXAlignment = Enum.TextXAlignment.Left,
  252. AutoButtonColor = false
  253. })
  254. Create("UICorner", {Parent = TabBtn, CornerRadius = UDim.new(0, 6)})
  255.  
  256. local Indicator = Create("Frame", {
  257. Parent = TabBtn,
  258. Size = UDim2.new(0, 2, 0.6, 0),
  259. Position = UDim2.new(1, -4, 0.2, 0),
  260. BackgroundColor3 = Color3.fromRGB(255, 255, 255),
  261. BorderSizePixel = 0,
  262. Visible = firstTab
  263. })
  264. Create("UICorner", {Parent = Indicator, CornerRadius = UDim.new(1, 0)})
  265.  
  266. local Page = Create("ScrollingFrame", {
  267. Parent = ContentContainer,
  268. Size = UDim2.new(1, 0, 1, 0),
  269. BackgroundTransparency = 1,
  270. ScrollBarThickness = 2,
  271. ScrollBarImageColor3 = Color3.fromRGB(40, 40, 40),
  272. Visible = firstTab,
  273. CanvasSize = UDim2.new(0, 0, 0, 0)
  274. })
  275. local PageLayout = Create("UIListLayout", {
  276. Parent = Page,
  277. SortOrder = Enum.SortOrder.LayoutOrder,
  278. Padding = UDim.new(0, 8)
  279. })
  280.  
  281. PageLayout:GetPropertyChangedSignal("AbsoluteContentSize"):Connect(function()
  282. Page.CanvasSize = UDim2.new(0, 0, 0, PageLayout.AbsoluteContentSize.Y + 10)
  283. end)
  284.  
  285. if firstTab then
  286. activeTabBtn = TabBtn
  287. firstTab = false
  288. end
  289.  
  290. TabBtn.MouseButton1Click:Connect(function()
  291. if activeTabBtn == TabBtn then return end
  292.  
  293. TweenService:Create(activeTabBtn, TweenInfo.new(0.2), {BackgroundTransparency = 1, TextColor3 = Color3.fromRGB(150, 150, 150)}):Play()
  294. activeTabBtn:FindFirstChildOfClass("Frame").Visible = false
  295.  
  296. TweenService:Create(TabBtn, TweenInfo.new(0.2), {BackgroundTransparency = 0, TextColor3 = Color3.fromRGB(0, 0, 0)}):Play()
  297. TabBtn:FindFirstChildOfClass("Frame").Visible = true
  298. activeTabBtn = TabBtn
  299.  
  300. for _, child in pairs(ContentContainer:GetChildren()) do
  301. if child:IsA("ScrollingFrame") then
  302. child.Visible = false
  303. end
  304. end
  305. Page.Visible = true
  306. end)
  307.  
  308. local TabElements = {}
  309.  
  310. function TabElements:Section(sectionName)
  311. local SectionFrame = Create("Frame", {
  312. Parent = Page,
  313. Size = UDim2.new(1, -10, 0, 25),
  314. BackgroundTransparency = 1
  315. })
  316.  
  317. Create("TextLabel", {
  318. Parent = SectionFrame,
  319. Size = UDim2.new(1, 0, 0, 15),
  320. BackgroundTransparency = 1,
  321. Text = sectionName,
  322. TextColor3 = Color3.fromRGB(255, 255, 255),
  323. Font = Enum.Font.GothamSemibold,
  324. TextSize = 13,
  325. TextXAlignment = Enum.TextXAlignment.Left
  326. })
  327.  
  328. Create("Frame", {
  329. Parent = SectionFrame,
  330. Size = UDim2.new(1, 0, 0, 1),
  331. Position = UDim2.new(0, 0, 1, 0),
  332. BackgroundColor3 = Color3.fromRGB(40, 40, 40),
  333. BorderSizePixel = 0
  334. })
  335.  
  336. local SectionObj = {}
  337. SectionObj.ParentObj = Page
  338.  
  339. function SectionObj:Toggle(options)
  340. local tName = options.Name or "Toggle"
  341. local state = options.Default or false
  342. local callback = options.Callback or function() end
  343.  
  344. local ToggleFrame = Create("Frame", {
  345. Parent = SectionObj.ParentObj,
  346. Size = UDim2.new(1, -10, 0, 35),
  347. BackgroundColor3 = Color3.fromRGB(18, 18, 19),
  348. BorderSizePixel = 0
  349. })
  350. Create("UICorner", {Parent = ToggleFrame, CornerRadius = UDim.new(0, 6)})
  351.  
  352. Create("TextLabel", {
  353. Parent = ToggleFrame,
  354. Size = UDim2.new(1, -60, 1, 0),
  355. Position = UDim2.new(0, 10, 0, 0),
  356. BackgroundTransparency = 1,
  357. Text = tName,
  358. TextColor3 = Color3.fromRGB(200, 200, 200),
  359. Font = Enum.Font.Gotham,
  360. TextSize = 12,
  361. TextXAlignment = Enum.TextXAlignment.Left
  362. })
  363.  
  364. local ToggleBtn = Create("TextButton", {
  365. Parent = ToggleFrame,
  366. Size = UDim2.new(0, 36, 0, 18),
  367. Position = UDim2.new(1, -46, 0.5, -9),
  368. BackgroundColor3 = state and Color3.fromRGB(166, 243, 230) or Color3.fromRGB(40, 40, 40),
  369. Text = "",
  370. AutoButtonColor = false
  371. })
  372. Create("UICorner", {Parent = ToggleBtn, CornerRadius = UDim.new(1, 0)})
  373.  
  374. local Indicator = Create("Frame", {
  375. Parent = ToggleBtn,
  376. Size = UDim2.new(0, 14, 0, 14),
  377. Position = state and UDim2.new(1, -16, 0.5, -7) or UDim2.new(0, 2, 0.5, -7),
  378. BackgroundColor3 = Color3.fromRGB(255, 255, 255),
  379. BorderSizePixel = 0
  380. })
  381. Create("UICorner", {Parent = Indicator, CornerRadius = UDim.new(1, 0)})
  382.  
  383. ToggleBtn.MouseButton1Click:Connect(function()
  384. state = not state
  385. TweenService:Create(ToggleBtn, TweenInfo.new(0.2), {BackgroundColor3 = state and Color3.fromRGB(166, 243, 230) or Color3.fromRGB(40, 40, 40)}):Play()
  386. TweenService:Create(Indicator, TweenInfo.new(0.2), {Position = state and UDim2.new(1, -16, 0.5, -7) or UDim2.new(0, 2, 0.5, -7)}):Play()
  387. callback(state)
  388. end)
  389. end
  390.  
  391. function SectionObj:Slider(options)
  392. local sName = options.Name or "Slider"
  393. local min = options.Min or 0
  394. local max = options.Max or 100
  395. local def = options.Default or min
  396. local callback = options.Callback or function() end
  397.  
  398. local SliderFrame = Create("Frame", {
  399. Parent = SectionObj.ParentObj,
  400. Size = UDim2.new(1, -10, 0, 50),
  401. BackgroundColor3 = Color3.fromRGB(18, 18, 19),
  402. BorderSizePixel = 0
  403. })
  404. Create("UICorner", {Parent = SliderFrame, CornerRadius = UDim.new(0, 6)})
  405.  
  406. Create("TextLabel", {
  407. Parent = SliderFrame,
  408. Size = UDim2.new(1, -20, 0, 25),
  409. Position = UDim2.new(0, 10, 0, 0),
  410. BackgroundTransparency = 1,
  411. Text = sName,
  412. TextColor3 = Color3.fromRGB(200, 200, 200),
  413. Font = Enum.Font.Gotham,
  414. TextSize = 12,
  415. TextXAlignment = Enum.TextXAlignment.Left
  416. })
  417.  
  418. local ValueText = Create("TextLabel", {
  419. Parent = SliderFrame,
  420. Size = UDim2.new(0, 40, 0, 25),
  421. Position = UDim2.new(1, -50, 0, 0),
  422. BackgroundTransparency = 1,
  423. Text = tostring(def),
  424. TextColor3 = Color3.fromRGB(150, 150, 150),
  425. Font = Enum.Font.Gotham,
  426. TextSize = 12,
  427. TextXAlignment = Enum.TextXAlignment.Right
  428. })
  429.  
  430. local SliderBg = Create("TextButton", {
  431. Parent = SliderFrame,
  432. Size = UDim2.new(1, -20, 0, 6),
  433. Position = UDim2.new(0, 10, 0, 30),
  434. BackgroundColor3 = Color3.fromRGB(30, 30, 30),
  435. Text = "",
  436. AutoButtonColor = false
  437. })
  438. Create("UICorner", {Parent = SliderBg, CornerRadius = UDim.new(1, 0)})
  439.  
  440. local Fill = Create("Frame", {
  441. Parent = SliderBg,
  442. Size = UDim2.new((def - min) / (max - min), 0, 1, 0),
  443. BackgroundColor3 = Color3.fromRGB(166, 243, 230),
  444. BorderSizePixel = 0
  445. })
  446. Create("UICorner", {Parent = Fill, CornerRadius = UDim.new(1, 0)})
  447.  
  448. local Knob = Create("Frame", {
  449. Parent = Fill,
  450. Size = UDim2.new(0, 12, 0, 12),
  451. Position = UDim2.new(1, -6, 0.5, -6),
  452. BackgroundColor3 = Color3.fromRGB(255, 255, 255),
  453. BorderSizePixel = 0
  454. })
  455. Create("UICorner", {Parent = Knob, CornerRadius = UDim.new(1, 0)})
  456.  
  457. local dragging = false
  458. local function updateSlider(input)
  459. local percent = math.clamp((input.Position.X - SliderBg.AbsolutePosition.X) / SliderBg.AbsoluteSize.X, 0, 1)
  460. local val = math.floor(min + (max - min) * percent)
  461. TweenService:Create(Fill, TweenInfo.new(0.1), {Size = UDim2.new(percent, 0, 1, 0)}):Play()
  462. ValueText.Text = tostring(val)
  463. callback(val)
  464. end
  465.  
  466. SliderBg.InputBegan:Connect(function(input)
  467. if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
  468. dragging = true
  469. updateSlider(input)
  470. end
  471. end)
  472.  
  473. UserInputService.InputEnded:Connect(function(input)
  474. if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
  475. dragging = false
  476. end
  477. end)
  478.  
  479. UserInputService.InputChanged:Connect(function(input)
  480. if dragging and (input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch) then
  481. updateSlider(input)
  482. end
  483. end)
  484. end
  485.  
  486. function SectionObj:Dropdown(options)
  487. local dName = options.Name or "Dropdown"
  488. local list = options.Options or {}
  489. local callback = options.Callback or function() end
  490. local isOpen = false
  491.  
  492. local DropFrame = Create("Frame", {
  493. Parent = SectionObj.ParentObj,
  494. Size = UDim2.new(1, -10, 0, 35),
  495. BackgroundColor3 = Color3.fromRGB(18, 18, 19),
  496. BorderSizePixel = 0,
  497. ClipsDescendants = true
  498. })
  499. Create("UICorner", {Parent = DropFrame, CornerRadius = UDim.new(0, 6)})
  500.  
  501. local DropBtn = Create("TextButton", {
  502. Parent = DropFrame,
  503. Size = UDim2.new(1, 0, 0, 35),
  504. BackgroundTransparency = 1,
  505. Text = "",
  506. AutoButtonColor = false
  507. })
  508.  
  509. Create("TextLabel", {
  510. Parent = DropBtn,
  511. Size = UDim2.new(1, -20, 1, 0),
  512. Position = UDim2.new(0, 10, 0, 0),
  513. BackgroundTransparency = 1,
  514. Text = dName,
  515. TextColor3 = Color3.fromRGB(200, 200, 200),
  516. Font = Enum.Font.Gotham,
  517. TextSize = 12,
  518. TextXAlignment = Enum.TextXAlignment.Left
  519. })
  520.  
  521. local SelectedText = Create("TextLabel", {
  522. Parent = DropBtn,
  523. Size = UDim2.new(0, 100, 1, 0),
  524. Position = UDim2.new(1, -130, 0, 0),
  525. BackgroundTransparency = 1,
  526. Text = list[1] or "None",
  527. TextColor3 = Color3.fromRGB(150, 150, 150),
  528. Font = Enum.Font.Gotham,
  529. TextSize = 12,
  530. TextXAlignment = Enum.TextXAlignment.Right
  531. })
  532.  
  533. local DropList = Create("ScrollingFrame", {
  534. Parent = DropFrame,
  535. Size = UDim2.new(1, -20, 0, 0),
  536. Position = UDim2.new(0, 10, 0, 40),
  537. BackgroundTransparency = 1,
  538. ScrollBarThickness = 0,
  539. CanvasSize = UDim2.new(0, 0, 0, 0)
  540. })
  541. local DropLayout = Create("UIListLayout", {
  542. Parent = DropList,
  543. SortOrder = Enum.SortOrder.LayoutOrder,
  544. Padding = UDim.new(0, 5)
  545. })
  546.  
  547. local function refreshOptions()
  548. for _, v in pairs(DropList:GetChildren()) do
  549. if v:IsA("TextButton") then v:Destroy() end
  550. end
  551. local ySize = 0
  552. for _, opt in pairs(list) do
  553. local oBtn = Create("TextButton", {
  554. Parent = DropList,
  555. Size = UDim2.new(1, 0, 0, 25),
  556. BackgroundColor3 = Color3.fromRGB(25, 25, 25),
  557. Text = opt,
  558. TextColor3 = Color3.fromRGB(200, 200, 200),
  559. Font = Enum.Font.Gotham,
  560. TextSize = 11,
  561. AutoButtonColor = false
  562. })
  563. Create("UICorner", {Parent = oBtn, CornerRadius = UDim.new(0, 4)})
  564. ySize = ySize + 30
  565.  
  566. oBtn.MouseButton1Click:Connect(function()
  567. SelectedText.Text = opt
  568. isOpen = false
  569. TweenService:Create(DropFrame, TweenInfo.new(0.2), {Size = UDim2.new(1, -10, 0, 35)}):Play()
  570. callback(opt)
  571. end)
  572. end
  573. DropList.Size = UDim2.new(1, -20, 0, math.clamp(ySize, 0, 100))
  574. DropList.CanvasSize = UDim2.new(0, 0, 0, ySize)
  575. return ySize
  576. end
  577.  
  578. DropBtn.MouseButton1Click:Connect(function()
  579. isOpen = not isOpen
  580. local listSize = refreshOptions()
  581. local targetHeight = isOpen and (45 + math.clamp(listSize, 0, 100)) or 35
  582. TweenService:Create(DropFrame, TweenInfo.new(0.2), {Size = UDim2.new(1, -10, 0, targetHeight)}):Play()
  583. end)
  584. end
  585.  
  586. return SectionObj
  587. end
  588. return TabElements
  589. end
  590. return Window
  591. end
  592.  
  593. return Library
  594.  
Advertisement
Add Comment
Please, Sign In to add comment