Hellotop2

Untitled

Jan 26th, 2019
179
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.66 KB | None | 0 0
  1. -- Objects
  2.  
  3. local ScreenGui = Instance.new("ScreenGui")
  4. local Notification = Instance.new("Frame")
  5. local changelogs = Instance.new("TextLabel")
  6. local closenotify = Instance.new("TextButton")
  7. local NotificationBar = Instance.new("Frame")
  8. local PlayerImage = Instance.new("ImageLabel")
  9. local plrleft = Instance.new("TextLabel")
  10.  
  11. -- Properties
  12.  
  13. ScreenGui.Parent = game.CoreGui
  14. ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  15.  
  16. Notification.Name = "Notification"
  17. Notification.Parent = ScreenGui
  18. Notification.BackgroundColor3 = Color3.new(1, 1, 1)
  19. Notification.BorderColor3 = Color3.new(0.8, 0.768628, 0.74902)
  20. Notification.Position = UDim2.new(0.803354144, 0, 0.698284447, 0)
  21. Notification.Size = UDim2.new(0, 338, 0, 222)
  22. Notification.Visible = false
  23.  
  24. changelogs.Name = "changelogs"
  25. changelogs.Parent = Notification
  26. changelogs.BackgroundColor3 = Color3.new(1, 1, 1)
  27. changelogs.BackgroundTransparency = 1
  28. changelogs.Position = UDim2.new(0.591715991, 0, 0.132135347, 0)
  29. changelogs.Size = UDim2.new(0, 138, 0, 192)
  30. changelogs.ZIndex = 5
  31. changelogs.Font = Enum.Font.SourceSansSemibold
  32. changelogs.Text = "3vpl has joined."
  33. changelogs.TextColor3 = Color3.new(0, 0, 0)
  34. changelogs.TextSize = 17
  35. changelogs.TextWrapped = true
  36. changelogs.TextXAlignment = Enum.TextXAlignment.Left
  37. changelogs.TextYAlignment = Enum.TextYAlignment.Top
  38.  
  39. closenotify.Name = "closenotify"
  40. closenotify.Parent = Notification
  41. closenotify.BackgroundColor3 = Color3.new(1, 1, 1)
  42. closenotify.BackgroundTransparency = 1
  43. closenotify.Position = UDim2.new(0.92899406, 0, 0, 0)
  44. closenotify.Size = UDim2.new(0, 24, 0, 23)
  45. closenotify.ZIndex = 2
  46. closenotify.Font = Enum.Font.SourceSansSemibold
  47. closenotify.Text = "X"
  48. closenotify.TextColor3 = Color3.new(0, 0, 0)
  49. closenotify.TextScaled = true
  50. closenotify.TextSize = 14
  51. closenotify.TextWrapped = true
  52.  
  53. NotificationBar.Name = "NotificationBar"
  54. NotificationBar.Parent = Notification
  55. NotificationBar.BackgroundColor3 = Color3.new(0.333333, 0.666667, 1)
  56. NotificationBar.BorderColor3 = Color3.new(0.298039, 0.603922, 0.909804)
  57. NotificationBar.Size = UDim2.new(0, 13, 0, 222)
  58.  
  59. PlayerImage.Name = "PlayerImage"
  60. PlayerImage.Parent = Notification
  61. PlayerImage.BackgroundColor3 = Color3.new(1, 1, 1)
  62. PlayerImage.BackgroundTransparency = 1
  63. PlayerImage.Position = UDim2.new(0.0650887564, 0, 0.103603601, 0)
  64. PlayerImage.Size = UDim2.new(0, 168, 0, 164)
  65. PlayerImage.Image = "rbxassetid://924320031"
  66.  
  67. plrleft.Name = "plrleft"
  68. plrleft.Parent = Notification
  69. plrleft.BackgroundColor3 = Color3.new(1, 1, 1)
  70. plrleft.BackgroundTransparency = 1
  71. plrleft.Position = UDim2.new(0.591715991, 0, 0.52853173, 0)
  72. plrleft.Size = UDim2.new(0, 138, 0, 192)
  73. plrleft.ZIndex = 5
  74. plrleft.Font = Enum.Font.SourceSansSemibold
  75. plrleft.Text = "Players in server : 10"
  76. plrleft.TextColor3 = Color3.new(0, 0, 0)
  77. plrleft.TextSize = 17
  78. plrleft.TextWrapped = true
  79. plrleft.TextXAlignment = Enum.TextXAlignment.Left
  80. plrleft.TextYAlignment = Enum.TextYAlignment.Top
  81. closenotify.MouseButton1Click:Connect(function()
  82. Notification.Visible = false
  83. end)
  84. game.Players.PlayerAdded:connect(function(p)
  85. PlayerImage.Image = "http://www.roblox.com/thumbs/avatar.ashx?x=352&y=352&format=png&username="..p.Name
  86. Notification.Visible = true
  87. changelogs.Text = p.Name.." has joined the game."
  88. plrleft.Text = "Players left: "..game.Players.NumPlayers.."/"..game.Players.MaxPlayers
  89. end)
  90. game.Players.PlayerAdded:connect(function(pl)
  91. PlayerImage.Image = "http://www.roblox.com/thumbs/avatar.ashx?x=352&y=352&format=png&username="..pl.Name
  92. Notification.Visible = true
  93. changelogs.Text = pl.Name.." has left the game."
  94. plrleft.Text = "Players left: "..game.Players.NumPlayers.."/"..game.Players.MaxPlayers
  95. end)
Advertisement
Add Comment
Please, Sign In to add comment