# How to use Player State, Game Mode and Game Instance correctly to replicate a variable?

**URL:** <https://forums.unrealengine.com/t/how-to-use-player-state-game-mode-and-game-instance-correctly-to-replicate-a-variable/511556>\
**Category:** Multiplayer & Networking\
**Tags:** Replication, unreal-engine, Multiplayer, Blueprint\
**Created:** [April 1, 2022, 1:51pm UTC](https://forums.unrealengine.com/t/how-to-use-player-state-game-mode-and-game-instance-correctly-to-replicate-a-variable/511556 "2022-04-01T13:51:19Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Naitguolf](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Naitguolf](https://forums.unrealengine.com/u/Naitguolf)\
**Post date:** [April 2, 2022, 9:24am UTC](https://forums.unrealengine.com/t/how-to-use-player-state-game-mode-and-game-instance-correctly-to-replicate-a-variable/511556/2 "2022-04-02T09:24:05Z")

</div>

> [@Paund](#):
>
> Player State using the function “Get Game Instance” on PS Begin Play.

Game instance is not replicated, each client has it’s own.  
Game Mode only lives on the server, nor in any client. (No client can access it)

This post explain it a little bit so it might help you better:

> [@Game State, Game Instance & Game Mode. Which one to use for what?](https://forums.unrealengine.com/t/game-state-game-instance-game-mode-which-one-to-use-for-what/399795/2):
>
> Hey, did you check out [eXi’s Network Compendium](http://cedric-neukirchen.net/2017/02/14/multiplayer-network-compendium/)? It’s huge, but important that you understand the whole framework and not only your 3 mentioned classes. I hope it helps you as much as it helped me! \<3

---

_[View the full topic](https://forums.unrealengine.com/t/how-to-use-player-state-game-mode-and-game-instance-correctly-to-replicate-a-variable/511556)._
