How To Change a Variable for Everyone?

Hey there.

I simply want to make when host presses a button then everyone sees a variable with remaining tries/lives. When I run the change float on server, only the server sees the updates variable while everyone still sees the default live/tries variable.

What can I do? Thanks for help.

Set the variable to Rep Notify and change it on the server.

I’m trying exactly that! But somehow it’s not working. I have the Float Variable in a game instance, chaning it on a run on server event on my player character. It changes perfectly on the server like from 35 to 34, however on client it always shows the default 35

I mean what I want to do is that if the host presses for example R then the variable changes for every player, also the clients but what currently happens only the the one who presses the button gets the updated variable

So you’re modifying a variable in the Game Instance. Sadly Game Instance isn’t replicated.

You’re going to need to store Lives Remaining in the Game State.

1 Like

omg ty you so much! That solved the trick! Many many thanks! Would’ve never figured that out myself!

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.