Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- game.Players.PlayerAdded:Connect(function(player)
- if player:IsFriendsWith(game.Players.LocalPlayer.UserId) then
- game.StarterGui:SetCore("SendNotification", {
- Title = "Friends";
- Text = player.Name .. " has joined the game!";
- Duration = 3;
- })
- end
- end)
- game.Players.PlayerRemoving:Connect(function(player)
- if player:IsFriendsWith(game.Players.LocalPlayer.UserId) then
- game.StarterGui:SetCore("SendNotification", {
- Title = "Friends";
- Text = player.Name .. " has left the game!";
- Duration = 3;
- })
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement