So how do we check if a player has a gamepass? I tried to do “game:GetService(“GamePassService”):PlayerHasPass(player, id)” and it gives me “GamePassId ‘3140049’ is not of type Game Pass. Please use MarketplaceService:PlayerOwnsAsset instead.”
Yes how exactly are we supposed to check using the new Gamepass ID’s?
Both of the below methods throw the same warning: “GamePassId ‘1060390’ is not of type Game Pass. Please use MarketplaceService:PlayerOwnsAsset instead”.
This is a known bug, and for others struggling to find the correct method, I had to dig awhile before I did. Referencing this recent post about the update ([Live] Changes to Game Passes), we are told to now use a new method, UserOwnsGamePassAsync:
local function gpCheck(player,GamePassId)
if game:GetService("MarketplaceService"):UserOwnsGamePassAsync(player.UserId,GamePassId) then
return true
else
return false
end
end