Advertisement
NeverScript

Untitled

Feb 19th, 2020
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 3.21 KB | None | 0 0
  1. local Library = {}
  2. function Library:CreateMain()
  3.  
  4. local ScreenGui = Instance.new("ScreenGui")
  5. local Frame = Instance.new("ImageLabel")
  6. local ExampleButton = Instance.new("ImageLabel")
  7. local TextLabel = Instance.new("TextLabel")
  8. local ExampleButton1 = Instance.new("ImageLabel")
  9. local TextButton = Instance.new("TextButton")
  10. local UIListLayout = Instance.new("UIListLayout")
  11.  
  12. --Properties:
  13.  
  14. ScreenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  15.  
  16. Frame.Name = "Frame"
  17. Frame.Parent = ScreenGui
  18. Frame.BackgroundColor3 = Color3.fromRGB(35, 35, 35)
  19. Frame.BackgroundTransparency = 1.000
  20. Frame.Position = UDim2.new(0.415960461, 0, 0.408917248, 0)
  21. Frame.Size = UDim2.new(0, 201, 0, 194)
  22. Frame.Image = "rbxassetid://3570695787"
  23. Frame.ImageColor3 = Color3.fromRGB(35, 35, 35)
  24. Frame.ScaleType = Enum.ScaleType.Slice
  25. Frame.SliceCenter = Rect.new(100, 100, 100, 100)
  26.  
  27. local GamerLibrary = {}
  28.  
  29. function GamerLibrary:Label(name)
  30.  
  31. ExampleButton.Name = "ExampleButton"
  32. ExampleButton.Parent = Frame
  33. ExampleButton.Active = true
  34. ExampleButton.AnchorPoint = Vector2.new(0.5, 0.5)
  35. ExampleButton.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  36. ExampleButton.BackgroundTransparency = 1.000
  37. ExampleButton.Position = UDim2.new(0.159515947, 0, 0.124840558, 0)
  38. ExampleButton.Selectable = true
  39. ExampleButton.Size = UDim2.new(0, 162, 0, 40)
  40. ExampleButton.Image = "rbxassetid://3570695787"
  41. ExampleButton.ImageColor3 = Color3.fromRGB(45, 45, 45)
  42. ExampleButton.ScaleType = Enum.ScaleType.Slice
  43. ExampleButton.SliceCenter = Rect.new(100, 100, 100, 100)
  44.  
  45. TextLabel.Parent = ExampleButton
  46. TextLabel.BackgroundColor3 = Color3.fromRGB(45, 45, 45)
  47. TextLabel.BackgroundTransparency = 1.000
  48. TextLabel.BorderSizePixel = 0
  49. TextLabel.Position = UDim2.new(0.154320985, 0, 0, 0)
  50. TextLabel.Size = UDim2.new(0, 107, 0, 40)
  51. TextLabel.Font = Enum.Font.SourceSans
  52. TextLabel.Text = "name"
  53. TextLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
  54. TextLabel.TextSize = 14.000
  55.  
  56. ExampleButton1.Name = "ExampleButton1"
  57. ExampleButton1.Parent = Frame
  58. ExampleButton1.Active = true
  59. ExampleButton1.AnchorPoint = Vector2.new(0.5, 0.5)
  60. ExampleButton1.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  61. ExampleButton1.BackgroundTransparency = 1.000
  62. ExampleButton1.Position = UDim2.new(0.352191091, 0, 0.653953433, 0)
  63. ExampleButton1.Selectable = true
  64. ExampleButton1.Size = UDim2.new(0, 162, 0, 40)
  65. ExampleButton1.Image = "rbxassetid://3570695787"
  66. ExampleButton1.ImageColor3 = Color3.fromRGB(45, 45, 45)
  67. ExampleButton1.ScaleType = Enum.ScaleType.Slice
  68. ExampleButton1.SliceCenter = Rect.new(100, 100, 100, 100)
  69.  
  70. TextButton.Parent = ExampleButton1
  71. TextButton.BackgroundColor3 = Color3.fromRGB(45, 45, 45)
  72. TextButton.BackgroundTransparency = 1.000
  73. TextButton.BorderSizePixel = 0
  74. TextButton.Position = UDim2.new(0.174617887, 0, -0.0131144524, 0)
  75. TextButton.Size = UDim2.new(0, 102, 0, 40)
  76. TextButton.Font = Enum.Font.SourceSans
  77. TextButton.Text = name
  78. TextButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  79. TextButton.TextSize = 14.000
  80.  
  81. end
  82.  
  83. UIListLayout.Parent = Frame
  84. UIListLayout.HorizontalAlignment = Enum.HorizontalAlignment.Center
  85. UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
  86. UIListLayout.Padding = UDim.new(0, 5)
  87. return GamerLibrary;   
  88. end
  89. return Library;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement