You might just need to reset the player variable when you respawn. The other option would be to put a tag on the player blueprint and check that instead of comparing “other” to a variable. Depending on how you have set the respawn you are likely destroying and recreating a new player pawn which will no longer be the same one you set at beginplay.