Help with :UserOwnsGamepassAsync

Recently I have been trying to make a game and one of the parts requires a gamepass, but when I do the gamepass check, I have not been able to check because there is a problem with Int64, is this just happening to me? Is there a way to make this work?

Could you please post your code?

wait a second./ its being annoying

Don’t reference the player object in :UserOwnsGamepassAsync() use the player’s userid instead.
Example:

if game:GetService("MarketplaceService"):UserOwnsGamePassAsync(player.UserId,1) then print("Player owns that") else print("Player doesn't own that") end

:o thanks a lot ur awesome B) it worked