Advertisement
joefromsansnite

Untitled

Oct 31st, 2021
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 31.38 KB | None | 0 0
  1. local library = {}
  2.  
  3.  
  4. --[[ Themes ]]--
  5. local themes = {
  6. ["Light"] = {
  7.  
  8. },
  9. ["Ocean"] = {
  10.  
  11. }
  12. }
  13.  
  14.  
  15. --[[ Array Types ]]--
  16. local t = require(script.types)
  17. print(t.x)
  18. type window = {
  19. Title: string,
  20. Theme: string
  21. }
  22. type tab = {
  23. Text: string,
  24. Icon: string
  25. }
  26. type section = {
  27. Text: string,
  28. Description: string,
  29. Icon: string
  30. }
  31. type button = {
  32. Text: string,
  33. Callback: any
  34. }
  35. type input = {
  36. Text: string,
  37. Placeholder: string,
  38. Callback: any
  39. }
  40. type slider = {
  41. Text: string,
  42. Min: number,
  43. Max: number,
  44. Callback: any
  45. }
  46.  
  47.  
  48. --[[ Library Functions ]]--
  49. function library:CreateWindow(args: window)
  50. --[[ Set Default Values ]]--
  51. args.Title = (args.Title == nil) and "Title" or args.Title
  52. args.Theme = (args.Theme == nil) and "Light" or args.Theme
  53.  
  54.  
  55. --[[ Variables ]]--
  56. -- Services --
  57. local tweenService = game:GetService("TweenService")
  58. local runService = game:GetService("RunService")
  59. local userInputService = game:GetService("UserInputService")
  60. local players = game:GetService("Players")
  61. local marketPlaceService = game:GetService("MarketplaceService")
  62.  
  63. -- Misc --
  64. local gameId = game.PlaceId
  65.  
  66. -- Player --
  67. local player = players.LocalPlayer
  68. local playerGui = player.PlayerGui
  69.  
  70. -- Player Info Values --
  71. local name, profile = player.Name, players:GetUserThumbnailAsync(
  72. player.UserId,
  73. Enum.ThumbnailType.HeadShot,
  74. Enum.ThumbnailSize.Size420x420
  75. )
  76.  
  77. local gameName = marketPlaceService:GetProductInfo(gameId).Name
  78.  
  79. -- Misc --
  80. local pages = 0
  81.  
  82.  
  83. --[[ Gui ]]--
  84. local LibraryUI = Instance.new("ScreenGui")
  85. local Menu = Instance.new("Frame")
  86. local Background = Instance.new("Frame")
  87. local Tabs = Instance.new("ScrollingFrame")
  88. local UIListLayout = Instance.new("UIListLayout")
  89. local PlayerInfo = Instance.new("Frame")
  90. local ProfilePicture = Instance.new("ImageLabel")
  91. local UICorner_3 = Instance.new("UICorner")
  92. local Name = Instance.new("TextLabel")
  93. local Game = Instance.new("TextLabel")
  94. local TabSearchbar = Instance.new("Frame")
  95. local UICorner_4 = Instance.new("UICorner")
  96. local Underline = Instance.new("Frame")
  97. local SearchInput = Instance.new("TextBox")
  98. local SearchButton = Instance.new("ImageLabel")
  99. local Pages = Instance.new("Frame")
  100. local UIPageLayout = Instance.new("UIPageLayout")
  101. local Title = Instance.new("TextLabel")
  102. local Exit = Instance.new("ImageButton")
  103. local Maximize = Instance.new("ImageButton")
  104. local Minimize = Instance.new("ImageButton")
  105. local shadowHolder = Instance.new("Frame")
  106. local umbraShadow = Instance.new("ImageLabel")
  107. local penumbraShadow = Instance.new("ImageLabel")
  108. local ambientShadow = Instance.new("ImageLabel")
  109. local UIScale = Instance.new("UIScale")
  110. local UIScale_2 = Instance.new("UIScale")
  111.  
  112. LibraryUI.Name = "LibraryUI"
  113. LibraryUI.Parent = playerGui
  114. LibraryUI.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  115. LibraryUI.IgnoreGuiInset = true
  116. LibraryUI.DisplayOrder = 9999
  117. LibraryUI.ResetOnSpawn = false
  118.  
  119. Menu.Name = "Menu"
  120. Menu.Parent = LibraryUI
  121. Menu.AnchorPoint = Vector2.new(0.5, 0.5)
  122. Menu.BackgroundColor3 = Color3.fromRGB(31, 31, 41)
  123. Menu.BackgroundTransparency = 0.050
  124. Menu.BorderSizePixel = 0
  125. Menu.Position = UDim2.new(0.513616562, 0, 0.180999994, 0)
  126. Menu.Size = UDim2.new(0, 600, 0, 25)
  127.  
  128. Background.Name = "Background"
  129. Background.Parent = Menu
  130. Background.BackgroundColor3 = Color3.fromRGB(20, 20, 30)
  131. Background.BackgroundTransparency = 0.050
  132. Background.BorderSizePixel = 0
  133. Background.ClipsDescendants = true
  134. Background.Position = UDim2.new(0.5, 0, 8.4, 0)
  135. Background.Size = UDim2.new(1, 0, 10.7348843, 100)
  136. Background.AnchorPoint = Vector2.new(0.5, 0.5)
  137.  
  138. UIScale_2.Parent = Background
  139.  
  140. Tabs.Name = "Tabs"
  141. Tabs.Parent = Background
  142. Tabs.Active = true
  143. Tabs.AnchorPoint = Vector2.new(0.5, 0.5)
  144. Tabs.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  145. Tabs.BackgroundTransparency = 1.000
  146. Tabs.BorderSizePixel = 0
  147. Tabs.Position = UDim2.new(0.148999989, 0, 0.622615039, 0)
  148. Tabs.Size = UDim2.new(0, 175, 0, 277)
  149. Tabs.CanvasSize = UDim2.new(0, 0, 0, 0)
  150. Tabs.ScrollBarThickness = 6
  151. Tabs.AutomaticCanvasSize = Enum.AutomaticSize.Y
  152.  
  153. UIListLayout.Parent = Tabs
  154. UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
  155.  
  156. PlayerInfo.Name = "PlayerInfo"
  157. PlayerInfo.Parent = Background
  158. PlayerInfo.AnchorPoint = Vector2.new(0.5, 0.5)
  159. PlayerInfo.BackgroundColor3 = Color3.fromRGB(20, 20, 30)
  160. PlayerInfo.BackgroundTransparency = 1.000
  161. PlayerInfo.BorderSizePixel = 0
  162. PlayerInfo.Position = UDim2.new(0.148999989, 0, 0.0733076707, 0)
  163. PlayerInfo.Size = UDim2.new(0, 175, 0, 58)
  164.  
  165. ProfilePicture.Name = "ProfilePicture"
  166. ProfilePicture.Parent = PlayerInfo
  167. ProfilePicture.AnchorPoint = Vector2.new(0.5, 0.5)
  168. ProfilePicture.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  169. ProfilePicture.Position = UDim2.new(0.191, 0, 0.5, 0)
  170. ProfilePicture.Size = UDim2.new(0, 45, 0, 45)
  171. ProfilePicture.Image = profile
  172.  
  173. UICorner_3.CornerRadius = UDim.new(1, 0)
  174. UICorner_3.Parent = ProfilePicture
  175.  
  176. Name.Name = "Name"
  177. Name.Parent = PlayerInfo
  178. Name.AnchorPoint = Vector2.new(0.5, 0.5)
  179. Name.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  180. Name.BackgroundTransparency = 1.000
  181. Name.Position = UDim2.new(0.649754286, 0, 0.338669926, 0)
  182. Name.Size = UDim2.new(0, 101, 0, 18)
  183. Name.Font = Enum.Font.SourceSansSemibold
  184. Name.Text = name
  185. Name.TextColor3 = Color3.fromRGB(255, 255, 255)
  186. Name.TextScaled = true
  187. Name.TextSize = 14.000
  188. Name.TextWrapped = true
  189. Name.TextXAlignment = Enum.TextXAlignment.Left
  190.  
  191. Game.Name = "Game"
  192. Game.Parent = PlayerInfo
  193. Game.AnchorPoint = Vector2.new(0.5, 0.5)
  194. Game.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  195. Game.BackgroundTransparency = 1.000
  196. Game.Position = UDim2.new(0.649754286, 0, 0.661330044, 0)
  197. Game.Size = UDim2.new(0, 101, 0, 18)
  198. Game.Font = Enum.Font.SourceSansLight
  199. Game.Text = gameName
  200. Game.TextColor3 = Color3.fromRGB(255, 255, 255)
  201. Game.TextScaled = true
  202. Game.TextSize = 14.000
  203. Game.TextWrapped = true
  204. Game.TextXAlignment = Enum.TextXAlignment.Left
  205.  
  206. TabSearchbar.Name = "TabSearchbar"
  207. TabSearchbar.Parent = Background
  208. TabSearchbar.AnchorPoint = Vector2.new(0.5, 0.5)
  209. TabSearchbar.BackgroundColor3 = Color3.fromRGB(40, 40, 50)
  210. TabSearchbar.BorderSizePixel = 0
  211. TabSearchbar.ClipsDescendants = true
  212. TabSearchbar.Position = UDim2.new(0.148499995, 0, 0.200000003, 0)
  213. TabSearchbar.Size = UDim2.new(0, 155, 0, 25)
  214.  
  215. UICorner_4.CornerRadius = UDim.new(0, 4)
  216. UICorner_4.Parent = TabSearchbar
  217.  
  218. Underline.Name = "Underline"
  219. Underline.Parent = TabSearchbar
  220. Underline.AnchorPoint = Vector2.new(0.5, 0.5)
  221. Underline.BackgroundColor3 = Color3.fromRGB(120, 120, 130)
  222. Underline.BorderSizePixel = 0
  223. Underline.Position = UDim2.new(0.5, 0, 0.949999988, 0)
  224. Underline.Size = UDim2.new(0.980000019, 0, 0.0399999991, 0)
  225.  
  226. SearchInput.Name = "SearchInput"
  227. SearchInput.Parent = TabSearchbar
  228. SearchInput.AnchorPoint = Vector2.new(0.5, 0.5)
  229. SearchInput.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  230. SearchInput.BackgroundTransparency = 1.000
  231. SearchInput.Position = UDim2.new(0.435000002, 0, 0.449999988, 0)
  232. SearchInput.Size = UDim2.new(0.781193614, 0, 0.600000083, 0)
  233. SearchInput.ClearTextOnFocus = false
  234. SearchInput.Font = Enum.Font.SourceSans
  235. SearchInput.PlaceholderText = "Search for tab"
  236. SearchInput.Text = ""
  237. SearchInput.TextColor3 = Color3.fromRGB(255, 255, 255)
  238. SearchInput.TextScaled = true
  239. SearchInput.TextSize = 14.000
  240. SearchInput.TextWrapped = true
  241. SearchInput.TextXAlignment = Enum.TextXAlignment.Left
  242.  
  243. SearchButton.Name = "SearchButton"
  244. SearchButton.Parent = TabSearchbar
  245. SearchButton.AnchorPoint = Vector2.new(0.5, 0.5)
  246. SearchButton.BackgroundTransparency = 1.000
  247. SearchButton.BorderSizePixel = 0
  248. SearchButton.Position = UDim2.new(0.919354856, 0, 0.5, 0)
  249. SearchButton.Size = UDim2.new(0, 16, 0, 16)
  250. SearchButton.Image = "http://www.roblox.com/asset/?id=6031154871"
  251.  
  252. Pages.Name = "Pages"
  253. Pages.Parent = Background
  254. Pages.AnchorPoint = Vector2.new(0.5, 0.5)
  255. Pages.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  256. Pages.BackgroundTransparency = 1.000
  257. Pages.BorderSizePixel = 0
  258. Pages.Position = UDim2.new(0.658583403, 0, 0.5, 0)
  259. Pages.Size = UDim2.new(0, 410, 0, 400)
  260. Pages.ClipsDescendants = true
  261.  
  262. UIPageLayout.Parent = Pages
  263.  
  264. Title.Name = "Title"
  265. Title.Parent = Menu
  266. Title.AnchorPoint = Vector2.new(0.5, 0.5)
  267. Title.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  268. Title.BackgroundTransparency = 1.000
  269. Title.Position = UDim2.new(0.400000006, 0, 0.5, 0)
  270. Title.Size = UDim2.new(0.769999981, 0, -1, 42)
  271. Title.Font = Enum.Font.SourceSansBold
  272. Title.Text = "TItle"
  273. Title.TextColor3 = Color3.fromRGB(255, 255, 255)
  274. Title.TextScaled = true
  275. Title.TextSize = 14.000
  276. Title.TextWrapped = true
  277. Title.TextXAlignment = Enum.TextXAlignment.Left
  278.  
  279. Exit.Name = "Exit"
  280. Exit.Parent = Menu
  281. Exit.AnchorPoint = Vector2.new(0.5, 0.5)
  282. Exit.BackgroundTransparency = 1.000
  283. Exit.Position = UDim2.new(0.986000001, 0, 0.5, 0)
  284. Exit.Size = UDim2.new(0, 15, 0, 15)
  285. Exit.Image = "rbxassetid://7072725342"
  286.  
  287. Maximize.Name = "Maximize"
  288. Maximize.Parent = Menu
  289. Maximize.AnchorPoint = Vector2.new(0.5, 0.5)
  290. Maximize.BackgroundTransparency = 1.000
  291. Maximize.Position = UDim2.new(0.942608714, 0, 0.5, 0)
  292. Maximize.Size = UDim2.new(0, 15, 0, 15)
  293. Maximize.Image = "rbxassetid://7072718726"
  294.  
  295. Minimize.Name = "Minimize"
  296. Minimize.Parent = Menu
  297. Minimize.AnchorPoint = Vector2.new(0.5, 0.5)
  298. Minimize.BackgroundTransparency = 1.000
  299. Minimize.Position = UDim2.new(0.899130464, 0, 0.5, 0)
  300. Minimize.Size = UDim2.new(0, 15, 0, 15)
  301. Minimize.Image = "rbxassetid://7072719185"
  302.  
  303. shadowHolder.Name = "shadowHolder"
  304. shadowHolder.Parent = Menu
  305. shadowHolder.AnchorPoint = Vector2.new(0.5, 0.5)
  306. shadowHolder.BackgroundTransparency = 1.000
  307. shadowHolder.Position = UDim2.new(0.5, 0, 7.82000017, 0)
  308. shadowHolder.Size = UDim2.new(1, 5, 15.8400021, 0)
  309. shadowHolder.ZIndex = -1
  310.  
  311. umbraShadow.Name = "umbraShadow"
  312. umbraShadow.Parent = shadowHolder
  313. umbraShadow.AnchorPoint = Vector2.new(0.5, 0.5)
  314. umbraShadow.BackgroundTransparency = 1.000
  315. umbraShadow.Position = UDim2.new(0.5, 0, 0.5, 2)
  316. umbraShadow.Size = UDim2.new(1, 4, 1, 4)
  317. umbraShadow.ZIndex = -1
  318. umbraShadow.Image = "rbxassetid://1316045217"
  319. umbraShadow.ImageColor3 = Color3.fromRGB(0, 0, 0)
  320. umbraShadow.ImageTransparency = 0.860
  321. umbraShadow.ScaleType = Enum.ScaleType.Slice
  322. umbraShadow.SliceCenter = Rect.new(10, 10, 118, 118)
  323.  
  324. penumbraShadow.Name = "penumbraShadow"
  325. penumbraShadow.Parent = shadowHolder
  326. penumbraShadow.AnchorPoint = Vector2.new(0.5, 0.5)
  327. penumbraShadow.BackgroundTransparency = 1.000
  328. penumbraShadow.Position = UDim2.new(0.5, 0, 0.5, 2)
  329. penumbraShadow.Size = UDim2.new(1, 4, 1, 4)
  330. penumbraShadow.ZIndex = -1
  331. penumbraShadow.Image = "rbxassetid://1316045217"
  332. penumbraShadow.ImageColor3 = Color3.fromRGB(0, 0, 0)
  333. penumbraShadow.ImageTransparency = 0.880
  334. penumbraShadow.ScaleType = Enum.ScaleType.Slice
  335. penumbraShadow.SliceCenter = Rect.new(10, 10, 118, 118)
  336.  
  337. ambientShadow.Name = "ambientShadow"
  338. ambientShadow.Parent = shadowHolder
  339. ambientShadow.AnchorPoint = Vector2.new(0.5, 0.5)
  340. ambientShadow.BackgroundTransparency = 1.000
  341. ambientShadow.Position = UDim2.new(0.5, 0, 0.5, 2)
  342. ambientShadow.Size = UDim2.new(1, 4, 1, 4)
  343. ambientShadow.ZIndex = -1
  344. ambientShadow.Image = "rbxassetid://1316045217"
  345. ambientShadow.ImageColor3 = Color3.fromRGB(0, 0, 0)
  346. ambientShadow.ImageTransparency = 0.880
  347. ambientShadow.ScaleType = Enum.ScaleType.Slice
  348. ambientShadow.SliceCenter = Rect.new(10, 10, 118, 118)
  349.  
  350. UIScale.Parent = Menu
  351.  
  352.  
  353. --[[ Functions ]]--
  354. local function setDraggable(draggable: boolean)
  355. Menu.Active = draggable
  356. Menu.Draggable = draggable
  357. end
  358. local function highlight(ui: GuiObject, hovering: boolean)
  359. local properties = (hovering == true) and {BackgroundTransparency = 0.95} or {BackgroundTransparency = 1}
  360.  
  361. local info = TweenInfo.new(.1, Enum.EasingStyle.Sine, Enum.EasingDirection.In)
  362. local tween = tweenService:Create(ui, info, properties)
  363.  
  364. tween:Play()
  365. end
  366. local function search(ui: GuiObject, text: string)
  367. for _, u in pairs(ui:GetChildren()) do
  368. if u:IsA("GuiObject") then
  369. if string.find(u.Name:lower(), text) then
  370. u.Visible = true
  371. else
  372. u.Visible = false
  373. end
  374.  
  375. if #text == 0 then
  376. u.Visible = true
  377. end
  378. end
  379. end
  380. end
  381.  
  382. local function exit()
  383. local info = TweenInfo.new(0.5, Enum.EasingStyle.Back, Enum.EasingDirection.In)
  384. local tween = tweenService:Create(UIScale, info, {Scale = 0})
  385.  
  386. tween:Play()
  387. end
  388. local function maximize()
  389. -- Shadow --
  390. local info = TweenInfo.new(0, Enum.EasingStyle.Sine, Enum.EasingDirection.Out)
  391. local tween = tweenService:Create(shadowHolder, info, {Position = UDim2.new(0.5, 0, 7.82, 0), Size = UDim2.new(1, r, 15.84, 0)})
  392.  
  393. -- Background --
  394. local info2 = TweenInfo.new(0.5, Enum.EasingStyle.Back, Enum.EasingDirection.Out)
  395. local tween2 = tweenService:Create(UIScale_2, info2, {Scale = 1})
  396.  
  397. tween:Play()
  398. tween2:Play()
  399. end
  400. local function minimize()
  401. -- Shadow --
  402. local info = TweenInfo.new(0, Enum.EasingStyle.Sine, Enum.EasingDirection.In)
  403. local tween = tweenService:Create(shadowHolder, info, {Position = UDim2.new(0.5, 0, 0.5, 0), Size = UDim2.new(1, r, 1, 0)})
  404.  
  405. -- Background --
  406. local info2 = TweenInfo.new(0.5, Enum.EasingStyle.Back, Enum.EasingDirection.In)
  407. local tween2 = tweenService:Create(UIScale_2, info2, {Scale = 0})
  408.  
  409. tween:Play()
  410. tween2:Play()
  411. end
  412. local function CreateContainer(parent: GuiObject, text: string)
  413. local Container = Instance.new("Frame")
  414. local UICorner_6 = Instance.new("UICorner")
  415. local ContainerLabel = Instance.new("TextLabel")
  416.  
  417. Container.Name = "Container"
  418. Container.Parent = parent
  419. Container.BackgroundColor3 = Color3.fromRGB(40, 40, 50)
  420. Container.BackgroundTransparency = 0.300
  421. Container.Position = UDim2.new(0, 0, 0, 0)
  422. Container.Size = UDim2.new(1, 0, 0, 35)
  423. Container.AutomaticSize = Enum.AutomaticSize.Y
  424.  
  425. UICorner_6.CornerRadius = UDim.new(0, 6)
  426. UICorner_6.Parent = Container
  427.  
  428. ContainerLabel.Name = "ContainerLabel"
  429. ContainerLabel.Parent = Container
  430. ContainerLabel.AnchorPoint = Vector2.new(0.5, 0.5)
  431. ContainerLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  432. ContainerLabel.BackgroundTransparency = 1.000
  433. ContainerLabel.Position = UDim2.new(0.20238699, 0, 0.5, 0)
  434. ContainerLabel.Size = UDim2.new(0, 125, 0, 18)
  435. ContainerLabel.Font = Enum.Font.SourceSansSemibold
  436. ContainerLabel.Text = text
  437. ContainerLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
  438. ContainerLabel.TextScaled = true
  439. ContainerLabel.TextSize = 14.000
  440. ContainerLabel.TextWrapped = true
  441. ContainerLabel.TextXAlignment = Enum.TextXAlignment.Left
  442.  
  443. return Container
  444. end
  445.  
  446.  
  447. --[[ Call Functions ]]--
  448. setDraggable(true)
  449. Exit.MouseButton1Click:Connect(exit)
  450. Maximize.MouseButton1Click:Connect(maximize)
  451. Minimize.MouseButton1Click:Connect(minimize)
  452. SearchInput:GetPropertyChangedSignal("Text"):Connect(function()
  453. search(Tabs, SearchInput.Text)
  454. end)
  455.  
  456.  
  457. --[[ Tab Module ]]--
  458. local tMod = {}
  459.  
  460. function tMod:AddTab(args: tab)
  461. --[[ Set Default Values ]]--
  462. args.Text = (args.Text == nil) and "Tab" or args.Text
  463. args.Icon = (args.Icon == nil) and "http://www.roblox.com/asset/?id=6031233851" or args.Icon
  464.  
  465.  
  466. --[[ Variables ]]--
  467. pages += 1
  468.  
  469.  
  470. --[[ Gui ]]--
  471. local Tab = Instance.new("TextButton")
  472. local TabLabel = Instance.new("TextLabel")
  473. local TabIcon = Instance.new("ImageLabel")
  474. local Highlight = Instance.new("Frame")
  475. local UICorner = Instance.new("UICorner")
  476. local TabSelectedFrame = Instance.new("Frame")
  477. local UICorner_2 = Instance.new("UICorner")
  478. local Page = Instance.new("ScrollingFrame")
  479. local UIListLayout_2 = Instance.new("UIListLayout")
  480. local SectionOffset = Instance.new("Frame")
  481. local PageLabel = Instance.new("TextLabel")
  482. local Selected = Instance.new("BoolValue")
  483.  
  484. Tab.Name = args.Text
  485. Tab.Parent = Tabs
  486. Tab.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  487. Tab.BackgroundTransparency = 1.000
  488. Tab.Size = UDim2.new(0, 167, 0, 35)
  489. Tab.Font = Enum.Font.SourceSans
  490. Tab.Text = ""
  491. Tab.TextColor3 = Color3.fromRGB(0, 0, 0)
  492. Tab.TextSize = 14.000
  493.  
  494. TabLabel.Name = "TabLabel"
  495. TabLabel.Parent = Tab
  496. TabLabel.AnchorPoint = Vector2.new(0.5, 0.5)
  497. TabLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  498. TabLabel.BackgroundTransparency = 1.000
  499. TabLabel.BorderColor3 = Color3.fromRGB(27, 42, 53)
  500. TabLabel.Position = UDim2.new(0.629940152, 0, 0.5, 0)
  501. TabLabel.Size = UDim2.new(0.783999979, 0, 0.449999988, 0)
  502. TabLabel.Font = Enum.Font.SourceSansSemibold
  503. TabLabel.Text = args.Text
  504. TabLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
  505. TabLabel.TextScaled = true
  506. TabLabel.TextSize = 14.000
  507. TabLabel.TextWrapped = true
  508. TabLabel.TextXAlignment = Enum.TextXAlignment.Left
  509.  
  510. TabIcon.Name = "TabIcon"
  511. TabIcon.Parent = Tab
  512. TabIcon.AnchorPoint = Vector2.new(0.5, 0.5)
  513. TabIcon.BackgroundTransparency = 1.000
  514. TabIcon.BorderSizePixel = 0
  515. TabIcon.Position = UDim2.new(0.119999997, 0, 0.5, 0)
  516. TabIcon.Size = UDim2.new(0, 18, 0, 18)
  517. TabIcon.Image = args.Icon
  518.  
  519. Highlight.Name = "Highlight"
  520. Highlight.Parent = Tab
  521. Highlight.AnchorPoint = Vector2.new(0.5, 0.5)
  522. Highlight.BackgroundColor3 = Color3.fromRGB(225, 225, 255)
  523. Highlight.BackgroundTransparency = 1.000
  524. Highlight.ClipsDescendants = true
  525. Highlight.Position = UDim2.new(0.507113814, 0, 0.5, 0)
  526. Highlight.Size = UDim2.new(0.958227634, 0, 0.800000072, 0)
  527. Highlight.ZIndex = 0
  528.  
  529. UICorner.CornerRadius = UDim.new(0, 4)
  530. UICorner.Parent = Highlight
  531.  
  532. TabSelectedFrame.Name = "TabSelectedFrame"
  533. TabSelectedFrame.Parent = Highlight
  534. TabSelectedFrame.AnchorPoint = Vector2.new(0.5, 0.5)
  535. TabSelectedFrame.BackgroundColor3 = Color3.fromRGB(255, 191, 0)
  536. TabSelectedFrame.BackgroundTransparency = 1.000
  537. TabSelectedFrame.Position = UDim2.new(-0.0107285455, 0, 0.5, 0)
  538. TabSelectedFrame.Size = UDim2.new(0.050999999, 0, 0.699999988, 0)
  539.  
  540. UICorner_2.CornerRadius = UDim.new(0, 4)
  541. UICorner_2.Parent = TabSelectedFrame
  542.  
  543. Page.Name = tostring(pages)
  544. Page.Parent = Pages
  545. Page.Active = true
  546. Page.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  547. Page.BackgroundTransparency = 1.000
  548. Page.BorderSizePixel = 0
  549. Page.Size = UDim2.new(1, 0, 0, 400)
  550. Page.CanvasSize = UDim2.new(0, 0, 0, 0)
  551. Page.ScrollBarThickness = 6
  552. Page.AutomaticCanvasSize = Enum.AutomaticSize.Y
  553.  
  554. UIListLayout_2.Parent = Page
  555. UIListLayout_2.SortOrder = Enum.SortOrder.LayoutOrder
  556. UIListLayout_2.Padding = UDim.new(0, 7)
  557.  
  558. SectionOffset.Name = "SectionOffset"
  559. SectionOffset.Parent = Page
  560. SectionOffset.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  561. SectionOffset.BackgroundTransparency = 1.000
  562. SectionOffset.Size = UDim2.new(0, 0, 0, 22)
  563.  
  564. PageLabel.Name = "PageLabel"
  565. PageLabel.Parent = Page
  566. PageLabel.AnchorPoint = Vector2.new(0.5, 0.5)
  567. PageLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  568. PageLabel.BackgroundTransparency = 1.000
  569. PageLabel.Position = UDim2.new(0.510975599, 0, 0.075000003, 0)
  570. PageLabel.Size = UDim2.new(0.977999985, 0, 0, 32)
  571. PageLabel.Font = Enum.Font.SourceSansSemibold
  572. PageLabel.Text = args.Text
  573. PageLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
  574. PageLabel.TextScaled = true
  575. PageLabel.TextSize = 14.000
  576. PageLabel.TextWrapped = true
  577. PageLabel.TextXAlignment = Enum.TextXAlignment.Left
  578.  
  579. Selected.Parent = Tab
  580. Selected.Name = "TabSelected"
  581. Selected.Value = false
  582.  
  583.  
  584. --[[ Functions ]]--
  585. Tab.MouseButton1Click:Connect(function()
  586. for _, tab in pairs(Tabs:GetChildren()) do
  587. if tab:IsA("TextButton") then
  588. tab["TabSelected"].Value = false
  589. tab["Highlight"].BackgroundTransparency = 1
  590. tab["Highlight"]["TabSelectedFrame"].BackgroundTransparency = 1
  591. end
  592. end
  593.  
  594. Selected.Value = true
  595.  
  596. Highlight.BackgroundTransparency = 0.9
  597. TabSelectedFrame.BackgroundTransparency = 0
  598.  
  599. UIPageLayout:JumpToIndex(tonumber(Page.Name)-1)
  600. end)
  601. Tab.MouseEnter:Connect(function()
  602. if Selected.Value == false then
  603. highlight(Highlight, true)
  604. end
  605. end)
  606. Tab.MouseLeave:Connect(function()
  607. if Selected.Value == false then
  608. highlight(Highlight, false)
  609. end
  610. end)
  611.  
  612.  
  613. --[[ Section Module ]]--
  614. local sMod = {}
  615.  
  616. function sMod:AddSection(args: section)
  617. --[[ Set Default Values ]]--
  618. args.Text = (args.Text == nil) and "Section" or args.Text
  619. args.Description = (args.Description == nil) and "Description." or args.Description
  620. args.Icon = (args.Icon == nil) and "http://www.roblox.com/asset/?id=6031229341" or args.Icon
  621.  
  622.  
  623. --[[ Gui ]]--
  624. local Section = Instance.new("Frame")
  625. local SectionInfo = Instance.new("Frame")
  626. local UICorner_5 = Instance.new("UICorner")
  627. local SectionDropdown = Instance.new("ImageLabel")
  628. local SectionIcon = Instance.new("ImageLabel")
  629. local SectionDescription = Instance.new("TextButton")
  630. local SectionName = Instance.new("TextLabel")
  631. local UIListLayout_3 = Instance.new("UIListLayout")
  632.  
  633. Section.Name = "Section"
  634. Section.Parent = Page
  635. Section.BackgroundColor3 = Color3.fromRGB(40, 40, 50)
  636. Section.BackgroundTransparency = 1.000
  637. Section.Position = UDim2.new(0, 0, 0.150000006, 0)
  638. Section.Size = UDim2.new(0.936999977, 0, 0, 45)
  639. Section.AutomaticSize = Enum.AutomaticSize.Y
  640.  
  641. SectionInfo.Name = "SectionInfo"
  642. SectionInfo.Parent = Section
  643. SectionInfo.BackgroundColor3 = Color3.fromRGB(40, 40, 50)
  644. SectionInfo.BackgroundTransparency = 0.300
  645. SectionInfo.Size = UDim2.new(1, 0, 0, 45)
  646.  
  647. UICorner_5.CornerRadius = UDim.new(0, 6)
  648. UICorner_5.Parent = SectionInfo
  649.  
  650. SectionDropdown.Name = "SectionDropdown"
  651. SectionDropdown.Parent = SectionInfo
  652. SectionDropdown.AnchorPoint = Vector2.new(0.5, 0.5)
  653. SectionDropdown.BackgroundTransparency = 1.000
  654. SectionDropdown.BorderSizePixel = 0
  655. SectionDropdown.Position = UDim2.new(0.958130538, 0, 0.5, 0)
  656. SectionDropdown.Size = UDim2.new(0, 25, 0, 25)
  657. SectionDropdown.Image = "http://www.roblox.com/asset/?id=6034818365"
  658.  
  659. SectionIcon.Name = "SectionIcon"
  660. SectionIcon.Parent = SectionInfo
  661. SectionIcon.AnchorPoint = Vector2.new(0.5, 0.5)
  662. SectionIcon.BackgroundTransparency = 1.000
  663. SectionIcon.BorderSizePixel = 0
  664. SectionIcon.Position = UDim2.new(0.0649999976, 0, 0.5, 0)
  665. SectionIcon.Size = UDim2.new(0, 25, 0, 32)
  666. SectionIcon.Image = args.Icon
  667.  
  668. SectionDescription.Name = "SectionDescription"
  669. SectionDescription.Parent = SectionInfo
  670. SectionDescription.AnchorPoint = Vector2.new(0.5, 0.5)
  671. SectionDescription.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  672. SectionDescription.BackgroundTransparency = 1.000
  673. SectionDescription.Position = UDim2.new(0.528219938, 0, 0.702777803, 0)
  674. SectionDescription.Size = UDim2.new(0, 305, 0, 17)
  675. SectionDescription.Font = Enum.Font.SourceSansLight
  676. SectionDescription.Text = args.Description
  677. SectionDescription.TextColor3 = Color3.fromRGB(255, 255, 255)
  678. SectionDescription.TextScaled = true
  679. SectionDescription.TextSize = 14.000
  680. SectionDescription.TextWrapped = true
  681. SectionDescription.TextXAlignment = Enum.TextXAlignment.Left
  682.  
  683. SectionName.Name = "SectionName"
  684. SectionName.Parent = SectionInfo
  685. SectionName.AnchorPoint = Vector2.new(0.5, 0.5)
  686. SectionName.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  687. SectionName.BackgroundTransparency = 1.000
  688. SectionName.Position = UDim2.new(0.528219938, 0, 0.280555546, 0)
  689. SectionName.Size = UDim2.new(0, 305, 0, 17)
  690. SectionName.Font = Enum.Font.SourceSansSemibold
  691. SectionName.Text = args.Text
  692. SectionName.TextColor3 = Color3.fromRGB(255, 255, 255)
  693. SectionName.TextScaled = true
  694. SectionName.TextSize = 14.000
  695. SectionName.TextWrapped = true
  696. SectionName.TextXAlignment = Enum.TextXAlignment.Left
  697.  
  698. UIListLayout_3.Parent = Section
  699. UIListLayout_3.SortOrder = Enum.SortOrder.LayoutOrder
  700. UIListLayout_3.Padding = UDim.new(0, 2)
  701.  
  702.  
  703. --[[ Functions ]]--
  704.  
  705.  
  706.  
  707. --[[ Fin Module ]]--
  708. local fMod = {}
  709.  
  710. function fMod:CreateButton(args: button)
  711. --[[ Set Default Values ]]--
  712. args.Text = (args.Text == nil) and "Button" or args.Text
  713. args.Callback = (type(args.Callback) ~= "function") and function()
  714. return
  715. end or args.Callback
  716.  
  717.  
  718. --[[ Gui ]]--
  719. local Button = Instance.new("TextButton")
  720. local UICorner_7 = Instance.new("UICorner")
  721. local ButtonLabel = Instance.new("TextLabel")
  722. local Container = CreateContainer(Section, args.Text)
  723.  
  724. Button.Name = "Button"
  725. Button.Parent = Container
  726. Button.AnchorPoint = Vector2.new(0.5, 0.5)
  727. Button.BackgroundColor3 = Color3.fromRGB(50, 50, 60)
  728. Button.Position = UDim2.new(0.812360466, 0, 0.5, 0)
  729. Button.Size = UDim2.new(0, 110, 0, 25)
  730. Button.AutoButtonColor = false
  731. Button.Font = Enum.Font.SourceSans
  732. Button.Text = ""
  733. Button.TextColor3 = Color3.fromRGB(0, 0, 0)
  734. Button.TextSize = 14.000
  735.  
  736. UICorner_7.CornerRadius = UDim.new(0, 4)
  737. UICorner_7.Parent = Button
  738.  
  739. ButtonLabel.Name = "ButtonLabel"
  740. ButtonLabel.Parent = Button
  741. ButtonLabel.AnchorPoint = Vector2.new(0.5, 0.5)
  742. ButtonLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  743. ButtonLabel.BackgroundTransparency = 1.000
  744. ButtonLabel.Position = UDim2.new(0.5, 0, 0.5, 0)
  745. ButtonLabel.Size = UDim2.new(1, 0, 0.649999976, 0)
  746. ButtonLabel.Font = Enum.Font.SourceSansLight
  747. ButtonLabel.Text = args.Text
  748. ButtonLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
  749. ButtonLabel.TextScaled = true
  750. ButtonLabel.TextSize = 14.000
  751. ButtonLabel.TextWrapped = true
  752.  
  753.  
  754. --[[ Functions ]]--
  755. Button.MouseButton1Click:Connect(function()
  756. args.Callback()
  757. end)
  758. end
  759. function fMod:CreateInput(args: input)
  760. --[[ Set Default Values ]]--
  761. args.Text = (args.Text == nil) and "Input" or args.Text
  762. args.Placeholder = (args.Placeholder == nil) and "Placeholder" or args.Placeholder
  763. args.Callback = (type(args.Callback) ~= "function") and function()
  764. return
  765. end or args.Callback
  766.  
  767.  
  768. --[[ Gui ]]--
  769. local Input = Instance.new("TextBox")
  770. local UICorner = Instance.new("UICorner")
  771. local Underline = Instance.new("Frame")
  772. local Clipboard = Instance.new("ImageButton")
  773. local Container = CreateContainer(Section, args.Text)
  774.  
  775. Input.Parent = Container
  776. Input.AnchorPoint = Vector2.new(0.5, 0.5)
  777. Input.BackgroundColor3 = Color3.fromRGB(50, 50, 60)
  778. Input.ClipsDescendants = true
  779. Input.Position = UDim2.new(0.812383175, 0, 0.5, 0)
  780. Input.Size = UDim2.new(0, 110, 0, 25)
  781. Input.ClearTextOnFocus = false
  782. Input.Font = Enum.Font.SourceSansLight
  783. Input.PlaceholderText = args.Placeholder
  784. Input.Text = ""
  785. Input.TextColor3 = Color3.fromRGB(255, 255, 255)
  786. Input.TextSize = 14.000
  787.  
  788. UICorner.CornerRadius = UDim.new(0, 4)
  789. UICorner.Parent = Input
  790.  
  791. Underline.Name = "Underline"
  792. Underline.Parent = Input
  793. Underline.AnchorPoint = Vector2.new(0.5, 0.5)
  794. Underline.BackgroundColor3 = Color3.fromRGB(120, 120, 130)
  795. Underline.BorderSizePixel = 0
  796. Underline.Position = UDim2.new(0.5, 0, 0.949999988, 0)
  797. Underline.Size = UDim2.new(0.980000019, 0, 0.0399999991, 0)
  798.  
  799. Clipboard.Parent = Input
  800. Clipboard.AnchorPoint = Vector2.new(0.5, 0.5)
  801. Clipboard.BackgroundColor3 = Color3.fromRGB(50, 50, 60)
  802. Clipboard.BorderSizePixel = 0
  803. Clipboard.Position = UDim2.new(0.910000026, 0, 0.349999994, 0)
  804. Clipboard.Size = UDim2.new(0, 13, 0, 13)
  805. Clipboard.ZIndex = 2
  806. Clipboard.Image = "http://www.roblox.com/asset/?id=6035053278"
  807. Clipboard.AutoButtonColor = false
  808.  
  809.  
  810. --[[ Functions ]]--
  811. Clipboard.MouseButton1Click:Connect(function()
  812. xpcall(function()
  813. setclipboard(Input.Text)
  814. end, function()
  815. warn([[executor doesnt support: setclipboard(string: string)]])
  816. end)
  817. end)
  818.  
  819. Input.FocusLost:Connect(function()
  820. args.Callback(Input.Text)
  821. end)
  822. end
  823. function fMod:CreateSlider(args: slider)
  824. --[[ Set Default Values ]]--
  825. args.Text = (args.Text == nil) and "Input" or args.Text
  826. args.Min = (type(args.Min) ~= "number") and 0 or args.Min
  827. args.Max = (type(args.Max) ~= "number") and 10 or args.Max
  828. args.Callback = (type(args.Callback) ~= "function") and function()
  829. return
  830. end or args.Callback
  831.  
  832.  
  833. --[[ Variables ]]--
  834. local holding = false
  835.  
  836.  
  837. --[[ Gui ]]--
  838. local Slider = Instance.new("Frame")
  839. local Fill = Instance.new("Frame")
  840. local UICorner = Instance.new("UICorner")
  841. local FillButton = Instance.new("Frame")
  842. local UICorner_2 = Instance.new("UICorner")
  843. local HoldButton = Instance.new("TextButton")
  844. local UICorner_3 = Instance.new("UICorner")
  845. local UIStroke = Instance.new("UIStroke")
  846. local Container = CreateContainer(Section, args.Text)
  847.  
  848. Slider.Name = "Slider"
  849. Slider.Parent = Container
  850. Slider.AnchorPoint = Vector2.new(0.5, 0.5)
  851. Slider.BackgroundColor3 = Color3.fromRGB(150, 150, 150)
  852. Slider.BorderSizePixel = 0
  853. Slider.Position = UDim2.new(0.730000019, 0, 0.5, 0)
  854. Slider.Size = UDim2.new(0, 175, 0, 4)
  855.  
  856. Fill.Name = "Fill"
  857. Fill.Parent = Slider
  858. Fill.AnchorPoint = Vector2.new(0.5, 0.5)
  859. Fill.BackgroundColor3 = Color3.fromRGB(0, 175, 255)
  860. Fill.BorderSizePixel = 0
  861. Fill.Position = UDim2.new(0, 0, 0.5, 0)
  862. Fill.Size = UDim2.new(0, 0, 1, 0)
  863.  
  864. UICorner.CornerRadius = UDim.new(1, 0)
  865. UICorner.Parent = Fill
  866.  
  867. FillButton.Name = "FillButton"
  868. FillButton.Parent = Slider
  869. FillButton.AnchorPoint = Vector2.new(0.5, 0.5)
  870. FillButton.BackgroundColor3 = Color3.fromRGB(0, 175, 255)
  871. FillButton.Position = UDim2.new(0, 0, 0.5, 0)
  872. FillButton.Size = UDim2.new(0, 10, 0, 10)
  873.  
  874. UICorner_2.Parent = FillButton
  875.  
  876. HoldButton.Name = "HoldButton"
  877. HoldButton.Parent = Slider
  878. HoldButton.AnchorPoint = Vector2.new(0.5, 0.5)
  879. HoldButton.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  880. HoldButton.BackgroundTransparency = 1.000
  881. HoldButton.Position = UDim2.new(0.5, 0, 0.5, 0)
  882. HoldButton.Size = UDim2.new(1, 0, 1, 10)
  883. HoldButton.Font = Enum.Font.SourceSans
  884. HoldButton.Text = ""
  885. HoldButton.TextColor3 = Color3.fromRGB(0, 0, 0)
  886. HoldButton.TextSize = 14.000
  887.  
  888. UICorner_3.CornerRadius = UDim.new(1, 0)
  889. UICorner_3.Parent = Slider
  890.  
  891. UIStroke.Parent = FillButton
  892. UIStroke.Color = Color3.fromRGB(45, 45, 55)
  893. UIStroke.Thickness = 5
  894.  
  895.  
  896. --[[ Functions ]]--
  897. HoldButton.MouseButton1Down:Connect(function()
  898. holding = true
  899. UIStroke.Thickness = 7
  900. FillButton.Size = UDim2.new(0, 8, 0, 8)
  901. end)
  902. HoldButton.MouseButton1Up:Connect(function()
  903. holding = false
  904. UIStroke.Thickness = 5
  905. FillButton.Size = UDim2.new(0, 10, 0, 10)
  906. end)
  907.  
  908.  
  909. runService.RenderStepped:Connect(function()
  910. if holding then
  911. local mousePos = userInputService:GetMouseLocation()
  912.  
  913. local xPos = (mousePos.X - Slider.AbsolutePosition.X)/Slider.AbsoluteSize.X
  914. xPos = math.clamp(xPos, 0, 1)
  915.  
  916. local value = args.Min + (xPos * (args.Max-args.Min))
  917.  
  918. FillButton.Position = UDim2.new(xPos, 0, 0.5, 0)
  919.  
  920. Fill.Size = UDim2.new(xPos, 0, 1, 0)
  921. Fill.Position = UDim2.new(xPos/2, 0, 0.5, 0)
  922.  
  923. args.Callback(value)
  924. end
  925. end)
  926. end
  927. return fMod
  928. end
  929.  
  930. return sMod
  931. end
  932.  
  933. return tMod
  934. end
  935.  
  936.  
  937. return library
  938.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement