Trouble saving progress / variables when switching levels using box overlap

The title is a bit of a mouthful, but ill try to explain it better.

Basically Im making a roguelike , so I dont want the player to have the ability to save or load their game, but still keep the progress or items they have while going into a new level.
Screenshot 2022-10-19 173903
When I use this code, which is located in my FirstPersonCharacter, (upper Cast to SaveVariables, which is just a GameInstance, is connected to Event BeginPlay) It works perfect. When I press backspace, it loads the level and keeps my current Health. But I dont want the Player to press a button to switch levels, I want them to walk into a Teleporter.

Screenshot 2022-10-19 17431722

So I copied the exact same Blueprints into that Teleporter, just changing the key to the Begin Overlap. But for some reason when i walk into it, it does not keep my current Health and resets it back to the default value.

Thanks in advance <3

You need the piece of code that loads from the game instance in the new level also.

Im sorry, Im quite new to this. So I would need to write that same code in like the Event Graph of the new level? Or what do you mean exactly?

Yes, that’s right :slight_smile:

Reload the value from the game instance on begin play in each level.