Game wont leave Application.EnterPlayMode when loading

When I try to enter playmode to test my game it gets stuck on Application.EnterPlayMode, but only when I have Health = transform.Find("Health").gameObject.GetComponent<TextMeshPro>(); in my code. as soon as I change it to a comment the game works fine. Any help would be appreciated
(the script)

,

I’m not 100 % sure if it is because of this, but you have it in the FixedUpdate() Method in the script you linked to, which is basically called every physics cycle or interval from what I remember. So it’s not as often as every frame, but still pretty often and given that transform.Find probably takes time to find the component it might be that.

Is there any reason why you are trying to constantly Find it though ?

Generally that seems to be something that you would want to do once in the Start() method just like you do with all the other variables you already have there. Then just work with the Health variable since it already points to the TextMeshPro component it found. there’s no need to look it up every few milliseconds ^_^"