Glexteon

Untitled

Oct 16th, 2019
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. local function SendNotification(title,text,duration,...)
  2. game.StarterGui:SetCore("SendNotification", {
  3. Title = title;
  4. Text = text;
  5. Icon = "";
  6. Duration = duration;
  7. })
  8. end
  9.  
  10. game.Players.ChildAdded:Connect(function(player)
  11. if not pcall (function()
  12. SendNotification("Joined.",""..player.Name.."",2.5 )
  13. end) then
  14. print ("Shid..")
  15. end
  16. end)
  17.  
  18. game.Players.ChildRemoved:Connect(function(player)
  19. if not pcall (function()
  20. SendNotification("Left.",""..player.Name.."",2.5 )
  21. end) then
  22. print ("Shid..")
  23. end
  24. end)
Add Comment
Please, Sign In to add comment