Então pessoal, aparece esse erro quando o script é acionado
local function create(number)
doCreateMonster(waves[number][math.random(1, #waves[number] - 1)], {x = math.random(232, 251), y = math.random(118, 141), z = 7})
doCreateMonster(waves[number][math.random(1, #waves[number] - 1)], {x = math.random(232, 251), y = math.random(118, 141), z = 7})
doCreateMonster(waves[number][math.random(1, #waves[number] - 1)], {x = math.random(232, 251), y = math.random(118, 141), z = 7})
doCreateMonster(waves[number][math.random(1, #waves[number] - 1)], {x = math.random(232, 251), y = math.random(118, 141), z = 7})
doCreateMonster(waves[number][math.random(1, #waves[number] - 1)], {x = math.random(232, 251), y = math.random(118, 141), z = 7})
end