How do you teach a guinea pig to come?

teach them to know their name by calling their name and if they come to you give them a treat and after they learn their name you call them and they should come