I have been trying to make a GUI get updated to a variable but, I am not getting any error output and nothing is happening to the GUI. That would be great if you could help me.
Script:
local label = script.Parent.Text
local left = script.Parent.Bricksremaining.bricksleft.Value
label = left
label.Changed:connect(function()
label = left
end)
I know it changes it to a string so I used tostring() but that didn’t work
and I have tried implying this script but it still did not work even after adding a print function to see if it worked I still didn’t get any outputs or errors from the script. I even fixed an error of the label variable being incorrect. Thanks for trying to help, that means a lot.
here’s the modified script if you want to see it:
local label = script.Parent.Bricksremaining
local left = script.Parent.Bricksremaining.bricksleft
label.Text = left.Value
label:GetPropertChangedSignal("Text"):Connect(function()
label.Text = left.Value
if label.Text == left.Value then print("text=value")
end
end)
I know that I changed the vale of the variable because I am printing it, and I am trying to make the GUI read what the variable is but, it is not doing that.