Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

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

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

1 comment

0

any yield errors?

1 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.

1 comment

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.

This discussion is preserved as it was. New answers, comments, and votes are closed.