Go to the BP_PlayerBuildingComponent and then go to the DisablePlacement function and copy the video below.