Advertisement
Guest User

Untitled

a guest
Mar 28th, 2020
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.15 KB | None | 0 0
  1. -- Gui to Lua
  2. -- Version: 3.2
  3.  
  4. -- Instances:
  5.  
  6. local Library = {}
  7.  
  8. function Library:CreateMain()
  9.  
  10. local ScreenGui = Instance.new("ScreenGui")
  11. local Frame = Instance.new("Frame")
  12. local UIListLayout = Instance.new("UIListLayout")
  13.  
  14. ScreenGui.Parent = game:GetService("CoreGui")
  15. ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  16.  
  17. Frame.Parent = ScreenGui
  18. Frame.BackgroundColor3 = Color3.fromRGB(72, 72, 72)
  19. Frame.Position = UDim2.new(0.317575783, 0, 0.0877796933, 0)
  20. Frame.Size = UDim2.new(0, 233, 0, 412)
  21.  
  22. UIListLayout.Parent = Frame
  23. UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
  24.  
  25. local GamerLibrary = {}
  26.  
  27. function GamerLibrary:NewButton(name)
  28. local TextButton = Instance.new("TextButton")
  29.  
  30. TextButton.Parent = Frame
  31. TextButton.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  32. TextButton.Size = UDim2.new(0, 200, 0, 50)
  33. TextButton.Font = Enum.Font.SourceSans
  34. TextButton.Text = name
  35. TextButton.TextColor3 = Color3.fromRGB(0, 0, 0)
  36. TextButton.TextScaled = true
  37. TextButton.TextSize = 14.000
  38. TextButton.TextWrapped = true
  39. end
  40.  
  41. return GamerLibrary;
  42. end
  43.  
  44. return Library;
  45.  
  46. --Properties:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement