I decided to make a game that tries to find a mutual friend between you and someone you choose, but I've run into a bit of a roadblock, in order to actually get the target friends I'm pretty sure you need their player instance, but I don't have that, is there a way to get their player instance or get their friends with just their username/userId?
-- right now all the code does is check if the user is friends with the target, but I need it to do a lot more than that
local Players = game:GetService("Players")
local player = game.Players.LocalPlayer
local targPlr = script.Parent.Parent.PlayerTextBox.Text
script.Parent.MouseButton1Down:Connect(function()
local id
pcall(function ()
id = Players:GetUserIdFromNameAsync(targPlr)
end)
if player:IsFriendsWith(id) then
end
end)

1 comment
https://friends.roblox.com/docs You can use http requests to fetch data from the api. If you aren't sure how to use it, I have a thread on devforum showing how to use httpservice.