Gamepass your purchase failed because something went wrong

local marketplace = game:GetService("MarketplaceService")
local debree = false
local Player = game.Players.LocalPlayer

script.Parent.MouseButton1Click:Connect(function()
	if debree == false then
		local sound = script.Parent.Click:Clone()
		sound.Parent = script.Parent.Parent.Parent
		sound:Play()
		game.Debris:AddItem(sound,1)
		print("Gamepass clicked")
		marketplace:PromptProductPurchase(Player,13600173502)
		debree = true
		wait(3)
		debree = false
	end
end)

Gamepass link: last name - Roblox
Gamepass prompt not working gives me error gamepads purchase failed something went wrong your account has not been charged.

I noticed that the ID of the gamepass you sent (1011212814), doesn’t match the ID of the gamepass you added in the code (13600173502). Let me know if that works!

1 Like

I tried that gamepads id and still not working.
I took the script from another game and gui. You think that could be why it only works with the other game gamepass id?

I fixed it I had to retype the marketplace code. Thanks the id helped

Never mind the script still showing the same error.

It now says this gamepass is not for sale your account has not been charged.