I am trying to change the shirt on players when they touch a part. But I am getting a failed to load image even when I use different shirts. I get the error in both studio and live game(hitting green play button on games page)
This is the code I have:
function touch(hit)
print("Giving armor")
hit.Parent.Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=2154170154"
end
script.Parent.Touched:Connect(touch)
Error: 12:05:16.456 - Image "https://assetgame.roblox.com/asset/?id=2154170154" failed to load in "Workspace.bumblebeejake.Humanoid.Clothes": Request failed

2 comments
The error means the assetId couldn't load. You can just make a shirt with the assetId, and parent it to somewhere. Then you could make a script that removes the player's current shirt and clones the new shirt.
Thanks that fixed it!