local position = player:getPosition()
if position.x > 1000 then
-- We do something if the player is in a position X greater than 1000
end
if position.y > 1000 then
-- We do something if the player is in a position Y greater than 1000
end
if position.z > 7 then
-- We do something if the player is in a position Z greater than 7
end
if position:isInRange(Position(500, 500, 7), Position(1000, 1000, 7)) then
-- We do something if the player is in this area 500,500,7 to 1000, 1000, 7
end