So I'm making a character customization. I want it to where a player can wear any clothes they want in game from the catalog. This error keeps showing up "14:44:01.414 - Image "https://assetdelivery.roblox.com/v1/asset?id=4230996403" failed to load in "Workspace.XL_Justin.Humanoid.Clothes": Request failed". Is there any way to fix this?
CustomizationFolder.Pants.OnServerEvent:Connect(function(plr, ID)
local char = plr.Character
for i, v in pairs(char:GetChildren()) do
if v:IsA("Pants") then
v:Destroy()
end
end
local Item = Instance.new("Pants", char)
Item.Name = "Pants"
Item.PantsTemplate = "rbxassetid://"..ID
end)
CustomizationFolder.Shirt.OnServerEvent:Connect(function(plr, ID)
local char = plr.Character
for i, v in pairs(char:GetChildren()) do
if v:IsA("Shirt") then
v:Destroy()
end
end
local Item = Instance.new("Shirt", char)
Item.Name = "Shirt"
Item.ShirtTemplate = "rbxassetid://"..ID
end)
