Well we would need to see a picture of you in order to tell you honestly whether you really are pretty or not.
If it is females who are telling you are ugly, they are most likely jealous of you! If it is men, it could be perhaps because they are upset that they can't be with you?
Its normal to get confused about what you look like.