Currently, if you call MarketplaceService:PromptBundlePurchase() with the ID of a bundle that you cannot afford, then all MarketplaceService
purchase methods will completely break.
When this happens, a warning will appear in the output and no purchase UI will appear. Any future attempts to call methods such as PromptPurchase
, PromptBundlePurchase
, PromptGamePassPurchase
, etc. will also not show the purchase UI.
This happens 100% of the time for me with the ID of any bundle that I cannot afford.
This also only happens in-game, not in Studio.
This was reported twice before, but both reports are closed. [1] [2]
Also, this previously only happened in Studio. It no longer happens in Studio; now it happens in-game instead.
Repro
-
Join any experience that you have edit access to.
-
Open the developer console and go to the “Server” output.
-
In the command line, run
game.MarketplaceService:PromptBundlePurchase(game.Players.YOUR_USERNAME, BUNDLE_ID)
with the ID of a bundle that you cannot afford.
(As an example, the ID of Korblox Deathwalker (17,000) is
192
. If you want to use a bundle not created by Roblox, make sure that third party sales are enabled in the experience.) -
You should not be prompted to purchase anything. Go to the “Client” output and observe the warning.
-
Any future attempts to call any
MarketplaceService
purchase methods will not do anything.
System information
OS: Windows 10
CPU: Intel(R) Core™ i7-6700 CPU @ 3.40GHz
Memory: 16 GB
GPU: NVIDIA GeForce GTX 1660 Ti
Expected behavior
PromptBundlePurchase
should not break purchase prompts if you cannot afford a bundle.