Trying to make a ingame shirt seller.
script.Parent.MouseButton1Down:connect(function(player)
game:GetService("MarketplaceService"):PromptPurchase(player,379581503)
end)
It keeps saying unable to cast value to object. Unsure why. It's a surface gui with a button.

2 comments
It's still not working
It worked, I've tried it. It's something that you've set up wrong I believe.