Search code examples
luaroblox

How to find player's clothing Roblox Studio


I'm trying to create a type of clothing only door in Roblox Studio, like finding their Roblox clothing inventory. I can't find anything but finding the player.Backpack. Can anybody help?

I tried finding the player's inventory by doing player:GetInventory() but it didn't work.


Solution

  • If you're wanting to check if they own a specific item, MarketplaceService:PlayerOwnsAsset should work. If you are wanting to check if the player is actually wearing a given clothing item, you can either check in the physical character model that exists in the workspace or check a property of their HumanoidDescription.