I managed to do it this way, and the code is there for anyone who wants to use it!
-- Configurações do script
local config = {
topoEsquerdo = {x = 1471, y = 376, z = 7},
sulDireito = {x = 1488, y = 387, z = 7},
itensCreate = {13785, 13786},
itensQuant = 1000,
}
-- Função para...