Advertisement
Be_Gone_Thot

BEST LIB EVER MADE

May 22nd, 2020
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.01 KB | None | 0 0
  1. local library = {}
  2.  
  3. function library.Window(name)
  4. local UI = {}
  5. local SHITLIB = Instance.new("ScreenGui")
  6. local Main = Instance.new("Frame")
  7. local Holder = Instance.new("Frame")
  8. local UIPadding = Instance.new("UIPadding")
  9. local Button = Instance.new("TextButton")
  10. local TextLabel = Instance.new("TextLabel")
  11. local UIListLayout = Instance.new("UIListLayout")
  12.  
  13. SHITLIB.Name = "SHIT LIB"
  14. SHITLIB.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  15. SHITLIB.ResetOnSpawn = false
  16.  
  17. Main.Name = "Main"
  18. Main.Parent = SHITLIB
  19. Main.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  20. Main.Position = UDim2.new(0.0532663316, 0, 0.13060686, 0)
  21. Main.Size = UDim2.new(0, 173, 0, 43)
  22. Main.ZIndex = 2
  23.  
  24. TextLabel.Parent = Main
  25. TextLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  26. TextLabel.Size = UDim2.new(0, 200, 0, 27)
  27. TextLabel.ZIndex = 3
  28. TextLabel.Text = name
  29. TextLabel.Font = Enum.Font.SourceSans
  30. TextLabel.TextColor3 = Color3.fromRGB(0, 0, 0)
  31. TextLabel.TextSize = 14.000
  32.  
  33. Holder.Name = "Holder"
  34. Holder.Parent = Main
  35. Holder.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  36. Holder.Position = UDim2.new(-0.00453715026, 0, 0.99107182, 0)
  37. Holder.Size = UDim2.new(1, 0, 0, 90)
  38.  
  39. UIPadding.Parent = Holder
  40.  
  41. UIListLayout.Parent = Holder
  42. UIListLayout.HorizontalAlignment = Enum.HorizontalAlignment.Center
  43. UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
  44. UIListLayout.Padding = UDim.new(0,2)
  45.  
  46. function Resize()
  47. Holder.Size = UDim2.new(1,0,0,UIListLayout.AbsoluteContentSize.Y)
  48. end
  49.  
  50. function UI.Toggle(name,callback)
  51. local Toggle = Instance.new("TextButton")
  52.  
  53. Toggle.Name = "Toggle"
  54. Toggle.Parent = Holder
  55. Toggle.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  56. Toggle.Size = UDim2.new(0, 222, 0, 35)
  57. Toggle.Font = Enum.Font.SourceSans
  58. Toggle.Text = name
  59. Toggle.TextColor3 = Color3.fromRGB(0, 0, 0)
  60. Toggle.TextSize = 14.000
  61.  
  62. local TweenService = game:GetService("TweenService");
  63. local tweenInfo = TweenInfo.new(0.4,Enum.EasingStyle.Linear,Enum.EasingDirection.Out,0,false,0)
  64. local Toggled = false
  65.  
  66. Toggle.MouseButton1Click:Connect(function()
  67. Toggled = not Toggled
  68. callback(Toggled)
  69. local ColorNew = Toggled and Color3.fromRGB(255,78,78) or Color3.fromRGB(255, 255, 255)
  70. TweenService:Create(Toggle,tweenInfo,{BackgroundColor3 = ColorNew}):Play()
  71. end)
  72. Resize()
  73. end
  74.  
  75. function UI.Button(name,callback)
  76. local Toggle = Instance.new("TextButton")
  77.  
  78. Button.Name = "Button"
  79. Button.Parent = Holder
  80. Button.Text = name
  81. Button.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  82. Button.Size = UDim2.new(0, 222, 0, 35)
  83. Button.Font = Enum.Font.SourceSans
  84. Button.TextColor3 = Color3.fromRGB(0, 0, 0)
  85. Button.TextSize = 14.000
  86.  
  87. Button.MouseButton1Click:Connect(function()
  88. callback()
  89. end)
  90. Resize()
  91. end
  92.  
  93. function UI.Box(name,callback)
  94. local textbox = Instance.new("Frame")
  95. local TextBox = Instance.new("TextBox")
  96. local TextLabel = Instance.new("TextLabel")
  97.  
  98. textbox.Name = "textbox"
  99. textbox.Parent = Holder
  100. textbox.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  101. textbox.Position = UDim2.new(0.210982665, 0, 0.777777791, 0)
  102. textbox.Size = UDim2.new(0, 271, 0, 42)
  103.  
  104. TextBox.Parent = textbox
  105. TextBox.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  106. TextBox.Position = UDim2.new(0.5719558, 0, 0.261904776, 0)
  107. TextBox.Size = UDim2.new(0, 108, 0, 20)
  108. TextBox.Font = Enum.Font.SourceSans
  109. TextBox.Text = ""
  110. TextBox.TextColor3 = Color3.fromRGB(0, 0, 0)
  111. TextBox.TextSize = 14.000
  112.  
  113. TextLabel.Parent = textbox
  114. TextLabel.Text = name
  115. TextLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  116. TextLabel.Position = UDim2.new(0.0147601478, 0, 0.261904776, 0)
  117. TextLabel.Size = UDim2.new(0, 139, 0, 20)
  118. TextLabel.Font = Enum.Font.SourceSans
  119. TextLabel.TextColor3 = Color3.fromRGB(0, 0, 0)
  120. TextLabel.TextSize = 14.000
  121.  
  122. TextBox.FocusLost:Connect(function(Enter)
  123. if (Enter) then
  124. callback(TextBox.Text)
  125. end
  126. end)
  127. Resize()
  128. end
  129. return UI
  130. end
  131. return library
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement