Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local library = {}
- function library:CREDITS()
- return "UI design by: ImposterSussy111\nScripting by: ImposterSussy111"
- end
- function library:VERSION()
- return "Version 1.0.0"
- end
- function library:AddWindow(title)
- title = (type(title) ~= "string") and "Title" or title
- local runService = game:GetService("RunService")
- local tweenService = game:GetService("TweenService")
- local userInputService = game:GetService("UserInputService")
- local marketPlaceService = game:GetService("MarketplaceService")
- local players = game:GetService("Players")
- local gameId = game.PlaceId
- local player = players.LocalPlayer
- local mouse = player:GetMouse()
- local name, profilePicture = player.Name, players:GetUserThumbnailAsync(player.UserId, Enum.ThumbnailType.HeadShot, Enum.ThumbnailSize.Size420x420)
- local gameName = (not runService:IsStudio()) and marketPlaceService:GetProductInfo(gameId).Name or "Game: Studio"
- local pages = 0
- -- Gui
- local ScreenGui = Instance.new("ScreenGui")
- local Menu = Instance.new("Frame")
- local Background = Instance.new("Frame")
- local Tabs = Instance.new("ScrollingFrame")
- local UIListLayout = Instance.new("UIListLayout")
- local Frames = Instance.new("Frame")
- local PlayerInfo = Instance.new("Frame")
- local Profile = Instance.new("ImageLabel")
- local UICorner_5 = Instance.new("UICorner")
- local Name = Instance.new("TextLabel")
- local GameName = Instance.new("TextLabel")
- local Seperator_2 = Instance.new("Frame")
- local Dropshadow = Instance.new("Frame")
- local UIGradient = Instance.new("UIGradient")
- local Pattern = Instance.new("ImageLabel")
- local Exit = Instance.new("ImageButton")
- local Maximize = Instance.new("ImageButton")
- local Minimize = Instance.new("ImageButton")
- local Title = Instance.new("TextLabel")
- local UIPageLayout = Instance.new("UIPageLayout")
- local UIScale = Instance.new("UIScale")
- local UIGradient_2 = Instance.new("UIGradient")
- local UIScale_2 = Instance.new("UIScale")
- ScreenGui.Name = "NewLibrary"
- ScreenGui.Parent = player.PlayerGui
- ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
- ScreenGui.ResetOnSpawn = false
- Menu.Name = "Menu"
- Menu.Parent = ScreenGui
- Menu.AnchorPoint = Vector2.new(0.5, 0.5)
- Menu.BackgroundColor3 = Color3.fromRGB(15, 15, 15)
- Menu.BorderSizePixel = 0
- Menu.Position = UDim2.new(0.521222174, 0, 0.295204312, 0)
- Menu.Size = UDim2.new(0, 488, 0, 15)
- UIScale.Parent = Menu
- UIScale.Scale = 1.05
- Background.Name = "Background"
- Background.Parent = Menu
- Background.AnchorPoint = Vector2.new(0.5, 0.5)
- Background.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
- Background.BorderSizePixel = 0
- Background.Position = UDim2.new(0.5, 0, 10, 0)
- Background.Size = UDim2.new(0, 488, 0, 270)
- Background.ClipsDescendants = true
- UIScale_2.Parent = Background
- Tabs.Name = "Tabs"
- Tabs.AnchorPoint = Vector2.new(0.5, 0.5)
- Tabs.Parent = Background
- Tabs.Active = true
- Tabs.BackgroundColor3 = Color3.fromRGB(15, 15, 15)
- Tabs.BorderSizePixel = 0
- Tabs.Position = UDim2.new(0.154, 0, 0.57, 0)
- Tabs.Size = UDim2.new(0, 150, 0, 230)
- Tabs.ScrollBarThickness = 8
- Tabs.AutomaticCanvasSize = Enum.AutomaticSize.Y
- Tabs.ScrollBarImageColor3 = Color3.fromRGB(0, 0, 0)
- UIListLayout.Parent = Tabs
- UIListLayout.Padding = UDim.new(0, 0)
- Frames.Name = "Frames"
- Frames.Parent = Background
- Frames.AnchorPoint = Vector2.new(0.5, 0.5)
- Frames.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Frames.BackgroundTransparency = 1.000
- Frames.Position = UDim2.new(0.65368849, 0, 0.5, 0)
- Frames.Size = UDim2.new(0, 337, 0, 270)
- Frames.ClipsDescendants = true
- UIPageLayout.Parent = Frames
- UIPageLayout.EasingStyle = Enum.EasingStyle.Back
- PlayerInfo.Name = "PlayerInfo"
- PlayerInfo.Parent = Background
- PlayerInfo.AnchorPoint = Vector2.new(0.5, 0.5)
- PlayerInfo.BackgroundColor3 = Color3.fromRGB(15, 15, 15)
- PlayerInfo.BorderSizePixel = 0
- PlayerInfo.Position = UDim2.new(0.154, 0, 0.07, 0)
- PlayerInfo.Size = UDim2.new(0, 150, 0, 40)
- Profile.Name = "Profile"
- Profile.Parent = PlayerInfo
- Profile.AnchorPoint = Vector2.new(0.5, 0.5)
- Profile.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Profile.BackgroundTransparency = 0
- Profile.Position = UDim2.new(0.142, 0, 0.5, 0)
- Profile.Size = UDim2.new(0, 28, 0, 28)
- Profile.Image = profilePicture
- Profile.BorderSizePixel = 0
- UICorner_5.CornerRadius = UDim.new(1, 0)
- UICorner_5.Parent = Profile
- Name.Name = "Name"
- Name.AnchorPoint = Vector2.new(0.5, 0.5)
- Name.Parent = PlayerInfo
- Name.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Name.BackgroundTransparency = 1.000
- Name.Position = UDim2.new(0.624, 0, 0.232, 0)
- Name.Size = UDim2.new(0, 95, 0, 25)
- Name.Font = Enum.Font.SourceSansBold
- 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
- GameName.Name = "GameName"
- GameName.Parent = PlayerInfo
- GameName.AnchorPoint = Vector2.new(0.5, 0.5)
- GameName.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- GameName.BackgroundTransparency = 1.000
- GameName.Position = UDim2.new(0.624, 0, 0.727, 0)
- GameName.Size = UDim2.new(0, 95, 0, 25)
- GameName.Font = Enum.Font.SourceSansLight
- GameName.Text = gameName
- GameName.TextColor3 = Color3.fromRGB(255, 255, 255)
- GameName.TextScaled = true
- GameName.TextSize = 14.000
- GameName.TextWrapped = true
- GameName.TextXAlignment = Enum.TextXAlignment.Left
- Seperator_2.Name = "Seperator"
- Seperator_2.Parent = PlayerInfo
- Seperator_2.AnchorPoint = Vector2.new(0.5, 0.5)
- Seperator_2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Seperator_2.BackgroundTransparency = 0.750
- Seperator_2.BorderSizePixel = 0
- Seperator_2.Position = UDim2.new(0.624, 0, 0.5, 0)
- Seperator_2.Size = UDim2.new(0, 95, 0, 1)
- UIGradient_2.Transparency = NumberSequence.new{NumberSequenceKeypoint.new(0.00, 1.00), NumberSequenceKeypoint.new(0.29, 0.10), NumberSequenceKeypoint.new(0.50, 0.00), NumberSequenceKeypoint.new(0.70, 0.09), NumberSequenceKeypoint.new(1.00, 1.00)}
- UIGradient_2.Parent = Seperator_2
- Dropshadow.Name = "Dropshadow"
- Dropshadow.Parent = Background
- Dropshadow.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Dropshadow.BackgroundTransparency = 0.500
- Dropshadow.BorderSizePixel = 0
- Dropshadow.Position = UDim2.new(0.30737704, 0, 0, 0)
- Dropshadow.Size = UDim2.new(0, 14, 0, 269)
- Dropshadow.ZIndex = 0
- UIGradient.Color = ColorSequence.new{ColorSequenceKeypoint.new(0.00, Color3.fromRGB(13, 13, 13)), ColorSequenceKeypoint.new(1.00, Color3.fromRGB(13, 13, 13))}
- UIGradient.Transparency = NumberSequence.new{NumberSequenceKeypoint.new(0.00, 0.00), NumberSequenceKeypoint.new(1.00, 1.00)}
- UIGradient.Parent = Dropshadow
- Pattern.Name = "Pattern"
- Pattern.Parent = Background
- Pattern.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Pattern.BackgroundTransparency = 1.000
- Pattern.Position = UDim2.new(-0.00199896097, 0, -0.057706058, 0)
- Pattern.Size = UDim2.new(0, 488, 0, 286)
- Pattern.Visible = false
- Pattern.ZIndex = -1
- Pattern.Image = "rbxassetid://2151741365"
- Pattern.ScaleType = Enum.ScaleType.Tile
- Pattern.SliceCenter = Rect.new(0, 256, 0, 256)
- Pattern.TileSize = UDim2.new(0, 30, 0, 60)
- Exit.Name = "Exit"
- Exit.Parent = Menu
- Exit.AnchorPoint = Vector2.new(0.5, 0.5)
- Exit.BackgroundTransparency = 1.000
- Exit.Position = UDim2.new(0.982222199, 0, 0.5, 0)
- Exit.Size = UDim2.new(0, 13, 0, 13)
- Exit.ImageColor3 = Color3.fromRGB(200, 200, 200)
- 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.931111097, 0, 0.5, 0)
- Maximize.Size = UDim2.new(0, 13, 0, 13)
- Maximize.Image = "rbxassetid://7072718726"
- Maximize.ImageColor3 = Color3.fromRGB(200, 200, 200)
- Minimize.Name = "Minimize"
- Minimize.Parent = Menu
- Minimize.AnchorPoint = Vector2.new(0.5, 0.5)
- Minimize.BackgroundTransparency = 1.000
- Minimize.Position = UDim2.new(0.879888833, 0, 0.5, 0)
- Minimize.Size = UDim2.new(0, 13, 0, 13)
- Minimize.Image = "rbxassetid://7072719185"
- Minimize.ImageColor3 = Color3.fromRGB(200, 200, 200)
- Title.Name = "Title"
- Title.Parent = Menu
- Title.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Title.BackgroundTransparency = 1.000
- Title.Size = UDim2.new(0, 420, 0, 15)
- 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.Selectable = true
- Title.ZIndex = 0
- local function setDraggable()
- Menu.Active = true
- Menu.Draggable = true
- end
- local function onExit()
- local properties = {
- Scale = 0
- }
- local info = TweenInfo.new(.5, Enum.EasingStyle.Back, Enum.EasingDirection.InOut, 0, false)
- local tween = tweenService:Create(UIScale, info, properties)
- tween:Play()
- tween.Completed:Wait()
- ScreenGui:Destroy()
- end
- local function onMaximize()
- local properties = {
- Scale = 1
- }
- local info = TweenInfo.new(.5, Enum.EasingStyle.Back, Enum.EasingDirection.InOut, 0, false)
- local tween = tweenService:Create(UIScale_2, info, properties)
- tween:Play()
- end
- local function onMinimize()
- local properties = {
- Scale = 0
- }
- local info = TweenInfo.new(.5, Enum.EasingStyle.Back, Enum.EasingDirection.InOut, 0, false)
- local tween = tweenService:Create(UIScale_2, info, properties)
- tween:Play()
- end
- local function onEnterHighlight(ui)
- ui.ImageColor3 = Color3.fromRGB(255, 255, 255)
- end
- local function onLeaveHighlight(ui)
- ui.ImageColor3 = Color3.fromRGB(200, 200, 200)
- end
- local function buttonClickEffect(parent)
- parent.ClipsDescendants = true
- local mouseLocation = userInputService:GetMouseLocation()
- local absolutePosition = parent.AbsolutePosition
- local effectXPosition = UDim2.new(0, mouseLocation.X-absolutePosition.X, 0, (mouseLocation.Y-absolutePosition.Y)-36)
- local ButtonEffect = Instance.new("ImageLabel")
- ButtonEffect.Name = "ButtonEffect"
- ButtonEffect.Parent = parent
- ButtonEffect.AnchorPoint = Vector2.new(0.5, 0.5)
- ButtonEffect.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- ButtonEffect.BackgroundTransparency = 1.000
- ButtonEffect.BorderSizePixel = 0
- ButtonEffect.Position = UDim2.new(0, 0, 0, 0)
- ButtonEffect.Size = UDim2.new(0, 25, 0, 25)
- ButtonEffect.Image = "rbxassetid://7658630902"
- ButtonEffect.ImageTransparency = 0.500
- ButtonEffect.Position = effectXPosition
- ButtonEffect:TweenSize(UDim2.new(0, 200, 0, 200))
- spawn(function()
- for i = 0.5, 1.05, 0.05 do
- ButtonEffect.ImageTransparency = i
- if i >= 1 then
- ButtonEffect:Destroy()
- end
- wait()
- end
- end)
- end
- local library2 = {}
- function library2:Prompt(args)
- if player.PlayerGui:FindFirstChild("LIB_Prompt") then
- return
- end
- local title, text, duration = "Title", "Text.", 3
- title = (args.Title == nil) and title or args.Title
- text = (args.Text == nil) and text or args.Text
- duration = (args.Duration == nil) and duration or args.Duration
- local Prompt = Instance.new("ScreenGui")
- local BlackBackground = Instance.new("Frame")
- local Menu = Instance.new("Frame")
- local Title = Instance.new("TextLabel")
- local Background = Instance.new("Frame")
- local Description = Instance.new("TextLabel")
- local OkayButton = Instance.new("TextButton")
- local UICorner = Instance.new("UICorner")
- local Frame = Instance.new("Frame")
- local UICorner_2 = Instance.new("UICorner")
- local UIStroke = Instance.new("UIStroke")
- Prompt.Name = "LIB_Prompt"
- Prompt.Parent = player.PlayerGui
- Prompt.Enabled = true
- Prompt.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
- BlackBackground.Name = "BlackBackground"
- BlackBackground.Parent = Prompt
- BlackBackground.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
- BlackBackground.BackgroundTransparency = 0.500
- BlackBackground.BorderSizePixel = 0
- BlackBackground.Size = UDim2.new(10, 0, 10, 0)
- BlackBackground.ZIndex = -999999999
- Menu.Name = "Menu"
- Menu.Parent = Prompt
- Menu.AnchorPoint = Vector2.new(0.5, 0.5)
- Menu.BackgroundColor3 = Color3.fromRGB(10, 10, 10)
- Menu.BorderSizePixel = 0
- Menu.Position = UDim2.new(0.5, 0, 2, 0)
- Menu.Size = UDim2.new(0, 350, 0, 15)
- Title.Name = "Title"
- Title.Parent = Menu
- Title.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Title.BackgroundTransparency = 1.000
- Title.Position = UDim2.new(0.00303951371, 0, 0, 0)
- Title.Size = UDim2.new(0, 350, 0, 15)
- 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
- Background.Name = "Background"
- Background.Parent = Menu
- Background.AnchorPoint = Vector2.new(0.5, 0.5)
- Background.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
- Background.BorderSizePixel = 0
- Background.ClipsDescendants = true
- Background.Position = UDim2.new(0.500805378, 0, 8.26666641, 0)
- Background.Size = UDim2.new(0, 350, 0, 218)
- Description.Name = "Description"
- Description.Parent = Background
- Description.AnchorPoint = Vector2.new(0.5, 0.5)
- Description.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Description.BackgroundTransparency = 1.000
- Description.ClipsDescendants = true
- Description.Position = UDim2.new(0.5, 0, 0.389999986, 0)
- Description.Size = UDim2.new(0, 324, 0, 151)
- Description.Font = Enum.Font.SourceSansLight
- Description.Text = text
- Description.TextColor3 = Color3.fromRGB(255, 255, 255)
- Description.TextSize = 14.000
- Description.TextWrapped = true
- Description.TextYAlignment = Enum.TextYAlignment.Top
- OkayButton.Name = "OkayButton"
- OkayButton.Parent = Background
- OkayButton.AnchorPoint = Vector2.new(0.5, 0.5)
- OkayButton.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
- OkayButton.Position = UDim2.new(0.5, 0, 0.819000006, 0)
- OkayButton.Size = UDim2.new(0, 200, 0, 35)
- OkayButton.Font = Enum.Font.SourceSansLight
- OkayButton.Text = "Okay"
- OkayButton.TextColor3 = Color3.fromRGB(255, 255, 255)
- OkayButton.TextSize = 20.000
- OkayButton.TextWrapped = true
- OkayButton.AutoButtonColor = false
- UICorner.Parent = OkayButton
- Frame.Parent = OkayButton
- Frame.AnchorPoint = Vector2.new(0.5, 0.5)
- Frame.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Frame.BackgroundTransparency = 1.000
- Frame.Position = UDim2.new(0.509506047, 0, 0.461233079, 0)
- Frame.Size = UDim2.new(0, 200, 0, 35)
- UICorner_2.Parent = Frame
- UIStroke.Parent = Frame
- UIStroke.Color = Color3.fromRGB(200, 200, 200)
- task.spawn(function()
- task.wait(duration)
- Menu:TweenPosition(UDim2.new(0.5, 0, 2, 0), Enum.EasingDirection.In, Enum.EasingStyle.Sine, 1, false, function()
- Prompt:Destroy()
- end)
- end)
- Menu:TweenPosition(UDim2.new(0.5, 0, 0.35, 0))
- OkayButton.MouseButton1Click:Connect(function()
- buttonClickEffect(Frame)
- Menu:TweenPosition(UDim2.new(0.5, 0, 2, 0), Enum.EasingDirection.In, Enum.EasingStyle.Sine, 1, false, function()
- Prompt:Destroy()
- end)
- end)
- end
- local function createContainer(parent, text, description)
- local Container = Instance.new("Frame")
- local Label = Instance.new("TextLabel")
- local Info = Instance.new("ImageLabel")
- local InfoMain = Instance.new("TextButton")
- Container.Name = "Container"
- Container.Parent = parent
- Container.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Container.BackgroundTransparency = 1.000
- Container.Size = UDim2.new(0, 296, 0, 50)
- Container.AutomaticSize = Enum.AutomaticSize.Y
- Label.Name = "Label"
- Label.Parent = Container
- Label.AnchorPoint = Vector2.new(0.5, 0.5)
- Label.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Label.BackgroundTransparency = 1.000
- Label.Position = UDim2.new(0.305000007, 0, 0.5, 0)
- Label.Size = UDim2.new(0, 110, 0, 25)
- Label.Font = Enum.Font.SourceSansBold
- Label.Text = text
- Label.TextColor3 = Color3.fromRGB(255, 255, 255)
- Label.TextScaled = true
- Label.TextSize = 25.000
- Label.TextWrapped = true
- Label.TextXAlignment = Enum.TextXAlignment.Left
- Info.Name = "Info"
- Info.Parent = Container
- Info.AnchorPoint = Vector2.new(0.5, 0.5)
- Info.BackgroundTransparency = 1.000
- Info.Position = UDim2.new(0.0599999987, 0, 0.5, 0)
- Info.Size = UDim2.new(0, 20, 0, 20)
- Info.Image = "rbxassetid://7072717857"
- Info.ImageColor3 = Color3.fromRGB(200, 200, 200)
- InfoMain.Name = "InfoMain"
- InfoMain.Parent = Info
- InfoMain.AnchorPoint = Vector2.new(0.5, 0.5)
- InfoMain.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- InfoMain.BackgroundTransparency = 1.000
- InfoMain.Position = UDim2.new(0.5, 0, 0.5, 0)
- InfoMain.Size = UDim2.new(0, 15, 0, 15)
- InfoMain.AutoButtonColor = false
- InfoMain.Font = Enum.Font.SourceSans
- InfoMain.Text = ""
- InfoMain.TextColor3 = Color3.fromRGB(0, 0, 0)
- InfoMain.TextSize = 14.000
- Info.MouseEnter:Connect(function()
- onEnterHighlight(Info)
- end)
- Info.MouseLeave:Connect(function()
- onLeaveHighlight(Info)
- end)
- InfoMain.MouseButton1Click:Connect(function()
- library2:Prompt({
- Title = text,
- Text = description,
- Duration = 8
- })
- end)
- return Container
- end
- function library2:AddTab(text, tabImage)
- tabImage = (tabImage == nil) and "rbxassetid://3926305904" or tabImage
- text = (type(text) ~= "string") and "Tab" or text
- local Tab = Instance.new("TextButton")
- local TabLabel = Instance.new("TextLabel")
- local tab = Instance.new("ImageLabel")
- local Seperator = Instance.new("Frame")
- local Page = Instance.new("ScrollingFrame")
- local UIListLayout_2 = Instance.new("UIListLayout")
- local SectionOffset = Instance.new("Frame")
- local UIGradient = Instance.new("UIGradient")
- local Highlight = Instance.new("ImageLabel")
- pages += 1
- Tab.Name = "Tab"
- Tab.Parent = Tabs
- Tab.BackgroundColor3 = Color3.fromRGB(15, 15, 15)
- Tab.BorderSizePixel = 0
- Tab.Size = UDim2.new(0, 150, 0, 40)
- Tab.Font = Enum.Font.SourceSansLight
- Tab.Text = ""
- Tab.TextColor3 = Color3.fromRGB(255, 255, 255)
- Tab.TextSize = 14.000
- Tab.TextWrapped = true
- Tab.AutoButtonColor = false
- 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.Position = UDim2.new(0.6, 0, 0.5, 0)
- TabLabel.Size = UDim2.new(0, 100, 0, 18)
- TabLabel.Font = Enum.Font.SourceSansLight
- TabLabel.Text = text
- TabLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
- TabLabel.TextSize = 14.000
- TabLabel.TextWrapped = true
- TabLabel.TextXAlignment = Enum.TextXAlignment.Left
- TabLabel.Font = Enum.Font.SourceSansSemibold
- tab.Name = "tab"
- tab.Parent = Tab
- tab.AnchorPoint = Vector2.new(0.5, 0.5)
- tab.BackgroundTransparency = 1.000
- tab.Position = UDim2.new(0.15, 0, 0.5, 0)
- tab.Size = UDim2.new(0, 18, 0, 18)
- tab.ZIndex = 2
- tab.Image = tabImage
- tab.ImageRectOffset = Vector2.new(484, 484)
- tab.ImageRectSize = Vector2.new(36, 36)
- tab.ImageColor3 = Color3.fromRGB(200, 200, 200)
- Seperator.Name = "Seperator"
- Seperator.Parent = Tab
- Seperator.AnchorPoint = Vector2.new(0.5, 0.5)
- Seperator.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Seperator.BackgroundTransparency = 1
- Seperator.BorderSizePixel = 0
- Seperator.Position = UDim2.new(0.5, 0, .99, 0)
- Seperator.Size = UDim2.new(0, 150, 0, 1)
- Seperator.ClipsDescendants = true
- Highlight.Name = "Highlight"
- Highlight.Parent = Seperator
- Highlight.AnchorPoint = Vector2.new(0.5, 0.5)
- Highlight.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Highlight.BackgroundTransparency = 1.000
- Highlight.Position = UDim2.new(0.5, 0, 0.5, 0)
- Highlight.Size = UDim2.new(0, 125, 0, 125)
- Highlight.Image = "rbxassetid://1066722231"
- Highlight.ImageTransparency = 0.750
- UIGradient.Transparency = NumberSequence.new{NumberSequenceKeypoint.new(0.00, 1.00), NumberSequenceKeypoint.new(0.29, 0.10), NumberSequenceKeypoint.new(0.50, 0.00), NumberSequenceKeypoint.new(0.70, 0.09), NumberSequenceKeypoint.new(1.00, 1.00)}
- --UIGradient.Parent = Seperator
- Page.Parent = Frames
- Page.Name = "Page"..(pages)
- Page.Active = true
- Page.AnchorPoint = Vector2.new(0.5, 0.5)
- Page.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Page.BackgroundTransparency = 1.000
- Page.BorderSizePixel = 0
- Page.Position = UDim2.new(-10.500741839, 0, 0.5, 0)
- Page.Size = UDim2.new(0, 337, 0, 270)
- Page.ScrollBarThickness = 8
- Page.CanvasSize = UDim2.new(0, 0, 0.5, 0)
- --Page.AutomaticCanvasSize = Enum.AutomaticSize.Y
- Page.ScrollBarImageColor3 = Color3.fromRGB(0, 0, 0)
- Page.ElasticBehavior = Enum.ElasticBehavior.Always
- UIListLayout_2.Parent = Page
- UIListLayout_2.HorizontalAlignment = Enum.HorizontalAlignment.Center
- UIListLayout_2.SortOrder = Enum.SortOrder.LayoutOrder
- UIListLayout_2.Padding = UDim.new(0, 25)
- SectionOffset.Name = "SectionOffset"
- SectionOffset.Parent = Page
- SectionOffset.BackgroundTransparency = 1.000
- SectionOffset.Position = UDim2.new(0, 0, 0, 0)
- runService.RenderStepped:Connect(function() -- AutomaticCanvasSize is broken aaaaaaaa
- Page.CanvasSize = UDim2.new(0, 0, 0, UIListLayout_2.AbsoluteContentSize.Y)
- end)
- mouse.Move:Connect(function()
- local mousePosition = userInputService:GetMouseLocation()
- Highlight.Position = UDim2.new(0, mousePosition.X - Seperator.AbsolutePosition.X, 0, mousePosition.Y - Seperator.AbsolutePosition.Y)
- end)
- Tab.MouseButton1Click:Connect(function()
- buttonClickEffect(Tab)
- local pageName = Page.Name
- local pageIndex = string.gsub(pageName, "%D", "")
- UIPageLayout:JumpToIndex(pageIndex-1)
- end)
- Tab.MouseEnter:Connect(function()
- onEnterHighlight(tab)
- end)
- Tab.MouseLeave:Connect(function()
- onLeaveHighlight(tab)
- end)
- local library3 = {}
- function library3:AddSection(text)
- text = (type(text) ~= "string") and "Section" or text
- local Section = Instance.new("Frame")
- local SectionLabel = Instance.new("TextLabel")
- local UIListLayout_3 = Instance.new("UIListLayout")
- local UIStroke = Instance.new("UIStroke")
- Section.Name = "Section"
- Section.Parent = Page
- Section.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Section.BackgroundTransparency = 1.000
- Section.Position = UDim2.new(0.0608308613, 0, 0.0944444463, 0)
- Section.Size = UDim2.new(0, 296, 0, 50)
- Section.AutomaticSize = Enum.AutomaticSize.Y
- UIStroke.Parent = Section
- UIStroke.Color = Color3.fromRGB(200, 200, 200)
- SectionLabel.Name = "Section"
- SectionLabel.Parent = Section
- SectionLabel.AnchorPoint = Vector2.new(0.5, 0.5)
- SectionLabel.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
- SectionLabel.BorderColor3 = Color3.fromRGB(25, 25, 25)
- SectionLabel.BorderSizePixel = 15
- SectionLabel.Position = UDim2.new(0, 0, 0, 0)
- SectionLabel.Size = UDim2.new(0, 0, 0, 0)
- SectionLabel.Font = Enum.Font.SourceSansBold
- SectionLabel.Text = text
- SectionLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
- SectionLabel.TextSize = 20
- SectionLabel.AutomaticSize = Enum.AutomaticSize.X
- UIListLayout_3.Parent = Section
- UIListLayout_3.HorizontalAlignment = Enum.HorizontalAlignment.Center
- UIListLayout_3.SortOrder = Enum.SortOrder.LayoutOrder
- local library4 = {}
- function library4:AddButton(text, description, callback)
- -- Set Variables
- text = (type(text) ~= "string") and "Button" or text
- description = (type(description) ~= "string") and "Description." or description
- callback = (type(callback) ~= "function") and function()
- print("Clicked!")
- end or callback
- -- Gui
- local Button = Instance.new("TextButton")
- local UICorner = Instance.new("UICorner")
- local UIStroke = Instance.new("UIStroke")
- local Frame = Instance.new("Frame")
- local UICorner_2 = Instance.new("UICorner")
- local Icon = Instance.new("ImageLabel")
- local Container = createContainer(Section, text, description)
- Button.Name = "Button"
- Button.Parent = Container
- Button.AnchorPoint = Vector2.new(0.5, 0.5)
- Button.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
- Button.BackgroundTransparency = 1
- Button.Position = UDim2.new(0.731304467, 0, 0.5, 0)
- Button.Size = UDim2.new(0, 144, 0, 32)
- Button.Font = Enum.Font.SourceSansLight
- Button.Text = ""
- Button.TextColor3 = Color3.fromRGB(255, 255, 255)
- Button.TextSize = 20.000
- Button.TextWrapped = true
- Button.AutoButtonColor = false
- UICorner.Parent = Button
- Frame.Parent = Button
- Frame.AnchorPoint = Vector2.new(0.5, 0.5)
- Frame.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Frame.BackgroundTransparency = 1.000
- Frame.Position = UDim2.new(0.506931901, 0, 0.5, 0)
- Frame.Size = UDim2.new(0, 144, 0, 32)
- UICorner_2.Parent = Frame
- UIStroke.Parent = Frame
- UIStroke.Color = Color3.fromRGB(200, 200, 200)
- Icon.Name = "Icon"
- Icon.Parent = Button
- Icon.AnchorPoint = Vector2.new(0.5, 0.5)
- Icon.BackgroundTransparency = 1.000
- Icon.Position = UDim2.new(0.5, 0, 0.5, 0)
- Icon.Size = UDim2.new(0, 20, 0, 20)
- Icon.Image = "rbxassetid://7072719587"
- Icon.ImageColor3 = Color3.fromRGB(200, 200, 200)
- -- Functions
- Button.MouseButton1Click:Connect(function()
- buttonClickEffect(Frame)
- callback()
- end)
- Button.MouseEnter:Connect(function()
- onEnterHighlight(Icon)
- end)
- Button.MouseLeave:Connect(function()
- onLeaveHighlight(Icon)
- end)
- end
- function library4:AddInput(text, description, callback)
- -- Set Variables
- text = (type(text) ~= "string") and "Input" or text
- description = (type(description) ~= "string") and "Description." or description
- callback = (type(callback) ~= "function") and function()
- print("Lost Focus!")
- end or callback
- -- Gui
- local Input = Instance.new("TextBox")
- local UICorner = Instance.new("UICorner")
- local UIStroke = Instance.new("UIStroke")
- local Outline = Instance.new("Frame")
- local UICorner_2 = Instance.new("UICorner")
- local Clipboard = Instance.new("ImageButton")
- local Container = createContainer(Section, text, description)
- Input.Name = "Input"
- Input.Parent = Container
- Input.AnchorPoint = Vector2.new(0.5, 0.5)
- Input.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
- Input.Position = UDim2.new(0.731000006, 0, 0.5, 0)
- Input.Size = UDim2.new(0, 144, 0, 32)
- Input.ClearTextOnFocus = false
- Input.Font = Enum.Font.SourceSansLight
- Input.PlaceholderColor3 = Color3.fromRGB(200, 200, 200)
- Input.PlaceholderText = "Input"
- Input.Text = ""
- Input.TextColor3 = Color3.fromRGB(255, 255, 255)
- Input.TextSize = 14.000
- Input.TextWrapped = true
- UICorner.Parent = Input
- 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.506931901, 0, 0.5, 0)
- Outline.Size = UDim2.new(0, 144, 0, 32)
- UICorner_2.Parent = Outline
- UIStroke.Parent = Outline
- UIStroke.Color = Color3.fromRGB(200, 200, 200)
- Clipboard.Name = "Clipboard"
- Clipboard.Parent = Input
- Clipboard.AnchorPoint = Vector2.new(0.5, 0.5)
- Clipboard.BackgroundTransparency = 1.000
- Clipboard.Position = UDim2.new(0.925000012, 0, 0.409999996, 0)
- Clipboard.Size = UDim2.new(0, 17, 0, 17)
- Clipboard.Image = "rbxassetid://7072707198"
- Clipboard.ImageColor3 = Color3.fromRGB(200, 200, 200)
- -- Functions
- Input.FocusLost:Connect(function()
- callback(Input.Text)
- end)
- Clipboard.MouseEnter:Connect(function()
- onEnterHighlight(Clipboard)
- end)
- Clipboard.MouseLeave:Connect(function()
- onLeaveHighlight(Clipboard)
- end)
- Clipboard.MouseButton1Click:Connect(function()
- if runService:IsStudio() then
- print("Copied: "..(Input.Text))
- return
- end
- setclipboard(Input.Text)
- end)
- end
- function library4:AddSlider(text, description, min, max, callback)
- -- Set Variables
- text = (type(text) ~= "string") and "Slider" or text
- description = (type(description) ~= "string") and "Description." or description
- min = (type(min) ~= "number") and 0 or min
- max = (type(max) ~= "number") and 10 or max
- callback = (type(callback) ~= "function") and function()
- print("Moved Slider!")
- end or callback
- -- Variables
- local holding = false
- local selecting = false
- -- Gui
- local Slider = Instance.new("Frame")
- local UICorner = Instance.new("UICorner")
- local UIStroke = Instance.new("UIStroke")
- local Fill = Instance.new("Frame")
- local UICorner_2 = Instance.new("UICorner")
- local ValueLabel = Instance.new("TextLabel")
- local FillButton = Instance.new("Frame")
- local UICorner_3 = Instance.new("UICorner")
- local Container = createContainer(Section, text, description)
- local TransparentFillButton = Instance.new("TextButton")
- Slider.Name = "Slider"
- Slider.Parent = Container
- Slider.AnchorPoint = Vector2.new(0.5, 0.5)
- Slider.BackgroundColor3 = Color3.fromRGB(0, 100, 255)
- Slider.BackgroundTransparency = 1.000
- Slider.Position = UDim2.new(0.735, 0, 0.5, 0)
- Slider.Size = UDim2.new(0, 140, 0, 2)
- UICorner.Parent = Slider
- UIStroke.Parent = Slider
- UIStroke.Color = Color3.fromRGB(200, 200, 200)
- Fill.Name = "Fill"
- Fill.Parent = Slider
- Fill.AnchorPoint = Vector2.new(0.5, 0.5)
- Fill.BackgroundColor3 = Color3.fromRGB(0, 100, 255)
- Fill.Position = UDim2.new(0, 0, 0.5, 0)
- Fill.Size = UDim2.new(0, 1, 0, 4)
- UICorner_2.Parent = Fill
- 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.5, 0, 8, 0)
- ValueLabel.Size = UDim2.new(0, 158, 0, 14)
- ValueLabel.Font = Enum.Font.SourceSansLight
- ValueLabel.Text = min
- ValueLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
- ValueLabel.TextSize = 14.000
- FillButton.Name = "FillButton"
- FillButton.Parent = Slider
- FillButton.AnchorPoint = Vector2.new(0.5, 0.5)
- FillButton.BackgroundColor3 = Color3.fromRGB(0, 150, 255)
- FillButton.Position = UDim2.new(0, 0, 0.5, 0)
- FillButton.Size = UDim2.new(0, 8, 0, 16)
- TransparentFillButton.Name = "TransparentFillButton"
- TransparentFillButton.Parent = Slider
- TransparentFillButton.AnchorPoint = Vector2.new(0.5, 0.5)
- TransparentFillButton.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- TransparentFillButton.BackgroundTransparency = 1.000
- TransparentFillButton.Position = UDim2.new(0.5, 0, 0.5, 0)
- TransparentFillButton.Size = UDim2.new(0, 140, 0, 16)
- TransparentFillButton.Font = Enum.Font.SourceSans
- TransparentFillButton.Text = ""
- TransparentFillButton.TextColor3 = Color3.fromRGB(0, 0, 0)
- TransparentFillButton.TextSize = 14.000
- UICorner_3.Parent = FillButton
- TransparentFillButton.MouseButton1Down:Connect(function()
- holding = true
- end)
- TransparentFillButton.MouseButton1Up:Connect(function()
- holding = false
- end)
- TransparentFillButton.MouseEnter:Connect(function()
- selecting = true
- end)
- TransparentFillButton.MouseLeave:Connect(function()
- selecting = false
- end)
- runService.RenderStepped:Connect(function()
- FillButton.BackgroundColor3 = (selecting == true) and Color3.fromRGB(255, 255, 255) or Color3.fromRGB(0, 150, 255)
- if holding then
- local mouseLocation = userInputService:GetMouseLocation()
- local xPos = (mouseLocation.X-Slider.AbsolutePosition.X)/Slider.AbsoluteSize.X
- xPos = math.clamp(xPos, 0, 1)
- local value = min + (xPos * (max-min))
- ValueLabel.Text = tostring(math.round(value))
- Fill.Size = UDim2.new(xPos, 0, 0, 6)
- Fill.Position = UDim2.new(xPos/2, 0, 0.5, 0)
- FillButton.Position = UDim2.new(xPos, 0, 0.5, 0)
- callback(value)
- end
- end)
- end
- function library4:AddToggle(text, description, callback)
- -- Set Variables
- text = (type(text) ~= "string") and "Toggle" or text
- description = (type(description) ~= "string") and "Description." or description
- callback = (type(callback) ~= "function") and function()
- print("Toggled!")
- end or callback
- -- Variables
- local toggled = false
- local debounce = false
- -- Gui
- local Toggle = Instance.new("Frame")
- local UICorner = Instance.new("UICorner")
- local UIStroke = Instance.new("UIStroke")
- local ToggleButton = Instance.new("TextButton")
- local UICorner_2 = Instance.new("UICorner")
- local Container = createContainer(Section, text, description)
- Toggle.Name = "Toggle"
- Toggle.Parent = Container
- Toggle.AnchorPoint = Vector2.new(0.5, 0.5)
- Toggle.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Toggle.BackgroundTransparency = 1.000
- Toggle.Position = UDim2.new(0.879, 0, 0.5, 0)
- Toggle.Size = UDim2.new(0, 42, 0, 21)
- UICorner.CornerRadius = UDim.new(1, 0)
- UICorner.Parent = Toggle
- UIStroke.Parent = Toggle
- UIStroke.Color = Color3.fromRGB(200, 200, 200)
- ToggleButton.Name = "ToggleButton"
- ToggleButton.Parent = Toggle
- ToggleButton.AnchorPoint = Vector2.new(0.5, 0.5)
- ToggleButton.BackgroundColor3 = Color3.fromRGB(255, 0, 0)
- ToggleButton.Position = UDim2.new(0.27, 0, 0.5, 0)
- ToggleButton.Size = UDim2.new(0, 18, 0, 18)
- ToggleButton.ZIndex = 1
- ToggleButton.AutoButtonColor = false
- ToggleButton.Font = Enum.Font.SourceSans
- ToggleButton.Text = ""
- ToggleButton.TextColor3 = Color3.fromRGB(0, 0, 0)
- ToggleButton.TextSize = 14.000
- UICorner_2.CornerRadius = UDim.new(1, 0)
- UICorner_2.Parent = ToggleButton
- -- Functions
- ToggleButton.MouseButton1Click:Connect(function()
- if debounce == false then
- debounce = true
- toggled = not toggled
- local pos = (toggled == true) and UDim2.new(0.74, 0, 0.5, 0) or UDim2.new(0.27, 0, 0.5, 0)
- local properties = (toggled == true) and {
- BackgroundColor3 = Color3.fromRGB(255, 255, 0)
- } or {
- BackgroundColor3 = Color3.fromRGB(255, 0, 0)
- }
- local info = TweenInfo.new(0.75, Enum.EasingStyle.Sine, Enum.EasingDirection.InOut)
- local tween = tweenService:Create(ToggleButton, info, properties)
- ToggleButton:TweenPosition(pos, Enum.EasingDirection.InOut, Enum.EasingStyle.Sine, 0.75, false)
- tween:Play()
- callback(toggled)
- task.wait(1)
- debounce = false
- end
- end)
- end
- function library4:AddColorPicker(text, description, callback)
- -- Set Variables
- text = (type(text) ~= "string") and "Color Picker" or text
- description = (type(description) ~= "string") and "Description." or description
- callback = (type(callback) ~= "function") and function()
- print("Picked Color!")
- end or callback
- -- Variables
- local color = Color3.fromHSV(1, 1, 1)
- local holdingHS = false
- local holdingV = false
- -- Gui
- local ColorPicker = Instance.new("Frame")
- local ColorPickerMain = Instance.new("ImageLabel")
- local ColorPickerSelection = Instance.new("TextButton")
- local ValueSelection = Instance.new("TextButton")
- local ValuePickerMain = Instance.new("ImageLabel")
- local CursorHS = Instance.new("ImageLabel")
- local CursorV = Instance.new("ImageLabel")
- local UIStroke = Instance.new("UIStroke")
- local UIStroke_2 = Instance.new("UIStroke")
- local UICorner = Instance.new("UICorner")
- local UICorner_2 = Instance.new("UICorner")
- local UIGradient = Instance.new("UIGradient")
- local Container = createContainer(Section, text, description)
- local ColorValues = Instance.new("Frame")
- local UIListLayout = Instance.new("UIListLayout")
- local HSVLabel = Instance.new("TextLabel")
- local RGBLabel = Instance.new("TextLabel")
- local HEXLabel = Instance.new("TextLabel")
- ColorPicker.Name = "ColorPicker"
- ColorPicker.Parent = Container
- ColorPicker.AnchorPoint = Vector2.new(0.5, 0.5)
- ColorPicker.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- ColorPicker.BackgroundTransparency = 1.000
- ColorPicker.BorderColor3 = Color3.fromRGB(27, 42, 53)
- ColorPicker.Position = UDim2.new(0.75, 0, 1.05, 0)
- ColorPicker.Size = UDim2.new(0, 130, 0, 80)
- ColorPickerMain.Name = "ColorPickerMain"
- ColorPickerMain.Parent = ColorPicker
- ColorPickerMain.AnchorPoint = Vector2.new(0.5, 0.5)
- ColorPickerMain.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- ColorPickerMain.BorderSizePixel = 0
- ColorPickerMain.Position = UDim2.new(0.414, 0, 0.5, 0)
- ColorPickerMain.Size = UDim2.new(0, 100, 0, 75)
- ColorPickerMain.Image = "rbxassetid://6320992248"
- ColorPickerSelection.Parent = ColorPickerMain
- ColorPickerSelection.BackgroundTransparency = 1
- ColorPickerSelection.AnchorPoint = Vector2.new(0.5, 0.5)
- ColorPickerSelection.Position = UDim2.new(0.5, 0, 0.5, 0)
- ColorPickerSelection.Size = UDim2.new(0, 140, 0, 80)
- ColorPickerSelection.Text = ""
- ValuePickerMain.Name = "ValuePickerMain"
- ValuePickerMain.Parent = ColorPicker
- ValuePickerMain.AnchorPoint = Vector2.new(0.5, 0.5)
- ValuePickerMain.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- ValuePickerMain.BorderSizePixel = 0
- ValuePickerMain.LayoutOrder = 132
- ValuePickerMain.Position = UDim2.new(0.957216084, 0, 0.5, 0)
- ValuePickerMain.Size = UDim2.new(0, 15, 0, 75)
- ValueSelection.Parent = ValuePickerMain
- ValueSelection.BackgroundTransparency = 1
- ValueSelection.AnchorPoint = Vector2.new(0.5, 0.5)
- ValueSelection.Position = UDim2.new(0.5, 0, 0.5, 0)
- ValueSelection.Size = UDim2.new(0, 15, 0, 80)
- ValueSelection.Text = ""
- UICorner_2.CornerRadius = UDim.new(0, 4)
- UICorner_2.Parent = ValuePickerMain
- UIGradient.Color = ColorSequence.new{ColorSequenceKeypoint.new(0.00, Color3.fromRGB(255, 255, 255)), ColorSequenceKeypoint.new(1.00, Color3.fromRGB(0, 0, 0))}
- UIGradient.Rotation = 90
- UIGradient.Parent = ValuePickerMain
- UIStroke_2.Parent = ValuePickerMain
- UIStroke_2.Color = Color3.fromRGB(200, 200, 200)
- CursorHS.Parent = ColorPickerMain
- CursorHS.AnchorPoint = Vector2.new(0.5, 0.5)
- CursorHS.Position = UDim2.new(0.5, 0, 0.5, 0)
- CursorHS.Size = UDim2.new(0, 12, 0, 12)
- CursorHS.BackgroundTransparency = 1
- CursorHS.Image = "rbxassetid://7072707153"
- CursorHS.ImageColor3 = Color3.fromRGB(0, 0, 0)
- CursorV.Parent = ValuePickerMain
- CursorV.AnchorPoint = Vector2.new(0.5, 0.5)
- CursorV.Position = UDim2.new(0.5, 0, 0.5, 0)
- CursorV.Size = UDim2.new(0, 12, 0, 12)
- CursorV.BackgroundTransparency = 1
- CursorV.Image = "rbxassetid://7072707153"
- CursorV.ImageColor3 = Color3.fromRGB(0, 0, 0)
- UICorner.CornerRadius = UDim.new(0, 4)
- UICorner.Parent = ColorPickerMain
- UIStroke.Parent = ColorPickerMain
- UIStroke.Color = Color3.fromRGB(200, 200, 200)
- ColorValues.Name = "ColorValues"
- ColorValues.Parent = ColorPicker
- ColorValues.AnchorPoint = Vector2.new(0.5, 0.5)
- ColorValues.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- ColorValues.BackgroundTransparency = 1.000
- ColorValues.Position = UDim2.new(-0.527472556, 0, 0.634970188, 0)
- ColorValues.Size = UDim2.new(0, 115, 0, 56)
- UIListLayout.Parent = ColorValues
- UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
- HSVLabel.Name = "HSVLabel"
- HSVLabel.Parent = ColorValues
- HSVLabel.AnchorPoint = Vector2.new(0.5, 0.5)
- HSVLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- HSVLabel.BackgroundTransparency = 1.000
- HSVLabel.Position = UDim2.new(-0.515512824, 0, 0.857142866, 0)
- HSVLabel.Size = UDim2.new(0, 110, 0, 18)
- HSVLabel.Font = Enum.Font.SourceSansLight
- HSVLabel.Text = "HSV: 360, 255, 255"
- HSVLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
- HSVLabel.TextScaled = true
- HSVLabel.TextSize = 18.000
- HSVLabel.TextWrapped = true
- HSVLabel.TextXAlignment = Enum.TextXAlignment.Left
- RGBLabel.Name = "RGBLabel"
- RGBLabel.Parent = ColorValues
- RGBLabel.AnchorPoint = Vector2.new(0.5, 0.5)
- RGBLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- RGBLabel.BackgroundTransparency = 1.000
- RGBLabel.Position = UDim2.new(-0.515512824, 0, 0.547619045, 0)
- RGBLabel.Size = UDim2.new(0, 110, 0, 18)
- RGBLabel.Font = Enum.Font.SourceSansLight
- RGBLabel.Text = "RGB: 255, 255, 255"
- RGBLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
- RGBLabel.TextScaled = true
- RGBLabel.TextSize = 18.000
- RGBLabel.TextWrapped = true
- RGBLabel.TextXAlignment = Enum.TextXAlignment.Left
- HEXLabel.Name = "HEXLabel"
- HEXLabel.Parent = ColorValues
- HEXLabel.AnchorPoint = Vector2.new(0.5, 0.5)
- HEXLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- HEXLabel.BackgroundTransparency = 1.000
- HEXLabel.Position = UDim2.new(-0.515512824, 0, 0.547619045, 0)
- HEXLabel.Size = UDim2.new(0, 110, 0, 18)
- HEXLabel.Font = Enum.Font.SourceSansLight
- HEXLabel.Text = "HEX: #FFFFFF"
- HEXLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
- HEXLabel.TextScaled = true
- HEXLabel.TextSize = 18.000
- HEXLabel.TextWrapped = true
- HEXLabel.TextXAlignment = Enum.TextXAlignment.Left
- ColorPickerSelection.MouseButton1Down:Connect(function()
- holdingHS = true
- end)
- ColorPickerSelection.MouseButton1Up:Connect(function()
- holdingHS = false
- end)
- ValueSelection.MouseButton1Down:Connect(function()
- holdingV = true
- end)
- ValueSelection.MouseButton1Up:Connect(function()
- holdingV = false
- end)
- runService.RenderStepped:Connect(function()
- local mouseLocation = userInputService:GetMouseLocation()
- local x, y = (mouseLocation.X - ColorPickerMain.AbsolutePosition.X)/ColorPickerMain.AbsoluteSize.X, (mouseLocation.Y - ColorPickerMain.AbsolutePosition.Y)/ColorPickerMain.AbsoluteSize.Y
- if holdingHS and holdingV == false then
- x = math.clamp(x, 0, 1)
- y = math.clamp((y-.4), 0, 1)
- CursorHS.Position = UDim2.new(x, 0, y, 0)
- local h, s, v = Color3.toHSV(color)
- local newColor = Color3.fromHSV(x, 1 - y, v)
- color = newColor
- callback(color)
- end
- if holdingV and holdingHS == false then
- y = math.clamp((y-.4), 0, 1)
- CursorV.Position = UDim2.new(0.5, 0, y, 0)
- local h, s, v = Color3.toHSV(color)
- local newColor = Color3.fromHSV(h, s, 1 - y)
- color = newColor
- callback(color)
- end
- local h, s, v = Color3.toHSV(color)
- local r, g, b = color.R, color.G, color.B
- local hex = string.format("#%02X%02X%02X", r*255, g*255, b*255)
- h, s, v = math.floor(h * 10) / 10, math.floor(s * 10) / 10, math.floor(v * 10) / 10
- r, g, b = math.floor(r * 10), math.floor(g * 10), math.floor(b * 10)
- RGBLabel.Text = "RGB: "..(r*25)..", "..(g*25)..", "..(b*25)
- HSVLabel.Text = "HSV: "..(h*360)..", "..(s*255)..", "..(v*255)
- HEXLabel.Text = "HEX: "..(hex)
- end)
- end
- return library4
- end
- function library3:SetIcon(imageId)
- tab.Image = imageId
- tab.ImageRectOffset = Vector2.new(0, 0)
- tab.ImageRectSize = Vector2.new(0, 0)
- end
- return library3
- end
- -- Settings
- local settingsTab = library2:AddTab("Settings")
- local settingsSection = settingsTab:AddSection("Settings")
- settingsTab:SetIcon("rbxassetid://7072721682")
- settingsSection:AddInput("Scale", "Changes library scale.", function(v)
- if tonumber(v) then
- v = math.clamp(v, 0.5, 2)
- UIScale.Scale = v
- end
- end)
- settingsSection:AddToggle("Draggable", "", function(v)
- Menu.Draggable = v
- end)
- -- Call Local Functions
- setDraggable()
- Exit.MouseButton1Click:Connect(function()
- onExit()
- end)
- Maximize.MouseButton1Click:Connect(function()
- onMaximize()
- end)
- Minimize.MouseButton1Click:Connect(function()
- onMinimize()
- end)
- for _, button in pairs(Menu:GetChildren()) do
- if button:IsA("ImageButton") then
- button.MouseEnter:Connect(function()
- onEnterHighlight(button)
- end)
- button.MouseLeave:Connect(function()
- onLeaveHighlight(button)
- end)
- end
- end
- return library2
- end
- return library
Add Comment
Please, Sign In to add comment