lets say i want to add friends that are friends with the user like this game here in a form of a npc. https://www.roblox.com/games/2142363973/T-Pose-Meme the game lists what i want, and it has that thing i said, im no good at explaining, how is that possible? does anybody know how it does that?
I'd recommend you utilize HTTPService and send GET /users/{userId}/friends request. (https://api.roblox.com/users/{userId}/friends) You should then randomly select a child from the decoded friend return.
function print_random_friend() plr = game.Players.LocalPlayer friend_url = 'https://api.roblox.com/users/'..plr.UserId..'/friends' local friends = game:GetService("HttpService"):GetAsync(friend_url) math.randomseed(tick()) ...Rest of the script...