A random Pizza Tower game

Hey there! Oh, speaking of, I need help with the enemies!
I know how to code their behaviors, that’s just fine, but I need help making them all do the SAME thing. In one of my older topics I needed help with making enemies that don’t fall off of ledges, and I achieved that, but it basically failed because all of the enemies were not doing the same thing. So, is it possible to make them ALL go side to side and not make them fall of ledges?