Advertisement
joefromsansnite

Untitled

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