Roblox not letting me test gamepass purchases

Hi all, for some reason roblox errors when i prompt a gamepass, anyone know why?

                    local success, message = pcall(function()
						MarketplaceService:PromptPurchase(Client, 1180600260)
					end)

					if not success then
						warn("Error prompting gamepass purchase: " .. message)
					end
					MarketplaceService.PromptGamePassPurchaseFinished:Connect(function(player, pass_id, was_purchased)
						if was_purchased then
							OwnsElectroMove = true
						end
					end)
					return

I have allowthirdpartysales on.

Try

MarketplaceService:PromptGamePassPurchase(Client, 1180600260)

Cause ur dealing with a gamepass not an asset
Hope it helps

1 Like

Oops! Didn’t see that error lol, thank you

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