Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

Why isn't the PlayerGui showing updated values from a server script?

Asked by 5 years ago
Edited 5 years ago

I have a string that is stored in an object in the PlayerGui. The value is blank by default in the StarterGui but the value set within in a local script as soon as the player joins and it is placed in the PlayerGui. When I try to read the value from that same string using a script on the server, the value is blank, even though the value has since been updated. On the server side it is essentially showing what the default value was, but not the live value.

For example, if I had set the default value for that string to be "one", and then set it to "two" from a client script when the player joined the game, if I tried to read that value from the server it would still show "one".

1 answer

Log in to vote
0
Answered by 5 years ago
Edited 5 years ago

PlayerGui is replicated from the client so changes made on the server will not be saved nor vice-versa.

0
Is it correct then that the only way to get values from a players PlayerGui is to use remote functions? krugman87 5 — 5y
Ad

Answer this question