My problem: 
Code:
   function Create(self)
   local curdist = 100;
   local avgx = actor.Pos.X - self.Pos.X;
   local avgy = actor.Pos.Y - self.Pos.Y;
   local dist = math.sqrt(avgx ^ 2 + avgy ^ 2);
   if dist < curdist then
       curdist = dist;
       self.parent = actor;
   end
    end
   
     function Update(self)
          for actor in MovableMan.actors do
                  if actor.ID ~= self.parent.ID then  <----------
                        blah blah
                  end
          end
    end
says trying to index parent on that line, and parent is nil.  Any help?   Don't worry about the tabbing.