✓ Accepted answer
@incapaxian is right. You need to do something like this to prevent it from generating a number larger than the number of maps available:
msg.Value = mapas[math.random(1, #mapas)] .. " with " .. mapas[math.random(1, #mapas)]
Simply put, the unary operator in Lua, the octothorpe (#), counts the number of indices in a table that are not nil. Because you're setting two different numbers, one that is larger than the number of maps in the mapas table, you have the potential of generating a number that Lua can't use to concatenate the two strings with.
4 comments
ok so the key in the table "mapas" is nil
.value < use .Value
do ctrl + f and search for a ?
You have less than 50 maps and it generated a number that is over the amount of maps you have