Gamepass error: Your purchase failed because something went wrong

Hello Developers! I am currently running into an issue with prompting a gamepass in my roblox game. Here is the code:

script.Parent.MouseButton1Click:Connect(function()
	local plr = game.Players.LocalPlayer
	local MSS = game:GetService("MarketplaceService")
	
	MSS:PromptGamePassPurchase(plr,659735397)
end)

Please help if you can!

2 Likes

Here are some things you could try:

  1. Change PromptGamePassPurchase to PromptPurchase
  2. Ensure the id is valid
  3. Check in game (not studio)
  4. Check with another gamepass or asset and see if it prompts correctly.
  5. Check to make sure gamepass is on sale

I will edit for more things you can do when I think of them. Hope this helps!

Turns out the Ids were wrong! Thanks!

Yep! Be sure to mark a solution to help people viewing this topic in the future. (It also helps so that people helping to solve topics know a solution has been found)

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.