Advertisement
Meliodas0_0

friends notifications

Sep 1st, 2019
210
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. game.Players.PlayerAdded:Connect(function(player)
  2. if player:IsFriendsWith(game.Players.LocalPlayer.UserId) then
  3. game.StarterGui:SetCore("SendNotification", {
  4. Title = "Friends";
  5. Text = player.Name .. " has joined the game!";
  6. Duration = 3;
  7. })
  8. end
  9. end)
  10.  
  11. game.Players.PlayerRemoving:Connect(function(player)
  12. if player:IsFriendsWith(game.Players.LocalPlayer.UserId) then
  13. game.StarterGui:SetCore("SendNotification", {
  14. Title = "Friends";
  15. Text = player.Name .. " has left the game!";
  16. Duration = 3;
  17. })
  18. end
  19. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement