So Basically I Made A Walking NPC Script And I Wanted To Add Random Shirts From My Table, I Went Online To See Some Answers and saw:
Functions and variables
shirts = {6922626706, 6706140296}
local randomshirt = math.random(1,#shirts)
local clothing = npc.Shirt
function format(Id)
return string.format("rbxthumb://type=Asset&id=%s&w=420&h=420", Id)
end
Change Shirt
clothing.ShirtTemplate = format(shirts[math.random(1, #shirts)])
Also I didn't do this in separate scripts
Problem Is When I Test The Game The Shirt, Is Not What I Expected. It had a sphere dummy head and a black thing on the waist?
And Also The Shirts Arent The Problem.
Please Correct Me If I Am Wrong, Do I Need A Remote Event/Function/Bindable?
And Just To Remind You, Stay Safe!
EDIT: ** Sorry To Waste Your Time But Actually The Image Was The Shirt But A Dummy Wore It XD**

4 comments
Tried that already, it is the shirt ID I wanted.
Also Does Shirt Work With Mesh Dummys?
Weird
I fixed it already!