Copy the video below in the BP_Bed blueprint.

Then go to the Class Defaults of the BP_Bed and set the Build Part like the image below.