Random Player's friend appearance

Greetings!

If you ever played The Man Behind The Slaughter, you noticed that every time you join the game, there are always different friends of yours on the ground.

I want to copy the appearance of a random friend of LocalPlayer and apply it to an NPC.

In the last topic i’ve created i learnt how to copy the appearance of a player to a dummy. I also adressed my second problem there. Here i will give more info about it.

So for an example if a random player joins the game, i want and tried to understand how to copy the appearance of a random friend of the player and apply it to a specific dummy. I looked over Player:GetFriendsAsync() topic on Developer Hub and sadly didn’t understood anything.

To start with, i wanted to print the player’s friends to see if it works and already got stuck. Used different ways nd got the same results.

local LocalNPC = game.Workspace.LocalNPC.Humanoid
local Players = game:GetService("Players")
game.Players.PlayerAdded:Connect(function(player)
	LocalNPC:ApplyDescription(game.Players:GetHumanoidDescriptionFromUserId(player.UserId))
	print(Players:GetFriendsAsync(userId))
end)

Thank you everyone for helping and explaining! :heart:

6 Likes