My rig is experince errors and having difficulties moving to the character

I am trying to make pet’s with bones be rigged but they often run back and forth and having back rotation when equipped. Could someone please help?