Why this random shirt giver not working it should work but it just sets the player shirt to nothing
local Shirts = {"593659701"}
local Faces = {"14721869"}
local RandomShirt = Shirts[math.random(1,#Shirts)]
local RandomFace = Faces[math.random(1,#Faces)]
game.Players.PlayerAdded:Connect(function(p)
p.CharacterAdded:Connect(function(c)
local shirt = c:WaitForChild("Shirt")
local face = c.Head:WaitForChild("Face")
if shirt and face then
shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=" .. RandomShirt
face.Texture = "http://www.roblox.com/asset/?id=4369496449"
end
end)
end)

3 comments
It gives me a error that says failed to load
When using your own ID or one of the ones in my suggestion? If it happens and it's talking about the shirt ID then that means that the shirt ID is unaccessible.
Oh nvm i solved it by adding shirts to a folder then select one and clone it then parent it to the character, it works great