Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local library = {}
- --[[ Themes ]]--
- local themes = {
- ["Light"] = {
- },
- ["Ocean"] = {
- }
- }
- --[[ Array Types ]]--
- local t = require(script.types)
- print(t.x)
- type window = {
- Title: string,
- Theme: string
- }
- type tab = {
- Text: string,
- Icon: string
- }
- type section = {
- Text: string,
- Description: string,
- Icon: string
- }
- type button = {
- Text: string,
- Callback: any
- }
- type input = {
- Text: string,
- Placeholder: string,
- Callback: any
- }
- type slider = {
- Text: string,
- Min: number,
- Max: number,
- Callback: any
- }
- --[[ Library Functions ]]--
- function library:CreateWindow(args: window)
- --[[ Set Default Values ]]--
- args.Title = (args.Title == nil) and "Title" or args.Title
- args.Theme = (args.Theme == nil) and "Light" or args.Theme
- --[[ Variables ]]--
- -- Services --
- local tweenService = game:GetService("TweenService")
- local runService = game:GetService("RunService")
- local userInputService = game:GetService("UserInputService")
- local players = game:GetService("Players")
- local marketPlaceService = game:GetService("MarketplaceService")
- -- Misc --
- local gameId = game.PlaceId
- -- Player --
- local player = players.LocalPlayer
- local playerGui = player.PlayerGui
- -- Player Info Values --
- local name, profile = player.Name, players:GetUserThumbnailAsync(
- player.UserId,
- Enum.ThumbnailType.HeadShot,
- Enum.ThumbnailSize.Size420x420
- )
- local gameName = marketPlaceService:GetProductInfo(gameId).Name
- -- Misc --
- local pages = 0
- --[[ Gui ]]--
- local LibraryUI = Instance.new("ScreenGui")
- local Menu = Instance.new("Frame")
- local Background = Instance.new("Frame")
- local Tabs = Instance.new("ScrollingFrame")
- local UIListLayout = Instance.new("UIListLayout")
- local PlayerInfo = Instance.new("Frame")
- local ProfilePicture = Instance.new("ImageLabel")
- local UICorner_3 = Instance.new("UICorner")
- local Name = Instance.new("TextLabel")
- local Game = Instance.new("TextLabel")
- local TabSearchbar = Instance.new("Frame")
- local UICorner_4 = Instance.new("UICorner")
- local Underline = Instance.new("Frame")
- local SearchInput = Instance.new("TextBox")
- local SearchButton = Instance.new("ImageLabel")
- local Pages = Instance.new("Frame")
- local UIPageLayout = Instance.new("UIPageLayout")
- local Title = Instance.new("TextLabel")
- local Exit = Instance.new("ImageButton")
- local Maximize = Instance.new("ImageButton")
- local Minimize = Instance.new("ImageButton")
- local shadowHolder = Instance.new("Frame")
- local umbraShadow = Instance.new("ImageLabel")
- local penumbraShadow = Instance.new("ImageLabel")
- local ambientShadow = Instance.new("ImageLabel")
- local UIScale = Instance.new("UIScale")
- local UIScale_2 = Instance.new("UIScale")
- LibraryUI.Name = "LibraryUI"
- LibraryUI.Parent = playerGui
- LibraryUI.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
- LibraryUI.IgnoreGuiInset = true
- LibraryUI.DisplayOrder = 9999
- LibraryUI.ResetOnSpawn = false
- Menu.Name = "Menu"
- Menu.Parent = LibraryUI
- Menu.AnchorPoint = Vector2.new(0.5, 0.5)
- Menu.BackgroundColor3 = Color3.fromRGB(31, 31, 41)
- Menu.BackgroundTransparency = 0.050
- Menu.BorderSizePixel = 0
- Menu.Position = UDim2.new(0.513616562, 0, 0.180999994, 0)
- Menu.Size = UDim2.new(0, 600, 0, 25)
- Background.Name = "Background"
- Background.Parent = Menu
- Background.BackgroundColor3 = Color3.fromRGB(20, 20, 30)
- Background.BackgroundTransparency = 0.050
- Background.BorderSizePixel = 0
- Background.ClipsDescendants = true
- Background.Position = UDim2.new(0.5, 0, 8.4, 0)
- Background.Size = UDim2.new(1, 0, 10.7348843, 100)
- Background.AnchorPoint = Vector2.new(0.5, 0.5)
- UIScale_2.Parent = Background
- Tabs.Name = "Tabs"
- Tabs.Parent = Background
- Tabs.Active = true
- Tabs.AnchorPoint = Vector2.new(0.5, 0.5)
- Tabs.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Tabs.BackgroundTransparency = 1.000
- Tabs.BorderSizePixel = 0
- Tabs.Position = UDim2.new(0.148999989, 0, 0.622615039, 0)
- Tabs.Size = UDim2.new(0, 175, 0, 277)
- Tabs.CanvasSize = UDim2.new(0, 0, 0, 0)
- Tabs.ScrollBarThickness = 6
- Tabs.AutomaticCanvasSize = Enum.AutomaticSize.Y
- UIListLayout.Parent = Tabs
- UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
- PlayerInfo.Name = "PlayerInfo"
- PlayerInfo.Parent = Background
- PlayerInfo.AnchorPoint = Vector2.new(0.5, 0.5)
- PlayerInfo.BackgroundColor3 = Color3.fromRGB(20, 20, 30)
- PlayerInfo.BackgroundTransparency = 1.000
- PlayerInfo.BorderSizePixel = 0
- PlayerInfo.Position = UDim2.new(0.148999989, 0, 0.0733076707, 0)
- PlayerInfo.Size = UDim2.new(0, 175, 0, 58)
- ProfilePicture.Name = "ProfilePicture"
- ProfilePicture.Parent = PlayerInfo
- ProfilePicture.AnchorPoint = Vector2.new(0.5, 0.5)
- ProfilePicture.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- ProfilePicture.Position = UDim2.new(0.191, 0, 0.5, 0)
- ProfilePicture.Size = UDim2.new(0, 45, 0, 45)
- ProfilePicture.Image = profile
- UICorner_3.CornerRadius = UDim.new(1, 0)
- UICorner_3.Parent = ProfilePicture
- Name.Name = "Name"
- Name.Parent = PlayerInfo
- Name.AnchorPoint = Vector2.new(0.5, 0.5)
- Name.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Name.BackgroundTransparency = 1.000
- Name.Position = UDim2.new(0.649754286, 0, 0.338669926, 0)
- Name.Size = UDim2.new(0, 101, 0, 18)
- Name.Font = Enum.Font.SourceSansSemibold
- Name.Text = name
- Name.TextColor3 = Color3.fromRGB(255, 255, 255)
- Name.TextScaled = true
- Name.TextSize = 14.000
- Name.TextWrapped = true
- Name.TextXAlignment = Enum.TextXAlignment.Left
- Game.Name = "Game"
- Game.Parent = PlayerInfo
- Game.AnchorPoint = Vector2.new(0.5, 0.5)
- Game.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Game.BackgroundTransparency = 1.000
- Game.Position = UDim2.new(0.649754286, 0, 0.661330044, 0)
- Game.Size = UDim2.new(0, 101, 0, 18)
- Game.Font = Enum.Font.SourceSansLight
- Game.Text = gameName
- Game.TextColor3 = Color3.fromRGB(255, 255, 255)
- Game.TextScaled = true
- Game.TextSize = 14.000
- Game.TextWrapped = true
- Game.TextXAlignment = Enum.TextXAlignment.Left
- TabSearchbar.Name = "TabSearchbar"
- TabSearchbar.Parent = Background
- TabSearchbar.AnchorPoint = Vector2.new(0.5, 0.5)
- TabSearchbar.BackgroundColor3 = Color3.fromRGB(40, 40, 50)
- TabSearchbar.BorderSizePixel = 0
- TabSearchbar.ClipsDescendants = true
- TabSearchbar.Position = UDim2.new(0.148499995, 0, 0.200000003, 0)
- TabSearchbar.Size = UDim2.new(0, 155, 0, 25)
- UICorner_4.CornerRadius = UDim.new(0, 4)
- UICorner_4.Parent = TabSearchbar
- Underline.Name = "Underline"
- Underline.Parent = TabSearchbar
- Underline.AnchorPoint = Vector2.new(0.5, 0.5)
- Underline.BackgroundColor3 = Color3.fromRGB(120, 120, 130)
- Underline.BorderSizePixel = 0
- Underline.Position = UDim2.new(0.5, 0, 0.949999988, 0)
- Underline.Size = UDim2.new(0.980000019, 0, 0.0399999991, 0)
- SearchInput.Name = "SearchInput"
- SearchInput.Parent = TabSearchbar
- SearchInput.AnchorPoint = Vector2.new(0.5, 0.5)
- SearchInput.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- SearchInput.BackgroundTransparency = 1.000
- SearchInput.Position = UDim2.new(0.435000002, 0, 0.449999988, 0)
- SearchInput.Size = UDim2.new(0.781193614, 0, 0.600000083, 0)
- SearchInput.ClearTextOnFocus = false
- SearchInput.Font = Enum.Font.SourceSans
- SearchInput.PlaceholderText = "Search for tab"
- SearchInput.Text = ""
- SearchInput.TextColor3 = Color3.fromRGB(255, 255, 255)
- SearchInput.TextScaled = true
- SearchInput.TextSize = 14.000
- SearchInput.TextWrapped = true
- SearchInput.TextXAlignment = Enum.TextXAlignment.Left
- SearchButton.Name = "SearchButton"
- SearchButton.Parent = TabSearchbar
- SearchButton.AnchorPoint = Vector2.new(0.5, 0.5)
- SearchButton.BackgroundTransparency = 1.000
- SearchButton.BorderSizePixel = 0
- SearchButton.Position = UDim2.new(0.919354856, 0, 0.5, 0)
- SearchButton.Size = UDim2.new(0, 16, 0, 16)
- SearchButton.Image = "http://www.roblox.com/asset/?id=6031154871"
- Pages.Name = "Pages"
- Pages.Parent = Background
- Pages.AnchorPoint = Vector2.new(0.5, 0.5)
- Pages.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Pages.BackgroundTransparency = 1.000
- Pages.BorderSizePixel = 0
- Pages.Position = UDim2.new(0.658583403, 0, 0.5, 0)
- Pages.Size = UDim2.new(0, 410, 0, 400)
- Pages.ClipsDescendants = true
- UIPageLayout.Parent = Pages
- Title.Name = "Title"
- Title.Parent = Menu
- Title.AnchorPoint = Vector2.new(0.5, 0.5)
- Title.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Title.BackgroundTransparency = 1.000
- Title.Position = UDim2.new(0.400000006, 0, 0.5, 0)
- Title.Size = UDim2.new(0.769999981, 0, -1, 42)
- Title.Font = Enum.Font.SourceSansBold
- Title.Text = "TItle"
- Title.TextColor3 = Color3.fromRGB(255, 255, 255)
- Title.TextScaled = true
- Title.TextSize = 14.000
- Title.TextWrapped = true
- Title.TextXAlignment = Enum.TextXAlignment.Left
- Exit.Name = "Exit"
- Exit.Parent = Menu
- Exit.AnchorPoint = Vector2.new(0.5, 0.5)
- Exit.BackgroundTransparency = 1.000
- Exit.Position = UDim2.new(0.986000001, 0, 0.5, 0)
- Exit.Size = UDim2.new(0, 15, 0, 15)
- Exit.Image = "rbxassetid://7072725342"
- Maximize.Name = "Maximize"
- Maximize.Parent = Menu
- Maximize.AnchorPoint = Vector2.new(0.5, 0.5)
- Maximize.BackgroundTransparency = 1.000
- Maximize.Position = UDim2.new(0.942608714, 0, 0.5, 0)
- Maximize.Size = UDim2.new(0, 15, 0, 15)
- Maximize.Image = "rbxassetid://7072718726"
- Minimize.Name = "Minimize"
- Minimize.Parent = Menu
- Minimize.AnchorPoint = Vector2.new(0.5, 0.5)
- Minimize.BackgroundTransparency = 1.000
- Minimize.Position = UDim2.new(0.899130464, 0, 0.5, 0)
- Minimize.Size = UDim2.new(0, 15, 0, 15)
- Minimize.Image = "rbxassetid://7072719185"
- shadowHolder.Name = "shadowHolder"
- shadowHolder.Parent = Menu
- shadowHolder.AnchorPoint = Vector2.new(0.5, 0.5)
- shadowHolder.BackgroundTransparency = 1.000
- shadowHolder.Position = UDim2.new(0.5, 0, 7.82000017, 0)
- shadowHolder.Size = UDim2.new(1, 5, 15.8400021, 0)
- shadowHolder.ZIndex = -1
- umbraShadow.Name = "umbraShadow"
- umbraShadow.Parent = shadowHolder
- umbraShadow.AnchorPoint = Vector2.new(0.5, 0.5)
- umbraShadow.BackgroundTransparency = 1.000
- umbraShadow.Position = UDim2.new(0.5, 0, 0.5, 2)
- umbraShadow.Size = UDim2.new(1, 4, 1, 4)
- umbraShadow.ZIndex = -1
- umbraShadow.Image = "rbxassetid://1316045217"
- umbraShadow.ImageColor3 = Color3.fromRGB(0, 0, 0)
- umbraShadow.ImageTransparency = 0.860
- umbraShadow.ScaleType = Enum.ScaleType.Slice
- umbraShadow.SliceCenter = Rect.new(10, 10, 118, 118)
- penumbraShadow.Name = "penumbraShadow"
- penumbraShadow.Parent = shadowHolder
- penumbraShadow.AnchorPoint = Vector2.new(0.5, 0.5)
- penumbraShadow.BackgroundTransparency = 1.000
- penumbraShadow.Position = UDim2.new(0.5, 0, 0.5, 2)
- penumbraShadow.Size = UDim2.new(1, 4, 1, 4)
- penumbraShadow.ZIndex = -1
- penumbraShadow.Image = "rbxassetid://1316045217"
- penumbraShadow.ImageColor3 = Color3.fromRGB(0, 0, 0)
- penumbraShadow.ImageTransparency = 0.880
- penumbraShadow.ScaleType = Enum.ScaleType.Slice
- penumbraShadow.SliceCenter = Rect.new(10, 10, 118, 118)
- ambientShadow.Name = "ambientShadow"
- ambientShadow.Parent = shadowHolder
- ambientShadow.AnchorPoint = Vector2.new(0.5, 0.5)
- ambientShadow.BackgroundTransparency = 1.000
- ambientShadow.Position = UDim2.new(0.5, 0, 0.5, 2)
- ambientShadow.Size = UDim2.new(1, 4, 1, 4)
- ambientShadow.ZIndex = -1
- ambientShadow.Image = "rbxassetid://1316045217"
- ambientShadow.ImageColor3 = Color3.fromRGB(0, 0, 0)
- ambientShadow.ImageTransparency = 0.880
- ambientShadow.ScaleType = Enum.ScaleType.Slice
- ambientShadow.SliceCenter = Rect.new(10, 10, 118, 118)
- UIScale.Parent = Menu
- --[[ Functions ]]--
- local function setDraggable(draggable: boolean)
- Menu.Active = draggable
- Menu.Draggable = draggable
- end
- local function highlight(ui: GuiObject, hovering: boolean)
- local properties = (hovering == true) and {BackgroundTransparency = 0.95} or {BackgroundTransparency = 1}
- local info = TweenInfo.new(.1, Enum.EasingStyle.Sine, Enum.EasingDirection.In)
- local tween = tweenService:Create(ui, info, properties)
- tween:Play()
- end
- local function search(ui: GuiObject, text: string)
- for _, u in pairs(ui:GetChildren()) do
- if u:IsA("GuiObject") then
- if string.find(u.Name:lower(), text) then
- u.Visible = true
- else
- u.Visible = false
- end
- if #text == 0 then
- u.Visible = true
- end
- end
- end
- end
- local function exit()
- local info = TweenInfo.new(0.5, Enum.EasingStyle.Back, Enum.EasingDirection.In)
- local tween = tweenService:Create(UIScale, info, {Scale = 0})
- tween:Play()
- end
- local function maximize()
- -- Shadow --
- local info = TweenInfo.new(0, Enum.EasingStyle.Sine, Enum.EasingDirection.Out)
- local tween = tweenService:Create(shadowHolder, info, {Position = UDim2.new(0.5, 0, 7.82, 0), Size = UDim2.new(1, r, 15.84, 0)})
- -- Background --
- local info2 = TweenInfo.new(0.5, Enum.EasingStyle.Back, Enum.EasingDirection.Out)
- local tween2 = tweenService:Create(UIScale_2, info2, {Scale = 1})
- tween:Play()
- tween2:Play()
- end
- local function minimize()
- -- Shadow --
- local info = TweenInfo.new(0, Enum.EasingStyle.Sine, Enum.EasingDirection.In)
- local tween = tweenService:Create(shadowHolder, info, {Position = UDim2.new(0.5, 0, 0.5, 0), Size = UDim2.new(1, r, 1, 0)})
- -- Background --
- local info2 = TweenInfo.new(0.5, Enum.EasingStyle.Back, Enum.EasingDirection.In)
- local tween2 = tweenService:Create(UIScale_2, info2, {Scale = 0})
- tween:Play()
- tween2:Play()
- end
- local function CreateContainer(parent: GuiObject, text: string)
- local Container = Instance.new("Frame")
- local UICorner_6 = Instance.new("UICorner")
- local ContainerLabel = Instance.new("TextLabel")
- Container.Name = "Container"
- Container.Parent = parent
- Container.BackgroundColor3 = Color3.fromRGB(40, 40, 50)
- Container.BackgroundTransparency = 0.300
- Container.Position = UDim2.new(0, 0, 0, 0)
- Container.Size = UDim2.new(1, 0, 0, 35)
- Container.AutomaticSize = Enum.AutomaticSize.Y
- UICorner_6.CornerRadius = UDim.new(0, 6)
- UICorner_6.Parent = Container
- ContainerLabel.Name = "ContainerLabel"
- ContainerLabel.Parent = Container
- ContainerLabel.AnchorPoint = Vector2.new(0.5, 0.5)
- ContainerLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- ContainerLabel.BackgroundTransparency = 1.000
- ContainerLabel.Position = UDim2.new(0.20238699, 0, 0.5, 0)
- ContainerLabel.Size = UDim2.new(0, 125, 0, 18)
- ContainerLabel.Font = Enum.Font.SourceSansSemibold
- ContainerLabel.Text = text
- ContainerLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
- ContainerLabel.TextScaled = true
- ContainerLabel.TextSize = 14.000
- ContainerLabel.TextWrapped = true
- ContainerLabel.TextXAlignment = Enum.TextXAlignment.Left
- return Container
- end
- --[[ Call Functions ]]--
- setDraggable(true)
- Exit.MouseButton1Click:Connect(exit)
- Maximize.MouseButton1Click:Connect(maximize)
- Minimize.MouseButton1Click:Connect(minimize)
- SearchInput:GetPropertyChangedSignal("Text"):Connect(function()
- search(Tabs, SearchInput.Text)
- end)
- --[[ Tab Module ]]--
- local tMod = {}
- function tMod:AddTab(args: tab)
- --[[ Set Default Values ]]--
- args.Text = (args.Text == nil) and "Tab" or args.Text
- args.Icon = (args.Icon == nil) and "http://www.roblox.com/asset/?id=6031233851" or args.Icon
- --[[ Variables ]]--
- pages += 1
- --[[ Gui ]]--
- local Tab = Instance.new("TextButton")
- local TabLabel = Instance.new("TextLabel")
- local TabIcon = Instance.new("ImageLabel")
- local Highlight = Instance.new("Frame")
- local UICorner = Instance.new("UICorner")
- local TabSelectedFrame = Instance.new("Frame")
- local UICorner_2 = Instance.new("UICorner")
- local Page = Instance.new("ScrollingFrame")
- local UIListLayout_2 = Instance.new("UIListLayout")
- local SectionOffset = Instance.new("Frame")
- local PageLabel = Instance.new("TextLabel")
- local Selected = Instance.new("BoolValue")
- Tab.Name = args.Text
- Tab.Parent = Tabs
- Tab.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Tab.BackgroundTransparency = 1.000
- Tab.Size = UDim2.new(0, 167, 0, 35)
- Tab.Font = Enum.Font.SourceSans
- Tab.Text = ""
- Tab.TextColor3 = Color3.fromRGB(0, 0, 0)
- Tab.TextSize = 14.000
- TabLabel.Name = "TabLabel"
- TabLabel.Parent = Tab
- TabLabel.AnchorPoint = Vector2.new(0.5, 0.5)
- TabLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- TabLabel.BackgroundTransparency = 1.000
- TabLabel.BorderColor3 = Color3.fromRGB(27, 42, 53)
- TabLabel.Position = UDim2.new(0.629940152, 0, 0.5, 0)
- TabLabel.Size = UDim2.new(0.783999979, 0, 0.449999988, 0)
- TabLabel.Font = Enum.Font.SourceSansSemibold
- TabLabel.Text = args.Text
- TabLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
- TabLabel.TextScaled = true
- TabLabel.TextSize = 14.000
- TabLabel.TextWrapped = true
- TabLabel.TextXAlignment = Enum.TextXAlignment.Left
- TabIcon.Name = "TabIcon"
- TabIcon.Parent = Tab
- TabIcon.AnchorPoint = Vector2.new(0.5, 0.5)
- TabIcon.BackgroundTransparency = 1.000
- TabIcon.BorderSizePixel = 0
- TabIcon.Position = UDim2.new(0.119999997, 0, 0.5, 0)
- TabIcon.Size = UDim2.new(0, 18, 0, 18)
- TabIcon.Image = args.Icon
- Highlight.Name = "Highlight"
- Highlight.Parent = Tab
- Highlight.AnchorPoint = Vector2.new(0.5, 0.5)
- Highlight.BackgroundColor3 = Color3.fromRGB(225, 225, 255)
- Highlight.BackgroundTransparency = 1.000
- Highlight.ClipsDescendants = true
- Highlight.Position = UDim2.new(0.507113814, 0, 0.5, 0)
- Highlight.Size = UDim2.new(0.958227634, 0, 0.800000072, 0)
- Highlight.ZIndex = 0
- UICorner.CornerRadius = UDim.new(0, 4)
- UICorner.Parent = Highlight
- TabSelectedFrame.Name = "TabSelectedFrame"
- TabSelectedFrame.Parent = Highlight
- TabSelectedFrame.AnchorPoint = Vector2.new(0.5, 0.5)
- TabSelectedFrame.BackgroundColor3 = Color3.fromRGB(255, 191, 0)
- TabSelectedFrame.BackgroundTransparency = 1.000
- TabSelectedFrame.Position = UDim2.new(-0.0107285455, 0, 0.5, 0)
- TabSelectedFrame.Size = UDim2.new(0.050999999, 0, 0.699999988, 0)
- UICorner_2.CornerRadius = UDim.new(0, 4)
- UICorner_2.Parent = TabSelectedFrame
- Page.Name = tostring(pages)
- Page.Parent = Pages
- Page.Active = true
- Page.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Page.BackgroundTransparency = 1.000
- Page.BorderSizePixel = 0
- Page.Size = UDim2.new(1, 0, 0, 400)
- Page.CanvasSize = UDim2.new(0, 0, 0, 0)
- Page.ScrollBarThickness = 6
- Page.AutomaticCanvasSize = Enum.AutomaticSize.Y
- UIListLayout_2.Parent = Page
- UIListLayout_2.SortOrder = Enum.SortOrder.LayoutOrder
- UIListLayout_2.Padding = UDim.new(0, 7)
- SectionOffset.Name = "SectionOffset"
- SectionOffset.Parent = Page
- SectionOffset.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- SectionOffset.BackgroundTransparency = 1.000
- SectionOffset.Size = UDim2.new(0, 0, 0, 22)
- PageLabel.Name = "PageLabel"
- PageLabel.Parent = Page
- PageLabel.AnchorPoint = Vector2.new(0.5, 0.5)
- PageLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- PageLabel.BackgroundTransparency = 1.000
- PageLabel.Position = UDim2.new(0.510975599, 0, 0.075000003, 0)
- PageLabel.Size = UDim2.new(0.977999985, 0, 0, 32)
- PageLabel.Font = Enum.Font.SourceSansSemibold
- PageLabel.Text = args.Text
- PageLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
- PageLabel.TextScaled = true
- PageLabel.TextSize = 14.000
- PageLabel.TextWrapped = true
- PageLabel.TextXAlignment = Enum.TextXAlignment.Left
- Selected.Parent = Tab
- Selected.Name = "TabSelected"
- Selected.Value = false
- --[[ Functions ]]--
- Tab.MouseButton1Click:Connect(function()
- for _, tab in pairs(Tabs:GetChildren()) do
- if tab:IsA("TextButton") then
- tab["TabSelected"].Value = false
- tab["Highlight"].BackgroundTransparency = 1
- tab["Highlight"]["TabSelectedFrame"].BackgroundTransparency = 1
- end
- end
- Selected.Value = true
- Highlight.BackgroundTransparency = 0.9
- TabSelectedFrame.BackgroundTransparency = 0
- UIPageLayout:JumpToIndex(tonumber(Page.Name)-1)
- end)
- Tab.MouseEnter:Connect(function()
- if Selected.Value == false then
- highlight(Highlight, true)
- end
- end)
- Tab.MouseLeave:Connect(function()
- if Selected.Value == false then
- highlight(Highlight, false)
- end
- end)
- --[[ Section Module ]]--
- local sMod = {}
- function sMod:AddSection(args: section)
- --[[ Set Default Values ]]--
- args.Text = (args.Text == nil) and "Section" or args.Text
- args.Description = (args.Description == nil) and "Description." or args.Description
- args.Icon = (args.Icon == nil) and "http://www.roblox.com/asset/?id=6031229341" or args.Icon
- --[[ Gui ]]--
- local Section = Instance.new("Frame")
- local SectionInfo = Instance.new("Frame")
- local UICorner_5 = Instance.new("UICorner")
- local SectionDropdown = Instance.new("ImageLabel")
- local SectionIcon = Instance.new("ImageLabel")
- local SectionDescription = Instance.new("TextButton")
- local SectionName = Instance.new("TextLabel")
- local UIListLayout_3 = Instance.new("UIListLayout")
- Section.Name = "Section"
- Section.Parent = Page
- Section.BackgroundColor3 = Color3.fromRGB(40, 40, 50)
- Section.BackgroundTransparency = 1.000
- Section.Position = UDim2.new(0, 0, 0.150000006, 0)
- Section.Size = UDim2.new(0.936999977, 0, 0, 45)
- Section.AutomaticSize = Enum.AutomaticSize.Y
- SectionInfo.Name = "SectionInfo"
- SectionInfo.Parent = Section
- SectionInfo.BackgroundColor3 = Color3.fromRGB(40, 40, 50)
- SectionInfo.BackgroundTransparency = 0.300
- SectionInfo.Size = UDim2.new(1, 0, 0, 45)
- UICorner_5.CornerRadius = UDim.new(0, 6)
- UICorner_5.Parent = SectionInfo
- SectionDropdown.Name = "SectionDropdown"
- SectionDropdown.Parent = SectionInfo
- SectionDropdown.AnchorPoint = Vector2.new(0.5, 0.5)
- SectionDropdown.BackgroundTransparency = 1.000
- SectionDropdown.BorderSizePixel = 0
- SectionDropdown.Position = UDim2.new(0.958130538, 0, 0.5, 0)
- SectionDropdown.Size = UDim2.new(0, 25, 0, 25)
- SectionDropdown.Image = "http://www.roblox.com/asset/?id=6034818365"
- SectionIcon.Name = "SectionIcon"
- SectionIcon.Parent = SectionInfo
- SectionIcon.AnchorPoint = Vector2.new(0.5, 0.5)
- SectionIcon.BackgroundTransparency = 1.000
- SectionIcon.BorderSizePixel = 0
- SectionIcon.Position = UDim2.new(0.0649999976, 0, 0.5, 0)
- SectionIcon.Size = UDim2.new(0, 25, 0, 32)
- SectionIcon.Image = args.Icon
- SectionDescription.Name = "SectionDescription"
- SectionDescription.Parent = SectionInfo
- SectionDescription.AnchorPoint = Vector2.new(0.5, 0.5)
- SectionDescription.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- SectionDescription.BackgroundTransparency = 1.000
- SectionDescription.Position = UDim2.new(0.528219938, 0, 0.702777803, 0)
- SectionDescription.Size = UDim2.new(0, 305, 0, 17)
- SectionDescription.Font = Enum.Font.SourceSansLight
- SectionDescription.Text = args.Description
- SectionDescription.TextColor3 = Color3.fromRGB(255, 255, 255)
- SectionDescription.TextScaled = true
- SectionDescription.TextSize = 14.000
- SectionDescription.TextWrapped = true
- SectionDescription.TextXAlignment = Enum.TextXAlignment.Left
- SectionName.Name = "SectionName"
- SectionName.Parent = SectionInfo
- SectionName.AnchorPoint = Vector2.new(0.5, 0.5)
- SectionName.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- SectionName.BackgroundTransparency = 1.000
- SectionName.Position = UDim2.new(0.528219938, 0, 0.280555546, 0)
- SectionName.Size = UDim2.new(0, 305, 0, 17)
- SectionName.Font = Enum.Font.SourceSansSemibold
- SectionName.Text = args.Text
- SectionName.TextColor3 = Color3.fromRGB(255, 255, 255)
- SectionName.TextScaled = true
- SectionName.TextSize = 14.000
- SectionName.TextWrapped = true
- SectionName.TextXAlignment = Enum.TextXAlignment.Left
- UIListLayout_3.Parent = Section
- UIListLayout_3.SortOrder = Enum.SortOrder.LayoutOrder
- UIListLayout_3.Padding = UDim.new(0, 2)
- --[[ Functions ]]--
- --[[ Fin Module ]]--
- local fMod = {}
- function fMod:CreateButton(args: button)
- --[[ Set Default Values ]]--
- args.Text = (args.Text == nil) and "Button" or args.Text
- args.Callback = (type(args.Callback) ~= "function") and function()
- return
- end or args.Callback
- --[[ Gui ]]--
- local Button = Instance.new("TextButton")
- local UICorner_7 = Instance.new("UICorner")
- local ButtonLabel = Instance.new("TextLabel")
- local Container = CreateContainer(Section, args.Text)
- Button.Name = "Button"
- Button.Parent = Container
- Button.AnchorPoint = Vector2.new(0.5, 0.5)
- Button.BackgroundColor3 = Color3.fromRGB(50, 50, 60)
- Button.Position = UDim2.new(0.812360466, 0, 0.5, 0)
- Button.Size = UDim2.new(0, 110, 0, 25)
- Button.AutoButtonColor = false
- Button.Font = Enum.Font.SourceSans
- Button.Text = ""
- Button.TextColor3 = Color3.fromRGB(0, 0, 0)
- Button.TextSize = 14.000
- UICorner_7.CornerRadius = UDim.new(0, 4)
- UICorner_7.Parent = Button
- ButtonLabel.Name = "ButtonLabel"
- ButtonLabel.Parent = Button
- ButtonLabel.AnchorPoint = Vector2.new(0.5, 0.5)
- ButtonLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- ButtonLabel.BackgroundTransparency = 1.000
- ButtonLabel.Position = UDim2.new(0.5, 0, 0.5, 0)
- ButtonLabel.Size = UDim2.new(1, 0, 0.649999976, 0)
- ButtonLabel.Font = Enum.Font.SourceSansLight
- ButtonLabel.Text = args.Text
- ButtonLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
- ButtonLabel.TextScaled = true
- ButtonLabel.TextSize = 14.000
- ButtonLabel.TextWrapped = true
- --[[ Functions ]]--
- Button.MouseButton1Click:Connect(function()
- args.Callback()
- end)
- end
- function fMod:CreateInput(args: input)
- --[[ Set Default Values ]]--
- args.Text = (args.Text == nil) and "Input" or args.Text
- args.Placeholder = (args.Placeholder == nil) and "Placeholder" or args.Placeholder
- args.Callback = (type(args.Callback) ~= "function") and function()
- return
- end or args.Callback
- --[[ Gui ]]--
- local Input = Instance.new("TextBox")
- local UICorner = Instance.new("UICorner")
- local Underline = Instance.new("Frame")
- local Clipboard = Instance.new("ImageButton")
- local Container = CreateContainer(Section, args.Text)
- Input.Parent = Container
- Input.AnchorPoint = Vector2.new(0.5, 0.5)
- Input.BackgroundColor3 = Color3.fromRGB(50, 50, 60)
- Input.ClipsDescendants = true
- Input.Position = UDim2.new(0.812383175, 0, 0.5, 0)
- Input.Size = UDim2.new(0, 110, 0, 25)
- Input.ClearTextOnFocus = false
- Input.Font = Enum.Font.SourceSansLight
- Input.PlaceholderText = args.Placeholder
- Input.Text = ""
- Input.TextColor3 = Color3.fromRGB(255, 255, 255)
- Input.TextSize = 14.000
- UICorner.CornerRadius = UDim.new(0, 4)
- UICorner.Parent = Input
- Underline.Name = "Underline"
- Underline.Parent = Input
- Underline.AnchorPoint = Vector2.new(0.5, 0.5)
- Underline.BackgroundColor3 = Color3.fromRGB(120, 120, 130)
- Underline.BorderSizePixel = 0
- Underline.Position = UDim2.new(0.5, 0, 0.949999988, 0)
- Underline.Size = UDim2.new(0.980000019, 0, 0.0399999991, 0)
- Clipboard.Parent = Input
- Clipboard.AnchorPoint = Vector2.new(0.5, 0.5)
- Clipboard.BackgroundColor3 = Color3.fromRGB(50, 50, 60)
- Clipboard.BorderSizePixel = 0
- Clipboard.Position = UDim2.new(0.910000026, 0, 0.349999994, 0)
- Clipboard.Size = UDim2.new(0, 13, 0, 13)
- Clipboard.ZIndex = 2
- Clipboard.Image = "http://www.roblox.com/asset/?id=6035053278"
- Clipboard.AutoButtonColor = false
- --[[ Functions ]]--
- Clipboard.MouseButton1Click:Connect(function()
- xpcall(function()
- setclipboard(Input.Text)
- end, function()
- warn([[executor doesnt support: setclipboard(string: string)]])
- end)
- end)
- Input.FocusLost:Connect(function()
- args.Callback(Input.Text)
- end)
- end
- function fMod:CreateSlider(args: slider)
- --[[ Set Default Values ]]--
- args.Text = (args.Text == nil) and "Input" or args.Text
- args.Min = (type(args.Min) ~= "number") and 0 or args.Min
- args.Max = (type(args.Max) ~= "number") and 10 or args.Max
- args.Callback = (type(args.Callback) ~= "function") and function()
- return
- end or args.Callback
- --[[ Variables ]]--
- local holding = false
- --[[ Gui ]]--
- local Slider = Instance.new("Frame")
- local Fill = Instance.new("Frame")
- local UICorner = Instance.new("UICorner")
- local FillButton = Instance.new("Frame")
- local UICorner_2 = Instance.new("UICorner")
- local HoldButton = Instance.new("TextButton")
- local UICorner_3 = Instance.new("UICorner")
- local UIStroke = Instance.new("UIStroke")
- local Container = CreateContainer(Section, args.Text)
- Slider.Name = "Slider"
- Slider.Parent = Container
- Slider.AnchorPoint = Vector2.new(0.5, 0.5)
- Slider.BackgroundColor3 = Color3.fromRGB(150, 150, 150)
- Slider.BorderSizePixel = 0
- Slider.Position = UDim2.new(0.730000019, 0, 0.5, 0)
- Slider.Size = UDim2.new(0, 175, 0, 4)
- Fill.Name = "Fill"
- Fill.Parent = Slider
- Fill.AnchorPoint = Vector2.new(0.5, 0.5)
- Fill.BackgroundColor3 = Color3.fromRGB(0, 175, 255)
- Fill.BorderSizePixel = 0
- Fill.Position = UDim2.new(0, 0, 0.5, 0)
- Fill.Size = UDim2.new(0, 0, 1, 0)
- UICorner.CornerRadius = UDim.new(1, 0)
- UICorner.Parent = Fill
- FillButton.Name = "FillButton"
- FillButton.Parent = Slider
- FillButton.AnchorPoint = Vector2.new(0.5, 0.5)
- FillButton.BackgroundColor3 = Color3.fromRGB(0, 175, 255)
- FillButton.Position = UDim2.new(0, 0, 0.5, 0)
- FillButton.Size = UDim2.new(0, 10, 0, 10)
- UICorner_2.Parent = FillButton
- HoldButton.Name = "HoldButton"
- HoldButton.Parent = Slider
- HoldButton.AnchorPoint = Vector2.new(0.5, 0.5)
- HoldButton.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- HoldButton.BackgroundTransparency = 1.000
- HoldButton.Position = UDim2.new(0.5, 0, 0.5, 0)
- HoldButton.Size = UDim2.new(1, 0, 1, 10)
- HoldButton.Font = Enum.Font.SourceSans
- HoldButton.Text = ""
- HoldButton.TextColor3 = Color3.fromRGB(0, 0, 0)
- HoldButton.TextSize = 14.000
- UICorner_3.CornerRadius = UDim.new(1, 0)
- UICorner_3.Parent = Slider
- UIStroke.Parent = FillButton
- UIStroke.Color = Color3.fromRGB(45, 45, 55)
- UIStroke.Thickness = 5
- --[[ Functions ]]--
- HoldButton.MouseButton1Down:Connect(function()
- holding = true
- UIStroke.Thickness = 7
- FillButton.Size = UDim2.new(0, 8, 0, 8)
- end)
- HoldButton.MouseButton1Up:Connect(function()
- holding = false
- UIStroke.Thickness = 5
- FillButton.Size = UDim2.new(0, 10, 0, 10)
- end)
- runService.RenderStepped:Connect(function()
- if holding then
- local mousePos = userInputService:GetMouseLocation()
- local xPos = (mousePos.X - Slider.AbsolutePosition.X)/Slider.AbsoluteSize.X
- xPos = math.clamp(xPos, 0, 1)
- local value = args.Min + (xPos * (args.Max-args.Min))
- FillButton.Position = UDim2.new(xPos, 0, 0.5, 0)
- Fill.Size = UDim2.new(xPos, 0, 1, 0)
- Fill.Position = UDim2.new(xPos/2, 0, 0.5, 0)
- args.Callback(value)
- end
- end)
- end
- return fMod
- end
- return sMod
- end
- return tMod
- end
- return library
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement