Maya is a term used in Gurbani for the pull of worldly attachment and the illusion of permanence in things that change. It does not mean that people or the world are worthless. The point of the teaching depends on the shabad in which the word appears.