I did nothing different to my script, it just stopped working.
The product ID is correct, there is no errors, and it prints the correct things when the button is clicked.
It just won’t prompt the ID anymore. This used to work.
local CLICK_BLOCK = script.Parent
local Click = Instance.new("ClickDetector",CLICK_BLOCK)
Click.MouseClick:connect(function(p)
game:GetService("MarketplaceService"):PromptProductPurchase(p,963586403)
print('prompted')
end)
You should still be always using capital c when doing :Connect(), :connect() is deprecated. And not sure if this is true but pretty sure you need a ProcessReceipt callback, see if that works. Also, see if “p” is a valid player, do print(p.Name).
I know that, this was made a while ago. Changing the c won’t affect that though.
This just handles prompting, not the purchasing.
I already printed p and it does print the player name
It is a roblox bug, my was working for months, just stopped working few hours ago, alot of games having this issue indcluding me, I lost alot of revenue because of this bug. I posted about this bug in the engine bugs.