Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Core = game:GetService("CoreGui")
- local Gui = Core:FindFirstChild("Library2")
- if Gui then
- Gui:Destroy()
- end
- local Library = {}
- function Library.Window(Name)
- --[[
- Name = Title
- ]]
- local Library2 = Instance.new("ScreenGui")
- local Main = Instance.new("Frame")
- local Shadow = Instance.new("ImageLabel")
- local UICorner = Instance.new("UICorner")
- local Tabs = Instance.new("Frame")
- local UICorner_2 = Instance.new("UICorner")
- local UIListLayout = Instance.new("UIListLayout")
- local Seperator = Instance.new("Frame")
- local Title = Instance.new("TextLabel")
- local TabFrames = Instance.new("Frame")
- local UIS = game:GetService("UserInputService")
- function dragify(Frame)
- dragToggle = nil
- local dragSpeed = nil
- dragInput = nil
- dragStart = nil
- local dragPos = nil
- function updateInput(input)
- local Delta = input.Position - dragStart
- local Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + Delta.X, startPos.Y.Scale, startPos.Y.Offset + Delta.Y)
- game:GetService("TweenService"):Create(Frame, TweenInfo.new(0.10), {Position = Position}):Play()
- end
- Frame.InputBegan:Connect(function(input)
- if (input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch) and UIS:GetFocusedTextBox() == nil then
- dragToggle = true
- dragStart = input.Position
- startPos = Frame.Position
- input.Changed:Connect(function()
- if input.UserInputState == Enum.UserInputState.End then
- dragToggle = false
- end
- end)
- end
- end)
- Frame.InputChanged:Connect(function(input)
- if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then
- dragInput = input
- end
- end)
- game:GetService("UserInputService").InputChanged:Connect(function(input)
- if input == dragInput and dragToggle then
- updateInput(input)
- end
- end)
- end
- dragify(Main)
- --Properties:
- Library2.Name = "Library2"
- Library2.Parent = game:WaitForChild("CoreGui")
- Library2.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
- Main.Name = "Main"
- Main.Parent = Library2
- Main.BackgroundColor3 = Color3.fromRGB(107, 119, 138)
- Main.BorderSizePixel = 0
- Main.Position = UDim2.new(0.265921146, 0, 0.207720801, 0)
- Main.Size = UDim2.new(0, 587, 0, 354)
- Shadow.Name = "Shadow"
- Shadow.Parent = Main
- Shadow.AnchorPoint = Vector2.new(0.5, 0.5)
- Shadow.BackgroundTransparency = 1.000
- Shadow.BorderSizePixel = 0
- Shadow.Position = UDim2.new(0.501402557, 0, 0.49929139, 0)
- Shadow.Size = UDim2.new(0.993281424, 18, 0.986014247, 18)
- Shadow.ZIndex = 0
- Shadow.Image = "rbxassetid://1316045217"
- Shadow.ImageColor3 = Color3.fromRGB(0, 0, 0)
- Shadow.ImageTransparency = 0.700
- Shadow.ScaleType = Enum.ScaleType.Slice
- Shadow.SliceCenter = Rect.new(10, 10, 118, 118)
- UICorner.CornerRadius = UDim.new(0, 2)
- UICorner.Parent = Main
- Tabs.Name = "Tabs"
- Tabs.Parent = Main
- Tabs.BackgroundColor3 = Color3.fromRGB(27, 27, 27)
- Tabs.Size = UDim2.new(0, 120, 0, 354)
- UICorner_2.CornerRadius = UDim.new(0, 1)
- UICorner_2.Parent = Tabs
- UIListLayout.Parent = Tabs
- UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
- UIListLayout.Padding = UDim.new(0, 3)
- Seperator.Name = "Seperator"
- Seperator.Parent = Tabs
- Seperator.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Seperator.BackgroundTransparency = 1.000
- Seperator.Size = UDim2.new(0, 120, 0, 2)
- Title.Name = "Title"
- Title.Parent = Tabs
- Title.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Title.BackgroundTransparency = 1.000
- Title.Position = UDim2.new(0, 0, 0.0254237279, 0)
- Title.Size = UDim2.new(0, 120, 0, 21)
- Title.Font = Enum.Font.GothamSemibold
- Title.Text = " " ..Name
- Title.TextColor3 = Color3.fromRGB(232, 232, 232)
- Title.TextSize = 16.000
- Title.TextWrapped = true
- Title.TextXAlignment = Enum.TextXAlignment.Left
- TabFrames.Name = "TabFrames"
- TabFrames.Parent = Main
- TabFrames.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- TabFrames.BackgroundTransparency = 1.000
- TabFrames.Position = UDim2.new(0.204429299, 0, 0, 0)
- TabFrames.Size = UDim2.new(0, 467, 0, 354)
- local TabTable = {}
- function TabTable.Tab(Name)
- --[[
- Name = Tab Title
- ]]
- local TabButton = Instance.new("TextButton")
- local TextLabel = Instance.new("TextLabel")
- local UICorner_3 = Instance.new("UICorner")
- local TabPage = Instance.new("Frame")
- local Bottom = Instance.new("Frame")
- local UIGradient = Instance.new("UIGradient")
- local TabContainor = Instance.new("ScrollingFrame")
- local UIListLayout_2 = Instance.new("UIListLayout")
- TabButton.Name = "TabButton"
- TabButton.Parent = Tabs
- TabButton.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- TabButton.BackgroundTransparency = 1.000
- TabButton.Position = UDim2.new(0, 0, 0.0734463334, 0)
- TabButton.Size = UDim2.new(0, 120, 0, 29)
- TabButton.Font = Enum.Font.SourceSans
- TabButton.Text = ""
- TabButton.TextColor3 = Color3.fromRGB(0, 0, 0)
- TabButton.TextSize = 14.000
- TextLabel.Parent = TabButton
- TextLabel.BackgroundColor3 = Color3.fromRGB(107, 119, 138)
- TextLabel.Position = UDim2.new(0.0500000007, 0, 0.0689655095, 0)
- TextLabel.Size = UDim2.new(0, 108, 0, 24)
- TextLabel.Font = Enum.Font.Gotham
- TextLabel.Text = Name
- TextLabel.TextColor3 = Color3.fromRGB(227, 227, 227)
- TextLabel.TextSize = 14.000
- UICorner_3.CornerRadius = UDim.new(0, 2)
- UICorner_3.Parent = TextLabel
- TabPage.Name = Name
- TabPage.Parent = TabFrames
- TabPage.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- TabPage.BackgroundTransparency = 1.000
- TabPage.Size = UDim2.new(0, 467, 0, 354)
- Bottom.Name = "Bottom"
- Bottom.Parent = TabPage
- Bottom.AnchorPoint = Vector2.new(0, 1)
- Bottom.BackgroundColor3 = Color3.fromRGB(240, 240, 240)
- Bottom.BorderSizePixel = 0
- Bottom.Position = UDim2.new(0, 0, 1, 0)
- Bottom.Size = UDim2.new(1, 0, -0.0183885116, 60)
- Bottom.ZIndex = 2
- UIGradient.Color = ColorSequence.new{ColorSequenceKeypoint.new(0.00, Color3.fromRGB(44, 44, 44)), ColorSequenceKeypoint.new(1.00, Color3.fromRGB(22, 22, 22))}
- UIGradient.Rotation = 90
- UIGradient.Transparency = NumberSequence.new{NumberSequenceKeypoint.new(0.00, 1.00), NumberSequenceKeypoint.new(1.00, 0.00)}
- UIGradient.Parent = Bottom
- TabContainor.Name = "TabContainor"
- TabContainor.Parent = TabPage
- TabContainor.Active = true
- TabContainor.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- TabContainor.BackgroundTransparency = 1.000
- TabContainor.BorderSizePixel = 0
- TabContainor.Position = UDim2.new(0.0128479656, 0, 0.0141242938, 0)
- TabContainor.Size = UDim2.new(0, 475, 0, 349)
- TabContainor.BottomImage = ""
- TabContainor.CanvasSize = UDim2.new(0, 0, 10000, 0)
- TabContainor.MidImage = ""
- TabContainor.TopImage = ""
- UIListLayout_2.Parent = TabContainor
- UIListLayout_2.SortOrder = Enum.SortOrder.LayoutOrder
- UIListLayout_2.Padding = UDim.new(0, 3)
- TabButton.MouseButton1Down:Connect(function()
- for i,v in pairs(TabFrames:GetChildren()) do
- v.Visible = false
- end
- TabPage.Visible = true
- end)
- local TweenService = game:GetService("TweenService")
- local Color1 = {}
- Color1.BackgroundColor3 = Color3.fromRGB(84, 93, 108)
- local Color2 = {}
- Color2.BackgroundColor3 = Color3.fromRGB(107, 119, 138)
- local TweenTime = TweenInfo.new(0.5)
- local Tween1 = TweenService:Create(TextLabel, TweenTime, Color1)
- local Tween2 = TweenService:Create(TextLabel, TweenTime, Color2)
- TextLabel.MouseEnter:Connect(function()
- Tween1:Play()
- end)
- TextLabel.MouseLeave:Connect(function()
- Tween2:Play()
- end)
- local Utility = {}
- function Utility.Button(Name, Description, ButtonName, Callback)
- --[[
- Name = Card Name
- Description = Card Description
- ButtonName = Button Name
- CallBack = Function/Code
- ]]
- local Execute = pcall
- local ButtonCard = Instance.new("Frame")
- local UICorner_4 = Instance.new("UICorner")
- local ButtonTitle = Instance.new("TextLabel")
- local ButDesc = Instance.new("TextLabel")
- local ButtonFrame = Instance.new("TextLabel")
- local UICorner_5 = Instance.new("UICorner")
- local Button = Instance.new("TextButton")
- ButtonCard.Name = "ButtonCard"
- ButtonCard.Parent = TabContainor
- ButtonCard.BackgroundColor3 = Color3.fromRGB(27, 27, 27)
- ButtonCard.BorderColor3 = Color3.fromRGB(27, 42, 53)
- ButtonCard.Size = UDim2.new(0, 454, 0, 72)
- UICorner_4.CornerRadius = UDim.new(0, 1)
- UICorner_4.Parent = ButtonCard
- ButtonTitle.Name = "ButtonTitle"
- ButtonTitle.Parent = ButtonCard
- ButtonTitle.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- ButtonTitle.BackgroundTransparency = 1.000
- ButtonTitle.Position = UDim2.new(0.0132158594, 0, 0, 0)
- ButtonTitle.Size = UDim2.new(0, 448, 0, 26)
- ButtonTitle.Font = Enum.Font.Gotham
- ButtonTitle.Text = Name
- ButtonTitle.TextColor3 = Color3.fromRGB(239, 239, 239)
- ButtonTitle.TextSize = 14.000
- ButtonTitle.TextXAlignment = Enum.TextXAlignment.Left
- ButDesc.Name = "ButDesc"
- ButDesc.Parent = ButtonCard
- ButDesc.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- ButDesc.BackgroundTransparency = 1.000
- ButDesc.Position = UDim2.new(0.0132158594, 0, 0.361111104, 0)
- ButDesc.Size = UDim2.new(0, 368, 0, 40)
- ButDesc.Font = Enum.Font.Gotham
- ButDesc.Text = Description
- ButDesc.TextColor3 = Color3.fromRGB(255, 255, 255)
- ButDesc.TextSize = 12.000
- ButDesc.TextWrapped = true
- ButDesc.TextXAlignment = Enum.TextXAlignment.Left
- ButDesc.TextYAlignment = Enum.TextYAlignment.Top
- ButtonFrame.Name = "ButtonFrame"
- ButtonFrame.Parent = ButtonCard
- ButtonFrame.BackgroundColor3 = Color3.fromRGB(107, 119, 138)
- ButtonFrame.Position = UDim2.new(0.840748906, 0, 0.541187704, 0)
- ButtonFrame.Size = UDim2.new(0, 65, 0, 27)
- ButtonFrame.Font = Enum.Font.Gotham
- ButtonFrame.Text = ButtonName
- ButtonFrame.TextColor3 = Color3.fromRGB(227, 227, 227)
- ButtonFrame.TextSize = 12.000
- UICorner_5.CornerRadius = UDim.new(0, 2)
- UICorner_5.Parent = ButtonFrame
- Button.Name = "Button"
- Button.Parent = ButtonFrame
- Button.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Button.BackgroundTransparency = 1.000
- Button.Size = UDim2.new(0, 65, 0, 27)
- Button.Font = Enum.Font.SourceSans
- Button.TextWrapped = true
- Button.Text = ""
- Button.TextColor3 = Color3.fromRGB(0, 0, 0)
- Button.TextSize = 14.000
- Button.MouseButton1Down:Connect(function()
- Execute(Callback)
- end)
- local TweenService = game:GetService("TweenService")
- local Color1 = {}
- Color1.BackgroundColor3 = Color3.fromRGB(84, 93, 108)
- local Color2 = {}
- Color2.BackgroundColor3 = Color3.fromRGB(107, 119, 138)
- local TweenTime = TweenInfo.new(0.5)
- local Tween1 = TweenService:Create(ButtonFrame, TweenTime, Color1)
- local Tween2 = TweenService:Create(ButtonFrame, TweenTime, Color2)
- ButtonFrame.MouseEnter:Connect(function()
- Tween1:Play()
- end)
- ButtonFrame.MouseLeave:Connect(function()
- Tween2:Play()
- end)
- end
- function Utility.Label(Name, Description)
- local LabelCard = Instance.new("Frame")
- local UICorner = Instance.new("UICorner")
- local LabelDesc = Instance.new("TextLabel")
- local LabelTitle = Instance.new("TextLabel")
- LabelCard.Name = "LabelCard"
- LabelCard.Parent = TabContainor
- LabelCard.BackgroundColor3 = Color3.fromRGB(27, 27, 27)
- LabelCard.BorderColor3 = Color3.fromRGB(27, 42, 53)
- LabelCard.Size = UDim2.new(0, 454, 0, 72)
- UICorner.CornerRadius = UDim.new(0, 1)
- UICorner.Parent = LabelCard
- LabelDesc.Name = "LabelDesc"
- LabelDesc.Parent = LabelCard
- LabelDesc.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- LabelDesc.BackgroundTransparency = 1.000
- LabelDesc.Position = UDim2.new(0.0132158594, 0, 0.361111104, 0)
- LabelDesc.Size = UDim2.new(0, 440, 0, 40)
- LabelDesc.Font = Enum.Font.Gotham
- LabelDesc.Text = Description
- LabelDesc.TextColor3 = Color3.fromRGB(255, 255, 255)
- LabelDesc.TextSize = 12.000
- LabelDesc.TextWrapped = true
- LabelDesc.TextXAlignment = Enum.TextXAlignment.Left
- LabelDesc.TextYAlignment = Enum.TextYAlignment.Top
- LabelTitle.Name = "LabelTitle"
- LabelTitle.Parent = LabelCard
- LabelTitle.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- LabelTitle.BackgroundTransparency = 1.000
- LabelTitle.Position = UDim2.new(0.0132158594, 0, 0, 0)
- LabelTitle.Size = UDim2.new(0, 448, 0, 26)
- LabelTitle.Font = Enum.Font.Gotham
- LabelTitle.Text = Name
- LabelTitle.TextColor3 = Color3.fromRGB(239, 239, 239)
- LabelTitle.TextSize = 14.000
- LabelTitle.TextXAlignment = Enum.TextXAlignment.Left
- end
- function Utility.Input(Name, Description, Callback)
- local InputCard = Instance.new("Frame")
- local UICorner = Instance.new("UICorner")
- local InputDesc = Instance.new("TextLabel")
- local InputTitle = Instance.new("TextLabel")
- local InputFrame = Instance.new("TextLabel")
- local UICorner_2 = Instance.new("UICorner")
- local TextBox = Instance.new("TextBox")
- --Properties:
- InputCard.Name = "InputCard"
- InputCard.Parent = TabContainor
- InputCard.BackgroundColor3 = Color3.fromRGB(27, 27, 27)
- InputCard.BorderColor3 = Color3.fromRGB(27, 42, 53)
- InputCard.Size = UDim2.new(0, 454, 0, 72)
- UICorner.CornerRadius = UDim.new(0, 1)
- UICorner.Parent = InputCard
- InputDesc.Name = "InputDesc"
- InputDesc.Parent = InputCard
- InputDesc.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- InputDesc.BackgroundTransparency = 1.000
- InputDesc.Position = UDim2.new(0.0132158594, 0, 0.361111104, 0)
- InputDesc.Size = UDim2.new(0, 440, 0, 16)
- InputDesc.Font = Enum.Font.Gotham
- InputDesc.Text = Description
- InputDesc.TextColor3 = Color3.fromRGB(255, 255, 255)
- InputDesc.TextSize = 12.000
- InputDesc.TextWrapped = true
- InputDesc.TextXAlignment = Enum.TextXAlignment.Left
- InputDesc.TextYAlignment = Enum.TextYAlignment.Top
- InputTitle.Name = "InputTitle"
- InputTitle.Parent = InputCard
- InputTitle.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- InputTitle.BackgroundTransparency = 1.000
- InputTitle.Position = UDim2.new(0.0132158594, 0, 0, 0)
- InputTitle.Size = UDim2.new(0, 448, 0, 26)
- InputTitle.Font = Enum.Font.Gotham
- InputTitle.Text = Name
- InputTitle.TextColor3 = Color3.fromRGB(239, 239, 239)
- InputTitle.TextSize = 14.000
- InputTitle.TextXAlignment = Enum.TextXAlignment.Left
- InputFrame.Name = "InputFrame"
- InputFrame.Parent = InputCard
- InputFrame.BackgroundColor3 = Color3.fromRGB(84, 93, 108)
- InputFrame.Position = UDim2.new(0.0125550926, 0, 0.583333313, 0)
- InputFrame.Size = UDim2.new(0, 440, 0, 23)
- InputFrame.Font = Enum.Font.Gotham
- InputFrame.Text = ""
- InputFrame.TextColor3 = Color3.fromRGB(227, 227, 227)
- InputFrame.TextSize = 12.000
- UICorner_2.CornerRadius = UDim.new(0, 2)
- UICorner_2.Parent = InputFrame
- TextBox.Parent = InputFrame
- TextBox.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- TextBox.BackgroundTransparency = 1.000
- TextBox.Size = UDim2.new(0, 440, 0, 23)
- TextBox.Font = Enum.Font.Gotham
- TextBox.Text = ""
- TextBox.TextColor3 = Color3.fromRGB(241, 241, 241)
- TextBox.TextSize = 12.000
- local TweenService = game:GetService("TweenService")
- local Color1 = {}
- Color1.BackgroundColor3 = Color3.fromRGB(84, 93, 108)
- local Color2 = {}
- Color2.BackgroundColor3 = Color3.fromRGB(107, 119, 138)
- local TweenTime = TweenInfo.new(0.5)
- local Tween1 = TweenService:Create(InputFrame, TweenTime, Color1)
- local Tween2 = TweenService:Create(InputFrame, TweenTime, Color2)
- InputFrame.MouseEnter:Connect(function()
- Tween1:Play()
- end)
- InputFrame.MouseLeave:Connect(function()
- Tween2:Play()
- end)
- TextBox.FocusLost:Connect(function()
- local Text = TextBox.Text
- pcall(Callback, Text)
- end)
- end
- return Utility
- end
- function Library.AutoPage(Name)
- for _,v in pairs(game:WaitForChild("CoreGui").Library2.Main.TabFrames:GetChildren()) do
- v.Visible = false
- end
- game:WaitForChild("CoreGui").Library2.Main.TabFrames[Name].Visible = true
- end
- return TabTable
- end
- return Library
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement