Uniform giver not working

[Solved]

So basically what I am trying to do is make a police uniform giver. Currently if I test my script in my own place with the shirts im wearing on my avatar its working completely fine, but the game im currently working on has a clothing shop which gives you custom clothing (still from roblox catalog). The problem is that the script is looking for Humanoid.Parent.Shirt.ShirtTemplate but in game person has something like Humanoid.Parent.AdidasShirt.ShirtTemplate – How do I approach this and make it like it replaces the shirt?

You can use

Humanoid.Parent:FindFirstChildOfClass("Shirt").ShirtTemplate
1 Like

I will try, it sounds like it will work. I have been scripting for I think a little bit more than a month so I didnt think of that yet haha