So i created a new dev products earlier and it prompts just 1 time then it will never prompt purchase again and it prints this error
is this a bug?
So i created a new dev products earlier and it prompts just 1 time then it will never prompt purchase again and it prints this error
is this a bug?
That error is just saying that the preview image for the developer product failed to load, the issue is most likely coming from your code.
there is no error coming from my code
It doesn’t necessarily have to be a syntax error it could be a logical one.
local MPS = game:GetService("MarketplaceService")
local players = game:GetService("Players")
local productId = 1111700099
local player = game.Players.LocalPlayer
local clickValue = 0
script.Parent.MouseButton1Click:Connect(function()
clickValue += 1
if clickValue >= 2 then
MPS:PromptProductPurchase(player, productId)
end
wait(1)
clickValue = 0
end)
Why are doing that will click value variable? Just prompt the player with the purchase after the first click.
I used double click because the items are on a scrolling gui and mobile players cold accidentally click it while scrolling
this is the only product that is not working all my product seems to work fine
I don’t think there is a limit but the code is just the image error