Advertisement
Colyn_

Shit UI LIB

Jun 11th, 2020
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.07 KB | None | 0 0
  1. local ScreenGui = Instance.new("ScreenGui")
  2. local Frame = Instance.new("Frame")
  3. local UIListLayout = Instance.new("UIListLayout")
  4. local TextButton = Instance.new("TextButton")
  5.  
  6. local Library = {}
  7.  
  8. function Library:CreateMain()
  9. ScreenGui.Parent = game:GetService("CoreGui")
  10. ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  11.  
  12. Frame.Parent = ScreenGui
  13. Frame.BackgroundColor3 = Color3.fromRGB(72, 72, 72)
  14. Frame.BorderSizePixel = 0
  15. Frame.Position = UDim2.new(0.055521287, 0, 0.137592137, 0)
  16. Frame.Size = UDim2.new(0, 150, 0, 300)
  17.  
  18. UIListLayout.Parent = Frame
  19. UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
  20.  
  21. local AnotherLibrary = {}
  22.  
  23. function AnotherLibrary:NewButton(name)
  24. local TextButton = Instance.new("TextButton")
  25.  
  26. TextButton.Parent = Frame
  27. TextButton.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  28. TextButton.BorderSizePixel = 0
  29. TextButton.Size = UDim2.new(0, 150, 0, 50)
  30. TextButton.Font = Enum.Font.SourceSans
  31. TextButton.Text = name
  32. TextButton.TextColor3 = Color3.fromRGB(0, 0, 0)
  33. TextButton.TextSize = 14.000
  34. end
  35.  
  36. return AnotherLibrary;
  37. end
  38.  
  39. return Library;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement