Clothing not loading in studio.When I change clothing its not loading?

Title
clothes works normally but when I change it to something else using a script it doesnt work
here some of my code

		        script.Parent.FakeHead.Back2.Transparency = 0
			script.Parent.FakeHead.Front.Transparency = 0
			shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=7691872685"
			pants.PantsTemplate = "http://www.roblox.com/asset/?id=7691875360"

also for some reason top 2 lines dont work but im more focused on last two lines (top two lines are me trying to make decals transparent)

You said you are trying to make the decals transparent on the first 2 lines? Well you actually need to set transparency to 1 to make them invisible. Also, setting shirt and pants templates might work with just the number. So maybe try:

script.Parent.FakeHead.Back2.Transparency = 1
			script.Parent.FakeHead.Front.Transparency = 1
			shirt.ShirtTemplate = "7691872685"
			pants.PantsTemplate = "7691875360"

You need to use the clothing’s template IDs not their catalog IDs.
7691872653
7691875352

3 Likes

Definitely right about the transparency thing, not sure about the templates though