How to detect where players came from?

I have a short question, and I’m quite sure that it’s impossible but I’m still asking to be sure.
I am wondering if there’s a way to know how a player has joined your game? So for example if they found the game trough a search-result, or if they joined a friend, …

I don’t know how that would work, maybe there is like a service for that or a special callback in PlayerAdded()

Does anyone know this? Thanks in advance.

Nope, to my knowledge I don’t think this is possible.

You can use Player.FollowUserId to detect if a player followed someone into their game:

https://developer.roblox.com/en-us/api-reference/property/Player/FollowUserId

as @Ze_tsu said u can use Player.FollowUserId and put it in a statement, like in the api-reference. Then put an else statement. If the else statement has been executed that means the player probably came from either the game pages, recommended, etc…