It's not usually a good idea to remove the front sprocket while the bike is in gear as this puts quite a lot of strain through the gear box....
I realise you have already removed your rear wheel and possibly the old chain?
The best idea when replacing chain and sprockets is to remove the front sprocket nut first, before taking the rear wheel and old chain off.
What I do is place a piece of wood (usually a pick handle) through the rear wheel (I use wood so it doesn't mark the swingarm) with the bike in neutral.
Then you can use as much force as is required to remove the front nut.....either using a breaker bar or piece of pipe on a socket handle, with no strain being put on the gearbox or rear brakes.
Allways use a socket to do this job and not an adjustable wrench as I have heard of some people trying
Once the front nut is loose, then you can remove the rear wheel and take to the old chain with an angle grinder
I realise you have already removed your rear wheel and possibly the old chain?
The best idea when replacing chain and sprockets is to remove the front sprocket nut first, before taking the rear wheel and old chain off.
What I do is place a piece of wood (usually a pick handle) through the rear wheel (I use wood so it doesn't mark the swingarm) with the bike in neutral.
Then you can use as much force as is required to remove the front nut.....either using a breaker bar or piece of pipe on a socket handle, with no strain being put on the gearbox or rear brakes.
Allways use a socket to do this job and not an adjustable wrench as I have heard of some people trying

Once the front nut is loose, then you can remove the rear wheel and take to the old chain with an angle grinder
