Hello, I have made a brick, when a player touches that brick they should be given a option to buy a golden magic carpet. Instead of it saying "would you like to purchase" it just gives a error message when you touch the brick, the code is in a normal script inside the brick. Thanks!
local id = 1016183873
script.Parent.Touched:Connect(function(hit)
if hit.Parent:FindFirstChild("Humanoid") then
local player = game.Players[hit.Parent.Name]
game:GetService("MarketplaceService"):PromptProductPurchase(player, id)
end
end)

4 comments
Well, make sure to check your id. I tested your code in Studio, and it worked fine. But, instead of prompting 'Golden Magical Carpet', it showed Billie Eilish clothing.
checked the id multiple times and it still seems to promote that
Then, try making a new developer product, and replacing the id with the new one.
https://www.youtube.com/watch?v=EJjdAMDBkIA youtube link of problem, thank you