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
You can use this script to work:
function touch(hit) if hit.Parent == game.Players.LocalPlayer.Character then print("Giving armor") hit.Parent.Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=2154170154" end end script.Parent.Touched:Connect(touch)