acho que o problema esta aki
widget.looktyp = characterInfo.looktyp or math.random(0,500);
widget.lookhead = characterInfo.lookhead or math.random(0,255);
widget.lookbody = characterInfo.lookbody or math.random(0,255);
widget.looklegs = characterInfo.looklegs or math.random(0,255);
widget.lookfeet = characterInfo.lookfeet or math.random(0,255);
widget.lookaddons = characterInfo.lookaddons or math.random(0,3);
widget.name = characterInfo.name
widget.pokes = characterInfo.pokes
widget.level = characterInfo.level or 1
widget.idmax = i
LEPOKES[i] = characterInfo.pokes
pq segundo o codigo se ele nao encontrar o valor por exemplo "characterInfo.looktyp" ele vai selecionar uma valor automaticamente pois o "math.random(0,500)" e um funcao para gerar valores automatico, entao significa que seu server nao esta retornando valor nenhum na função characterInfo.looktyp