Why is this take damage function not working

yes it works now thanks for help I just replicated the health