Displaying health in a progress bar

You are trying to get health component from player controller after adding it to a character? You have to take it from character but not from controller then.