I’m creating a Roblox game in which you will be able to claim a UGC item by completing a challenge.
However, when you finish the challenge, purchasing the item doesn’t work.
This error shows when you try to purchase it.
I am really frustrated about this as we had to close down the game shortly after launch because of this bug.
Script:
local id = 15603753219
local mps = game:GetService("MarketplaceService")
local plr = game.Players.LocalPlayer
script.Parent.MouseButton1Click:Connect(function()
if plr:WaitForChild("leaderstats"):WaitForChild("Wins").Value >= 10 then
mps:PromptPurchase(plr, id)
end
end)