Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Library = {}
- function Library:CreateMain()
- local LibraryUI = Instance.new("ScreenGui")
- local Frame = Instance.new("Frame")
- local UIListLayout = Instance.new("UIListLayout")
- local TextButton = Instance.new("TextButton")
- LibraryUI.Name = "LibraryUI"
- LibraryUI.Parent = game:GetService("CoreGui")
- LibraryUI.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
- Frame.Parent = LibraryUI
- Frame.Active = true
- Frame.Draggable = true
- Frame.BackgroundColor3 = Color3.fromRGB(107, 107, 107)
- Frame.BorderSizePixel = 0
- Frame.Position = UDim2.new(0.476774752, 0, 0.315555573, 0)
- Frame.Size = UDim2.new(0, 199, 0, 249)
- UIListLayout.Parent = Frame
- UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
- local TestLibrary = {}
- function TestLibrary:CreateButton(name)
- local TextButton = Instance.new("TextButton")
- TextButton.Parent = Frame
- TextButton.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- TextButton.Size = UDim2.new(0, 200, 0, 50)
- TextButton.Font = Enum.Font.SourceSans
- TextButton.Text = name
- TextButton.TextColor3 = Color3.fromRGB(0, 0, 0)
- TextButton.TextSize = 14.000
- end
- return TestLibrary;
- end
- return Library;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement