Root HELP- HTC one M8 stuck on boot screen

Hey! I tried to root my htc one m8 today and it didnt really go to plan...
I got most of the way through then i had to reset my phone after finishing and ever since then it hasnt been able to go past the boot screen!
I need help, im out of my depth and i need my phone!