Using MarketplaceService:PromptPurchase() on a limited in-experience UGC prompts players to purchase resale copies even if there are original copies left.
To replicate this, the code below was ran on the server in Roblox Studio of this game:
local MarketplaceService = game:GetService("MarketplaceService")
local Players = game:GetService("Players")
function playerAdded(player: Player)
MarketplaceService:PromptPurchase(player, 73092720293110)
end
function initialize()
Players.PlayerAdded:Connect(playerAdded)
for _, player in Players:GetPlayers() do
playerAdded(player)
end
end
initialize()
An eligible limited in-experience UGC was used for the test above. At this time, it has 105 copies. Its original price is free while its lowest resale price is 615 robux. Its sale location is also the game where the test was ran above.
Expected behavior
According to the documentation, original copies (free) should be prioritized before resale copies. Therefore, a free copy should have been prompted to the player during the test.
A private message is associated with this bug report