RxFriendUtils
Utilities for observing the local player's friends.
Functions
observeFriendsInServerAsBrios
Observe friends in the current server (not including the LocalPlayer!), useful for social GUIs. The lifetimes exist for the whole duration another player is a friend and in your server. This means if a player is unfriended + friended multiple times per session, they will have emitted multiple friend lifetimes.
Works against PlayerMock players on either side: mocks in the DataModel are enumerated alongside
real players, and friendship resolves through the mock's "Player.IsFriendsWithAsync" domain. A
mock local player answers StarterGui:GetCore with its own stand-in for the CoreGui events below,
so a test fires a friending the way the CoreGui does:
PlayerMock.callMethod(player, "StarterGui.GetCore", "PlayerFriendedEvent"):Fire(otherPlayer)