Why are my ex's friends nice to me?

My ex and me broke up on really bad terms and I wasn't close with his friends at all but recently I've noticed his friends are really nice to me. They even stop to chat when they see me. My ex also has been smiling at me and complimenting me when he runs into me.
Why are my ex's friends nice to me?
Post Opinion