Since this is a one click root method, things can be completed within a minute or two.
So, download the root package from this page.
Save the file on your computer and unzip the same on desktop.
Now, take your phone and turn it off.
Do that because it must be rebooted in bootloader mode.
With your Moto X entered in bootloader mode, ensure a connection between your phone and your computer – via USB cable.
Now, from desktop just run the root-windows.bat executable file.
From there follow the on screen prompts and wait while Android 5.0 Lollipop is rooted on your Moto X.
In the end, remove the USB cord and reboot your phone.
Note: if after the last reboot you will be issued with a boot loop situation, try to enter Moto X in recover mode. From recovery select “wipe data factory reset” and “wipe cache partition”. Finally, from main menu of recovery pick “reboot system now” and you are done.
All LInks are Here:
https://download.chainfire.eu/601/CF-Root/CF-Auto-Root/CF-Auto-Root-ghost-ghostretgb-xt1052.zip