Friend referral
A join that Roblox links to the player who invited the new player, through ReferredByPlayerId in GetJoinData.
Think of it as The name written on a guest pass: who brought this friend in.
Roblox fills ReferredByPlayerId for every kind of invite. Your server reads it in PlayerAdded and decides whether to reward the inviter and the new player. The value arrives with the joining client, so treat it as a hint: reward once per new player, after real play, and cap what one inviter can earn.
Official reference: create.roblox.com