Molodejkaoff

Untitled

Jun 30th, 2020
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.30 KB | None | 0 0
  1. do
  2. local a = game:GetService("CoreGui"):FindFirstChild("Test")
  3. if a then a:Destroy() end
  4. end
  5.  
  6. local Library = {}
  7.  
  8. function Library:CreateMain()
  9. local Test = Instance.new("ScreenGui")
  10. local Main = Instance.new("Frame")
  11. local UIListLayout = Instance.new("UIListLayout")
  12.  
  13. Test.Name = "Test"
  14. Test.Parent = game.CoreGui
  15. Test.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  16.  
  17. Main.Name = "Main"
  18. Main.Parent = Test
  19. Main.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  20. Main.Position = UDim2.new(0.483870953, 0, 0.408644408, 0)
  21. Main.Size = UDim2.new(0, 203, 0, 186)
  22. Main.Style = Enum.FrameStyle.RobloxRound
  23.  
  24. UIListLayout.Parent = Main
  25. UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
  26.  
  27. local GamerLibrary = {}
  28.  
  29. function GamerLibrary:NewItem(name)
  30. local TextLabel = Instance.new("TextLabel")
  31.  
  32. TextLabel.Parent = Main
  33. TextLabel.AnchorPoint = Vector2.new(1, 0)
  34. TextLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  35. TextLabel.BackgroundTransparency = 1.000
  36. TextLabel.Position = UDim2.new(0.796380103, 0, 0.0430107526, 0)
  37. TextLabel.Size = UDim2.new(0, 168, 0, 31)
  38. TextLabel.Font = Enum.Font.Fantasy
  39. TextLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
  40. TextLabel.TextSize = 14.000
  41. TextLabel.TextXAlignment = Enum.TextXAlignment.Left
  42. TextLabel.Text = name
  43.  
  44. end
  45.  
  46. function GamerLibrary:RemoveAll()
  47. table.remove(GamerLibrary,#GamerLibrary)
  48. end
  49. return GamerLibrary;
  50. end
  51. return Library;
Add Comment
Please, Sign In to add comment