Skip to content

Instantly share code, notes, and snippets.

@nodomw
Created November 8, 2022 18:38
Show Gist options
  • Save nodomw/01bb0e9b5ade53095ae0ddfae51d620e to your computer and use it in GitHub Desktop.
Save nodomw/01bb0e9b5ade53095ae0ddfae51d620e to your computer and use it in GitHub Desktop.
game.Players.ChildAdded:Connect(function(player)
game:GetService('StarterGui'):SetCore('SendNotification', {
Title = player.Name,
Text = 'has joined the server. .\n[AGE: ' ..player.AccountAge.. ']',
Icon = [[http://www.roblox.com/Thumbs/Avatar.ashx?x=100&y=100&Format=Png&userName=]]..player.Name..[[&RAND]] .. math.random(1,100000000),
Duration = 5,
})
end)
game.Players.ChildRemoved:Connect(function(player)
game:GetService('StarterGui'):SetCore('SendNotification', {
Title = player.Name,
Text = 'has left the server. .\n[AGE: ' ..player.AccountAge.. ']',
Icon = [[http://www.roblox.com/Thumbs/Avatar.ashx?x=100&y=100&Format=Png&userName=]]..player.Name..[[&RAND]] .. math.random(1,100000000),
Duration = 5,
})
end)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment