Failed to load | Request Failed

You can write your topic however you want, but you need to answer these questions:

  1. What do you want to achieve?
    I’m trying to make a script that automatically changes a player’s shirt and pants to a clan group’s uniform.

  2. What is the issue?
    I keep getting this error that I don’t know how to fix.

  3. What solutions have you tried so far?

local Players = game:GetService("Players")

Players.PlayerAdded:Connect(function(player)
	player.CharacterAdded:Connect(function(character)
		if player:IsInGroup(5641067) then
			wait(2)
			for _, v in pairs(character:GetChildren()) do
				if v.Name == "Shirt" or v.Name == "Pants"  then
					v:Destroy()
				end
			end
			local Shirt = Instance.new("Shirt", character)
			Shirt.Name = "Shirt"
                        Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=4704222172"
                        local Pants = Instance.new("Pants", character)
			Pants.Name = "Pants"
                        Pants.PantsTemplate = "http://www.roblox.com/asset/?id=4704226609"
		end
	end)
end)

It seems that there is a problem with the images themselves, and not the script. Have you checked that the images exist?

1 Like

The ID leads directly to a clothing item in the catalog. :sweat: Is there a way to get that clothing item’s template without having ask the owner for it?

Edit: Nevermind, I got it.

Hey, how did figure out the problem?