So I have a list on all User IDs from a group, and I want to insert their avatar.
Is that possible?
This should work, but I don’t know how to actually insert them in avatar form.
local function insertPlayer(userId)
local success, profile = pcall(function()
return game.Players:GetUserAsync(userId)
end)
if success and profile then
local character = profile.CharacterAppearanceLoaded:Wait()
character:Clone().Parent = game.Workspace
else
print("Failed to fetch profile for user ID:", userId)
end
end
local userIds = {
3884180084,
3408409289,
1568415288,
3351289467,
1404726916,
3663248149,
852644198,
3390630382,
3879669195,
3751353300,
756514605,
110111350,
3679192449,
3172341065,
3997250103,
4035967110,
29235298,
687150900,
3611820998,
922186765,
905937089,
4124614402,
3045434096,
4268523809,
1027539550,
3695676007,
3991737514,
2866393875,
1267016582,
4441614577,
997394673,
3741449352,
3966212551,
1813255948,
2293930490,
1594769654,
902153781,
3412424327,
3121412353,
182746328,
4406436333,
2637726521,
4468269080,
4241470183,
2463471705,
4377772509,
3033661744,
2235570812,
4378279468,
4418165913,
4223659130,
1505544096,
1094464206,
4300715421,
1989849742,
4606792908,
4147897997,
4365851706,
2626173432,
2620094760,
4516306358,
4631358549,
4453381507,
3759865420,
1242334666,
4557926005,
2639015841,
1927242453,
2860254060,
2881145637,
732297487,
4620391872,
4424533177,
4091185103,
4497232448,
1584276194,
4356750165,
2884217904,
2762421246,
3992145888,
4420995642,
4687057125,
542451045,
4050332669,
4624696443,
2806293621,
2648925196,
4658224220,
3865652346,
4416851273,
902297060,
2406776837,
1492173683,
535918480,
4442106600,
2749364866,
4172571381,
4527403522,
2641872147,
4131986571,
4567044829,
4710138731,
3819772966,
1121079641,
1166161264,
617386600,
1192714960,
1536147512,
1681426908,
1186535668,
2256169439,
1724491796,
3134718549,
2716851683,
4751915439,
1173215933,
3580493570,
4000863285,
1126267818,
1435736985,
1992132247,
3686052924,
3624376598,
2378409475,
3967321648,
2863313120,
1504144317,
4693064062,
1321920370,
1385210727,
1563804158,
4557570089,
3720857918,
2297439891,
4828388393,
4753760453,
3605340210,
510241028,
3388603993,
979495571,
1839572292,
3470418695,
4823477579,
1462897956,
4098262229,
4658790026,
2630119627,
3823528946,
4024068215,
4721279560,
2657254340,
2020680074,
1094268319,
4873929316,
2703811642,
2213254442,
2400774513,
4777977621,
3535286696,
4858589917,
1775532663,
3449279692,
3468308636,
4240576399,
3729749238,
4191013715,
3220216449,
3925266988,
3742846932,
2863182091,
4876643974,
4413333427,
3622012531,
1665822952,
4731323900,
351044190,
4787749307,
2355375075,
1041214462,
374751190,
4756961188,
1992504335,
3242438973,
116907749}
for _, userId in ipairs(userIds) do
insertPlayer(userId)
end