What do you do when tou get to mossdeep town on Pokemon emerald?

Defeat it's "Gym leader-twins" and then Team Magma will atack the Space Center