How create global variable?

by definition it should be the role of “Game State” (or a local, non network version of it)
I just found GameInstances that are also persistant through levels
https://www…com/watch?v=5w594D3qtLs