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 | local Wave = game.ReplicatedStorage.Values:WaitForChild(“Wave”) |
2 | Wave.Changed:connect( function (New) |
3 | script.Parent.Text = New |
4 | end ) |
Haven't tested it, but it maybe works.