Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Objects
- local ScreenGui = Instance.new("ScreenGui")
- local Notification = Instance.new("Frame")
- local changelogs = Instance.new("TextLabel")
- local closenotify = Instance.new("TextButton")
- local NotificationBar = Instance.new("Frame")
- local PlayerImage = Instance.new("ImageLabel")
- local plrleft = Instance.new("TextLabel")
- -- Properties
- ScreenGui.Parent = game.CoreGui
- ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
- Notification.Name = "Notification"
- Notification.Parent = ScreenGui
- Notification.BackgroundColor3 = Color3.new(1, 1, 1)
- Notification.BorderColor3 = Color3.new(0.8, 0.768628, 0.74902)
- Notification.Position = UDim2.new(0.803354144, 0, 0.698284447, 0)
- Notification.Size = UDim2.new(0, 338, 0, 222)
- Notification.Visible = false
- changelogs.Name = "changelogs"
- changelogs.Parent = Notification
- changelogs.BackgroundColor3 = Color3.new(1, 1, 1)
- changelogs.BackgroundTransparency = 1
- changelogs.Position = UDim2.new(0.591715991, 0, 0.132135347, 0)
- changelogs.Size = UDim2.new(0, 138, 0, 192)
- changelogs.ZIndex = 5
- changelogs.Font = Enum.Font.SourceSansSemibold
- changelogs.Text = "3vpl has joined."
- changelogs.TextColor3 = Color3.new(0, 0, 0)
- changelogs.TextSize = 17
- changelogs.TextWrapped = true
- changelogs.TextXAlignment = Enum.TextXAlignment.Left
- changelogs.TextYAlignment = Enum.TextYAlignment.Top
- closenotify.Name = "closenotify"
- closenotify.Parent = Notification
- closenotify.BackgroundColor3 = Color3.new(1, 1, 1)
- closenotify.BackgroundTransparency = 1
- closenotify.Position = UDim2.new(0.92899406, 0, 0, 0)
- closenotify.Size = UDim2.new(0, 24, 0, 23)
- closenotify.ZIndex = 2
- closenotify.Font = Enum.Font.SourceSansSemibold
- closenotify.Text = "X"
- closenotify.TextColor3 = Color3.new(0, 0, 0)
- closenotify.TextScaled = true
- closenotify.TextSize = 14
- closenotify.TextWrapped = true
- NotificationBar.Name = "NotificationBar"
- NotificationBar.Parent = Notification
- NotificationBar.BackgroundColor3 = Color3.new(0.333333, 0.666667, 1)
- NotificationBar.BorderColor3 = Color3.new(0.298039, 0.603922, 0.909804)
- NotificationBar.Size = UDim2.new(0, 13, 0, 222)
- PlayerImage.Name = "PlayerImage"
- PlayerImage.Parent = Notification
- PlayerImage.BackgroundColor3 = Color3.new(1, 1, 1)
- PlayerImage.BackgroundTransparency = 1
- PlayerImage.Position = UDim2.new(0.0650887564, 0, 0.103603601, 0)
- PlayerImage.Size = UDim2.new(0, 168, 0, 164)
- PlayerImage.Image = "rbxassetid://924320031"
- plrleft.Name = "plrleft"
- plrleft.Parent = Notification
- plrleft.BackgroundColor3 = Color3.new(1, 1, 1)
- plrleft.BackgroundTransparency = 1
- plrleft.Position = UDim2.new(0.591715991, 0, 0.52853173, 0)
- plrleft.Size = UDim2.new(0, 138, 0, 192)
- plrleft.ZIndex = 5
- plrleft.Font = Enum.Font.SourceSansSemibold
- plrleft.Text = "Players in server : 10"
- plrleft.TextColor3 = Color3.new(0, 0, 0)
- plrleft.TextSize = 17
- plrleft.TextWrapped = true
- plrleft.TextXAlignment = Enum.TextXAlignment.Left
- plrleft.TextYAlignment = Enum.TextYAlignment.Top
- closenotify.MouseButton1Click:Connect(function()
- Notification.Visible = false
- end)
- game.Players.PlayerAdded:connect(function(p)
- PlayerImage.Image = "http://www.roblox.com/thumbs/avatar.ashx?x=352&y=352&format=png&username="..p.Name
- Notification.Visible = true
- changelogs.Text = p.Name.." has joined the game."
- plrleft.Text = "Players left: "..game.Players.NumPlayers.."/"..game.Players.MaxPlayers
- end)
- game.Players.PlayerAdded:connect(function(pl)
- PlayerImage.Image = "http://www.roblox.com/thumbs/avatar.ashx?x=352&y=352&format=png&username="..pl.Name
- Notification.Visible = true
- changelogs.Text = pl.Name.." has left the game."
- plrleft.Text = "Players left: "..game.Players.NumPlayers.."/"..game.Players.MaxPlayers
- end)
Advertisement
Add Comment
Please, Sign In to add comment