Advertisement
1yawaROS1

Join And Leave Detector Script

Mar 31st, 2020
209
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. game.Players.ChildAdded:Connect(function(player)
  2. if not pcall (function()
  3. SendNotification("Player JOINED",""..player.Name.." has JOINED the game",5 )
  4. end) then
  5. print ("Error")
  6. end
  7. end)
  8.  
  9. --Leave Detecter
  10.  
  11. game.Players.ChildRemoved:Connect(function(player)
  12. if not pcall (function()
  13. SendNotification("Player LEFT",""..player.Name.." has LEFT the game",4.4 )
  14. end) then
  15. print ("Error")
  16. end
  17. end)
  18.  
  19. SendNotification("Loaded","Join and leave detector is loaded",2)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement