When a dog twerks on your leg, it means that the dog is trying to get your attention. They may be asking for a belly rub or they may just want you to pet them. If you are not paying attention to the dog, they may nip at you to get your attention.