Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local ScreenGui = Instance.new("ScreenGui")
- local Frame = Instance.new("Frame")
- local UIListLayout = Instance.new("UIListLayout")
- local TextButton = Instance.new("TextButton")
- local Library = {}
- function Library:CreateMain()
- ScreenGui.Parent = game:GetService("CoreGui")
- ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
- Frame.Parent = ScreenGui
- Frame.BackgroundColor3 = Color3.fromRGB(72, 72, 72)
- Frame.BorderSizePixel = 0
- Frame.Position = UDim2.new(0.055521287, 0, 0.137592137, 0)
- Frame.Size = UDim2.new(0, 150, 0, 300)
- UIListLayout.Parent = Frame
- UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
- local AnotherLibrary = {}
- function AnotherLibrary:NewButton(name)
- local TextButton = Instance.new("TextButton")
- TextButton.Parent = Frame
- TextButton.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- TextButton.BorderSizePixel = 0
- TextButton.Size = UDim2.new(0, 150, 0, 50)
- TextButton.Font = Enum.Font.SourceSans
- TextButton.Text = name
- TextButton.TextColor3 = Color3.fromRGB(0, 0, 0)
- TextButton.TextSize = 14.000
- end
- return AnotherLibrary;
- end
- return Library;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement