OwnAsset returning false despite owning the gamepass

  1. What do you want to achieve?
    For OwnAsset to return true and false correctly

  2. What is the issue?
    It always returns false despite me owning the gamepass

  3. What solutions have you tried so far? Did you look for solutions on the Developer Hub?

		local PlayerOwnsGamepass = MarketPlaceService:PlayerOwnsAsset(player, value.GamepassId)
		
		if PlayerOwnsGamepass ~= true then
			print(PlayerOwnsGamepass) --always returns false
			continue
		end

Try using MarketPlaceService:UserOwnsGamePassAsync(Player, value.GamepassId) rather than PlayerOwnsAsset.

1 Like