Advertisement
RDMScript

Untitled

Mar 8th, 2020
223
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.04 KB | None | 0 0
  1. local Library = {}
  2.  
  3.  
  4. local ScreenGui = Instance.new("ScreenGui")
  5. local Frame1 = Instance.new("Frame")
  6. local Main = Instance.new("Frame")
  7. local UIListLayout = Instance.new("UIListLayout")
  8. local TextButton = Instance.new("TextButton")
  9. local TextLabel = Instance.new("TextLabel")
  10.  
  11. function Library:CreateMain()
  12. ScreenGui.Parent = game:GetService("CoreGui")
  13. ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  14.  
  15. Frame1.Name = "Frame1"
  16. Frame1.Parent = ScreenGui
  17. Frame1.BackgroundColor3 = Color3.new(0.247059, 0.247059, 0.247059)
  18. Frame1.BorderColor3 = Color3.new(0.247059, 0.247059, 0.247059)
  19. Frame1.Position = UDim2.new(0.0544789135, 0, 0.101593629, 0)
  20. Frame1.Size = UDim2.new(0, 219, 0, 19)
  21.  
  22. Main.Name = "Main"
  23. Main.Parent = Frame1
  24. Main.BackgroundColor3 = Color3.new(0.00392157, 0.00392157, 0.00392157)
  25. Main.BackgroundTransparency = 0.5
  26. Main.BorderColor3 = Color3.new(0.172549, 0.172549, 0.172549)
  27. Main.Position = UDim2.new(0.0273972601, 0, 1, 0)
  28. Main.Size = UDim2.new(0, 207, 0, 197)
  29.  
  30. UIListLayout.Parent = Main
  31. UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
  32.  
  33. local CoolLibrary = {}
  34.  
  35. function CoolLibrary:NewButton(name)
  36. TextButton.Parent = Main
  37. TextButton.BackgroundColor3 = Color3.new(0.00392157, 0.00392157, 0.00392157)
  38. TextButton.BackgroundTransparency = 1
  39. TextButton.BorderColor3 = Color3.new(0.00392157, 0.00392157, 0.00392157)
  40. TextButton.Position = UDim2.new(0.0262118764, 0, 2.06828165, 0)
  41. TextButton.Size = UDim2.new(0, 190, 0, 21)
  42. TextButton.Font = Enum.Font.Cartoon
  43. TextButton.Text = name
  44. TextButton.TextColor3 = Color3.new(1, 1, 1)
  45. TextButton.TextSize = 18
  46. TextButton.TextWrapped = true
  47. end
  48.  
  49. function CoolLibrary:Text(name)
  50. TextLabel.Parent = Frame1
  51. TextLabel.BackgroundColor3 = Color3.new(0.247059, 0.247059, 0.247059)
  52. TextLabel.BorderColor3 = Color3.new(0.247059, 0.247059, 0.247059)
  53. TextLabel.Size = UDim2.new(0, 219, 0, 19)
  54. TextLabel.Font = Enum.Font.SourceSans
  55. TextLabel.Text = name
  56. TextLabel.TextColor3 = Color3.new(1, 1, 1)
  57. TextLabel.TextSize = 20
  58. end
  59.  
  60. return CoolLibrary;
  61.  
  62. end
  63.  
  64. return Library;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement