Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Library = {}
- local Settings = {
- [1] = getgenv().AntiDupe
- }
- local Colors = {
- TitleColor = Color3.fromRGB(255, 255, 255), --Done
- Features = Color3.fromRGB(143, 152, 200), --Done
- HFeatures = Color3.fromRGB(99, 106, 138), --Done
- TabColor = Color3.fromRGB(74, 79, 104), --Done
- HTabColor = Color3.fromRGB(94, 100, 132), --Done
- Line = Color3.fromRGB(255, 255, 255), --Done
- FeaturesText = Color3.fromRGB(255, 255, 255), --Done
- TabTextColor = Color3.fromRGB(255, 255, 255) --Done
- }
- function Library.Window(Name)
- local ScreenGui = Instance.new("ScreenGui")
- local Containor = Instance.new("ImageLabel")
- local Main = Instance.new("Frame")
- local UICorner = Instance.new("UICorner")
- local Tabs = Instance.new("Frame")
- local UICorner_2 = Instance.new("UICorner")
- local UIGradient = Instance.new("UIGradient")
- local Title = Instance.new("TextLabel")
- local Line = Instance.new("Frame")
- local UICorner_3 = Instance.new("UICorner")
- local TabContainor = Instance.new("Frame")
- local UIListLayout = Instance.new("UIListLayout")
- local Frames = Instance.new("Frame")
- local UICorner_5 = Instance.new("UICorner")
- local UIGradient_2 = Instance.new("UIGradient")
- ScreenGui.Parent = game.CoreGui
- ScreenGui.Name = Name
- ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
- Containor.Name = "Containor"
- Containor.Parent = ScreenGui
- Containor.AnchorPoint = Vector2.new(0.5, 0.5)
- Containor.BackgroundTransparency = 1.000
- Containor.Position = UDim2.new(0.49994567, 0, 0.499689788, 0)
- Containor.Size = UDim2.new(0, 605, 0, 439)
- Containor.Image = "rbxassetid://1316045217"
- Containor.ImageColor3 = Color3.fromRGB(0, 0, 0)
- Containor.ImageTransparency = 0.7
- Containor.ScaleType = Enum.ScaleType.Slice
- Containor.SliceCenter = Rect.new(10, 10, 118, 118)
- Main.Name = "Main"
- Main.Parent = Containor
- Main.BackgroundColor3 = Color3.fromRGB(47, 50, 66)
- Main.BorderColor3 = Color3.fromRGB(27, 42, 53)
- Main.Position = UDim2.new(0.00968108419, 0, 0.0136443889, 0)
- Main.Size = UDim2.new(0, 592, 0, 427)
- UICorner.CornerRadius = UDim.new(0, 3)
- UICorner.Parent = Main
- Tabs.Name = "Tabs"
- Tabs.Parent = Main
- Tabs.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Tabs.Position = UDim2.new(0.0104528889, 0, 0.0140515221, 0)
- Tabs.Size = UDim2.new(0, 151, 0, 415)
- UICorner_2.CornerRadius = UDim.new(0, 5)
- UICorner_2.Parent = Tabs
- UIGradient.Color = ColorSequence.new{ColorSequenceKeypoint.new(0.00, Color3.fromRGB(153, 194, 255)), ColorSequenceKeypoint.new(1.00, Color3.fromRGB(83, 88, 108))}
- UIGradient.Rotation = 90
- UIGradient.Parent = Tabs
- Title.Name = "Title"
- Title.Parent = Tabs
- Title.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Title.BackgroundTransparency = 2.000
- Title.Size = UDim2.new(0, 151, 0, 32)
- Title.Font = Enum.Font.GothamSemibold
- Title.Text = Name
- Title.TextColor3 = Colors.TitleColor
- Title.TextSize = 14.000
- Line.Name = "Line"
- Line.Parent = Title
- Line.BackgroundColor3 = Colors.Line
- Line.Position = UDim2.new(0.0397351012, 0, 0.9375, 0)
- Line.Size = UDim2.new(0, 139, 0, 2)
- UICorner_3.CornerRadius = UDim.new(0, 3)
- UICorner_3.Parent = Line
- TabContainor.Name = "TabContainor"
- TabContainor.Parent = Tabs
- TabContainor.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- TabContainor.BackgroundTransparency = 1.000
- TabContainor.Position = UDim2.new(0.0397351012, 0, 0.0939759016, 0)
- TabContainor.Size = UDim2.new(0, 139, 0, 376)
- UIListLayout.Parent = TabContainor
- UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
- UIListLayout.Padding = UDim.new(0, 3)
- Frames.Name = "Frames"
- Frames.Parent = Main
- Frames.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Frames.BackgroundTransparency = 1.000
- Frames.Position = UDim2.new(0.285790741, 0, 0.0140515221, 0)
- Frames.Size = UDim2.new(0, 414, 0, 415)
- UICorner_5.CornerRadius = UDim.new(0, 5)
- UICorner_5.Parent = Frames
- UIGradient_2.Color = ColorSequence.new{ColorSequenceKeypoint.new(0.00, Color3.fromRGB(153, 194, 255)), ColorSequenceKeypoint.new(1.00, Color3.fromRGB(83, 88, 108))}
- UIGradient_2.Rotation = 90
- UIGradient_2.Parent = Frames
- function Drag(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)
- 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
- Drag(Containor)
- local Library2 = {}
- function Library2.Tab(Name)
- local TabButton = Instance.new("TextButton")
- local UICorner_4 = Instance.new("UICorner")
- local Circle = Instance.new("ImageLabel")
- local TabFrame = Instance.new("Frame")
- local UICorner_6 = Instance.new("UICorner")
- local UIGradient_3 = Instance.new("UIGradient")
- local Title_2 = Instance.new("TextLabel")
- local ScrollingFrame = Instance.new("ScrollingFrame")
- local UIListLayout_2 = Instance.new("UIListLayout")
- local Shadow = Instance.new("Frame")
- local UIGradient_4 = Instance.new("UIGradient")
- local UICorner_10 = Instance.new("UICorner")
- TabButton.Name = "TabButton"
- TabButton.Parent = TabContainor
- TabButton.BackgroundColor3 = Colors.TabColor
- TabButton.Size = UDim2.new(0, 139, 0, 30)
- TabButton.Font = Enum.Font.GothamSemibold
- TabButton.TextColor3 = Colors.TabTextColor
- TabButton.TextSize = 12.000
- TabButton.Text = Name
- UICorner_4.CornerRadius = UDim.new(0, 3)
- UICorner_4.Parent = TabButton
- Circle.Name = "Circle"
- Circle.Parent = TabButton
- Circle.AnchorPoint = Vector2.new(0.5, 0.5)
- Circle.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Circle.BackgroundTransparency = 1.000
- Circle.Position = UDim2.new(0.5, 0, 0.5, 0)
- Circle.ZIndex = 10
- Circle.Image = "rbxassetid://266543268"
- Circle.ImageColor3 = Color3.fromRGB(0, 0, 0)
- Circle.ImageTransparency = 0.500
- TabFrame.Name = Name
- TabFrame.Parent = Frames
- TabFrame.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- TabFrame.Position = UDim2.new(-0.00164883374, 0, 0.0718827918, 0)
- TabFrame.Size = UDim2.new(0, 414, 0, 385)
- UICorner_6.CornerRadius = UDim.new(0, 5)
- UICorner_6.Parent = TabFrame
- UIGradient_3.Color = ColorSequence.new{ColorSequenceKeypoint.new(0.00, Color3.fromRGB(69, 81, 106)), ColorSequenceKeypoint.new(1.00, Color3.fromRGB(83, 88, 108))}
- UIGradient_3.Rotation = 90
- UIGradient_3.Parent = TabFrame
- Title_2.Name = "Title"
- Title_2.Parent = TabFrame
- Title_2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Title_2.BackgroundTransparency = 2.000
- Title_2.Position = UDim2.new(0, 0, -0.077922076, 0)
- Title_2.Size = UDim2.new(0, 414, 0, 32)
- Title_2.Font = Enum.Font.GothamSemibold
- Title_2.Text = Name
- Title_2.TextColor3 = Color3.fromRGB(255, 255, 255)
- Title_2.TextSize = 14.000
- Title_2.TextXAlignment = Enum.TextXAlignment.Left
- ScrollingFrame.Parent = TabFrame
- ScrollingFrame.Active = true
- ScrollingFrame.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- ScrollingFrame.BackgroundTransparency = 1.000
- ScrollingFrame.BorderSizePixel = 0
- ScrollingFrame.Position = UDim2.new(0.0193236712, 0, 0.0233766232, 0)
- ScrollingFrame.Size = UDim2.new(0, 433, 0, 368)
- ScrollingFrame.BottomImage = ""
- ScrollingFrame.MidImage = ""
- ScrollingFrame.TopImage = ""
- UIListLayout_2.Archivable = false
- UIListLayout_2.Parent = ScrollingFrame
- UIListLayout_2.SortOrder = Enum.SortOrder.LayoutOrder
- UIListLayout_2.Padding = UDim.new(0, 4)
- Shadow.Name = "Shadow"
- Shadow.Parent = TabFrame
- Shadow.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Shadow.BackgroundTransparency = 0.900
- Shadow.BorderSizePixel = 0
- Shadow.Position = UDim2.new(0, 0, 0.872727275, 0)
- Shadow.Size = UDim2.new(0, 414, 0, 49)
- UIGradient_4.Color = ColorSequence.new{ColorSequenceKeypoint.new(0.00, Color3.fromRGB(0, 0, 0)), ColorSequenceKeypoint.new(0.57, Color3.fromRGB(0, 0, 0)), ColorSequenceKeypoint.new(1.00, Color3.fromRGB(69, 81, 106))}
- UIGradient_4.Rotation = 270
- UIGradient_4.Parent = Shadow
- UICorner_10.Parent = Shadow
- pcall(function()
- local TweenService = game:GetService("TweenService")
- local Color1 = {}
- Color1.BackgroundColor3 = Colors.HTabColor
- local Color2 = {}
- Color2.BackgroundColor3 = Colors.TabColor
- local TweenTime = TweenInfo.new(0.5)
- local Tween1 = TweenService:Create(TabButton, TweenTime, Color1)
- local Tween2 = TweenService:Create(TabButton, TweenTime, Color2)
- TabButton.MouseEnter:Connect(function()
- Tween1:Play()
- end)
- TabButton.MouseLeave:Connect(function()
- Tween2:Play()
- end)
- local RippleColor = Color3.fromRGB(255,255,255) -- RGB Color of the ripple effect, you can change it.
- local RippleTransparency = 0.8 ---------------------------- Max is 1, Min is 0
- local PixelSize = 2000 --------------------------- The Max size of the ripple in pixels
- local TimeLength = 0.9 ---------------------------- How long the ripple animation is
- local FadeLength = 0.6 ---------------------------- How long it takes for the ripple to fade out
- local frame = TabButton
- local rgb = Color3.fromRGB
- local ud2 = UDim2.new
- repeat wait()
- until game.Players.LocalPlayer
- local plr = game.Players.LocalPlayer
- local mouse = plr:GetMouse()
- frame.ClipsDescendants = true
- frame.AutoButtonColor = false
- function tweenInRipple(ripple)
- spawn(function()
- local TweenService = game:GetService("TweenService")
- local Part = ripple
- local Info = TweenInfo.new(
- TimeLength,
- Enum.EasingStyle.Linear,
- Enum.EasingDirection.InOut,
- 0,
- false,
- 0
- )
- local Goals =
- {
- Size = ud2(0, PixelSize, 0, PixelSize);
- }
- local Tween = TweenService:Create(Part, Info, Goals)
- Tween:Play()
- end)
- end
- function fadeOutRipple(ripple)
- spawn(function()
- local TweenService = game:GetService("TweenService")
- local Part = ripple
- local Info = TweenInfo.new(
- FadeLength,
- Enum.EasingStyle.Linear,
- Enum.EasingDirection.InOut,
- 0,
- false,
- 0
- )
- local Goals =
- {
- ImageTransparency = 1;
- }
- local Tween = TweenService:Create(Part, Info, Goals)
- Tween:Play()
- wait(FadeLength + 0.1)
- ripple:Destroy()
- end)
- end
- frame.MouseButton1Down:Connect(function()
- local done = false
- local ripple = Circle:Clone()
- ripple.Parent = frame
- ripple.ZIndex = frame.ZIndex + 1
- ripple.ImageColor3 = RippleColor
- ripple.ImageTransparency = RippleTransparency
- tweenInRipple(ripple)
- frame.MouseButton1Up:Connect(function()
- if done == false then
- done = true
- fadeOutRipple(ripple)
- end
- end)
- wait(4);
- done = true;
- fadeOutRipple(ripple) -- if it doesnt detect that it was unselected
- end)
- end)
- TabButton.MouseButton1Down:Connect(function()
- for _,v in pairs(Frames:GetChildren()) do
- if v:IsA("Frame") then
- v.Visible = false
- end
- end
- TabFrame.Visible = true
- end)
- local Library3 = {}
- function Library3.Seperator()
- local Seperator = Instance.new("Frame")
- local UICorner_8 = Instance.new("UICorner")
- Seperator.Name = "Seperator"
- Seperator.Parent = ScrollingFrame
- Seperator.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Seperator.Position = UDim2.new(0, 0, 0.0923913047, 0)
- Seperator.Size = UDim2.new(0, 398, 0, 3)
- UICorner_8.CornerRadius = UDim.new(0, 6)
- UICorner_8.Parent = Seperator
- end
- function Library3.Button(Name, Callback)
- local Button = Instance.new("TextButton")
- local UICorner_7 = Instance.new("UICorner")
- local Circle = Instance.new("ImageLabel")
- Circle.Name = "Circle"
- Circle.Parent = TabButton
- Circle.AnchorPoint = Vector2.new(0.5, 0.5)
- Circle.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Circle.BackgroundTransparency = 1.000
- Circle.Position = UDim2.new(0.5, 0, 0.5, 0)
- Circle.ZIndex = 10
- Circle.Image = "rbxassetid://266543268"
- Circle.ImageColor3 = Color3.fromRGB(0, 0, 0)
- Circle.ImageTransparency = 0.500
- Button.Name = "Button"
- Button.Parent = ScrollingFrame
- Button.BackgroundColor3 = Colors.Features
- Button.Size = UDim2.new(0, 398, 0, 30)
- Button.Font = Enum.Font.GothamSemibold
- Button.Text = " ".. Name
- Button.TextColor3 = Colors.FeaturesText
- Button.TextSize = 13.000
- Button.TextXAlignment = Enum.TextXAlignment.Left
- UICorner_7.CornerRadius = UDim.new(0, 3)
- UICorner_7.Parent = Button
- Button.MouseButton1Down:Connect(function()
- spawn(function()
- pcall(Callback)
- end)
- end)
- pcall(function()
- local TweenService = game:GetService("TweenService")
- local Color1 = {}
- Color1.BackgroundColor3 = Colors.HFeatures
- local Color2 = {}
- Color2.BackgroundColor3 = Colors.Features
- local TweenTime = TweenInfo.new(0.5)
- local Tween1 = TweenService:Create(Button, TweenTime, Color1)
- local Tween2 = TweenService:Create(Button, TweenTime, Color2)
- Button.MouseEnter:Connect(function()
- Tween1:Play()
- end)
- Button.MouseLeave:Connect(function()
- Tween2:Play()
- end)
- end)
- pcall(function()
- local RippleColor = Color3.fromRGB(255,255,255) -- RGB Color of the ripple effect, you can change it.
- local RippleTransparency = 0.8 ---------------------------- Max is 1, Min is 0
- local PixelSize = 2000 --------------------------- The Max size of the ripple in pixels
- local TimeLength = 0.9 ---------------------------- How long the ripple animation is
- local FadeLength = 0.6 ---------------------------- How long it takes for the ripple to fade out
- local frame = Button
- local rgb = Color3.fromRGB
- local ud2 = UDim2.new
- repeat wait()
- until game.Players.LocalPlayer
- local plr = game.Players.LocalPlayer
- local mouse = plr:GetMouse()
- frame.ClipsDescendants = true
- frame.AutoButtonColor = false
- function tweenInRipple(ripple)
- spawn(function()
- local TweenService = game:GetService("TweenService")
- local Part = ripple
- local Info = TweenInfo.new(
- TimeLength,
- Enum.EasingStyle.Linear,
- Enum.EasingDirection.InOut,
- 0,
- false,
- 0
- )
- local Goals =
- {
- Size = ud2(0, PixelSize, 0, PixelSize);
- }
- local Tween = TweenService:Create(Part, Info, Goals)
- Tween:Play()
- end)
- end
- function fadeOutRipple(ripple)
- spawn(function()
- local TweenService = game:GetService("TweenService")
- local Part = ripple
- local Info = TweenInfo.new(
- FadeLength,
- Enum.EasingStyle.Linear,
- Enum.EasingDirection.InOut,
- 0,
- false,
- 0
- )
- local Goals =
- {
- ImageTransparency = 1;
- }
- local Tween = TweenService:Create(Part, Info, Goals)
- Tween:Play()
- wait(FadeLength + 0.1)
- ripple:Destroy()
- end)
- end
- frame.MouseButton1Down:Connect(function()
- local done = false
- local ripple = Circle:Clone()
- ripple.Parent = frame
- ripple.ZIndex = frame.ZIndex + 1
- ripple.ImageColor3 = RippleColor
- ripple.ImageTransparency = RippleTransparency
- tweenInRipple(ripple)
- frame.MouseButton1Up:Connect(function()
- if done == false then
- done = true
- fadeOutRipple(ripple)
- end
- end)
- wait(4);
- done = true;
- fadeOutRipple(ripple) -- if it doesnt detect that it was unselected
- end)
- end)
- end
- function Library3.TextBox(Text, PlaceHolder, Callback)
- local Frame = Instance.new("Frame")
- local UICorner_9 = Instance.new("UICorner")
- local TextBox = Instance.new("TextBox")
- Frame.Parent = ScrollingFrame
- Frame.BackgroundColor3 = Color3.fromRGB(143, 152, 200)
- Frame.Position = UDim2.new(0, 0, 0.108695649, 0)
- Frame.Size = UDim2.new(0, 398, 0, 30)
- UICorner_9.CornerRadius = UDim.new(0, 3)
- UICorner_9.Parent = Frame
- TextBox.Parent = Frame
- TextBox.BackgroundColor3 = Color3.fromRGB(143, 152, 200)
- TextBox.BackgroundTransparency = 1.000
- TextBox.Position = UDim2.new(0.0201005023, 0, 0, 0)
- TextBox.Size = UDim2.new(0, 390, 0, 30)
- TextBox.Font = Enum.Font.GothamSemibold
- TextBox.Text = Text
- TextBox.PlaceholderText = PlaceHolder
- TextBox.TextColor3 = Color3.fromRGB(255, 255, 255)
- TextBox.PlaceholderColor3 = Color3.fromRGB(224, 236, 255)
- TextBox.TextSize = 13.000
- TextBox.TextXAlignment = Enum.TextXAlignment.Left
- pcall(function()
- local TweenService = game:GetService("TweenService")
- local Color1 = {}
- Color1.BackgroundColor3 = Colors.HFeatures
- local Color2 = {}
- Color2.BackgroundColor3 = Colors.Features
- local TweenTime = TweenInfo.new(0.5)
- local Tween1 = TweenService:Create(Frame, TweenTime, Color1)
- local Tween2 = TweenService:Create(Frame, TweenTime, Color2)
- Frame.MouseEnter:Connect(function()
- Tween1:Play()
- end)
- Frame.MouseLeave:Connect(function()
- Tween2:Play()
- end)
- end)
- TextBox.FocusLost:Connect(function()
- spawn(function()
- pcall(Callback, TextBox.Text)
- end)
- end)
- local Library4 = {}
- function Library4.GetText()
- return TextBox.Text
- end
- function Library4.UpdateText(Text)
- TextBox.Text = Text
- end
- function Library4.UpdatePlaceholderText(Text)
- TextBox.PlaceholderText = Text
- end
- return Library4
- end
- return Library3
- end
- function Library2.AutoFrame(Name)
- for _,v in pairs(Frames:GetChildren()) do
- if v:IsA("Frame") then
- v.Visible = false
- end
- end
- Frames[Name].Visible = true
- end
- return Library2
- end
- function Library.AntiDuplicate(Bool, Name)
- local Check = game.CoreGui:FindFirstChild(Name)
- if Bool == true then
- Settings[1] = true
- else
- Settings[1] = false
- end
- if Settings[1] == true then
- if Check then
- Check:Destroy()
- print("[Logs] - Destroyed Past GUI")
- end
- end
- end
- local AntiDuplication = Library.AntiDuplicate(true, "SELEXITY")
- local Window = Library.Window("SELEXITY")
- local Tab1 = Window.Tab("TAB 1")
- local StartFrame = Window.AutoFrame("TAB 1")
- Tab1.Seperator()
- Tab1.Button("Button", function()
- print('Cool Button')
- end)
- local Tb = Tab1.TextBox("", "Text Box", function(Text)
- print(Text)
- end)
- Tab1.Button("Get Text (Text Box)", function()
- print(Tb.GetText())
- end)
- Tab1.Button("Update Text (Text Box)", function()
- print(Tb.UpdateText("New Text"))
- end)
- Tab1.Button("Update Placeholder Text (Text Box)", function()
- print(Tb.UpdatePlaceholderText("New Placeholder Text"))
- end)
- Tab1.Seperator()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement