Marketplace::UserOwnsGamePassAsync: Parsed Invalid JSON. Data may be corrupted. Stack Begin Stack End
I started to get this error ever since I enabled studio access to API services. However, after editing in studio for a few minutes, the error seemed to go away but comes back after starting up my pc. It occurs in online servers and studio. Any solutions?
Script that checks if the player owns the game pass:
local MarketplaceService = game:GetService("MarketplaceService") function HasGamePass(player) if MarketplaceService:UserOwnsGamePassAsync(player.UserId, VIPsettings.ID) then return true else return false end end