Advertisement
ArTeMROBLOX

Untitled

Mar 29th, 2020
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.17 KB | None | 0 0
  1. local Library = {}
  2. function Library:CreateMain()
  3. local LibraryUI = Instance.new("ScreenGui")
  4. local Frame = Instance.new("Frame")
  5. local UIListLayout = Instance.new("UIListLayout")
  6. local TextButton = Instance.new("TextButton")
  7.  
  8.  
  9.  
  10. LibraryUI.Name = "LibraryUI"
  11. LibraryUI.Parent = game:GetService("CoreGui")
  12. LibraryUI.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  13.  
  14.  
  15.  
  16. Frame.Parent = LibraryUI
  17. Frame.Active = true
  18. Frame.Draggable = true
  19. Frame.BackgroundColor3 = Color3.fromRGB(107, 107, 107)
  20. Frame.BorderSizePixel = 0
  21. Frame.Position = UDim2.new(0.476774752, 0, 0.315555573, 0)
  22. Frame.Size = UDim2.new(0, 199, 0, 249)
  23.  
  24.  
  25.  
  26. UIListLayout.Parent = Frame
  27. UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
  28.  
  29. local TestLibrary = {}
  30.  
  31. function TestLibrary:CreateButton(name)
  32.  
  33. local TextButton = Instance.new("TextButton")
  34. TextButton.Parent = Frame
  35. TextButton.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  36. TextButton.Size = UDim2.new(0, 200, 0, 50)
  37. TextButton.Font = Enum.Font.SourceSans
  38. TextButton.Text = name
  39. TextButton.TextColor3 = Color3.fromRGB(0, 0, 0)
  40. TextButton.TextSize = 14.000
  41. end
  42.  
  43. return TestLibrary;
  44. end
  45.  
  46. return Library;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement