As dchampag said, the local pos should be inside de if, just like this
local t = {
["ushuriel"] = { -- Monster name here. Must be LOWER case!
toPos = {x = 1119, y = 1593, z = 10}, -- Where the portal takes the players.
createPos = {x = 1224, y = 1587, z = 10}, -- Where the...