Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

what are the methods or functions in a players friend?

When a player sends a friend request how does the script find it?

3 comments

0

Can you be more clear what you're asking? The question as stated doesn't make sense. (Edit your original post please)

0

Are you trying to ask how does Roblox handle Friend Requests in-game?

0

yes

1 answer

✓ Accepted answer

You can check if a player is friends with another by using the following line of code:

if game.Players.PlayerName:IsFriendsWith(userid) then
	--code
end

That would check if the player named "PlayerName" was friends with the user of the User ID "userid". You would replace userid with the numbers found in the URL on players' profiles.

This discussion is preserved as it was. New answers, comments, and votes are closed.