Hello, a few weeks ago I got stuck on my code, the code only works if you put an id, except if you add 2 or more id the code when the npc appears becomes null..
shirts = {
1118202405,
1537761670,
1442388484,
4413177915,
1471488077,
751482380,
2403967461
}
local randomshirt = math.random(7,#shirts)
local clothing = script.Parent.Clothing
clothing.ShirtTemplate = "rbxassetid://"..shirts[randomshirt]

2 comments
it works, except that the npc all have the same id put in ShirtTemplate, except that the game refuses to display them in the npc directly, the data is well put, but no display update is done on the npc.
Same problem. I test with 3 option. https://i.gyazo.com/02a3a7d41f0006b56c013b447278ede8.gif In video : https://i.gyazo.com/668a0c4e387caf17ebea340dec02cdf6.mp4 but if I enter it myself by pressing "enter", it works. [https://i.gyazo.com/0f29f65b2fee49cb8ded9cc2c5703697.mp4