I have the error : Shirt isn't a valid member of an model.
wait(3) Player = script.Parent.Parent.Parent c = Player.Character n = script.Parent mouse = Player:GetMouse() function hit(mouse) c["Shirt"].ShirtTemplate = "http://www.roblox.com/asset/?id=17527206" c.Pants.PantsTemplate = "http://www.roblox.com/asset/?id=165863810" end function onSelected(mouse) mouse.Button1Down:connect(function() hit(mouse) end) end n.Selected:connect(onSelected)
I tried this too
c.Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=17527206"
But it gave me the same error.Any help?
if not c:FindFirstChild("Shirt") then end
Checks if the shirt is there or not