I only remember how to check if someone is wearing the shirt, not if they own it. I have the function ready, just need the if statement.
✓ ANSWER ACCEPTED
What was the script for checking if a player owns a T-Shirt?
1 answer
✓ Accepted answer
local MarketplaceService = game:GetService("MarketplaceService")
local TshirtId = "123456" -- change to t-shirt Id
local player
if MarketplaceService:PlayerOwnsAsset(player, TshirtId) then
-- Insert code
end
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
source: https://developer.roblox.com/en-us/api-reference/function/MarketplaceService/PlayerOwnsAsset