You need to set it on the server, It’s an authoritative server model.
Do an authority check and if it’s the client then call a RPC that sets the variable with the connected notify on the server.
it will then trickle down to the client and anyone to who it is relevant to.