update the code but now this happens:
CODE NEW:
local config = {
[1] = {chance = 40,clase ="commun", min = 1, max = 3},
[2] = {chance = 33,clase ="rare", min = 4, max = 5},
[3] = {chance = 17,clase ="royal", min = 6, max = 8},
[4] = {chance = 7,clase ="epic", min = 9, max =...