Catch an inkay (can be found close to kukui's lab) and level level it up until it learns foul play and swagger. Get a focus sash (can be obtained on first route on poni island from trainer that you can battle after beating all other trainers there) and give it to inkay. Now go to necrozma...