Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

what are the methods or functions in a players friend? [closed]

Asked by 10 years ago

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

0
Can you be more clear what you're asking? The question as stated doesn't make sense. (Edit your original post please) BlueTaslem 18071 — 10y
0
Are you trying to ask how does Roblox handle Friend Requests in-game? Shawnyg 4330 — 10y
0
yes legoson7 70 — 10y

Locked by BlueTaslem

This question has been locked to preserve its current state and prevent spam and unwanted comments and answers.

Why was this question closed?

1 answer

Log in to vote
1
Answered by 10 years ago

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.

Ad