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

How do you find out if someone is a friend of someone?

Asked by
Validark 1580 Snack Break Moderation Voter
10 years ago

I have looked it up, but can't seem to find anything. I want to check if a player in-game is friends with a player that is not in-game.

2 answers

Log in to vote
1
Answered by 10 years ago

You can use the IsFriendsWith method. Read about it here.

Ad
Log in to vote
0
Answered by 10 years ago

Or,

game.Players.PlayerAdded:connect(function(plr) if plr:IsFriendsWith(game.Players.LocalPlayer) then print("You have friends!") end end)

Answer this question