I tried the script out, but it is still not working for some reason. The reason why I asked this question was that I wanted to change the text button in TMM Credit Vendor to a shirt, t-shirt, etc vendor. And what it has in the workspace is Part,Surface GUI, and then with text buttons. What should I do then?
local Id = "ASSET NUMBER HERE" script.Parent.TextButton.MouseButton1Click:connect(function(player) --Changed ClickDetector to TextButton game:GetService("MarketplaceService"):PromptPurchase(player, Id) end)