Advertisement
XxMirayxX21

SelexityLibrary

May 18th, 2021
887
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 24.16 KB | None | 0 0
  1. local Library = {}
  2.  
  3. local Settings = {
  4.     [1] = getgenv().AntiDupe
  5. }
  6.  
  7. local Colors = {
  8.     TitleColor = Color3.fromRGB(255, 255, 255), --Done
  9.     Features = Color3.fromRGB(143, 152, 200), --Done
  10.     HFeatures = Color3.fromRGB(99, 106, 138), --Done
  11.     TabColor = Color3.fromRGB(74, 79, 104), --Done
  12.     HTabColor = Color3.fromRGB(94, 100, 132), --Done
  13.     Line = Color3.fromRGB(255, 255, 255), --Done
  14.     FeaturesText = Color3.fromRGB(255, 255, 255), --Done
  15.     TabTextColor = Color3.fromRGB(255, 255, 255) --Done
  16. }
  17.  
  18. function Library.Window(Name)
  19.     local ScreenGui = Instance.new("ScreenGui")
  20.     local Containor = Instance.new("ImageLabel")
  21.     local Main = Instance.new("Frame")
  22.     local UICorner = Instance.new("UICorner")
  23.     local Tabs = Instance.new("Frame")
  24.     local UICorner_2 = Instance.new("UICorner")
  25.     local UIGradient = Instance.new("UIGradient")
  26.     local Title = Instance.new("TextLabel")
  27.     local Line = Instance.new("Frame")
  28.     local UICorner_3 = Instance.new("UICorner")
  29.     local TabContainor = Instance.new("Frame")
  30.     local UIListLayout = Instance.new("UIListLayout")
  31.     local Frames = Instance.new("Frame")
  32.     local UICorner_5 = Instance.new("UICorner")
  33.     local UIGradient_2 = Instance.new("UIGradient")
  34.  
  35.     ScreenGui.Parent = game.CoreGui
  36.     ScreenGui.Name = Name
  37.     ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  38.  
  39.     Containor.Name = "Containor"
  40.     Containor.Parent = ScreenGui
  41.     Containor.AnchorPoint = Vector2.new(0.5, 0.5)
  42.     Containor.BackgroundTransparency = 1.000
  43.     Containor.Position = UDim2.new(0.49994567, 0, 0.499689788, 0)
  44.     Containor.Size = UDim2.new(0, 605, 0, 439)
  45.     Containor.Image = "rbxassetid://1316045217"
  46.     Containor.ImageColor3 = Color3.fromRGB(0, 0, 0)
  47.     Containor.ImageTransparency = 0.7
  48.     Containor.ScaleType = Enum.ScaleType.Slice
  49.     Containor.SliceCenter = Rect.new(10, 10, 118, 118)
  50.  
  51.     Main.Name = "Main"
  52.     Main.Parent = Containor
  53.     Main.BackgroundColor3 = Color3.fromRGB(47, 50, 66)
  54.     Main.BorderColor3 = Color3.fromRGB(27, 42, 53)
  55.     Main.Position = UDim2.new(0.00968108419, 0, 0.0136443889, 0)
  56.     Main.Size = UDim2.new(0, 592, 0, 427)
  57.  
  58.     UICorner.CornerRadius = UDim.new(0, 3)
  59.     UICorner.Parent = Main
  60.  
  61.     Tabs.Name = "Tabs"
  62.     Tabs.Parent = Main
  63.     Tabs.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  64.     Tabs.Position = UDim2.new(0.0104528889, 0, 0.0140515221, 0)
  65.     Tabs.Size = UDim2.new(0, 151, 0, 415)
  66.  
  67.     UICorner_2.CornerRadius = UDim.new(0, 5)
  68.     UICorner_2.Parent = Tabs
  69.  
  70.     UIGradient.Color = ColorSequence.new{ColorSequenceKeypoint.new(0.00, Color3.fromRGB(153, 194, 255)), ColorSequenceKeypoint.new(1.00, Color3.fromRGB(83, 88, 108))}
  71.     UIGradient.Rotation = 90
  72.     UIGradient.Parent = Tabs
  73.  
  74.     Title.Name = "Title"
  75.     Title.Parent = Tabs
  76.     Title.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  77.     Title.BackgroundTransparency = 2.000
  78.     Title.Size = UDim2.new(0, 151, 0, 32)
  79.     Title.Font = Enum.Font.GothamSemibold
  80.     Title.Text = Name
  81.     Title.TextColor3 = Colors.TitleColor
  82.     Title.TextSize = 14.000
  83.  
  84.     Line.Name = "Line"
  85.     Line.Parent = Title
  86.     Line.BackgroundColor3 = Colors.Line
  87.     Line.Position = UDim2.new(0.0397351012, 0, 0.9375, 0)
  88.     Line.Size = UDim2.new(0, 139, 0, 2)
  89.  
  90.     UICorner_3.CornerRadius = UDim.new(0, 3)
  91.     UICorner_3.Parent = Line
  92.  
  93.     TabContainor.Name = "TabContainor"
  94.     TabContainor.Parent = Tabs
  95.     TabContainor.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  96.     TabContainor.BackgroundTransparency = 1.000
  97.     TabContainor.Position = UDim2.new(0.0397351012, 0, 0.0939759016, 0)
  98.     TabContainor.Size = UDim2.new(0, 139, 0, 376)
  99.  
  100.     UIListLayout.Parent = TabContainor
  101.     UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
  102.     UIListLayout.Padding = UDim.new(0, 3)
  103.  
  104.     Frames.Name = "Frames"
  105.     Frames.Parent = Main
  106.     Frames.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  107.     Frames.BackgroundTransparency = 1.000
  108.     Frames.Position = UDim2.new(0.285790741, 0, 0.0140515221, 0)
  109.     Frames.Size = UDim2.new(0, 414, 0, 415)
  110.  
  111.     UICorner_5.CornerRadius = UDim.new(0, 5)
  112.     UICorner_5.Parent = Frames
  113.  
  114.     UIGradient_2.Color = ColorSequence.new{ColorSequenceKeypoint.new(0.00, Color3.fromRGB(153, 194, 255)), ColorSequenceKeypoint.new(1.00, Color3.fromRGB(83, 88, 108))}
  115.     UIGradient_2.Rotation = 90
  116.     UIGradient_2.Parent = Frames
  117.  
  118.     function Drag(Frame)
  119.         dragToggle = nil
  120.         local dragSpeed = nil
  121.         dragInput = nil
  122.         dragStart = nil
  123.         local dragPos = nil
  124.         function updateInput(input)
  125.             local Delta = input.Position - dragStart
  126.             local Position =
  127.                 UDim2.new(startPos.X.Scale, startPos.X.Offset + Delta.X, startPos.Y.Scale, startPos.Y.Offset + Delta.Y)
  128.             game:GetService("TweenService"):Create(Frame, TweenInfo.new(0.10), {Position = Position}):Play()
  129.         end
  130.         Frame.InputBegan:Connect(
  131.             function(input)
  132.                 if
  133.                     (input.UserInputType == Enum.UserInputType.MouseButton1 or
  134.                         input.UserInputType == Enum.UserInputType.Touch)
  135.                 then
  136.                     dragToggle = true
  137.                     dragStart = input.Position
  138.                     startPos = Frame.Position
  139.                     input.Changed:Connect(
  140.                         function()
  141.                             if input.UserInputState == Enum.UserInputState.End then
  142.                                 dragToggle = false
  143.                             end
  144.                         end
  145.                     )
  146.                 end
  147.             end
  148.         )
  149.         Frame.InputChanged:Connect(
  150.             function(input)
  151.                 if
  152.                     input.UserInputType == Enum.UserInputType.MouseMovement or
  153.                         input.UserInputType == Enum.UserInputType.Touch
  154.                 then
  155.                     dragInput = input
  156.                 end
  157.             end
  158.         )
  159.         game:GetService("UserInputService").InputChanged:Connect(
  160.         function(input)
  161.             if input == dragInput and dragToggle then
  162.                 updateInput(input)
  163.             end
  164.         end
  165.         )
  166.     end
  167.    
  168.     Drag(Containor)
  169.  
  170.     local Library2 = {}
  171.  
  172.     function Library2.Tab(Name)
  173.         local TabButton = Instance.new("TextButton")
  174.         local UICorner_4 = Instance.new("UICorner")
  175.         local Circle = Instance.new("ImageLabel")
  176.         local TabFrame = Instance.new("Frame")
  177.         local UICorner_6 = Instance.new("UICorner")
  178.         local UIGradient_3 = Instance.new("UIGradient")
  179.         local Title_2 = Instance.new("TextLabel")
  180.         local ScrollingFrame = Instance.new("ScrollingFrame")
  181.         local UIListLayout_2 = Instance.new("UIListLayout")
  182.         local Shadow = Instance.new("Frame")
  183.         local UIGradient_4 = Instance.new("UIGradient")
  184.         local UICorner_10 = Instance.new("UICorner")
  185.        
  186.         TabButton.Name = "TabButton"
  187.         TabButton.Parent = TabContainor
  188.         TabButton.BackgroundColor3 = Colors.TabColor
  189.         TabButton.Size = UDim2.new(0, 139, 0, 30)
  190.         TabButton.Font = Enum.Font.GothamSemibold
  191.         TabButton.TextColor3 = Colors.TabTextColor
  192.         TabButton.TextSize = 12.000
  193.         TabButton.Text = Name
  194.  
  195.         UICorner_4.CornerRadius = UDim.new(0, 3)
  196.         UICorner_4.Parent = TabButton
  197.  
  198.         Circle.Name = "Circle"
  199.         Circle.Parent = TabButton
  200.         Circle.AnchorPoint = Vector2.new(0.5, 0.5)
  201.         Circle.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  202.         Circle.BackgroundTransparency = 1.000
  203.         Circle.Position = UDim2.new(0.5, 0, 0.5, 0)
  204.         Circle.ZIndex = 10
  205.         Circle.Image = "rbxassetid://266543268"
  206.         Circle.ImageColor3 = Color3.fromRGB(0, 0, 0)
  207.         Circle.ImageTransparency = 0.500
  208.  
  209.         TabFrame.Name = Name
  210.         TabFrame.Parent = Frames
  211.         TabFrame.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  212.         TabFrame.Position = UDim2.new(-0.00164883374, 0, 0.0718827918, 0)
  213.         TabFrame.Size = UDim2.new(0, 414, 0, 385)
  214.  
  215.         UICorner_6.CornerRadius = UDim.new(0, 5)
  216.         UICorner_6.Parent = TabFrame
  217.  
  218.         UIGradient_3.Color = ColorSequence.new{ColorSequenceKeypoint.new(0.00, Color3.fromRGB(69, 81, 106)), ColorSequenceKeypoint.new(1.00, Color3.fromRGB(83, 88, 108))}
  219.         UIGradient_3.Rotation = 90
  220.         UIGradient_3.Parent = TabFrame
  221.  
  222.         Title_2.Name = "Title"
  223.         Title_2.Parent = TabFrame
  224.         Title_2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  225.         Title_2.BackgroundTransparency = 2.000
  226.         Title_2.Position = UDim2.new(0, 0, -0.077922076, 0)
  227.         Title_2.Size = UDim2.new(0, 414, 0, 32)
  228.         Title_2.Font = Enum.Font.GothamSemibold
  229.         Title_2.Text = Name
  230.         Title_2.TextColor3 = Color3.fromRGB(255, 255, 255)
  231.         Title_2.TextSize = 14.000
  232.         Title_2.TextXAlignment = Enum.TextXAlignment.Left
  233.  
  234.         ScrollingFrame.Parent = TabFrame
  235.         ScrollingFrame.Active = true
  236.         ScrollingFrame.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  237.         ScrollingFrame.BackgroundTransparency = 1.000
  238.         ScrollingFrame.BorderSizePixel = 0
  239.         ScrollingFrame.Position = UDim2.new(0.0193236712, 0, 0.0233766232, 0)
  240.         ScrollingFrame.Size = UDim2.new(0, 433, 0, 368)
  241.         ScrollingFrame.BottomImage = ""
  242.         ScrollingFrame.MidImage = ""
  243.         ScrollingFrame.TopImage = ""
  244.  
  245.         UIListLayout_2.Archivable = false
  246.         UIListLayout_2.Parent = ScrollingFrame
  247.         UIListLayout_2.SortOrder = Enum.SortOrder.LayoutOrder
  248.         UIListLayout_2.Padding = UDim.new(0, 4)
  249.  
  250.         Shadow.Name = "Shadow"
  251.         Shadow.Parent = TabFrame
  252.         Shadow.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  253.         Shadow.BackgroundTransparency = 0.900
  254.         Shadow.BorderSizePixel = 0
  255.         Shadow.Position = UDim2.new(0, 0, 0.872727275, 0)
  256.         Shadow.Size = UDim2.new(0, 414, 0, 49)
  257.  
  258.         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))}
  259.         UIGradient_4.Rotation = 270
  260.         UIGradient_4.Parent = Shadow
  261.  
  262.         UICorner_10.Parent = Shadow
  263.  
  264.         pcall(function()
  265.             local TweenService = game:GetService("TweenService")
  266.  
  267.             local Color1 = {}
  268.             Color1.BackgroundColor3 = Colors.HTabColor
  269.    
  270.             local Color2 = {}
  271.             Color2.BackgroundColor3 = Colors.TabColor
  272.    
  273.             local TweenTime = TweenInfo.new(0.5)
  274.             local Tween1 = TweenService:Create(TabButton, TweenTime, Color1)
  275.             local Tween2 = TweenService:Create(TabButton, TweenTime, Color2)
  276.    
  277.             TabButton.MouseEnter:Connect(function()
  278.                 Tween1:Play()
  279.             end)
  280.    
  281.             TabButton.MouseLeave:Connect(function()
  282.                 Tween2:Play()
  283.             end)
  284.            
  285.             local RippleColor        = Color3.fromRGB(255,255,255) -- RGB Color of the ripple effect, you can change it.
  286.             local RippleTransparency = 0.8 ---------------------------- Max is 1, Min is 0
  287.             local PixelSize          = 2000 --------------------------- The Max size of the ripple in pixels
  288.             local TimeLength         = 0.9 ---------------------------- How long the ripple animation is
  289.             local FadeLength         = 0.6 ---------------------------- How long it takes for the ripple to fade out
  290.    
  291.             local frame = TabButton
  292.             local rgb = Color3.fromRGB
  293.             local ud2 = UDim2.new
  294.             repeat wait()
  295.             until game.Players.LocalPlayer
  296.             local plr = game.Players.LocalPlayer
  297.             local mouse = plr:GetMouse()
  298.    
  299.             frame.ClipsDescendants = true
  300.             frame.AutoButtonColor = false
  301.    
  302.             function tweenInRipple(ripple)
  303.                 spawn(function()
  304.                     local TweenService = game:GetService("TweenService")
  305.                     local Part = ripple
  306.                     local Info = TweenInfo.new(
  307.                         TimeLength,
  308.                         Enum.EasingStyle.Linear,
  309.                         Enum.EasingDirection.InOut,
  310.                         0,
  311.                         false,
  312.                         0
  313.                     )
  314.                     local Goals =
  315.                         {
  316.                             Size = ud2(0, PixelSize, 0, PixelSize);
  317.                         }
  318.                     local Tween = TweenService:Create(Part, Info, Goals)
  319.                     Tween:Play()
  320.                 end)
  321.             end
  322.    
  323.             function fadeOutRipple(ripple)
  324.                 spawn(function()
  325.                     local TweenService = game:GetService("TweenService")
  326.                     local Part = ripple
  327.                     local Info = TweenInfo.new(
  328.                         FadeLength,
  329.                         Enum.EasingStyle.Linear,
  330.                         Enum.EasingDirection.InOut,
  331.                         0,
  332.                         false,
  333.                         0
  334.                     )
  335.                     local Goals =
  336.                         {
  337.                             ImageTransparency = 1;
  338.                         }
  339.                     local Tween = TweenService:Create(Part, Info, Goals)
  340.                     Tween:Play()
  341.                     wait(FadeLength + 0.1)
  342.                     ripple:Destroy()
  343.                 end)
  344.             end
  345.    
  346.             frame.MouseButton1Down:Connect(function()
  347.                 local done = false
  348.                 local ripple = Circle:Clone()
  349.                 ripple.Parent = frame
  350.                 ripple.ZIndex = frame.ZIndex + 1
  351.                 ripple.ImageColor3 = RippleColor
  352.                 ripple.ImageTransparency = RippleTransparency
  353.                 tweenInRipple(ripple)
  354.                 frame.MouseButton1Up:Connect(function()
  355.                     if done == false then
  356.                         done = true
  357.                         fadeOutRipple(ripple)
  358.                     end
  359.                 end)
  360.                 wait(4);
  361.                 done = true;
  362.                 fadeOutRipple(ripple) -- if it doesnt detect that it was unselected
  363.             end)
  364.         end)
  365.  
  366.         TabButton.MouseButton1Down:Connect(function()
  367.             for _,v in pairs(Frames:GetChildren()) do
  368.                 if v:IsA("Frame") then
  369.                     v.Visible = false
  370.                 end
  371.             end
  372.  
  373.             TabFrame.Visible = true
  374.         end)
  375.  
  376.         local Library3 = {}
  377.  
  378.         function Library3.Seperator()
  379.             local Seperator = Instance.new("Frame")
  380.             local UICorner_8 = Instance.new("UICorner")
  381.  
  382.             Seperator.Name = "Seperator"
  383.             Seperator.Parent = ScrollingFrame
  384.             Seperator.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  385.             Seperator.Position = UDim2.new(0, 0, 0.0923913047, 0)
  386.             Seperator.Size = UDim2.new(0, 398, 0, 3)
  387.  
  388.             UICorner_8.CornerRadius = UDim.new(0, 6)
  389.             UICorner_8.Parent = Seperator
  390.         end
  391.  
  392.         function Library3.Button(Name, Callback)
  393.             local Button = Instance.new("TextButton")
  394.             local UICorner_7 = Instance.new("UICorner")
  395.             local Circle = Instance.new("ImageLabel")
  396.  
  397.             Circle.Name = "Circle"
  398.             Circle.Parent = TabButton
  399.             Circle.AnchorPoint = Vector2.new(0.5, 0.5)
  400.             Circle.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  401.             Circle.BackgroundTransparency = 1.000
  402.             Circle.Position = UDim2.new(0.5, 0, 0.5, 0)
  403.             Circle.ZIndex = 10
  404.             Circle.Image = "rbxassetid://266543268"
  405.             Circle.ImageColor3 = Color3.fromRGB(0, 0, 0)
  406.             Circle.ImageTransparency = 0.500
  407.            
  408.             Button.Name = "Button"
  409.             Button.Parent = ScrollingFrame
  410.             Button.BackgroundColor3 = Colors.Features
  411.             Button.Size = UDim2.new(0, 398, 0, 30)
  412.             Button.Font = Enum.Font.GothamSemibold
  413.             Button.Text = "  ".. Name
  414.             Button.TextColor3 = Colors.FeaturesText
  415.             Button.TextSize = 13.000
  416.             Button.TextXAlignment = Enum.TextXAlignment.Left
  417.            
  418.             UICorner_7.CornerRadius = UDim.new(0, 3)
  419.             UICorner_7.Parent = Button
  420.  
  421.             Button.MouseButton1Down:Connect(function()
  422.                 spawn(function()
  423.                     pcall(Callback)
  424.                 end)
  425.             end)
  426.  
  427.             pcall(function()
  428.                 local TweenService = game:GetService("TweenService")
  429.  
  430.                 local Color1 = {}
  431.                 Color1.BackgroundColor3 = Colors.HFeatures
  432.        
  433.                 local Color2 = {}
  434.                 Color2.BackgroundColor3 = Colors.Features
  435.        
  436.                 local TweenTime = TweenInfo.new(0.5)
  437.                 local Tween1 = TweenService:Create(Button, TweenTime, Color1)
  438.                 local Tween2 = TweenService:Create(Button, TweenTime, Color2)
  439.        
  440.                 Button.MouseEnter:Connect(function()
  441.                     Tween1:Play()
  442.                 end)
  443.        
  444.                 Button.MouseLeave:Connect(function()
  445.                     Tween2:Play()
  446.                 end)
  447.             end)
  448.  
  449.             pcall(function()
  450.                 local RippleColor        = Color3.fromRGB(255,255,255) -- RGB Color of the ripple effect, you can change it.
  451.                 local RippleTransparency = 0.8 ---------------------------- Max is 1, Min is 0
  452.                 local PixelSize          = 2000 --------------------------- The Max size of the ripple in pixels
  453.                 local TimeLength         = 0.9 ---------------------------- How long the ripple animation is
  454.                 local FadeLength         = 0.6 ---------------------------- How long it takes for the ripple to fade out
  455.        
  456.                 local frame = Button
  457.                 local rgb = Color3.fromRGB
  458.                 local ud2 = UDim2.new
  459.                 repeat wait()
  460.                 until game.Players.LocalPlayer
  461.                 local plr = game.Players.LocalPlayer
  462.                 local mouse = plr:GetMouse()
  463.        
  464.                 frame.ClipsDescendants = true
  465.                 frame.AutoButtonColor = false
  466.        
  467.                 function tweenInRipple(ripple)
  468.                     spawn(function()
  469.                         local TweenService = game:GetService("TweenService")
  470.                         local Part = ripple
  471.                         local Info = TweenInfo.new(
  472.                             TimeLength,
  473.                             Enum.EasingStyle.Linear,
  474.                             Enum.EasingDirection.InOut,
  475.                             0,
  476.                             false,
  477.                             0
  478.                         )
  479.                         local Goals =
  480.                             {
  481.                                 Size = ud2(0, PixelSize, 0, PixelSize);
  482.                             }
  483.                         local Tween = TweenService:Create(Part, Info, Goals)
  484.                         Tween:Play()
  485.                     end)
  486.                 end
  487.        
  488.                 function fadeOutRipple(ripple)
  489.                     spawn(function()
  490.                         local TweenService = game:GetService("TweenService")
  491.                         local Part = ripple
  492.                         local Info = TweenInfo.new(
  493.                             FadeLength,
  494.                             Enum.EasingStyle.Linear,
  495.                             Enum.EasingDirection.InOut,
  496.                             0,
  497.                             false,
  498.                             0
  499.                         )
  500.                         local Goals =
  501.                             {
  502.                                 ImageTransparency = 1;
  503.                             }
  504.                         local Tween = TweenService:Create(Part, Info, Goals)
  505.                         Tween:Play()
  506.                         wait(FadeLength + 0.1)
  507.                         ripple:Destroy()
  508.                     end)
  509.                 end
  510.        
  511.                 frame.MouseButton1Down:Connect(function()
  512.                     local done = false
  513.                     local ripple = Circle:Clone()
  514.                     ripple.Parent = frame
  515.                     ripple.ZIndex = frame.ZIndex + 1
  516.                     ripple.ImageColor3 = RippleColor
  517.                     ripple.ImageTransparency = RippleTransparency
  518.                     tweenInRipple(ripple)
  519.                     frame.MouseButton1Up:Connect(function()
  520.                         if done == false then
  521.                             done = true
  522.                             fadeOutRipple(ripple)
  523.                         end
  524.                     end)
  525.                     wait(4);
  526.                     done = true;
  527.                     fadeOutRipple(ripple) -- if it doesnt detect that it was unselected
  528.                 end)
  529.             end)
  530.         end
  531.  
  532.         function Library3.TextBox(Text, PlaceHolder, Callback)
  533.             local Frame = Instance.new("Frame")
  534.             local UICorner_9 = Instance.new("UICorner")
  535.             local TextBox = Instance.new("TextBox")
  536.  
  537.             Frame.Parent = ScrollingFrame
  538.             Frame.BackgroundColor3 = Color3.fromRGB(143, 152, 200)
  539.             Frame.Position = UDim2.new(0, 0, 0.108695649, 0)
  540.             Frame.Size = UDim2.new(0, 398, 0, 30)
  541.  
  542.             UICorner_9.CornerRadius = UDim.new(0, 3)
  543.             UICorner_9.Parent = Frame
  544.  
  545.             TextBox.Parent = Frame
  546.             TextBox.BackgroundColor3 = Color3.fromRGB(143, 152, 200)
  547.             TextBox.BackgroundTransparency = 1.000
  548.             TextBox.Position = UDim2.new(0.0201005023, 0, 0, 0)
  549.             TextBox.Size = UDim2.new(0, 390, 0, 30)
  550.             TextBox.Font = Enum.Font.GothamSemibold
  551.             TextBox.Text = Text
  552.             TextBox.PlaceholderText = PlaceHolder
  553.             TextBox.TextColor3 = Color3.fromRGB(255, 255, 255)
  554.             TextBox.PlaceholderColor3 = Color3.fromRGB(224, 236, 255)
  555.             TextBox.TextSize = 13.000
  556.             TextBox.TextXAlignment = Enum.TextXAlignment.Left
  557.  
  558.             pcall(function()
  559.                 local TweenService = game:GetService("TweenService")
  560.  
  561.                 local Color1 = {}
  562.                 Color1.BackgroundColor3 = Colors.HFeatures
  563.        
  564.                 local Color2 = {}
  565.                 Color2.BackgroundColor3 = Colors.Features
  566.        
  567.                 local TweenTime = TweenInfo.new(0.5)
  568.                 local Tween1 = TweenService:Create(Frame, TweenTime, Color1)
  569.                 local Tween2 = TweenService:Create(Frame, TweenTime, Color2)
  570.        
  571.                 Frame.MouseEnter:Connect(function()
  572.                     Tween1:Play()
  573.                 end)
  574.        
  575.                 Frame.MouseLeave:Connect(function()
  576.                     Tween2:Play()
  577.                 end)
  578.             end)
  579.            
  580.             TextBox.FocusLost:Connect(function()
  581.                 spawn(function()
  582.                     pcall(Callback, TextBox.Text)
  583.                 end)
  584.             end)
  585.  
  586.             local Library4 = {}
  587.  
  588.             function Library4.GetText()
  589.                 return TextBox.Text
  590.             end
  591.  
  592.             function Library4.UpdateText(Text)
  593.                 TextBox.Text = Text
  594.             end
  595.  
  596.             function Library4.UpdatePlaceholderText(Text)
  597.                 TextBox.PlaceholderText = Text
  598.             end
  599.  
  600.             return Library4
  601.         end
  602.  
  603.         return Library3
  604.     end
  605.  
  606.     function Library2.AutoFrame(Name)
  607.         for _,v in pairs(Frames:GetChildren()) do
  608.             if v:IsA("Frame") then
  609.                 v.Visible = false
  610.             end
  611.         end
  612.  
  613.         Frames[Name].Visible = true
  614.     end
  615.  
  616.     return Library2
  617. end
  618.  
  619. function Library.AntiDuplicate(Bool, Name)
  620.     local Check = game.CoreGui:FindFirstChild(Name)
  621.  
  622.     if Bool == true then
  623.         Settings[1] = true
  624.     else
  625.         Settings[1] = false
  626.     end
  627.  
  628.     if Settings[1] == true then
  629.         if Check then
  630.             Check:Destroy()
  631.             print("[Logs] - Destroyed Past GUI")
  632.         end
  633.     end
  634. end
  635.  
  636. local AntiDuplication = Library.AntiDuplicate(true, "SELEXITY")
  637. local Window = Library.Window("SELEXITY")
  638. local Tab1 = Window.Tab("TAB 1")
  639.  
  640. local StartFrame = Window.AutoFrame("TAB 1")
  641.  
  642. Tab1.Seperator()
  643.  
  644. Tab1.Button("Button", function()
  645.     print('Cool Button')
  646. end)
  647.  
  648. local Tb = Tab1.TextBox("", "Text Box", function(Text)
  649.     print(Text)
  650. end)
  651.  
  652. Tab1.Button("Get Text (Text Box)", function()
  653.     print(Tb.GetText())
  654. end)
  655.  
  656. Tab1.Button("Update Text (Text Box)", function()
  657.     print(Tb.UpdateText("New Text"))
  658. end)
  659.  
  660. Tab1.Button("Update Placeholder Text (Text Box)", function()
  661.     print(Tb.UpdatePlaceholderText("New Placeholder Text"))
  662. end)
  663.  
  664. Tab1.Seperator()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement