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

The GUI is not changing to the value i place in? Trying to make a wave counter

Asked by 5 years ago

So i have a Wave.Value = 5 in my main script here is my GUI script, which is in Starter GUI - Screen Gui - Number - Script: And my value called wave is in replicated Storage in a folder called Values

local Wave = game.ReplicatedStorage.Values:WaitForChild("Wave") Wave.Changed:connect(function() script.Parent.Text = Wave.Value end)

However it does not change

0
any yield errors? SoftlockedUnderZero 668 — 5y

1 answer

Log in to vote
0
Answered by
Dalamix 26
5 years ago

Please provide explanation with your answers. Simply posting code does not spread knowledge of integral scripting processes which helps people understand the logic and reasoning behind your answer.

Try doing this instead:

local Wave = game.ReplicatedStorage.Values:WaitForChild(“Wave”)  
Wave.Changed:connect(function(New)  
script.Parent.Text = New
end)

Haven't tested it, but it maybe works.

0
Read the note that was put on your answer. Having an explanation with code is always better than simply posting code and saying "Try this". It helps the asker by telling them what they're doing wrong and how they can solve their problem. DeceptiveCaster 3761 — 5y
Ad

Answer this question