:UserOwnsGamePassAsync() doesn't work

Have prompted a purchase in Studio onPlayerAdded:

-- server script
marketplace:PromptGamePassPurchase(player, 738462250)

-- another script

	local hasPass
	
	local succ, err = pcall(function()
		hasPass = MarketplaceService:UserOwnsGamePassAsync(plrId.Value, 738462250)
	end)

	if not succ	then
		print(err)
	else
		print(hasPass)
	end

then i print it in another game after i did the purchase but it prints false, does test purhcases even work in studio?

1 Like

Test purchases in studio do not save across play tests so that could be why

Same as this.test purchases cannot be owned.

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