I want to know how to check if a player joined through PromptGameInvite(), so that if the player joined through PromptGameInvite(), it would put them on their friend's team. I thought of FollowUserId, but the API Reference wasn't specific on which way the player "followed" them into the game.
COMMUNITY QUESTION
How do I check if a player joined through PromptGameInvite()? [CLOSED]
0 answers
No public answers were preserved for this question.
This discussion is preserved as it was. New answers, comments, and votes are closed.

3 comments
I think you can use Player:IsFriendsWith() https://developer.roblox.com/api-reference/function/Player/IsFriendsWith
Alright, I'll try that
It works! Thank you