joefromsansnite

Untitled

Jan 8th, 2022 (edited)
44
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 35.38 KB | None | 0 0
  1. --!nocheck
  2. local Library = {}
  3.  
  4. type Window = {Title: string, Scale: number, Draggable: boolean}
  5. type Tab = {Text: string, Icon: string}
  6. type Section = {Text: string}
  7. type Button = {Text: string, Description: string, Callback: any}
  8. type Input = {Text: string, Description: string, Placeholder: string, Callback: any}
  9. type Switch = {Text: string, Description: string, Callback: any}
  10. type Dropdown = {Text: string, Description: string, Items: any, Callback: any}
  11. type Slider = {Text: string, Description: string, Min: number, Max: number, Callback: any}
  12.  
  13.  
  14. function Library:CreateWindow(args: Window)
  15. -----<| DEFAULT VALUES |>-----
  16. args.Title = (args.Title == nil) and "Title" or args.Title
  17. args.Scale = (type(args.Scale) ~= "number") and 0.94 or args.Scale
  18. args.Draggable = (type(args.Draggable) ~= "boolean") and true or false
  19.  
  20.  
  21. -----<| SERVICES |>-----
  22. local TweenService = game:GetService("TweenService")
  23. local RunService = game:GetService("RunService")
  24.  
  25.  
  26. -----<| MODULES |>-----
  27. --local Notification = require(script:WaitForChild("Notification"))
  28.  
  29.  
  30. -----<| VARIABLES |>-----
  31. local pages = 0
  32. local highlighted = false
  33.  
  34.  
  35. -----<| GUI |>-----
  36. local ScreenGui = Instance.new("ScreenGui")
  37.  
  38. local Menu = Instance.new("Frame")
  39.  
  40. local Background = Instance.new("Frame")
  41. local UICorner = Instance.new("UICorner")
  42.  
  43. local Tabs = Instance.new("ScrollingFrame")
  44. local UIListLayout = Instance.new("UIListLayout")
  45.  
  46. local Pages = Instance.new("Frame")
  47. local UIPageLayout = Instance.new("UIPageLayout")
  48.  
  49. local Seperator = Instance.new("Frame")
  50.  
  51. local Title = Instance.new("TextLabel")
  52.  
  53. local Exit = Instance.new("ImageButton")
  54.  
  55. local Seperator_2 = Instance.new("Frame")
  56.  
  57. local UIScale = Instance.new("UIScale")
  58.  
  59. local shadowHolder = Instance.new("Frame")
  60.  
  61. local umbraShadow = Instance.new("ImageLabel")
  62. local penumbraShadow = Instance.new("ImageLabel")
  63. local ambientShadow = Instance.new("ImageLabel")
  64.  
  65. local SearchBar = Instance.new("Frame")
  66. local Input = Instance.new("TextBox")
  67. local UICorner_2 = Instance.new("UICorner")
  68. local UIStroke = Instance.new("UIStroke")
  69. local SearchIcon = Instance.new("ImageLabel")
  70. local UIScale_2 = Instance.new("UIScale")
  71.  
  72. local TabShadow = Instance.new("Frame")
  73. local UIGradient = Instance.new("UIGradient")
  74. local PageShadow = Instance.new("Frame")
  75. local UIGradient_2 = Instance.new("UIGradient")
  76.  
  77. --Properties:
  78.  
  79. ScreenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  80. ScreenGui.DisplayOrder = 999999
  81. ScreenGui.ResetOnSpawn = false
  82.  
  83. Menu.Name = "Menu"
  84. Menu.Parent = ScreenGui
  85. Menu.AnchorPoint = Vector2.new(0.5, 0.5)
  86. Menu.BackgroundColor3 = Color3.fromRGB(25, 25, 30)
  87. Menu.BackgroundTransparency = 1.000
  88. Menu.BorderSizePixel = 0
  89. Menu.Position = UDim2.new(0.5, 0, 0.247191012, 0)
  90. Menu.Size = UDim2.new(0, 520, 0, 20)
  91.  
  92. Background.Name = "Background"
  93. Background.Parent = Menu
  94. Background.AnchorPoint = Vector2.new(0.5, 0.5)
  95. Background.BackgroundColor3 = Color3.fromRGB(20, 20, 20)
  96. Background.BorderSizePixel = 0
  97. Background.Position = UDim2.new(0.5, 0, 8.85, 0)
  98. Background.Size = UDim2.new(0, 520, 0, 355)
  99.  
  100. UICorner.CornerRadius = UDim.new(0, 5)
  101. UICorner.Parent = Background
  102.  
  103. SearchBar.Name = "SearchBar"
  104. SearchBar.Parent = Background
  105. SearchBar.AnchorPoint = Vector2.new(0.5, 0.5)
  106. SearchBar.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
  107. SearchBar.Position = UDim2.new(0.147, 0, 0.12, 0)
  108. SearchBar.Size = UDim2.new(0, 140, 0, 20)
  109.  
  110. UIScale_2.Parent = SearchBar
  111. UIScale_2.Scale = 1.035
  112.  
  113. Input.Name = "Input"
  114. Input.Parent = SearchBar
  115. Input.AnchorPoint = Vector2.new(0.5, 0.5)
  116. Input.BackgroundTransparency = 1.000
  117. Input.Position = UDim2.new(0.464566827, 0, 0.5, 0)
  118. Input.Size = UDim2.new(0, 115, 0, 18)
  119. Input.ClearTextOnFocus = false
  120. Input.Font = Enum.Font.Arial
  121. Input.PlaceholderText = "Search Tab"
  122. Input.Text = ""
  123. Input.TextColor3 = Color3.fromRGB(255, 255, 255)
  124. Input.TextSize = 10.000
  125. Input.TextWrapped = true
  126. Input.TextXAlignment = Enum.TextXAlignment.Left
  127.  
  128. UICorner_2.CornerRadius = UDim.new(0, 4)
  129. UICorner_2.Parent = SearchBar
  130.  
  131. UIStroke.Color = Color3.fromRGB(100, 100, 100)
  132. UIStroke.Transparency = 0.5
  133. UIStroke.Parent = SearchBar
  134.  
  135. SearchIcon.Name = "SearchIcon"
  136. SearchIcon.Parent = SearchBar
  137. SearchIcon.AnchorPoint = Vector2.new(0.5, 0.5)
  138. SearchIcon.BackgroundTransparency = 1.000
  139. SearchIcon.Position = UDim2.new(0.910000026, 0, 0.5, 0)
  140. SearchIcon.Size = UDim2.new(0, 12, 0, 12)
  141. SearchIcon.Image = "rbxassetid://7072721559"
  142.  
  143. Tabs.Name = "Tabs"
  144. Tabs.Parent = Background
  145. Tabs.Active = true
  146. Tabs.AnchorPoint = Vector2.new(0.5, 0.5)
  147. Tabs.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  148. Tabs.BackgroundTransparency = 1.000
  149. Tabs.BorderSizePixel = 0
  150. Tabs.Position = UDim2.new(0.144, 0, 0.593, 0)
  151. Tabs.Size = UDim2.new(0.096, 100, 0.815, 0)
  152. Tabs.ScrollBarThickness = 4
  153.  
  154. UIListLayout.Parent = Tabs
  155. UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
  156.  
  157. Pages.Name = "Pages"
  158. Pages.Parent = Background
  159. Pages.AnchorPoint = Vector2.new(0.5, 0.5)
  160. Pages.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  161. Pages.BackgroundTransparency = 1.000
  162. Pages.ClipsDescendants = true
  163. Pages.Position = UDim2.new(0.654, 0, 0.538, 0)
  164. Pages.Size = UDim2.new(0.5, 100, 0.922, 0)
  165.  
  166. UIPageLayout.Parent = Pages
  167. UIPageLayout.SortOrder = Enum.SortOrder.LayoutOrder
  168.  
  169. Seperator.Name = "Seperator"
  170. Seperator.Parent = Background
  171. Seperator.AnchorPoint = Vector2.new(0.5, 0.5)
  172. Seperator.BackgroundColor3 = Color3.fromRGB(100, 100, 100)
  173. Seperator.BackgroundTransparency = 0.750
  174. Seperator.BorderSizePixel = 0
  175. Seperator.Position = UDim2.new(0.305, 0, 0.53, 0)
  176. Seperator.Size = UDim2.new(0, 1, 0, 335)
  177. Seperator.SizeConstraint = Enum.SizeConstraint.RelativeXX
  178.  
  179. Title.Name = "Title"
  180. Title.Parent = Menu
  181. Title.AnchorPoint = Vector2.new(0.5, 0.5)
  182. Title.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  183. Title.BackgroundTransparency = 1.000
  184. Title.Position = UDim2.new(0.479807705, 0, 0.5, 0)
  185. Title.Size = UDim2.new(0.924846172, 0, 1, -4)
  186. Title.Font = Enum.Font.SourceSansBold
  187. Title.Text = args.Title
  188. Title.TextColor3 = Color3.fromRGB(255, 255, 255)
  189. Title.TextScaled = true
  190. Title.TextSize = 14.000
  191. Title.TextWrapped = true
  192. Title.TextXAlignment = Enum.TextXAlignment.Left
  193.  
  194. Exit.Name = "Exit"
  195. Exit.Parent = Menu
  196. Exit.AnchorPoint = Vector2.new(0.5, 0.5)
  197. Exit.BackgroundTransparency = 1.000
  198. Exit.Position = UDim2.new(0.982500017, 0, 0.5, 0)
  199. Exit.Size = UDim2.new(0, 16, 0, 16)
  200. Exit.Image = "rbxassetid://7072725342"
  201.  
  202. Seperator_2.Name = "Seperator"
  203. Seperator_2.Parent = Menu
  204. Seperator_2.AnchorPoint = Vector2.new(0.5, 0.5)
  205. Seperator_2.BackgroundColor3 = Color3.fromRGB(100, 100, 100)
  206. Seperator_2.BackgroundTransparency = 0.750
  207. Seperator_2.BorderSizePixel = 0
  208. Seperator_2.Position = UDim2.new(0.5, 0, 1, 0)
  209. Seperator_2.Size = UDim2.new(1, 0, 0, 1)
  210. Seperator_2.SizeConstraint = Enum.SizeConstraint.RelativeXX
  211.  
  212. UIScale.Parent = Menu
  213.  
  214. shadowHolder.Name = "shadowHolder"
  215. shadowHolder.Parent = Menu
  216. shadowHolder.AnchorPoint = Vector2.new(0.5, 0.5)
  217. shadowHolder.BackgroundTransparency = 1.000
  218. shadowHolder.Position = UDim2.new(0.5, 0, 8.625, 0)
  219. shadowHolder.Size = UDim2.new(1, 8, 17.3500004, 8)
  220. shadowHolder.ZIndex = -1
  221.  
  222. umbraShadow.Name = "umbraShadow"
  223. umbraShadow.Parent = shadowHolder
  224. umbraShadow.AnchorPoint = Vector2.new(0.5, 0.5)
  225. umbraShadow.BackgroundTransparency = 1.000
  226. umbraShadow.Position = UDim2.new(0.5, 0, 0.5, 0)
  227. umbraShadow.Size = UDim2.new(1, 4, 1, 4)
  228. umbraShadow.ZIndex = -1
  229. umbraShadow.Image = "rbxassetid://1316045217"
  230. umbraShadow.ImageColor3 = Color3.fromRGB(0, 0, 0)
  231. umbraShadow.ImageTransparency = 0.860
  232. umbraShadow.ScaleType = Enum.ScaleType.Slice
  233. umbraShadow.SliceCenter = Rect.new(10, 10, 118, 118)
  234.  
  235. penumbraShadow.Name = "penumbraShadow"
  236. penumbraShadow.Parent = shadowHolder
  237. penumbraShadow.AnchorPoint = Vector2.new(0.5, 0.5)
  238. penumbraShadow.BackgroundTransparency = 1.000
  239. penumbraShadow.Position = UDim2.new(0.5, 0, 0.5, 0)
  240. penumbraShadow.Size = UDim2.new(1, 4, 1, 4)
  241. penumbraShadow.ZIndex = -1
  242. penumbraShadow.Image = "rbxassetid://1316045217"
  243. penumbraShadow.ImageColor3 = Color3.fromRGB(0, 0, 0)
  244. penumbraShadow.ImageTransparency = 0.880
  245. penumbraShadow.ScaleType = Enum.ScaleType.Slice
  246. penumbraShadow.SliceCenter = Rect.new(10, 10, 118, 118)
  247.  
  248. ambientShadow.Name = "ambientShadow"
  249. ambientShadow.Parent = shadowHolder
  250. ambientShadow.AnchorPoint = Vector2.new(0.5, 0.5)
  251. ambientShadow.BackgroundTransparency = 1.000
  252. ambientShadow.Position = UDim2.new(0.5, 0, 0.5, 0)
  253. ambientShadow.Size = UDim2.new(1, 4, 1, 4)
  254. ambientShadow.ZIndex = -1
  255. ambientShadow.Image = "rbxassetid://1316045217"
  256. ambientShadow.ImageColor3 = Color3.fromRGB(0, 0, 0)
  257. ambientShadow.ImageTransparency = 0.880
  258. ambientShadow.ScaleType = Enum.ScaleType.Slice
  259. ambientShadow.SliceCenter = Rect.new(10, 10, 118, 118)
  260.  
  261. TabShadow.Name = "TabShadow"
  262. TabShadow.Parent = Background
  263. TabShadow.AnchorPoint = Vector2.new(0.5, 0.5)
  264. TabShadow.BackgroundColor3 = Color3.fromRGB(20, 20, 20)
  265. TabShadow.BorderSizePixel = 0
  266. TabShadow.Position = UDim2.new(0.142, 0, 0.176, 0)
  267. TabShadow.Size = UDim2.new(0, 141, 0, 16)
  268. TabShadow.SizeConstraint = Enum.SizeConstraint.RelativeXX
  269. TabShadow.ZIndex = 2
  270.  
  271. UIGradient.Rotation = 90
  272. UIGradient.Transparency = NumberSequence.new{NumberSequenceKeypoint.new(0.00, 0.00), NumberSequenceKeypoint.new(0.57, 0.35), NumberSequenceKeypoint.new(1.00, 1.00)}
  273. UIGradient.Parent = TabShadow
  274.  
  275. PageShadow.Name = "PageShadow"
  276. PageShadow.Parent = Background
  277. PageShadow.AnchorPoint = Vector2.new(0.5, 0.5)
  278. PageShadow.BackgroundColor3 = Color3.fromRGB(20, 20, 20)
  279. PageShadow.BorderSizePixel = 0
  280. PageShadow.Position = UDim2.new(0.649, 0, 0.081, 0)
  281. PageShadow.Size = UDim2.new(0, 356, 0, 14)
  282. PageShadow.SizeConstraint = Enum.SizeConstraint.RelativeXX
  283. PageShadow.ZIndex = 2
  284.  
  285. UIGradient_2.Rotation = 90
  286. UIGradient_2.Transparency = NumberSequence.new{NumberSequenceKeypoint.new(0.00, 0.00), NumberSequenceKeypoint.new(0.57, 0.35), NumberSequenceKeypoint.new(1.00, 1.00)}
  287. UIGradient_2.Parent = PageShadow
  288.  
  289.  
  290. -----<| FUNCTIONS |>-----
  291. local function SetDraggable(draggable: boolean)
  292. Menu.Draggable = draggable
  293. Menu.Active = draggable
  294. end
  295. local function CreateContainer(parent: GuiObject, text: string, description: string)
  296. -----<| GUI |>-----
  297. local Container = Instance.new("Frame")
  298. local UICorner_2 = Instance.new("UICorner")
  299. local ContainerLabel = Instance.new("TextLabel")
  300. local InfoIcon = Instance.new("ImageButton")
  301.  
  302. Container.Name = "Container"
  303. Container.Parent = parent
  304. Container.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
  305. Container.Position = UDim2.new(0.116959065, 0, -0.916666687, 0)
  306. Container.Size = UDim2.new(1, 0, 0, 35)
  307.  
  308. UICorner_2.CornerRadius = UDim.new(0, 6)
  309. UICorner_2.Parent = Container
  310.  
  311. ContainerLabel.Name = "ContainerLabel"
  312. ContainerLabel.Parent = Container
  313. ContainerLabel.AnchorPoint = Vector2.new(0.5, 0.5)
  314. ContainerLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  315. ContainerLabel.BackgroundTransparency = 1.000
  316. ContainerLabel.Position = UDim2.new(0.241228074, 0, 0.5, 0)
  317. ContainerLabel.Size = UDim2.new(0, 105, 0, 16)
  318. ContainerLabel.Font = Enum.Font.SourceSansSemibold
  319. ContainerLabel.Text = text
  320. ContainerLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
  321. ContainerLabel.TextScaled = true
  322. ContainerLabel.TextSize = 14.000
  323. ContainerLabel.TextWrapped = true
  324. ContainerLabel.TextXAlignment = Enum.TextXAlignment.Left
  325.  
  326. InfoIcon.Name = "InfoIcon"
  327. InfoIcon.Parent = Container
  328. InfoIcon.AnchorPoint = Vector2.new(0.5, 0.5)
  329. InfoIcon.BackgroundTransparency = 1.000
  330. InfoIcon.Position = UDim2.new(0.0399999991, 0, 0.5, 0)
  331. InfoIcon.Size = UDim2.new(0, 16, 0, 16)
  332. InfoIcon.Image = "rbxassetid://7072717857"
  333.  
  334.  
  335. -----<| FUNCTIONS |>-----
  336. InfoIcon.MouseButton1Click:Connect(function()
  337. return
  338. --[[
  339. Notification:Notify({
  340. Title = text,
  341. Description = description,
  342. Button1 = true,
  343. Button2 = false,
  344. Callback1 = function()
  345. return
  346. end,
  347. Callback2 = function()
  348. return
  349. end,
  350. })
  351.  
  352. ]]
  353. end)
  354.  
  355.  
  356. return Container
  357. end
  358. local function SetTabColor(tab, color: Color3, highlightColor: Color3)
  359. tab["tab"].ImageColor3 = color
  360. tab["TabLabel"].TextColor3 = color
  361. tab["Highlight"].BackgroundColor3 = highlightColor
  362. end
  363. local function OnHighlight(stroke: UIStroke, transparency: number, color: Color3)
  364. stroke.Transparency = transparency
  365. stroke.Color = color
  366. end
  367. local function Search(gui: GuiObject, text: string)
  368. for _, ui in ipairs(gui:GetChildren()) do
  369. if not ui:IsA("GuiObject") then
  370. continue
  371. end
  372. ui.Visible = (ui.Name:lower():find(text) or #text < 1) and true or false
  373. end
  374. end
  375. local function ResetTabs()
  376. for _, tab in pairs(Tabs:GetChildren()) do
  377. if not tab:IsA("GuiObject") then
  378. continue
  379. end
  380. if not tab["SelectedValue"].Value then
  381. SetTabColor(tab, Color3.fromRGB(100, 100, 100), Color3.fromRGB(20, 20, 20))
  382. end
  383. end
  384. end
  385. local function UnselectTabs()
  386. for _, tab in pairs(Tabs:GetChildren()) do
  387. if not tab:IsA("GuiObject") then
  388. continue
  389. end
  390. tab["SelectedValue"].Value = false
  391. end
  392. end
  393. local function ToggleEffect(toggled: boolean, toggle: Frame, innerToggle: Frame, uiStroke: UIStroke, positionStart: UDim2, strokeColorStart: Color3, strokeColorEnd: Color3, positionEnd, colorStart: Color3, colorEnd: Color3, innerToggleColorStart: Color3, innerToggleColorEnd: Color3)
  394. local properties = {
  395. ["Toggle"] = {
  396. ["UI"] = toggle,
  397. ["Properties"] = {
  398. BackgroundColor3 = (toggled == true) and colorEnd or colorStart,
  399. }
  400. },
  401. ["InnerToggle"] = {
  402. ["UI"] = innerToggle,
  403. ["Properties"] = {
  404. BackgroundColor3 = (toggled == true) and innerToggleColorEnd or innerToggleColorStart,
  405. Position = (toggled == true) and positionEnd or positionStart
  406. }
  407. },
  408. ["UIStroke"] = {
  409. ["UI"] = uiStroke,
  410. ["Properties"] = {
  411. Color = (toggled == true) and strokeColorEnd or strokeColorStart
  412. }
  413. }
  414. }
  415.  
  416. for _, uiInfo in pairs(properties) do
  417. local info: TweenInfo = TweenInfo.new(0.2, Enum.EasingStyle.Sine, Enum.EasingDirection.InOut)
  418. local tween: TweenBase = TweenService:Create(uiInfo["UI"], info, uiInfo["Properties"])
  419.  
  420. tween:Play()
  421. end
  422. end
  423.  
  424.  
  425. -----<| CALL FUNCTIONS |>-----
  426. SetDraggable(true)
  427. Input:GetPropertyChangedSignal("Text"):Connect(function()
  428. Search(Tabs, Input.Text)
  429. end)
  430. Input.Focused:Connect(function()
  431. highlighted = true
  432. end)
  433. Input.FocusLost:Connect(function()
  434. highlighted = false
  435. OnHighlight(UIStroke, 0.5, Color3.fromRGB(100, 100, 100))
  436. end)
  437. Input.MouseEnter:Connect(function()
  438. OnHighlight(UIStroke, 0, Color3.fromRGB(0, 175, 255))
  439. end)
  440. Input.MouseLeave:Connect(function()
  441. if not highlighted then
  442. OnHighlight(UIStroke, 0.5, Color3.fromRGB(100, 100, 100))
  443. end
  444. end)
  445.  
  446.  
  447. -----<| TAB MODULE |>-----
  448. local TabModule = {}
  449.  
  450. function TabModule:AddTab(args: Tab)
  451. -----<| DEFAULT VALUES |>-----
  452. args.Text = (args.Text == nil) and "Tab" or args.Text
  453. args.Icon = (args.Icon == nil) and "rbxassetid://3926305904" or args.Icon
  454.  
  455.  
  456. -----<| VARIABLES |>-----
  457. pages += 1
  458.  
  459.  
  460. -----<| GUI |>-----
  461. local Tab = Instance.new("TextButton")
  462. local TabLabel = Instance.new("TextLabel")
  463. local tab = Instance.new("ImageButton")
  464. local Selected = Instance.new("BoolValue")
  465. local Page = Instance.new("ScrollingFrame")
  466. local UIListLayout_2 = Instance.new("UIListLayout")
  467. local UIPadding = Instance.new("UIPadding")
  468. local Highlight = Instance.new("Frame")
  469. local UICorner = Instance.new("UICorner")
  470.  
  471. Tab.Name = args.Text
  472. Tab.Parent = Tabs
  473. Tab.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  474. Tab.BackgroundTransparency = 1.000
  475. Tab.Size = UDim2.new(0, 143, 0, 35)
  476. Tab.Font = Enum.Font.SourceSans
  477. Tab.Text = ""
  478. Tab.TextColor3 = Color3.fromRGB(0, 0, 0)
  479. Tab.TextSize = 14.000
  480.  
  481. TabLabel.Name = "TabLabel"
  482. TabLabel.Parent = Tab
  483. TabLabel.AnchorPoint = Vector2.new(0.5, 0.5)
  484. TabLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  485. TabLabel.BackgroundTransparency = 1.000
  486. TabLabel.Position = UDim2.new(0.631118894, 0, 0.5, 0)
  487. TabLabel.Size = UDim2.new(0.737999976, 0, 1, -20)
  488. TabLabel.Font = Enum.Font.SourceSansSemibold
  489. TabLabel.Text = args.Text
  490. TabLabel.TextColor3 = Color3.fromRGB(100, 100, 100)
  491. TabLabel.TextScaled = true
  492. TabLabel.TextSize = 14.000
  493. TabLabel.TextWrapped = true
  494. TabLabel.TextXAlignment = Enum.TextXAlignment.Left
  495. TabLabel.ZIndex = 2
  496.  
  497. tab.Name = "tab"
  498. tab.Parent = Tab
  499. tab.AnchorPoint = Vector2.new(0.5, 0.5)
  500. tab.BackgroundTransparency = 1.000
  501. tab.Position = UDim2.new(0.12247552, 0, 0.5, 0)
  502. tab.Size = UDim2.new(0, 18, 0, 18)
  503. tab.ZIndex = 2
  504. tab.Image = args.Icon
  505. tab.ImageColor3 = Color3.fromRGB(100, 100, 100)
  506. tab.ImageRectOffset = (args.Icon ~= "rbxassetid://3926305904") and Vector2.new(0, 0) or Vector2.new(484, 484)
  507. tab.ImageRectSize = (args.Icon ~= "rbxassetid://3926305904") and Vector2.new(0, 0) or Vector2.new(36, 36)
  508.  
  509. Highlight.Name = "Highlight"
  510. Highlight.Parent = Tab
  511. Highlight.AnchorPoint = Vector2.new(0.5, 0.5)
  512. Highlight.BackgroundTransparency = 0
  513. Highlight.BackgroundColor3 = Color3.fromRGB(20, 20, 20)
  514. Highlight.Position = UDim2.new(0.51, 0, 0.5, 0)
  515. Highlight.Size = UDim2.new(1.021, -8, 1, -10)
  516.  
  517. UICorner.CornerRadius = UDim.new(0, 5)
  518. UICorner.Parent = Highlight
  519.  
  520. Selected.Name = "SelectedValue"
  521. Selected.Parent = Tab
  522. Selected.Value = false
  523.  
  524. Page.Name = pages
  525. Page.Parent = Pages
  526. Page.Active = true
  527. Page.AnchorPoint = Vector2.new(0.5, 0.5)
  528. Page.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  529. Page.BackgroundTransparency = 1.000
  530. Page.BorderSizePixel = 0
  531. Page.Position = UDim2.new(0.144230768, 0, 0.527611911, 0)
  532. Page.Size = UDim2.new(1, 0, 1, 0)
  533. Page.ScrollBarThickness = 4
  534.  
  535. UIListLayout_2.Parent = Page
  536. UIListLayout_2.HorizontalAlignment = Enum.HorizontalAlignment.Center
  537. UIListLayout_2.SortOrder = Enum.SortOrder.LayoutOrder
  538. UIListLayout_2.Padding = UDim.new(0, 10)
  539.  
  540. UIPadding.Parent = Page
  541. UIPadding.PaddingTop = UDim.new(0, 5)
  542.  
  543.  
  544. -----<| FUNCTIONS |>-----
  545. Tab.MouseButton1Click:Connect(function()
  546. UIPageLayout:JumpToIndex(Page.Name-1)
  547.  
  548. UnselectTabs()
  549. ResetTabs()
  550. Selected.Value = true
  551. SetTabColor(Tab, Color3.fromRGB(255, 255, 255), Color3.fromRGB(0, 175, 255))
  552. end)
  553.  
  554.  
  555. -----<| SECTION MODULE |>-----
  556. local SectionModule = {}
  557.  
  558. function SectionModule:AddSection(args: Section)
  559. -----<| DEFAULT VALUES |>-----
  560. args.Text = (args.Text == nil) and "Section" or args.Text
  561.  
  562.  
  563. -----<| VARIABLES |>-----
  564. local toggled = false
  565.  
  566.  
  567. -----<| GUI |>-----
  568. local Section = Instance.new("Frame")
  569. local UIListLayout = Instance.new("UIListLayout")
  570. local SectionInfo = Instance.new("Frame")
  571. local SectionLabel = Instance.new("TextLabel")
  572. local SectionIcon = Instance.new("ImageButton")
  573. local Dropdown = Instance.new("ImageButton")
  574.  
  575. Section.Name = "Section"
  576. Section.Parent = Page
  577. Section.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  578. Section.BackgroundTransparency = 1.000
  579. Section.Position = UDim2.new(8.47522443e-08, 0, 0.0157940444, 0)
  580. Section.Size = UDim2.new(0, 342, 0, 0)
  581. Section.AutomaticSize = Enum.AutomaticSize.Y
  582.  
  583. UIListLayout.Parent = Section
  584. UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
  585. UIListLayout.Padding = UDim.new(0, 2)
  586.  
  587. SectionInfo.Name = "SectionInfo"
  588. SectionInfo.Parent = Section
  589. SectionInfo.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  590. SectionInfo.BackgroundTransparency = 1.000
  591. SectionInfo.Size = UDim2.new(1, 0, 0, 35)
  592.  
  593. SectionLabel.Name = "SectionLabel"
  594. SectionLabel.Parent = SectionInfo
  595. SectionLabel.AnchorPoint = Vector2.new(0.5, 0.5)
  596. SectionLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  597. SectionLabel.BackgroundTransparency = 1.000
  598. SectionLabel.BorderColor3 = Color3.fromRGB(27, 42, 53)
  599. SectionLabel.Position = UDim2.new(0.549079061, 0, 0.5, 0)
  600. SectionLabel.Size = UDim2.new(0.864239812, 0, 0, 30)
  601. SectionLabel.Font = Enum.Font.SourceSansBold
  602. SectionLabel.Text = args.Text
  603. SectionLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
  604. SectionLabel.TextScaled = true
  605. SectionLabel.TextSize = 14.000
  606. SectionLabel.TextWrapped = true
  607. SectionLabel.TextXAlignment = Enum.TextXAlignment.Left
  608.  
  609. SectionIcon.Name = "SectionIcon"
  610. SectionIcon.Parent = SectionInfo
  611. SectionIcon.AnchorPoint = Vector2.new(0.5, 0.5)
  612. SectionIcon.BackgroundTransparency = 1.000
  613. SectionIcon.LayoutOrder = 6
  614. SectionIcon.Position = UDim2.new(0.0508771986, 0, 0.5, 0)
  615. SectionIcon.Size = UDim2.new(0, 25, 0, 30)
  616. SectionIcon.ZIndex = 2
  617. SectionIcon.Image = "rbxassetid://3926305904"
  618. SectionIcon.ImageRectOffset = Vector2.new(644, 364)
  619. SectionIcon.ImageRectSize = Vector2.new(36, 36)
  620.  
  621. Dropdown.Name = "Dropdown"
  622. Dropdown.Parent = SectionInfo
  623. Dropdown.AnchorPoint = Vector2.new(0.5, 0.5)
  624. Dropdown.BackgroundTransparency = 1.000
  625. Dropdown.Position = UDim2.new(0.949999988, 0, 0.5, 0)
  626. Dropdown.Size = UDim2.new(0, 20, 0, 20)
  627. Dropdown.Image = "rbxassetid://7072706796"
  628.  
  629.  
  630. -----<| FUNCTIONS |>-----
  631. Dropdown.MouseButton1Click:Connect(function()
  632. toggled = not toggled
  633.  
  634. for _, container in ipairs(Section:GetChildren()) do
  635. if container.Name == "Container" then
  636. local properties = (toggled == true) and {Rotation = 0} or {Rotation = 180}
  637. local info: TweenInfo = TweenInfo.new(0.2, Enum.EasingStyle.Sine, Enum.EasingDirection.InOut)
  638.  
  639. local tween: TweenBase = TweenService:Create(Dropdown, info, properties)
  640.  
  641. container.Visible = toggled
  642. tween:Play()
  643. end
  644. end
  645. end)
  646. -----<| MORE MODULES |>-----
  647. local MoreModules = {}
  648.  
  649. function MoreModules:AddButton(args: Button)
  650. -----<| DEFAULT VALUES |>-----
  651. args.Text = (args.Text == nil) and "Button" or args.Text
  652. args.Description = (args.Description == nil) and "Description" or args.Description
  653. args.Callback = (type(args.Callback) ~= "function") and function()
  654. return
  655. end or args.Callback
  656.  
  657.  
  658. -----<| GUI |>-----
  659. local Button = Instance.new("TextButton")
  660. local Outline = Instance.new("Frame")
  661. local UICorner = Instance.new("UICorner")
  662. local UICorner_2 = Instance.new("UICorner")
  663. local UIStroke = Instance.new("UIStroke")
  664. local Icon = Instance.new("ImageLabel")
  665. local Container = CreateContainer(Section, args.Text, args.Description)
  666.  
  667. Button.Name = "Button"
  668. Button.Parent = Container
  669. Button.AnchorPoint = Vector2.new(0.5, 0.5)
  670. Button.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
  671. Button.Position = UDim2.new(0.834999979, 0, 0.5, 0)
  672. Button.Size = UDim2.new(0, 100, 0, 20)
  673. Button.Font = Enum.Font.SourceSans
  674. Button.Text = ""
  675. Button.TextColor3 = Color3.fromRGB(0, 0, 0)
  676. Button.TextSize = 14.000
  677. Button.AutoButtonColor = false
  678.  
  679. Outline.Name = "Outline"
  680. Outline.Parent = Button
  681. Outline.AnchorPoint = Vector2.new(0.5, 0.5)
  682. Outline.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  683. Outline.BackgroundTransparency = 1.000
  684. Outline.Position = UDim2.new(0.5, 0, 0.5, 0)
  685. Outline.Size = UDim2.new(1, 0, 1, 0)
  686.  
  687. UICorner.CornerRadius = UDim.new(0, 4)
  688. UICorner.Parent = Outline
  689.  
  690. UICorner_2.CornerRadius = UDim.new(0, 4)
  691. UICorner_2.Parent = Button
  692.  
  693. UIStroke.Color = Color3.fromRGB(100, 100, 100)
  694. UIStroke.Transparency = 0.5
  695. UIStroke.Parent = Outline
  696.  
  697. Icon.Name = "Icon"
  698. Icon.Parent = Button
  699. Icon.AnchorPoint = Vector2.new(0.5, 0.5)
  700. Icon.BackgroundTransparency = 1.000
  701. Icon.Position = UDim2.new(0.5, 0, 0.5, 0)
  702. Icon.Size = UDim2.new(0, 13, 0, 13)
  703. Icon.Image = "rbxassetid://7072719587"
  704.  
  705.  
  706. -----<| FUNCTIONS |>-----
  707. Button.MouseEnter:Connect(function()
  708. OnHighlight(UIStroke, 0, Color3.fromRGB(0, 175, 255))
  709. end)
  710. Button.MouseLeave:Connect(function()
  711. OnHighlight(UIStroke, 0.5, Color3.fromRGB(100, 100, 100))
  712. end)
  713. Button.MouseButton1Down:Connect(function()
  714. Button.BackgroundColor3 = Color3.fromRGB(0, 175, 255)
  715. end)
  716. Button.MouseButton1Up:Connect(function()
  717. Button.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
  718. end)
  719. Button.MouseButton1Click:Connect(function(x)
  720. args.Callback()
  721. end)
  722. end
  723. function MoreModules:AddInput(args: Input)
  724. -----<| DEFAULT VALUES |>-----
  725. args.Text = (args.Text == nil) and "Button" or args.Text
  726. args.Description = (args.Description == nil) and "Description" or args.Description
  727. args.Placeholder = (args.Placeholder == nil) and "Placeholde" or args.Placeholder
  728. args.Callback = (type(args.Callback) ~= "function") and function()
  729. return
  730. end or args.Callback
  731.  
  732.  
  733. -----<| VARIABLES |>-----
  734. local highlighted = false
  735.  
  736.  
  737. -----<| GUI |>-----
  738. local Input = Instance.new("TextBox")
  739. local Clipboard = Instance.new("ImageButton")
  740. local Outline = Instance.new("Frame")
  741. local UICorner = Instance.new("UICorner")
  742. local UICorner_2 = Instance.new("UICorner")
  743. local UIStroke = Instance.new("UIStroke")
  744. local Container = CreateContainer(Section, args.Text, args.Description)
  745.  
  746. Input.Name = "Input"
  747. Input.Parent = Container
  748. Input.AnchorPoint = Vector2.new(0.5, 0.5)
  749. Input.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
  750. Input.Position = UDim2.new(0.834999979, 0, 0.5, 0)
  751. Input.Size = UDim2.new(0, 100, 0, 20)
  752. Input.Font = Enum.Font.Arial
  753. Input.PlaceholderText = args.Placeholder
  754. Input.Text = ""
  755. Input.TextColor3 = Color3.fromRGB(255, 255, 255)
  756. Input.TextSize = 10.000
  757. Input.TextWrapped = true
  758. Input.ClearTextOnFocus = false
  759.  
  760. Clipboard.Name = "ClipboardIcon"
  761. Clipboard.Parent = Input
  762. Clipboard.AnchorPoint = Vector2.new(0.5, 0.5)
  763. Clipboard.BackgroundTransparency = 1.000
  764. Clipboard.Position = UDim2.new(0.920000017, 0, 0.449999988, 0)
  765. Clipboard.Size = UDim2.new(0, 12, 0, 12)
  766. Clipboard.Image = "rbxassetid://7072707198"
  767.  
  768. Outline.Name = "Outline"
  769. Outline.Parent = Input
  770. Outline.AnchorPoint = Vector2.new(0.5, 0.5)
  771. Outline.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  772. Outline.BackgroundTransparency = 1.000
  773. Outline.Position = UDim2.new(0.5, 0, 0.5, 0)
  774. Outline.Size = UDim2.new(1, 0, 1, 0)
  775.  
  776. UICorner.CornerRadius = UDim.new(0, 4)
  777. UICorner.Parent = Outline
  778.  
  779. UICorner_2.CornerRadius = UDim.new(0, 4)
  780. UICorner_2.Parent = Input
  781.  
  782. UIStroke.Color = Color3.fromRGB(100, 100, 100)
  783. UIStroke.Transparency = 0.5
  784. UIStroke.Parent = Outline
  785.  
  786.  
  787. -----<| FUNCTIONS |>-----
  788. Clipboard.MouseButton1Click:Connect(function()
  789. xpcall(function()
  790. setclipboard(Input.Text)
  791. end, function()
  792. warn("Executor doesn't support '<void> setclipboard(<string> value)'")
  793. end)
  794. end)
  795. Input.Focused:Connect(function()
  796. highlighted = true
  797. end)
  798. Input.FocusLost:Connect(function()
  799. highlighted = false
  800. OnHighlight(UIStroke, 0.5, Color3.fromRGB(100, 100, 100))
  801.  
  802. args.Callback(Input.Text)
  803. end)
  804. Input.MouseEnter:Connect(function()
  805. OnHighlight(UIStroke, 0, Color3.fromRGB(0, 175, 255))
  806. end)
  807. Input.MouseLeave:Connect(function()
  808. if not highlighted then
  809. OnHighlight(UIStroke, 0.5, Color3.fromRGB(100, 100, 100))
  810. end
  811. end)
  812. end
  813. function MoreModules:AddSwitch(args: Switch)
  814. -----<| DEFAULT VALUES |>-----
  815. args.Text = (args.Text == nil) and "Switch" or args.Text
  816. args.Description = (args.Description == nil) and "Description" or args.Description
  817. args.Callback = (type(args.Callback) ~= "function") and function()
  818. return
  819. end or args.Callback
  820.  
  821. -----<| VARIABLES |>-----
  822. local toggled = false
  823.  
  824.  
  825. -----<| GUI |>-----
  826. local Switch = Instance.new("Frame")
  827. local UICorner = Instance.new("UICorner")
  828. local InnerSwitch = Instance.new("Frame")
  829. local UICorner_2 = Instance.new("UICorner")
  830. local SwitchButton = Instance.new("TextButton")
  831. local UIStroke = Instance.new("UIStroke")
  832. local Container = CreateContainer(Section, args.Text, args.Description)
  833.  
  834. Switch.Name = "Switch"
  835. Switch.Parent = Container
  836. Switch.AnchorPoint = Vector2.new(0.5, 0.5)
  837. Switch.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
  838. Switch.Position = UDim2.new(0.897000015, 0, 0.5, 0)
  839. Switch.Size = UDim2.new(0, 50, 0, 20)
  840.  
  841. UICorner.CornerRadius = UDim.new(1, 0)
  842. UICorner.Parent = Switch
  843.  
  844. InnerSwitch.Name = "InnerSwitch"
  845. InnerSwitch.Parent = Switch
  846. InnerSwitch.AnchorPoint = Vector2.new(0.5, 0.5)
  847. InnerSwitch.BackgroundColor3 = Color3.fromRGB(100, 100, 100)
  848. InnerSwitch.Position = UDim2.new(0.200000003, 0, 0.5, 0)
  849. InnerSwitch.Size = UDim2.new(0, 12, 0, 12)
  850.  
  851. UICorner_2.CornerRadius = UDim.new(1, 0)
  852. UICorner_2.Parent = InnerSwitch
  853.  
  854. UIStroke.Parent = Switch
  855. UIStroke.Color = Color3.fromRGB(100, 100, 100)
  856.  
  857. SwitchButton.Name = "SwitchButton"
  858. SwitchButton.Parent = Switch
  859. SwitchButton.AnchorPoint = Vector2.new(0.5, 0.5)
  860. SwitchButton.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  861. SwitchButton.BackgroundTransparency = 1.000
  862. SwitchButton.Position = UDim2.new(0.5, 0, 0.5, 0)
  863. SwitchButton.Size = UDim2.new(1, 0, 1, 0)
  864. SwitchButton.Font = Enum.Font.SourceSans
  865. SwitchButton.Text = ""
  866. SwitchButton.TextColor3 = Color3.fromRGB(0, 0, 0)
  867. SwitchButton.TextSize = 14.000
  868. SwitchButton.ZIndex = 2
  869.  
  870.  
  871. -----<| FUNCTIONS |>-----
  872. SwitchButton.MouseButton1Click:Connect(function()
  873. toggled = not toggled
  874. ToggleEffect(toggled, Switch, InnerSwitch, UIStroke, UDim2.new(0.2, 0, 0.5, 0), Color3.fromRGB(100, 100, 100), Color3.fromRGB(0, 175, 255), UDim2.new(0.8, 0, 0.5, 0), Color3.fromRGB(30, 30, 30), Color3.fromRGB(0, 175, 255), Color3.fromRGB(100, 100, 100), Color3.fromRGB(30, 30, 30))
  875.  
  876. args.Callback(toggled)
  877. end)
  878. end
  879. function MoreModules:AddDropdown(args: Dropdown)
  880. -----<| DEFAULT VALUES |>-----
  881. args.Text = (args.Text == nil) and "Dropdown" or args.Text
  882. args.Items = (type(args.Items) ~= "table") and {} or args.Items
  883. args.Description = (args.Description == nil) and "Description" or args.Description
  884. args.Callback = (type(args.Callback) ~= "function") and function()
  885. return
  886. end or args.Callback
  887.  
  888. -----<| VARIABLES |>-----
  889. local itemsAmount = 0
  890. local toggled = true
  891.  
  892.  
  893. -----<| GUI |>-----
  894. local Dropdown = Instance.new("Frame")
  895. local DropdownSearch = Instance.new("Frame")
  896. local UIStroke = Instance.new("UIStroke")
  897. local UIStroke_2 = Instance.new("UIStroke")
  898. local Input = Instance.new("TextBox")
  899. local UICorner = Instance.new("UICorner")
  900. local DropdownIcon = Instance.new("ImageButton")
  901. local Items = Instance.new("ScrollingFrame")
  902. local UIListLayout = Instance.new("UIListLayout")
  903. local Container = CreateContainer(Section, args.Text, args.Description)
  904.  
  905. Dropdown.Name = "Dropdown"
  906. Dropdown.Parent = Container
  907. Dropdown.AnchorPoint = Vector2.new(0.5, 0.5)
  908. Dropdown.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  909. Dropdown.BackgroundTransparency = 1.000
  910. Dropdown.Position = UDim2.new(0.811163664, 0, 0.5, 0)
  911. Dropdown.Size = UDim2.new(0, 116, 0, 18)
  912.  
  913. DropdownSearch.Name = "DropdownSearch"
  914. DropdownSearch.Parent = Dropdown
  915. DropdownSearch.AnchorPoint = Vector2.new(0.5, 0.5)
  916. DropdownSearch.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
  917. DropdownSearch.Position = UDim2.new(0.495999992, 0, 0.5, 0)
  918. DropdownSearch.Size = UDim2.new(1, 0, 1, 0)
  919.  
  920. UIStroke.Color = Color3.fromRGB(100, 100, 100)
  921. UIStroke.Parent = DropdownSearch
  922.  
  923. Input.Name = "Input"
  924. Input.Parent = DropdownSearch
  925. Input.AnchorPoint = Vector2.new(0.5, 0.5)
  926. Input.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
  927. Input.BackgroundTransparency = 1.000
  928. Input.Position = UDim2.new(0.46952346, 0, 0.45256722, 0)
  929. Input.Size = UDim2.new(0.884559274, -10, 0.876954198, -5)
  930. Input.ClearTextOnFocus = false
  931. Input.Font = Enum.Font.Arial
  932. Input.Text = "Item"
  933. Input.TextColor3 = Color3.fromRGB(255, 255, 255)
  934. Input.TextSize = 10.000
  935. Input.TextWrapped = true
  936. Input.TextXAlignment = Enum.TextXAlignment.Left
  937.  
  938. UICorner.CornerRadius = UDim.new(0, 4)
  939. UICorner.Parent = DropdownSearch
  940.  
  941. DropdownIcon.Name = "DropdownIcon"
  942. DropdownIcon.Parent = Dropdown
  943. DropdownIcon.AnchorPoint = Vector2.new(0.5, 0.5)
  944. DropdownIcon.BackgroundTransparency = 1.000
  945. DropdownIcon.Position = UDim2.new(0.920000017, 0, 0.5, 0)
  946. DropdownIcon.Size = UDim2.new(0, 12, 0, 12)
  947. DropdownIcon.Image = "rbxassetid://7072706796"
  948.  
  949. Items.Name = "Items"
  950. Items.Parent = Dropdown
  951. Items.Active = true
  952. Items.AnchorPoint = Vector2.new(0.5, 0.5)
  953. Items.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
  954. Items.BorderSizePixel = 0
  955. Items.Position = UDim2.new(0.5, 0, 3.72000003, 0)
  956. Items.Size = UDim2.new(1, 0, 0, 100)
  957. Items.ZIndex = 6
  958.  
  959. UIStroke_2.Color = Color3.fromRGB(100, 100, 100)
  960. UIStroke_2.Parent = Items
  961.  
  962. UIListLayout.Parent = Items
  963. UIListLayout.HorizontalAlignment = Enum.HorizontalAlignment.Center
  964. UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
  965. UIListLayout.Padding = UDim.new(0, 1)
  966.  
  967. for _, itemName: string|BasePart in ipairs(args.Items) do
  968. local Item = Instance.new("TextButton")
  969. local ItemLabel = Instance.new("TextLabel")
  970.  
  971. itemsAmount += 1
  972. itemName = (typeof(itemName) == "Instance") and itemName.Name or itemName
  973.  
  974. Item.Name = itemName
  975. Item.Parent = Items
  976. Item.AnchorPoint = Vector2.new(0.5, 0.5)
  977. Item.BackgroundColor3 = (itemsAmount % 2 == 0) and Color3.fromRGB(30, 30, 30) or Color3.fromRGB(35, 35, 35)
  978. Item.BorderSizePixel = 0
  979. Item.Position = UDim2.new(0.834999979, 0, 0.5, 0)
  980. Item.Size = UDim2.new(1, 0, 0, 16)
  981. Item.ZIndex = 7
  982. Item.Font = Enum.Font.SourceSans
  983. Item.Text = ""
  984. Item.TextColor3 = Color3.fromRGB(0, 0, 0)
  985. Item.TextSize = 14.000
  986.  
  987. ItemLabel.Name = "ItemLabel"
  988. ItemLabel.Parent = Item
  989. ItemLabel.AnchorPoint = Vector2.new(0.5, 0.5)
  990. ItemLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  991. ItemLabel.BackgroundTransparency = 1.000
  992. ItemLabel.Position = UDim2.new(0.5, 0, 0.5, 0)
  993. ItemLabel.Size = UDim2.new(1, -12, 1, -4)
  994. ItemLabel.ZIndex = 7
  995. ItemLabel.Font = Enum.Font.SourceSansSemibold
  996. ItemLabel.Text = itemName
  997. ItemLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
  998. ItemLabel.TextScaled = true
  999. ItemLabel.TextSize = 14.000
  1000. ItemLabel.TextWrapped = true
  1001.  
  1002. Item.MouseButton1Click:Connect(function()
  1003. args.Callback(itemName)
  1004. end)
  1005. end
  1006.  
  1007. DropdownIcon.MouseButton1Click:Connect(function()
  1008. toggled = not toggled
  1009.  
  1010. local properties = (toggled == true) and {Rotation = 0} or {Rotation = 180}
  1011. local info: TweenInfo = TweenInfo.new(0.2, Enum.EasingStyle.Sine, Enum.EasingDirection.InOut)
  1012.  
  1013. local tween: TweenBase = TweenService:Create(DropdownIcon, info, properties)
  1014.  
  1015. Items.Visible = toggled
  1016. tween:Play()
  1017. end)
  1018. end
  1019.  
  1020. return MoreModules
  1021. end
  1022.  
  1023. return SectionModule
  1024. end
  1025.  
  1026. return TabModule
  1027. end
  1028. return Library
Add Comment
Please, Sign In to add comment