Advertisement
joefromsansnite

Untitled

Jan 8th, 2022 (edited)
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 35.44 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. Exit.MouseButton1Click:Connect(function()
  428. ScreenGui:Destroy()
  429. end)
  430. Input:GetPropertyChangedSignal("Text"):Connect(function()
  431. Search(Tabs, Input.Text)
  432. end)
  433. Input.Focused:Connect(function()
  434. highlighted = true
  435. end)
  436. Input.FocusLost:Connect(function()
  437. highlighted = false
  438. OnHighlight(UIStroke, 0.5, Color3.fromRGB(100, 100, 100))
  439. end)
  440. Input.MouseEnter:Connect(function()
  441. OnHighlight(UIStroke, 0, Color3.fromRGB(0, 175, 255))
  442. end)
  443. Input.MouseLeave:Connect(function()
  444. if not highlighted then
  445. OnHighlight(UIStroke, 0.5, Color3.fromRGB(100, 100, 100))
  446. end
  447. end)
  448.  
  449.  
  450. -----<| TAB MODULE |>-----
  451. local TabModule = {}
  452.  
  453. function TabModule:AddTab(args: Tab)
  454. -----<| DEFAULT VALUES |>-----
  455. args.Text = (args.Text == nil) and "Tab" or args.Text
  456. args.Icon = (args.Icon == nil) and "rbxassetid://3926305904" or args.Icon
  457.  
  458.  
  459. -----<| VARIABLES |>-----
  460. pages += 1
  461.  
  462.  
  463. -----<| GUI |>-----
  464. local Tab = Instance.new("TextButton")
  465. local TabLabel = Instance.new("TextLabel")
  466. local tab = Instance.new("ImageButton")
  467. local Selected = Instance.new("BoolValue")
  468. local Page = Instance.new("ScrollingFrame")
  469. local UIListLayout_2 = Instance.new("UIListLayout")
  470. local UIPadding = Instance.new("UIPadding")
  471. local Highlight = Instance.new("Frame")
  472. local UICorner = Instance.new("UICorner")
  473.  
  474. Tab.Name = args.Text
  475. Tab.Parent = Tabs
  476. Tab.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  477. Tab.BackgroundTransparency = 1.000
  478. Tab.Size = UDim2.new(0, 143, 0, 35)
  479. Tab.Font = Enum.Font.SourceSans
  480. Tab.Text = ""
  481. Tab.TextColor3 = Color3.fromRGB(0, 0, 0)
  482. Tab.TextSize = 14.000
  483.  
  484. TabLabel.Name = "TabLabel"
  485. TabLabel.Parent = Tab
  486. TabLabel.AnchorPoint = Vector2.new(0.5, 0.5)
  487. TabLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  488. TabLabel.BackgroundTransparency = 1.000
  489. TabLabel.Position = UDim2.new(0.631118894, 0, 0.5, 0)
  490. TabLabel.Size = UDim2.new(0.737999976, 0, 1, -20)
  491. TabLabel.Font = Enum.Font.SourceSansSemibold
  492. TabLabel.Text = args.Text
  493. TabLabel.TextColor3 = Color3.fromRGB(100, 100, 100)
  494. TabLabel.TextScaled = true
  495. TabLabel.TextSize = 14.000
  496. TabLabel.TextWrapped = true
  497. TabLabel.TextXAlignment = Enum.TextXAlignment.Left
  498. TabLabel.ZIndex = 2
  499.  
  500. tab.Name = "tab"
  501. tab.Parent = Tab
  502. tab.AnchorPoint = Vector2.new(0.5, 0.5)
  503. tab.BackgroundTransparency = 1.000
  504. tab.Position = UDim2.new(0.12247552, 0, 0.5, 0)
  505. tab.Size = UDim2.new(0, 18, 0, 18)
  506. tab.ZIndex = 2
  507. tab.Image = args.Icon
  508. tab.ImageColor3 = Color3.fromRGB(100, 100, 100)
  509. tab.ImageRectOffset = (args.Icon ~= "rbxassetid://3926305904") and Vector2.new(0, 0) or Vector2.new(484, 484)
  510. tab.ImageRectSize = (args.Icon ~= "rbxassetid://3926305904") and Vector2.new(0, 0) or Vector2.new(36, 36)
  511.  
  512. Highlight.Name = "Highlight"
  513. Highlight.Parent = Tab
  514. Highlight.AnchorPoint = Vector2.new(0.5, 0.5)
  515. Highlight.BackgroundTransparency = 0
  516. Highlight.BackgroundColor3 = Color3.fromRGB(20, 20, 20)
  517. Highlight.Position = UDim2.new(0.51, 0, 0.5, 0)
  518. Highlight.Size = UDim2.new(1.021, -8, 1, -10)
  519.  
  520. UICorner.CornerRadius = UDim.new(0, 5)
  521. UICorner.Parent = Highlight
  522.  
  523. Selected.Name = "SelectedValue"
  524. Selected.Parent = Tab
  525. Selected.Value = false
  526.  
  527. Page.Name = pages
  528. Page.Parent = Pages
  529. Page.Active = true
  530. Page.AnchorPoint = Vector2.new(0.5, 0.5)
  531. Page.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  532. Page.BackgroundTransparency = 1.000
  533. Page.BorderSizePixel = 0
  534. Page.Position = UDim2.new(0.144230768, 0, 0.527611911, 0)
  535. Page.Size = UDim2.new(1, 0, 1, 0)
  536. Page.ScrollBarThickness = 4
  537.  
  538. UIListLayout_2.Parent = Page
  539. UIListLayout_2.HorizontalAlignment = Enum.HorizontalAlignment.Center
  540. UIListLayout_2.SortOrder = Enum.SortOrder.LayoutOrder
  541. UIListLayout_2.Padding = UDim.new(0, 10)
  542.  
  543. UIPadding.Parent = Page
  544. UIPadding.PaddingTop = UDim.new(0, 5)
  545.  
  546.  
  547. -----<| FUNCTIONS |>-----
  548. Tab.MouseButton1Click:Connect(function()
  549. UIPageLayout:JumpToIndex(Page.Name-1)
  550.  
  551. UnselectTabs()
  552. ResetTabs()
  553. Selected.Value = true
  554. SetTabColor(Tab, Color3.fromRGB(255, 255, 255), Color3.fromRGB(0, 175, 255))
  555. end)
  556.  
  557.  
  558. -----<| SECTION MODULE |>-----
  559. local SectionModule = {}
  560.  
  561. function SectionModule:AddSection(args: Section)
  562. -----<| DEFAULT VALUES |>-----
  563. args.Text = (args.Text == nil) and "Section" or args.Text
  564.  
  565.  
  566. -----<| VARIABLES |>-----
  567. local toggled = false
  568.  
  569.  
  570. -----<| GUI |>-----
  571. local Section = Instance.new("Frame")
  572. local UIListLayout = Instance.new("UIListLayout")
  573. local SectionInfo = Instance.new("Frame")
  574. local SectionLabel = Instance.new("TextLabel")
  575. local SectionIcon = Instance.new("ImageButton")
  576. local Dropdown = Instance.new("ImageButton")
  577.  
  578. Section.Name = "Section"
  579. Section.Parent = Page
  580. Section.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  581. Section.BackgroundTransparency = 1.000
  582. Section.Position = UDim2.new(8.47522443e-08, 0, 0.0157940444, 0)
  583. Section.Size = UDim2.new(0, 342, 0, 0)
  584. Section.AutomaticSize = Enum.AutomaticSize.Y
  585.  
  586. UIListLayout.Parent = Section
  587. UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
  588. UIListLayout.Padding = UDim.new(0, 2)
  589.  
  590. SectionInfo.Name = "SectionInfo"
  591. SectionInfo.Parent = Section
  592. SectionInfo.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  593. SectionInfo.BackgroundTransparency = 1.000
  594. SectionInfo.Size = UDim2.new(1, 0, 0, 35)
  595.  
  596. SectionLabel.Name = "SectionLabel"
  597. SectionLabel.Parent = SectionInfo
  598. SectionLabel.AnchorPoint = Vector2.new(0.5, 0.5)
  599. SectionLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  600. SectionLabel.BackgroundTransparency = 1.000
  601. SectionLabel.BorderColor3 = Color3.fromRGB(27, 42, 53)
  602. SectionLabel.Position = UDim2.new(0.549079061, 0, 0.5, 0)
  603. SectionLabel.Size = UDim2.new(0.864239812, 0, 0, 30)
  604. SectionLabel.Font = Enum.Font.SourceSansBold
  605. SectionLabel.Text = args.Text
  606. SectionLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
  607. SectionLabel.TextScaled = true
  608. SectionLabel.TextSize = 14.000
  609. SectionLabel.TextWrapped = true
  610. SectionLabel.TextXAlignment = Enum.TextXAlignment.Left
  611.  
  612. SectionIcon.Name = "SectionIcon"
  613. SectionIcon.Parent = SectionInfo
  614. SectionIcon.AnchorPoint = Vector2.new(0.5, 0.5)
  615. SectionIcon.BackgroundTransparency = 1.000
  616. SectionIcon.LayoutOrder = 6
  617. SectionIcon.Position = UDim2.new(0.0508771986, 0, 0.5, 0)
  618. SectionIcon.Size = UDim2.new(0, 25, 0, 30)
  619. SectionIcon.ZIndex = 2
  620. SectionIcon.Image = "rbxassetid://3926305904"
  621. SectionIcon.ImageRectOffset = Vector2.new(644, 364)
  622. SectionIcon.ImageRectSize = Vector2.new(36, 36)
  623.  
  624. Dropdown.Name = "Dropdown"
  625. Dropdown.Parent = SectionInfo
  626. Dropdown.AnchorPoint = Vector2.new(0.5, 0.5)
  627. Dropdown.BackgroundTransparency = 1.000
  628. Dropdown.Position = UDim2.new(0.949999988, 0, 0.5, 0)
  629. Dropdown.Size = UDim2.new(0, 20, 0, 20)
  630. Dropdown.Image = "rbxassetid://7072706796"
  631.  
  632.  
  633. -----<| FUNCTIONS |>-----
  634. Dropdown.MouseButton1Click:Connect(function()
  635. toggled = not toggled
  636.  
  637. for _, container in ipairs(Section:GetChildren()) do
  638. if container.Name == "Container" then
  639. local properties = (toggled == true) and {Rotation = 0} or {Rotation = 180}
  640. local info: TweenInfo = TweenInfo.new(0.2, Enum.EasingStyle.Sine, Enum.EasingDirection.InOut)
  641.  
  642. local tween: TweenBase = TweenService:Create(Dropdown, info, properties)
  643.  
  644. container.Visible = toggled
  645. tween:Play()
  646. end
  647. end
  648. end)
  649. -----<| MORE MODULES |>-----
  650. local MoreModules = {}
  651.  
  652. function MoreModules:AddButton(args: Button)
  653. -----<| DEFAULT VALUES |>-----
  654. args.Text = (args.Text == nil) and "Button" or args.Text
  655. args.Description = (args.Description == nil) and "Description" or args.Description
  656. args.Callback = (type(args.Callback) ~= "function") and function()
  657. return
  658. end or args.Callback
  659.  
  660.  
  661. -----<| GUI |>-----
  662. local Button = Instance.new("TextButton")
  663. local Outline = Instance.new("Frame")
  664. local UICorner = Instance.new("UICorner")
  665. local UICorner_2 = Instance.new("UICorner")
  666. local UIStroke = Instance.new("UIStroke")
  667. local Icon = Instance.new("ImageLabel")
  668. local Container = CreateContainer(Section, args.Text, args.Description)
  669.  
  670. Button.Name = "Button"
  671. Button.Parent = Container
  672. Button.AnchorPoint = Vector2.new(0.5, 0.5)
  673. Button.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
  674. Button.Position = UDim2.new(0.834999979, 0, 0.5, 0)
  675. Button.Size = UDim2.new(0, 100, 0, 20)
  676. Button.Font = Enum.Font.SourceSans
  677. Button.Text = ""
  678. Button.TextColor3 = Color3.fromRGB(0, 0, 0)
  679. Button.TextSize = 14.000
  680. Button.AutoButtonColor = false
  681.  
  682. Outline.Name = "Outline"
  683. Outline.Parent = Button
  684. Outline.AnchorPoint = Vector2.new(0.5, 0.5)
  685. Outline.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  686. Outline.BackgroundTransparency = 1.000
  687. Outline.Position = UDim2.new(0.5, 0, 0.5, 0)
  688. Outline.Size = UDim2.new(1, 0, 1, 0)
  689.  
  690. UICorner.CornerRadius = UDim.new(0, 4)
  691. UICorner.Parent = Outline
  692.  
  693. UICorner_2.CornerRadius = UDim.new(0, 4)
  694. UICorner_2.Parent = Button
  695.  
  696. UIStroke.Color = Color3.fromRGB(100, 100, 100)
  697. UIStroke.Transparency = 0.5
  698. UIStroke.Parent = Outline
  699.  
  700. Icon.Name = "Icon"
  701. Icon.Parent = Button
  702. Icon.AnchorPoint = Vector2.new(0.5, 0.5)
  703. Icon.BackgroundTransparency = 1.000
  704. Icon.Position = UDim2.new(0.5, 0, 0.5, 0)
  705. Icon.Size = UDim2.new(0, 13, 0, 13)
  706. Icon.Image = "rbxassetid://7072719587"
  707.  
  708.  
  709. -----<| FUNCTIONS |>-----
  710. Button.MouseEnter:Connect(function()
  711. OnHighlight(UIStroke, 0, Color3.fromRGB(0, 175, 255))
  712. end)
  713. Button.MouseLeave:Connect(function()
  714. OnHighlight(UIStroke, 0.5, Color3.fromRGB(100, 100, 100))
  715. end)
  716. Button.MouseButton1Down:Connect(function()
  717. Button.BackgroundColor3 = Color3.fromRGB(0, 175, 255)
  718. end)
  719. Button.MouseButton1Up:Connect(function()
  720. Button.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
  721. end)
  722. Button.MouseButton1Click:Connect(function(x)
  723. args.Callback()
  724. end)
  725. end
  726. function MoreModules:AddInput(args: Input)
  727. -----<| DEFAULT VALUES |>-----
  728. args.Text = (args.Text == nil) and "Button" or args.Text
  729. args.Description = (args.Description == nil) and "Description" or args.Description
  730. args.Placeholder = (args.Placeholder == nil) and "Placeholde" or args.Placeholder
  731. args.Callback = (type(args.Callback) ~= "function") and function()
  732. return
  733. end or args.Callback
  734.  
  735.  
  736. -----<| VARIABLES |>-----
  737. local highlighted = false
  738.  
  739.  
  740. -----<| GUI |>-----
  741. local Input = Instance.new("TextBox")
  742. local Clipboard = Instance.new("ImageButton")
  743. local Outline = Instance.new("Frame")
  744. local UICorner = Instance.new("UICorner")
  745. local UICorner_2 = Instance.new("UICorner")
  746. local UIStroke = Instance.new("UIStroke")
  747. local Container = CreateContainer(Section, args.Text, args.Description)
  748.  
  749. Input.Name = "Input"
  750. Input.Parent = Container
  751. Input.AnchorPoint = Vector2.new(0.5, 0.5)
  752. Input.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
  753. Input.Position = UDim2.new(0.834999979, 0, 0.5, 0)
  754. Input.Size = UDim2.new(0, 100, 0, 20)
  755. Input.Font = Enum.Font.Arial
  756. Input.PlaceholderText = args.Placeholder
  757. Input.Text = ""
  758. Input.TextColor3 = Color3.fromRGB(255, 255, 255)
  759. Input.TextSize = 10.000
  760. Input.TextWrapped = true
  761. Input.ClearTextOnFocus = false
  762.  
  763. Clipboard.Name = "ClipboardIcon"
  764. Clipboard.Parent = Input
  765. Clipboard.AnchorPoint = Vector2.new(0.5, 0.5)
  766. Clipboard.BackgroundTransparency = 1.000
  767. Clipboard.Position = UDim2.new(0.920000017, 0, 0.449999988, 0)
  768. Clipboard.Size = UDim2.new(0, 12, 0, 12)
  769. Clipboard.Image = "rbxassetid://7072707198"
  770.  
  771. Outline.Name = "Outline"
  772. Outline.Parent = Input
  773. Outline.AnchorPoint = Vector2.new(0.5, 0.5)
  774. Outline.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  775. Outline.BackgroundTransparency = 1.000
  776. Outline.Position = UDim2.new(0.5, 0, 0.5, 0)
  777. Outline.Size = UDim2.new(1, 0, 1, 0)
  778.  
  779. UICorner.CornerRadius = UDim.new(0, 4)
  780. UICorner.Parent = Outline
  781.  
  782. UICorner_2.CornerRadius = UDim.new(0, 4)
  783. UICorner_2.Parent = Input
  784.  
  785. UIStroke.Color = Color3.fromRGB(100, 100, 100)
  786. UIStroke.Transparency = 0.5
  787. UIStroke.Parent = Outline
  788.  
  789.  
  790. -----<| FUNCTIONS |>-----
  791. Clipboard.MouseButton1Click:Connect(function()
  792. xpcall(function()
  793. setclipboard(Input.Text)
  794. end, function()
  795. warn("Executor doesn't support '<void> setclipboard(<string> value)'")
  796. end)
  797. end)
  798. Input.Focused:Connect(function()
  799. highlighted = true
  800. end)
  801. Input.FocusLost:Connect(function()
  802. highlighted = false
  803. OnHighlight(UIStroke, 0.5, Color3.fromRGB(100, 100, 100))
  804.  
  805. args.Callback(Input.Text)
  806. end)
  807. Input.MouseEnter:Connect(function()
  808. OnHighlight(UIStroke, 0, Color3.fromRGB(0, 175, 255))
  809. end)
  810. Input.MouseLeave:Connect(function()
  811. if not highlighted then
  812. OnHighlight(UIStroke, 0.5, Color3.fromRGB(100, 100, 100))
  813. end
  814. end)
  815. end
  816. function MoreModules:AddSwitch(args: Switch)
  817. -----<| DEFAULT VALUES |>-----
  818. args.Text = (args.Text == nil) and "Switch" or args.Text
  819. args.Description = (args.Description == nil) and "Description" or args.Description
  820. args.Callback = (type(args.Callback) ~= "function") and function()
  821. return
  822. end or args.Callback
  823.  
  824. -----<| VARIABLES |>-----
  825. local toggled = false
  826.  
  827.  
  828. -----<| GUI |>-----
  829. local Switch = Instance.new("Frame")
  830. local UICorner = Instance.new("UICorner")
  831. local InnerSwitch = Instance.new("Frame")
  832. local UICorner_2 = Instance.new("UICorner")
  833. local SwitchButton = Instance.new("TextButton")
  834. local UIStroke = Instance.new("UIStroke")
  835. local Container = CreateContainer(Section, args.Text, args.Description)
  836.  
  837. Switch.Name = "Switch"
  838. Switch.Parent = Container
  839. Switch.AnchorPoint = Vector2.new(0.5, 0.5)
  840. Switch.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
  841. Switch.Position = UDim2.new(0.897000015, 0, 0.5, 0)
  842. Switch.Size = UDim2.new(0, 50, 0, 20)
  843.  
  844. UICorner.CornerRadius = UDim.new(1, 0)
  845. UICorner.Parent = Switch
  846.  
  847. InnerSwitch.Name = "InnerSwitch"
  848. InnerSwitch.Parent = Switch
  849. InnerSwitch.AnchorPoint = Vector2.new(0.5, 0.5)
  850. InnerSwitch.BackgroundColor3 = Color3.fromRGB(100, 100, 100)
  851. InnerSwitch.Position = UDim2.new(0.200000003, 0, 0.5, 0)
  852. InnerSwitch.Size = UDim2.new(0, 12, 0, 12)
  853.  
  854. UICorner_2.CornerRadius = UDim.new(1, 0)
  855. UICorner_2.Parent = InnerSwitch
  856.  
  857. UIStroke.Parent = Switch
  858. UIStroke.Color = Color3.fromRGB(100, 100, 100)
  859.  
  860. SwitchButton.Name = "SwitchButton"
  861. SwitchButton.Parent = Switch
  862. SwitchButton.AnchorPoint = Vector2.new(0.5, 0.5)
  863. SwitchButton.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  864. SwitchButton.BackgroundTransparency = 1.000
  865. SwitchButton.Position = UDim2.new(0.5, 0, 0.5, 0)
  866. SwitchButton.Size = UDim2.new(1, 0, 1, 0)
  867. SwitchButton.Font = Enum.Font.SourceSans
  868. SwitchButton.Text = ""
  869. SwitchButton.TextColor3 = Color3.fromRGB(0, 0, 0)
  870. SwitchButton.TextSize = 14.000
  871. SwitchButton.ZIndex = 2
  872.  
  873.  
  874. -----<| FUNCTIONS |>-----
  875. SwitchButton.MouseButton1Click:Connect(function()
  876. toggled = not toggled
  877. 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))
  878.  
  879. args.Callback(toggled)
  880. end)
  881. end
  882. function MoreModules:AddDropdown(args: Dropdown)
  883. -----<| DEFAULT VALUES |>-----
  884. args.Text = (args.Text == nil) and "Dropdown" or args.Text
  885. args.Items = (type(args.Items) ~= "table") and {} or args.Items
  886. args.Description = (args.Description == nil) and "Description" or args.Description
  887. args.Callback = (type(args.Callback) ~= "function") and function()
  888. return
  889. end or args.Callback
  890.  
  891. -----<| VARIABLES |>-----
  892. local itemsAmount = 0
  893. local toggled = true
  894.  
  895.  
  896. -----<| GUI |>-----
  897. local Dropdown = Instance.new("Frame")
  898. local DropdownSearch = Instance.new("Frame")
  899. local UIStroke = Instance.new("UIStroke")
  900. local UIStroke_2 = Instance.new("UIStroke")
  901. local Input = Instance.new("TextBox")
  902. local UICorner = Instance.new("UICorner")
  903. local DropdownIcon = Instance.new("ImageButton")
  904. local Items = Instance.new("ScrollingFrame")
  905. local UIListLayout = Instance.new("UIListLayout")
  906. local Container = CreateContainer(Section, args.Text, args.Description)
  907.  
  908. Dropdown.Name = "Dropdown"
  909. Dropdown.Parent = Container
  910. Dropdown.AnchorPoint = Vector2.new(0.5, 0.5)
  911. Dropdown.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  912. Dropdown.BackgroundTransparency = 1.000
  913. Dropdown.Position = UDim2.new(0.811163664, 0, 0.5, 0)
  914. Dropdown.Size = UDim2.new(0, 116, 0, 18)
  915.  
  916. DropdownSearch.Name = "DropdownSearch"
  917. DropdownSearch.Parent = Dropdown
  918. DropdownSearch.AnchorPoint = Vector2.new(0.5, 0.5)
  919. DropdownSearch.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
  920. DropdownSearch.Position = UDim2.new(0.495999992, 0, 0.5, 0)
  921. DropdownSearch.Size = UDim2.new(1, 0, 1, 0)
  922.  
  923. UIStroke.Color = Color3.fromRGB(100, 100, 100)
  924. UIStroke.Parent = DropdownSearch
  925.  
  926. Input.Name = "Input"
  927. Input.Parent = DropdownSearch
  928. Input.AnchorPoint = Vector2.new(0.5, 0.5)
  929. Input.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
  930. Input.BackgroundTransparency = 1.000
  931. Input.Position = UDim2.new(0.46952346, 0, 0.45256722, 0)
  932. Input.Size = UDim2.new(0.884559274, -10, 0.876954198, -5)
  933. Input.ClearTextOnFocus = false
  934. Input.Font = Enum.Font.Arial
  935. Input.Text = "Item"
  936. Input.TextColor3 = Color3.fromRGB(255, 255, 255)
  937. Input.TextSize = 10.000
  938. Input.TextWrapped = true
  939. Input.TextXAlignment = Enum.TextXAlignment.Left
  940.  
  941. UICorner.CornerRadius = UDim.new(0, 4)
  942. UICorner.Parent = DropdownSearch
  943.  
  944. DropdownIcon.Name = "DropdownIcon"
  945. DropdownIcon.Parent = Dropdown
  946. DropdownIcon.AnchorPoint = Vector2.new(0.5, 0.5)
  947. DropdownIcon.BackgroundTransparency = 1.000
  948. DropdownIcon.Position = UDim2.new(0.920000017, 0, 0.5, 0)
  949. DropdownIcon.Size = UDim2.new(0, 12, 0, 12)
  950. DropdownIcon.Image = "rbxassetid://7072706796"
  951.  
  952. Items.Name = "Items"
  953. Items.Parent = Dropdown
  954. Items.Active = true
  955. Items.AnchorPoint = Vector2.new(0.5, 0.5)
  956. Items.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
  957. Items.BorderSizePixel = 0
  958. Items.Position = UDim2.new(0.5, 0, 3.72000003, 0)
  959. Items.Size = UDim2.new(1, 0, 0, 100)
  960. Items.ZIndex = 6
  961.  
  962. UIStroke_2.Color = Color3.fromRGB(100, 100, 100)
  963. UIStroke_2.Parent = Items
  964.  
  965. UIListLayout.Parent = Items
  966. UIListLayout.HorizontalAlignment = Enum.HorizontalAlignment.Center
  967. UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
  968. UIListLayout.Padding = UDim.new(0, 1)
  969.  
  970. for _, itemName in ipairs(args.Items) do
  971. local Item = Instance.new("TextButton")
  972. local ItemLabel = Instance.new("TextLabel")
  973.  
  974. itemsAmount += 1
  975. itemName = (typeof(itemName) == "Instance") and itemName.Name or itemName
  976.  
  977. Item.Name = itemName
  978. Item.Parent = Items
  979. Item.AnchorPoint = Vector2.new(0.5, 0.5)
  980. Item.BackgroundColor3 = (itemsAmount % 2 == 0) and Color3.fromRGB(30, 30, 30) or Color3.fromRGB(35, 35, 35)
  981. Item.BorderSizePixel = 0
  982. Item.Position = UDim2.new(0.834999979, 0, 0.5, 0)
  983. Item.Size = UDim2.new(1, 0, 0, 16)
  984. Item.ZIndex = 7
  985. Item.Font = Enum.Font.SourceSans
  986. Item.Text = ""
  987. Item.TextColor3 = Color3.fromRGB(0, 0, 0)
  988. Item.TextSize = 14.000
  989.  
  990. ItemLabel.Name = "ItemLabel"
  991. ItemLabel.Parent = Item
  992. ItemLabel.AnchorPoint = Vector2.new(0.5, 0.5)
  993. ItemLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  994. ItemLabel.BackgroundTransparency = 1.000
  995. ItemLabel.Position = UDim2.new(0.5, 0, 0.5, 0)
  996. ItemLabel.Size = UDim2.new(1, -12, 1, -4)
  997. ItemLabel.ZIndex = 7
  998. ItemLabel.Font = Enum.Font.SourceSansSemibold
  999. ItemLabel.Text = itemName
  1000. ItemLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
  1001. ItemLabel.TextScaled = true
  1002. ItemLabel.TextSize = 14.000
  1003. ItemLabel.TextWrapped = true
  1004.  
  1005. Item.MouseButton1Click:Connect(function()
  1006. args.Callback(itemName)
  1007. end)
  1008. end
  1009.  
  1010. DropdownIcon.MouseButton1Click:Connect(function()
  1011. toggled = not toggled
  1012.  
  1013. local properties = (toggled == true) and {Rotation = 0} or {Rotation = 180}
  1014. local info: TweenInfo = TweenInfo.new(0.2, Enum.EasingStyle.Sine, Enum.EasingDirection.InOut)
  1015.  
  1016. local tween: TweenBase = TweenService:Create(DropdownIcon, info, properties)
  1017.  
  1018. Items.Visible = toggled
  1019. tween:Play()
  1020. end)
  1021. end
  1022.  
  1023. return MoreModules
  1024. end
  1025.  
  1026. return SectionModule
  1027. end
  1028.  
  1029. return TabModule
  1030. end
  1031. return Library
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement