modified the script to reset the x,z rotation to 0