GameState variables not replicating?

Hi,

I am trying to replicate a simple integer on a blueprint game state across clients/server. I successfully connect them together, then the user pawns fire “Run on Server” events that set the integer to either 2 or 5, like this:

The “SomeVar” integer is set to “Replicated”. Can anyone tell me what I am doing wrong?

Hey carlosdp,

Here is an example of how to change a variable in the GameInstance and have it replicated to the clients:

Check the replication:

Hey I know this is 4 years old but I really appreciate the answer, it works great!

For anyone who tried this and it didn’t work, remember to mark the Int as replicated. I forgot this lmao