Root methods that works when wiping efs .

Everytime I root my phone and try to wipe EFS it fails and then I have to load Stock rom and try to root again with different method. What is the best way to root Galaxy phones and Wipe EFS with no errors ?

Please Advise,
Thank you