Welcome to Smogon! Take a moment to read the Introduction to Smogon for a run-down on everything Smogon, and make sure you take some time to read the global rules.
uh you can choose a new ability for when you mega, until then you keep the old one.
Either it automatically reverts to the first ability or you can select two abilities in Import Export (would be better)