Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

What was the script for checking if a player owns a T-Shirt?

Asked by 4 years ago

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.

1 answer

Log in to vote
0
Answered by 4 years ago
local MarketplaceService = game:GetService("MarketplaceService")
local TshirtId = "123456" -- change to t-shirt Id
local player

if MarketplaceService:PlayerOwnsAsset(player, TshirtId) then
    -- Insert code
end
Ad

Answer this question