Is it possible to prompt a player friend request to a player who is not in the same server or offline?

I would like to know how I could go about using “PromptSendFriendRequest”, or any method to have one player add another player if the other player is not online or not in the same server (basically alert the player of the friend notification through the Roblox website for example) when the first player clicks a button. Is this even possible?

Small example of what I want to achieve:

-- local script

MBBackground:FindFirstChild("Add").MouseButton1Click:Connect(function()
-- code to add player
end)

Apologies if this question was already answered somewhere else, I had trouble wording out my search and figured it’s probably not a popular question.

Thanks for any assistance,
Swyftey

Unfortunately, I would assume you’re unable to do this. The PromptSendFriendRequest requires the player, which would of course mean the player must be in game. I’m not aware of any other methods that you can send friend requests to people with other than PromptSendFriendRequest.

Thank you for this answer! I will find another way to create what I am trying to create.

1 Like

I don’t think this will be possible. You would, in theory, use this endpoint: Friends Api

However, not only do you need to be authenticated, the endpoint is captcha’d.

1 Like