Why is ShirtGraphic not "Clothing"?

print(Instance.new("Shirt"):IsA("Clothing"))
print(Instance.new("Pants"):IsA("Clothing"))
print(Instance.new("ShirtGraphic"):IsA("Clothing"))
 
true (x2)
false

This happens when I run it in console - I assume that a ShirtGraphic would be considered as a piece of clothing, as with Shirt and Pants, but I guess not. Why?

1 Like

Definitely unusual, I’d suggest reporting it as a bug.

1 Like

Yeah I was about to do that, but then I was like “Is this really a bug or is this just me being stupid?”

1 Like

I’m pretty sure (dont quote me on this), that Clothing itself is the class that manages boxing up the texture and mapping it to BodyParts, idk why the descendants both define their own Texture property, but its Roblox. i mean theres Outfit1 and Outfit2 which are very likely the internal property that does it but who knows

ShirtGraphic doesn’t do this, it just creates a decal on the Torso, and doesn’t need the UV mapping code.

also shirtgraphic was created at least 2 years before Shirts/Pants got added to the engine, and we’re talking 2008 here.

3 Likes

Could be the case, but according to the documentation, it is “The base class for clothing objects”.

2 Likes

you could also just use CharacterAppearance which includes these classes

  • BodyColors
  • CharacterMesh (R6 only)
  • Clothing
  • ShirtGraphic
  • Skin (deprecated and will never appear on a character)

Its very unlikely they’re going to change something thats been ingrained in the API for nearly two decades as who knows what it could break.

3 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.