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

How do I tell if a player isn't friends with another player?

So I'm trying to check if the player is friends with the Owner. I am getting the error: Unable to cast string to int64. I have this code as my if statement and I don't know what I should do to fix it.

if Player:IsFriendsWith(Owner) == false then
	--DoWhatever
end

1 answer

✓ Accepted answer

The parameter for the IsFriendsWith function has to be an int64, aka the owner's UserId. Simply go to the owner's profile page and copy and paste their Id into the parentheses or the value for local variable.

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