Migrate the new HP bar widget blueprint.
Add the HP bar on BeginPlay in the Inventory Component. Create a new variable for the HP bar.
Create a new function called Change Health Points. Add the setup shown in the picture by hand or copy paste from a new MMLSE project to save time.
The variable CurrentHP is a RepNotify with replication condition Owner Only.
Add the nodes in the OnRep_CurrentHP function.