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

Is the intValue not updated during the execution of the script?

Asked by
ksony 54
5 years ago
Edited 5 years ago

I have the value of the string and the value of the server chain saved in the replicated storage and all can be edited, except this input value is called msg5

In this script, I am trying to add a local value to the server value, but it does not work when that local value is updated during the game, it is only added if the value was already in the local value before starting to play



local stats = game.ReplicatedStorage:findFirstChild("hide2") local msg5 = stats:findFirstChild("msg5") local stats2 = game.Players:findFirstChild("Local") local Vote = stats2:findFirstChild("ActualVote") while wait() do msg5.Value = msg5.Value+Vote.Value end
0
Local is not a valid member of Players tacotown2 119 — 5y
0
Does your script error? BenSBk 781 — 5y
0
anyway this localscript or normal script tacotown2 119 — 5y
0
I have a folder in players called local, which works very well. ksony 54 — 5y
View all comments (2 more)
0
my script has no errors, and it's a normal script (it's not local) ksony 54 — 5y
0
While wait do is never a good idea. The most efficient way to do this is to watch the value for changes. DinozCreates 1070 — 5y

Answer this question