It’s not supposed to do that. You need to tell it to wait for changes in the value using a relevant event handler, and modify the value again in the callback function. The code in your script will only run once depending on where it is located.
What errors are you currently getting? What type of script are you using and where is it located?
Are you sure you’re modifying the value on the server side (if the code is running in a server script)? It seems your post boils down to a problem involving client-server data replication, which has been appearing on the forums regularly for about 4 years now.
that’s the issue. You’re changing value manually inside StarterGui. Your actual Gui is in the Players > Your Player Instance > PlayerGui > Gui
That’s where you should change the value manually, otherwise use a script
the script is working fine