Advertisement
rrixh

player joined/left

Jul 14th, 2023
2,302
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1. if not game:IsLoaded() then
  2. game.Loaded:Wait()
  3. end
  4. game.Players.ChildAdded:Connect(function(player)
  5. game:GetService('StarterGui'):SetCore('SendNotification', {
  6. Title = player.Name,
  7. Text = 'has joined the server. .\n[AGE: ' ..player.AccountAge.. ']',
  8. Icon = [[http://www.roblox.com/Thumbs/Avatar.ashx?x=100&y=100&Format=Png&userName=]]..player.Name..[[&RAND]] .. math.random(1,100000000),
  9. Duration = 5,
  10. })
  11. end)
  12. -- player leaves
  13. game.Players.ChildRemoved:Connect(function(player)
  14. game:GetService('StarterGui'):SetCore('SendNotification', {
  15. Title = player.Name,
  16. Text = 'has left the server. .\n[AGE: ' ..player.AccountAge.. ']',
  17. Icon = [[http://www.roblox.com/Thumbs/Avatar.ashx?x=100&y=100&Format=Png&userName=]]..player.Name..[[&RAND]] .. math.random(1,100000000),
  18. Duration = 5,
  19. })
  20. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement