Cramping that goes away when laying down

If I stand I start cramping really bad but laying down it’s barely noticeable/ non existent. Its been like this all day and I’m getting tired of not being able to get up to do anything because of the pain. I’m 38 weeks.