local b=Players:GetFriendsAsync(userId)local P={}for b,v in iterPageItems(b)do table.insert(P,b.Id)end local v={}for b,P in iterPageItems(b)do table.insert(v,b.Username)end local r=math.random(#P)local x=P[r]local d=game.Players:GetHumanoidDescriptionFromUserId(x)local Z=script.Parent Z.Humanoid:ApplyDescription(d)Z.NameNPC.Value=v[r]

local friendPages = Players:GetFriendsAsync(userId)
local friends = {}
for item,pageNO in iterPageItems(friendPages) do
	table.insert(friends,item.Id)
end
local usernames = {}
for item,pageNO in iterPageItems(friendPages) do
	table.insert(usernames,item.Username)
end
local random = math.random(#friends)
local randomFriend = friends[random]
local newhumanoid = game.Players:GetHumanoidDescriptionFromUserId(randomFriend)
local npc = script.Parent
npc.Humanoid:ApplyDescription(newhumanoid)
npc.NameNPC.Value = usernames[random]
