How to detect if the client became friends with another player

I want to play a little notification animation whenever a player friends another player that is in the same server, how would I go about doing this?

There isn’t a specific API for this, you could loop through the games players every few seconds and use the “Player:isFriendsWith()” method to see if players have became friends if they weren’t before.

2 Likes