You can put variables in your Game Instance and Get/Set them from anywhere. (Multiplayer is more complex)
But as @Nightwolf mentions it may not be the best solution to do this, and mostly is only used for loading and saving variables but in a user-friendly way, it makes communication easy for a beginner.
But, to answer your question specifically, here’s a helpful video: