Methods suffixed with Async are yielding calls, that is why this error occurs. Unfortunately, you need to use a method for this.
local appearances = {}
local module = {}
function module:GetCharacterAppearance(key)
if not appearances[key] then
appearances[key] = game:GetService("Players"):GetCharacterAppearanceAsync(key)
end
return appearances[key]
end