I’m trying to setup robux purchases for my game, but I’m running into a problem. The client initiates the purchase themselves by clicking on a button, but after confirming the purchase nothing happens on the server. I also already tried prompting the client from the server to see if that would fix it but I must be doing something totally wrong.
-- On the client:
option1.MouseButton1Click:Connect(function()
MarketplaceService:PromptProductPurchase(Player, promptID1)
end)
-- Client part works just fine, the purchase pops up like it should, but when I do click purchase nothing is happening on the server.
-- Server code:
MarketplaceService.PromptPurchaseFinished:Connect(function(player, id, purchased)
print(player,id,purchased)
end)
-- Nothing happens :(