Hi!
Two things:
-
Use OnRep_Noptify to be sure the MyNumber has been replicated, then when it fires you will have your value on the client
-
I use timers on the client during setup to ensure the playerstate has been replicated:
if(playerState)
{
DoClientLogic();
}
else
{
SetTimerForFunctions();//I usually waits like 0.2 seconds before trying again.
}