Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- do
- local a = game:GetService("CoreGui"):FindFirstChild("Test")
- if a then a:Destroy() end
- end
- local Library = {}
- function Library:CreateMain()
- local Test = Instance.new("ScreenGui")
- local Main = Instance.new("Frame")
- local UIListLayout = Instance.new("UIListLayout")
- Test.Name = "Test"
- Test.Parent = game.CoreGui
- Test.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
- Main.Name = "Main"
- Main.Parent = Test
- Main.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Main.Position = UDim2.new(0.483870953, 0, 0.408644408, 0)
- Main.Size = UDim2.new(0, 203, 0, 186)
- Main.Style = Enum.FrameStyle.RobloxRound
- UIListLayout.Parent = Main
- UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
- local GamerLibrary = {}
- function GamerLibrary:NewItem(name)
- local TextLabel = Instance.new("TextLabel")
- TextLabel.Parent = Main
- TextLabel.AnchorPoint = Vector2.new(1, 0)
- TextLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- TextLabel.BackgroundTransparency = 1.000
- TextLabel.Position = UDim2.new(0.796380103, 0, 0.0430107526, 0)
- TextLabel.Size = UDim2.new(0, 168, 0, 31)
- TextLabel.Font = Enum.Font.Fantasy
- TextLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
- TextLabel.TextSize = 14.000
- TextLabel.TextXAlignment = Enum.TextXAlignment.Left
- TextLabel.Text = name
- end
- function GamerLibrary:RemoveAll()
- table.remove(GamerLibrary,#GamerLibrary)
- end
- return GamerLibrary;
- end
- return Library;
Add Comment
Please, Sign In to add comment