Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local library = {}
- --[[ Array Types ]]--
- type window = {Title: string, Scale: number}
- 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}
- type toggle = {Text: string, Callback: any}
- type switch = {Text: string, Callback: any}
- type dropdown = {Text: string, Items: any, Callback: any}
- type vector3 = {Text: string, Callback: any}
- type vector2 = {Text: string, Callback: any}
- --[[ Library Functions ]]--
- function library:CreateWindow(args: window)
- --[[ Set Default Values ]]--
- args.Title = (args.Title == nil) and "Title" or args.Title
- args.Scale = (type(args.Scale) ~= "number") and 0.9 or args.Scale
- args.Scale = math.clamp(args.Scale, 0.5, 1.5)
- --[[ 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")
- local starterGui = game:GetService("StarterGui")
- local coreGui = game:GetService("CoreGui")
- -- Modules --
- local UUIDGenerator = loadstring(game:HttpGet("https://pastebin.com/raw/wy3u2eTU"))()
- -- Notification --
- starterGui:SetCore("SendNotification", {Title = "Credits",
- Text = [[
- UI Design By: ImposterSussy111
- Scripting By: ImposterSussy111
- ]],
- Button1 = "Close"
- })
- -- Misc --
- local gameId = game.PlaceId
- local pages = 0
- -- Player --
- local player = players.LocalPlayer
- -- Player Info Values --
- local name, profile, gameName = player.Name, players:GetUserThumbnailAsync(player.UserId, Enum.ThumbnailType.HeadShot, Enum.ThumbnailSize.Size420x420), marketPlaceService:GetProductInfo(gameId).Name
- --[[ 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 = Instance.new("UICorner")
- local Name = Instance.new("TextLabel")
- local Game = Instance.new("TextLabel")
- local TabSearchbar = Instance.new("Frame")
- local UICorner_2 = Instance.new("UICorner")
- local Underline = Instance.new("Frame")
- local SearchInput = Instance.new("TextBox")
- local SearchButton = Instance.new("ImageLabel")
- local UIStroke = Instance.new("UIStroke")
- 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")
- local Blur = Instance.new("ViewportFrame")
- local BlurPart = Instance.new("Part")
- LibraryUI.Name = UUIDGenerator:Generate()
- LibraryUI.Parent = coreGui
- 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(10, 10, 20)
- Menu.BackgroundTransparency = 0.1
- Menu.BorderSizePixel = 0
- Menu.Position = UDim2.new(0.513616562, 0, 0.180999994, 0)
- Menu.Size = UDim2.new(0, 600, 0, 25)
- Menu.Active = true
- UIScale.Scale = args.Scale
- UIScale.Parent = Menu
- Background.Name = "Background"
- Background.Parent = Menu
- Background.BackgroundColor3 = Color3.fromRGB(10, 10, 20)
- Background.BackgroundTransparency = 0.1
- Background.BorderSizePixel = 0
- Background.ClipsDescendants = true
- Background.Position = UDim2.new(0.5, 0, 8.36, 0)
- Background.Size = UDim2.new(1, 0, 10.7348843, 100)
- Background.AnchorPoint = Vector2.new(0.5, 0.5)
- UIScale_2.Parent = Background
- Blur.Position = UDim2.new(0.5, 0, 7.85, 0)
- Blur.Size = UDim2.new(1, 0, 15.7, 0)
- Blur.Ambient = Color3.fromRGB(255, 255, 255)
- Blur.LightColor = Color3.fromRGB(255, 255, 255)
- Blur.BackgroundTransparency = 1
- Blur.AnchorPoint = Vector2.new(0.5, 0.5)
- Blur.Name = "Blur"
- Blur.Parent = Menu
- Blur.ZIndex = -1
- Blur.ImageTransparency = 0.15
- BlurPart.Color = Color3.fromRGB(91, 93, 105)
- BlurPart.Material = Enum.Material.Glass
- BlurPart.Size = Vector3.new(1680.75, 800, 1000)
- BlurPart.Position = Vector3.new(-80.925, -15.85, -511.75)
- BlurPart.Parent = Blur
- 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.CornerRadius = UDim.new(1, 0)
- UICorner.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 = false
- TabSearchbar.Position = UDim2.new(0.148499995, 0, 0.200000003, 0)
- TabSearchbar.Size = UDim2.new(0, 155, 0, 25)
- UICorner_2.CornerRadius = UDim.new(0, 4)
- UICorner_2.Parent = TabSearchbar
- UIStroke.Color = Color3.fromRGB(200, 200, 200)
- UIStroke.Thickness = 0
- UIStroke.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.659, 0, 0.5, 0)
- Pages.Size = UDim2.new(0, 410, 1, 0)
- 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 = args.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.85, 0)
- shadowHolder.Size = UDim2.new(1, 10, 15.8, 10)
- 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)
- --[[ Functions ]]--
- local function setDraggable(draggable: boolean)
- Menu.Draggable = draggable
- end
- local function backgroundTween(scale: number, pos: UDim2, size: UDim2)
- local info = TweenInfo.new(0, Enum.EasingStyle.Sine, Enum.EasingDirection.Out)
- local tween = tweenService:Create(shadowHolder, info, {Position = pos, Size = size})
- local info2 = TweenInfo.new(0.5, Enum.EasingStyle.Sine, Enum.EasingDirection.Out)
- local tween2 = tweenService:Create(UIScale_2, info2, {Scale = scale})
- tween:Play()
- tween2:Play()
- end
- local function inputHighlight(input: TextBox, stroke: UIStroke)
- local focused = false
- input.Focused:Connect(function() focused = true stroke.Thickness = 2 end)
- input.FocusLost:Connect(function() focused = false stroke.Thickness = 0 end)
- input.MouseEnter:Connect(function() if not focused then stroke.Thickness = 1 end end)
- input.MouseLeave:Connect(function() if not focused then stroke.Thickness = 0 end end)
- end
- local function buttonHighlight(button: GuiButton, stroke: UIStroke)
- button.MouseButton1Down:Connect(function() stroke.Thickness = 2 end)
- button.MouseButton1Up:Connect(function() stroke.Thickness = 1 end)
- button.MouseEnter:Connect(function() stroke.Thickness = 1 end)
- button.MouseLeave:Connect(function() stroke.Thickness = 0 end)
- 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 #text == 0 then
- u.Visible = true
- end
- if string.find(u.Name:lower(), text) then
- u.Visible = true
- else
- u.Visible = false
- end
- end
- end
- end
- local function titleize(text: string)
- local t = ""
- local nonCapitalizedWords = {[1] = "a", [2] = "an", [3] = "the",[4] = "for", [5] = "and", [6] = "nor", [7] = "but", [8] = "or", [9] = "yet",[10] = "so",[11] = "at", [12] = "around", [13] = "by", [14] = "after", [15] = "along",[16] = "from",[17] = "of",[18] = "on",[19] = "to",[20] = "with",[21] = "without"}
- local words = text:split(" ")
- for _, word in pairs(words) do
- local firstChar = word:sub(1, 1):upper()
- if table.find(nonCapitalizedWords, word:lower()) then
- firstChar = firstChar:lower()
- end
- word = firstChar..word:sub(2, #word)
- t = t..word.." "
- end
- return t
- end
- local function exit()
- task.spawn(function()
- local info = TweenInfo.new(0.5, Enum.EasingStyle.Back, Enum.EasingDirection.In)
- local tween = tweenService:Create(UIScale, info, {Scale = 0})
- tween:Play()
- tween.Completed:Wait()
- LibraryUI:Destroy()
- end)
- end
- local function maximize()
- backgroundTween(1, UDim2.new(0.5, 0, 7.82, 0), UDim2.new(1, 5, 15, 25))
- end
- local function minimize()
- backgroundTween(0, UDim2.new(0.5, 0, 0.5, 0), UDim2.new(1, 5, 1, 0))
- end
- local function dropdown(dropUI: GuiObject, toggled: boolean, rot1: number, rot2: number, callback)
- local properties = (toggled == true) and {Rotation = rot1} or {Rotation = rot2}
- local info = TweenInfo.new(0.1, Enum.EasingStyle.Sine, Enum.EasingDirection.InOut)
- local tween = tweenService:Create(dropUI, info, properties)
- tween:Play()
- callback(toggled)
- 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.5
- 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)
- Title.Text = titleize(args.Title)
- Exit.MouseButton1Click:Connect(exit)
- --Maximize.MouseButton1Click:Connect(maximize)
- --Minimize.MouseButton1Click:Connect(minimize)
- SearchInput:GetPropertyChangedSignal("Text"):Connect(function() search(Tabs, SearchInput.Text) end)
- inputHighlight(SearchInput, UIStroke)
- --[[ 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 = 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(255, 255, 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.820000072, 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, 255, 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, 1, 0)
- Page.CanvasSize = UDim2.new(0, 0, 0, 0)
- Page.ScrollBarThickness = 6
- Page.AutomaticCanvasSize = Enum.AutomaticSize.Y
- UIListLayout.Parent = Page
- UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
- UIListLayout.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, 15)
- 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 = titleize(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
- self.selectedFrame = TabSelectedFrame
- --[[ 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)
- --runService.RenderStepped:Connect(function()
- -- Page.CanvasSize = UDim2.new(0, 0, 0, UIListLayout.AbsoluteContentSize.Y)
- --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
- --[[ Variables ]]--
- local toggled = true
- --[[ Gui ]]--
- local Section = Instance.new("Frame")
- local SectionInfo = Instance.new("Frame")
- local UICorner_5 = Instance.new("UICorner")
- local SectionDropdown = Instance.new("ImageButton")
- 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.5
- 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"
- SectionDropdown.Rotation = -90
- 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 ]]--
- SectionDropdown.MouseButton1Click:Connect(function()
- toggled = not toggled
- dropdown(SectionDropdown, toggled, -90, 0, function(v)
- for _, container in pairs(Section:GetChildren()) do
- if container.Name == "Container" then
- container.Visible = v
- end
- end
- end)
- end)
- --[[ Fin Module ]]--
- local fMod = {}
- function fMod:AddButton(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 = Instance.new("UICorner")
- local ButtonLabel = Instance.new("TextLabel")
- local Outline = Instance.new("Frame")
- local UICorner_2 = Instance.new("UICorner")
- local UIStroke = Instance.new("UIStroke")
- 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.CornerRadius = UDim.new(0, 4)
- UICorner.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
- Outline.Name = "Outline"
- Outline.Parent = Button
- Outline.AnchorPoint = Vector2.new(0.5, 0.5)
- Outline.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Outline.BackgroundTransparency = 1.000
- Outline.Position = UDim2.new(0.5, 0, 0.5, 0)
- Outline.Size = UDim2.new(1, 0, 1, 0)
- UICorner_2.CornerRadius = UDim.new(0, 4)
- UICorner_2.Parent = Outline
- UIStroke.Color = Color3.fromRGB(200, 200, 200)
- UIStroke.Thickness = 0
- UIStroke.Parent = Outline
- --[[ Functions ]]--
- Button.MouseButton1Click:Connect(function() args.Callback() end)
- buttonHighlight(Button, UIStroke)
- end
- function fMod:AddInput(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 Clipboard = Instance.new("ImageButton")
- local Outline = Instance.new("Frame")
- local UICorner_2 = Instance.new("UICorner")
- local UIStroke = Instance.new("UIStroke")
- 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.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 = 15
- Input.TextWrapped = true
- UICorner.CornerRadius = UDim.new(0, 4)
- UICorner.Parent = Input
- 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
- Outline.Name = "Outline"
- Outline.Parent = Input
- Outline.AnchorPoint = Vector2.new(0.5, 0.5)
- Outline.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Outline.BackgroundTransparency = 1.000
- Outline.Position = UDim2.new(0.5, 0, 0.5, 0)
- Outline.Size = UDim2.new(1, 0, 1, 0)
- UICorner_2.CornerRadius = UDim.new(0, 4)
- UICorner_2.Parent = Outline
- UIStroke.Color = Color3.fromRGB(200, 200, 200)
- UIStroke.Thickness = 0
- UIStroke.Parent = Outline
- --[[ Functions ]]--
- Clipboard.MouseButton1Click:Connect(function()
- xpcall(function()
- setclipboard(Input.Text)
- end, function()
- warn([[executor doesnt support: setclipboard(value: any)]])
- end)
- end)
- Input.FocusLost:Connect(function()
- args.Callback(Input.Text)
- end)
- inputHighlight(Input, UIStroke)
- end
- function fMod:AddSlider(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 ValueLabel = Instance.new("TextLabel")
- 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
- HoldButton.Position = UDim2.new(0.5, 0, 0.5, 0)
- HoldButton.Size = UDim2.new(1, 15, 1, 15)
- 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
- ValueLabel.Name = "ValueLabel"
- ValueLabel.Parent = Slider
- ValueLabel.AnchorPoint = Vector2.new(0.5, 0.5)
- ValueLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- ValueLabel.BackgroundTransparency = 1.000
- ValueLabel.Position = UDim2.new(-0.185194612, 0, 0.5, 0)
- ValueLabel.Size = UDim2.new(0, 40, 0, 15)
- ValueLabel.Font = Enum.Font.SourceSans
- ValueLabel.Text = tostring(math.floor(args.Min))
- ValueLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
- ValueLabel.TextScaled = true
- ValueLabel.TextSize = 14.000
- ValueLabel.TextWrapped = true
- --[[ Functions ]]--
- HoldButton.MouseButton1Down:Connect(function() holding = true FillButton.Size = UDim2.new(0, 7, 0, 7) end)
- HoldButton.MouseButton1Up:Connect(function() holding = false 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))
- ValueLabel.Text = tostring(math.floor(value))
- 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)
- local methods = {}
- function methods:SetMin(min: number)
- args.Min = min
- end
- function methods:SetMax(max: number)
- args.Max = max
- end
- return methods
- end
- function fMod:AddSwitch(args: switch)
- --[[ Set Default Values ]]--
- args.Text = (args.Text == nil) and "Switch" or args.Text
- args.Callback = (type(args.Callback) ~= "function") and function()
- return
- end or args.Callback
- --[[ Variables ]]--
- local toggled = false
- local uisToTween = {}
- --[[ Gui ]]--
- local Switch = Instance.new("Frame")
- local UICorner = Instance.new("UICorner")
- local SwitchButton = Instance.new("Frame")
- local SwitchClickable = Instance.new("TextButton")
- local UICorner_2 = Instance.new("UICorner")
- local ToggledLabel = Instance.new("TextLabel")
- local UIStroke = Instance.new("UIStroke")
- local Container = CreateContainer(Section, args.Text)
- Switch.Name = "Switch"
- Switch.Parent = Container
- Switch.AnchorPoint = Vector2.new(0.5, 0)
- Switch.BackgroundColor3 = Color3.fromRGB(30, 30, 40)
- Switch.BorderSizePixel = 0
- Switch.Position = UDim2.new(0.899999976, 0, 0.200000003, 0)
- Switch.Size = UDim2.new(0, 45, 0, 20)
- UICorner.CornerRadius = UDim.new(1, 0)
- UICorner.Parent = Switch
- UIStroke.Color = Color3.fromRGB(200, 200, 200)
- UIStroke.Parent = Switch
- SwitchButton.Parent = Switch
- SwitchButton.AnchorPoint = Vector2.new(0.5, 0.5)
- SwitchButton.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- SwitchButton.Position = UDim2.new(0.200000003, 0, 0.5, 0)
- SwitchButton.Size = UDim2.new(0, 14, 0, 14)
- SwitchClickable.Size = UDim2.new(1, 0, 1, 0)
- SwitchClickable.AnchorPoint = Vector2.new(0.5, 0.5)
- SwitchClickable.Position = UDim2.new(0.5, 0, 0.5, 0)
- SwitchClickable.BackgroundTransparency = 1
- SwitchClickable.Parent = Switch
- SwitchClickable.Text = ""
- UICorner_2.CornerRadius = UDim.new(1, 0)
- UICorner_2.Parent = SwitchButton
- ToggledLabel.Name = "ToggledLabel"
- ToggledLabel.Parent = Switch
- ToggledLabel.AnchorPoint = Vector2.new(0.5, 0.5)
- ToggledLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- ToggledLabel.BackgroundTransparency = 1.000
- ToggledLabel.Position = UDim2.new(-0.518527985, 0, 0.5, 0)
- ToggledLabel.Size = UDim2.new(0, 40, 0, 15)
- ToggledLabel.Font = Enum.Font.SourceSans
- ToggledLabel.Text = "Off"
- ToggledLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
- ToggledLabel.TextScaled = true
- ToggledLabel.TextSize = 14.000
- ToggledLabel.TextWrapped = true
- uisToTween = {[1] = SwitchButton, [2] = Switch, [3] = UIStroke}
- --[[ Functions ]]--
- SwitchClickable.MouseButton1Click:Connect(function()
- toggled = not toggled
- local text = (toggled == true) and "On" or "Off"
- for i, ui in pairs(uisToTween) do
- local properties = {[1] = (toggled == true) and {BackgroundColor3 = Color3.fromRGB(30, 30, 40), Position = UDim2.new(0.8, 0, 0.5, 0)} or {BackgroundColor3 = Color3.fromRGB(255, 255, 255), Position = UDim2.new(0.2, 0, 0.5, 0)}, [2] = (toggled == true) and {BackgroundColor3 = Color3.fromRGB(0, 175, 255)} or {BackgroundColor3 = Color3.fromRGB(30, 30, 40)}, [3] = (toggled == true) and {Color = Color3.fromRGB(0, 175, 255)} or {Color = Color3.fromRGB(255, 255, 255)}}
- local info = TweenInfo.new(0.15, Enum.EasingStyle.Sine, Enum.EasingDirection.InOut)
- local tween = tweenService:Create(ui, info, properties[i])
- tween:Play()
- end
- ToggledLabel.Text = text
- args.Callback(toggled)
- end)
- end
- function fMod:AddToggle(args: toggle)
- --[[ Set Default Values ]]--
- args.Text = (args.Text == nil) and "Toggle" or args.Text
- args.Callback = (type(args.Callback) ~= "function") and function()
- return
- end or args.Callback
- --[[ Variables ]]--
- local toggled = false
- local uisToTween = {}
- --[[ Gui ]]--
- local Toggle = Instance.new("Frame")
- local UICorner = Instance.new("UICorner")
- local ToggleButton = Instance.new("Frame")
- local UICorner_2 = Instance.new("UICorner")
- local ToggleClickable = Instance.new("TextButton")
- local ToggleLabel = Instance.new("TextLabel")
- local UIStroke = Instance.new("UIStroke")
- local Container = CreateContainer(Section, args.Text)
- Toggle.Name = "Toggle"
- Toggle.Parent = Container
- Toggle.AnchorPoint = Vector2.new(0.5, 0)
- Toggle.BackgroundColor3 = Color3.fromRGB(30, 30, 40)
- Toggle.BorderSizePixel = 0
- Toggle.Position = UDim2.new(0.932365716, 0, 0.200000003, 0)
- Toggle.Size = UDim2.new(0, 20, 0, 20)
- UIStroke.Color = Color3.fromRGB(200, 200, 200)
- UIStroke.Parent = Toggle
- UICorner.CornerRadius = UDim.new(1, 0)
- UICorner.Parent = Toggle
- ToggleButton.Name = "ToggleButton"
- ToggleButton.Parent = Toggle
- ToggleButton.AnchorPoint = Vector2.new(0.5, 0.5)
- ToggleButton.BackgroundColor3 = Color3.fromRGB(30, 30, 40)
- ToggleButton.Position = UDim2.new(0.5, 0, 0.5, 0)
- ToggleButton.Size = UDim2.new(0, 0, 0, 0)
- UICorner_2.CornerRadius = UDim.new(1, 0)
- UICorner_2.Parent = ToggleButton
- ToggleClickable.Name = "ToggleClickable"
- ToggleClickable.Parent = Toggle
- ToggleClickable.AnchorPoint = Vector2.new(0.5, 0.5)
- ToggleClickable.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- ToggleClickable.BackgroundTransparency = 1.000
- ToggleClickable.Position = UDim2.new(0.5, 0, 0.5, 0)
- ToggleClickable.Size = UDim2.new(1, 0, 1, 0)
- ToggleClickable.Font = Enum.Font.SourceSans
- ToggleClickable.Text = ""
- ToggleClickable.TextColor3 = Color3.fromRGB(0, 0, 0)
- ToggleClickable.TextSize = 14.000
- ToggleLabel.Name = "ToggleLabel"
- ToggleLabel.Parent = Toggle
- ToggleLabel.AnchorPoint = Vector2.new(0.5, 0.5)
- ToggleLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- ToggleLabel.BackgroundTransparency = 1.000
- ToggleLabel.Position = UDim2.new(-1.46852803, 0, 0.5, 0)
- ToggleLabel.Size = UDim2.new(0, 40, 0, 15)
- ToggleLabel.Font = Enum.Font.SourceSans
- ToggleLabel.Text = "Off"
- ToggleLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
- ToggleLabel.TextScaled = true
- ToggleLabel.TextSize = 14.000
- ToggleLabel.TextWrapped = true
- uisToTween = {[1] = ToggleButton, [2] = Toggle, [3] = UIStroke}
- --[[ Functions ]]--
- ToggleClickable.MouseButton1Click:Connect(function()
- toggled = not toggled
- local text = (toggled == true) and "On" or "Off"
- for i, ui in pairs(uisToTween) do
- local properties = {[1] = (toggled == true) and {Size = UDim2.new(0, 12, 0, 12)} or {Size = UDim2.new(0, 0, 0, 0)}, [2] = (toggled == true) and {BackgroundColor3 = Color3.fromRGB(0, 175, 255)} or {BackgroundColor3 = Color3.fromRGB(30, 30, 40)}, [3] = (toggled == true) and {Color = Color3.fromRGB(0, 175, 255)} or {Color = Color3.fromRGB(255, 255, 255)}}
- local info = TweenInfo.new(0.15, Enum.EasingStyle.Sine, Enum.EasingDirection.InOut)
- local tween = tweenService:Create(ui, info, properties[i])
- tween:Play()
- end
- args.Callback(toggled)
- ToggleLabel.Text = text
- end)
- end
- function fMod:AddDropdown(args: dropdown)
- --[[ Set Default Values ]]--
- args.Text = (args.Text == nil) and "Toggle" or args.Text
- args.Items = (type(args) ~= "table") and {} or args.Items
- args.Callback = (type(args.Callback) ~= "function") and function()
- return
- end or args.Callback
- --[[ Variables ]]--
- local toggled = true
- --[[ Gui ]]--
- local Dropdown = Instance.new("Frame")
- local UICorner = Instance.new("UICorner")
- local DropdownSearch = Instance.new("TextBox")
- local DropdownIcon = Instance.new("ImageButton")
- local ScrollFix = Instance.new("Frame")
- local Items = Instance.new("ScrollingFrame")
- local UIListLayout = Instance.new("UIListLayout")
- local DropdownOffset = Instance.new("Frame")
- local Container = CreateContainer(Section, args.Text)
- Dropdown.Name = "Dropdown"
- Dropdown.Parent = Container
- Dropdown.AnchorPoint = Vector2.new(0.5, 0)
- Dropdown.BackgroundColor3 = Color3.fromRGB(50, 50, 60)
- Dropdown.BorderSizePixel = 0
- Dropdown.Position = UDim2.new(0.782, 0, 0.2, 0)
- Dropdown.Size = UDim2.new(0, 135, 0, 20)
- UICorner.CornerRadius = UDim.new(0, 4)
- UICorner.Parent = Dropdown
- DropdownSearch.Name = "SelectedLabel"
- DropdownSearch.Parent = Dropdown
- DropdownSearch.AnchorPoint = Vector2.new(0.5, 0.5)
- DropdownSearch.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- DropdownSearch.BackgroundTransparency = 1.000
- DropdownSearch.Position = UDim2.new(0.449999988, 0, 0.5, 0)
- DropdownSearch.ClearTextOnFocus = false
- DropdownSearch.Size = UDim2.new(0.75, 0, 0, 20)
- DropdownSearch.Font = Enum.Font.SourceSansSemibold
- DropdownSearch.Text = " "
- DropdownSearch.TextColor3 = Color3.fromRGB(255, 255, 255)
- DropdownSearch.TextSize = 14.000
- DropdownSearch.TextXAlignment = Enum.TextXAlignment.Left
- DropdownIcon.Name = "SectionDropdown"
- DropdownIcon.Parent = Dropdown
- DropdownIcon.AnchorPoint = Vector2.new(0.5, 0.5)
- DropdownIcon.BackgroundTransparency = 1.000
- DropdownIcon.BorderSizePixel = 0
- DropdownIcon.Rotation = -90
- DropdownIcon.Position = UDim2.new(0.920000017, 0, 0.5, 0)
- DropdownIcon.Size = UDim2.new(0, 18, 0, 18)
- DropdownIcon.Image = "http://www.roblox.com/asset/?id=6034818365"
- ScrollFix.Name = "ScrollFix"
- ScrollFix.Parent = Dropdown
- ScrollFix.AnchorPoint = Vector2.new(0.5, 0.5)
- ScrollFix.BackgroundTransparency = 1.000
- ScrollFix.Position = UDim2.new(0.5, 0, 2.55, 0)
- ScrollFix.Size = UDim2.new(0, 135, 0, 65)
- Items.Name = "Items"
- Items.Parent = ScrollFix
- Items.Active = true
- Items.AnchorPoint = Vector2.new(0.5, 0.5)
- Items.BackgroundColor3 = Color3.fromRGB(50, 50, 60)
- Items.BorderSizePixel = 0
- Items.Position = UDim2.new(0.5, 0, 0.5, 0)
- Items.Size = UDim2.new(0, 135, 0, 65)
- Items.ScrollBarThickness = 6
- Items.AutomaticCanvasSize = Enum.AutomaticSize.Y
- UIListLayout.Parent = Items
- UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
- DropdownOffset.Name = "DropdownOffset"
- DropdownOffset.Parent = Container
- DropdownOffset.BackgroundTransparency = 1.000
- DropdownOffset.Position = UDim2.new(0.514999986, 0, 2.4000001, 0)
- DropdownOffset.Size = UDim2.new(0, 0, 0, 15)
- --[[ Functions ]]--
- local function toggleDropdown(toggled: boolean)
- dropdown(DropdownIcon, toggled, -90, 0, function(v)
- ScrollFix.Parent = (v == true) and Dropdown or nil
- DropdownOffset.Parent = (v == true) and Container or nil
- end)
- end
- toggleDropdown(false)
- DropdownIcon.MouseButton1Click:Connect(function() toggled = not toggled toggleDropdown(toggled) end)
- DropdownSearch.FocusLost:Connect(function() search(Items, DropdownSearch.Text) end)
- for _, item in pairs(args.Items) do
- local itemName = (typeof(item) == "Instance") and item.Name or item
- local Item = Instance.new("TextButton")
- local ButtonLabel = Instance.new("TextLabel")
- Item.Name = itemName
- Item.Parent = Items
- Item.AnchorPoint = Vector2.new(0.5, 0.5)
- Item.BackgroundColor3 = Color3.fromRGB(50, 50, 60)
- Item.BorderSizePixel = 0
- Item.Position = UDim2.new(0.458916098, 0, 0.192307696, 0)
- Item.Size = UDim2.new(0, 128, 0, 25)
- Item.AutoButtonColor = false
- Item.Font = Enum.Font.SourceSans
- Item.Text = ""
- Item.TextColor3 = Color3.fromRGB(0, 0, 0)
- Item.TextSize = 14.000
- ButtonLabel.Name = "ButtonLabel"
- ButtonLabel.Parent = Item
- 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 = itemName
- ButtonLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
- ButtonLabel.TextScaled = true
- ButtonLabel.TextSize = 14.000
- ButtonLabel.TextWrapped = true
- Item.MouseButton1Click:Connect(function() toggled = false toggleDropdown(toggled) DropdownSearch.Text = itemName args.Callback(itemName) end)
- end
- end
- function fMod:AddVector3Input(args: vector3)
- --[[ Set Default Values ]]--
- args.Text = (args.Text == nil) and "Vector3" or args.Text
- args.Callback = (type(args.Callback) ~= "function") and function()
- return
- end or args.Callback
- --[[ Variables ]]--
- local inputs
- --[[ Gui ]]--
- local YInput = Instance.new("TextBox")
- local UICorner = Instance.new("UICorner")
- local ZInput = Instance.new("TextBox")
- local UICorner_2 = Instance.new("UICorner")
- local XInput = Instance.new("TextBox")
- local UICorner_3 = Instance.new("UICorner")
- local Container = CreateContainer(Section, args.Text)
- YInput.Name = "YInput"
- YInput.Parent = Container
- YInput.AnchorPoint = Vector2.new(0.5, 0.5)
- YInput.BackgroundColor3 = Color3.fromRGB(50, 50, 60)
- YInput.ClipsDescendants = true
- YInput.Position = UDim2.new(0.856512547, 0, 0.5, 0)
- YInput.Size = UDim2.new(0, 25, 0, 25)
- YInput.ClearTextOnFocus = false
- YInput.Font = Enum.Font.SourceSansLight
- YInput.PlaceholderText = "Y"
- YInput.Text = ""
- YInput.TextColor3 = Color3.fromRGB(255, 255, 255)
- YInput.TextSize = 14.000
- YInput.TextWrapped = true
- UICorner.Parent = YInput
- ZInput.Name = "ZInput"
- ZInput.Parent = Container
- ZInput.AnchorPoint = Vector2.new(0.5, 0.5)
- ZInput.BackgroundColor3 = Color3.fromRGB(50, 50, 60)
- ZInput.ClipsDescendants = true
- ZInput.Position = UDim2.new(0.931999981, 0, 0.5, 0)
- ZInput.Size = UDim2.new(0, 25, 0, 25)
- ZInput.ClearTextOnFocus = false
- ZInput.Font = Enum.Font.SourceSansLight
- ZInput.PlaceholderText = "Z"
- ZInput.Text = ""
- ZInput.TextColor3 = Color3.fromRGB(255, 255, 255)
- ZInput.TextSize = 14.000
- ZInput.TextWrapped = true
- UICorner_2.Parent = ZInput
- XInput.Name = "XInput"
- XInput.Parent = Container
- XInput.AnchorPoint = Vector2.new(0.5, 0.5)
- XInput.BackgroundColor3 = Color3.fromRGB(50, 50, 60)
- XInput.ClipsDescendants = true
- XInput.Position = UDim2.new(0.778422117, 0, 0.5, 0)
- XInput.Size = UDim2.new(0, 25, 0, 25)
- XInput.ClearTextOnFocus = false
- XInput.Font = Enum.Font.SourceSansLight
- XInput.PlaceholderText = "X"
- XInput.Text = ""
- XInput.TextColor3 = Color3.fromRGB(255, 255, 255)
- XInput.TextSize = 14.000
- XInput.TextWrapped = true
- UICorner_3.Parent = XInput
- inputs = {[1] = XInput, [2] = YInput, [3] = ZInput}
- --[[ Functions ]]--
- for _, input in pairs(inputs) do
- input.FocusLost:Connect(function()
- args.Callback(Vector3.new(inputs[1].Text, inputs[2].Text, inputs[3].Text))
- end)
- end
- end
- function fMod:AddVector2Input(args: vector2)
- --[[ Set Default Values ]]--
- args.Text = (args.Text == nil) and "Vector2" or args.Text
- args.Callback = (type(args.Callback) ~= "function") and function()
- return
- end or args.Callback
- --[[ Variables ]]--
- local inputs
- --[[ Gui ]]--
- local XInput = Instance.new("TextBox")
- local UICorner = Instance.new("UICorner")
- local YInput = Instance.new("TextBox")
- local UICorner_2 = Instance.new("UICorner")
- local Container = CreateContainer(Section, args.Text)
- XInput.Name = "XInput"
- XInput.Parent = Container
- XInput.AnchorPoint = Vector2.new(0.5, 0.5)
- XInput.BackgroundColor3 = Color3.fromRGB(50, 50, 60)
- XInput.ClipsDescendants = true
- XInput.Position = UDim2.new(0.856512547, 0, 0.5, 0)
- XInput.Size = UDim2.new(0, 25, 0, 25)
- XInput.ClearTextOnFocus = false
- XInput.Font = Enum.Font.SourceSansLight
- XInput.PlaceholderText = "X"
- XInput.Text = ""
- XInput.TextColor3 = Color3.fromRGB(255, 255, 255)
- XInput.TextSize = 14.000
- XInput.TextWrapped = true
- UICorner.Parent = XInput
- YInput.Name = "YInput"
- YInput.Parent = Container
- YInput.AnchorPoint = Vector2.new(0.5, 0.5)
- YInput.BackgroundColor3 = Color3.fromRGB(50, 50, 60)
- YInput.ClipsDescendants = true
- YInput.Position = UDim2.new(0.931999981, 0, 0.5, 0)
- YInput.Size = UDim2.new(0, 25, 0, 25)
- YInput.ClearTextOnFocus = false
- YInput.Font = Enum.Font.SourceSansLight
- YInput.PlaceholderText = "Y"
- YInput.Text = ""
- YInput.TextColor3 = Color3.fromRGB(255, 255, 255)
- YInput.TextSize = 14.000
- YInput.TextWrapped = true
- UICorner_2.Parent = YInput
- inputs = {[1] = XInput, [2] = YInput}
- --[[ Functions ]]--
- for _, input in pairs(inputs) do
- input.FocusLost:Connect(function()
- args.Callback(Vector2.new(inputs[1].Text, inputs[2].Text))
- end)
- end
- end
- return fMod
- end
- return sMod
- end
- return tMod
- end
- return library
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement