my baby is hurting me

My baby is literally kicking me like crazy and it actually hurts. Is there a reason for this ? It's getting really uncomfortable I'm 30 weeks pregnant