script.Parent.TextLabel.Text = script.Parent.Parent.Parent.Parent.CurrencyToCollect.Value
CurrencyToCollect value is changing, but the textlabel text isn't
script.Parent.TextLabel.Text = script.Parent.Parent.Parent.Parent.CurrencyToCollect.Value
CurrencyToCollect value is changing, but the textlabel text isn't
Assuming that they are your only lines of code and you are using a localscript, you will need to listen for the Changed event.
script.Parent.Parent.Parent.Parent.CurrencyToCollect.Changed:Connect(function()
script.Parent.TextLabel.Text = script.Parent.Parent.Parent.Parent.CurrencyToCollect.Value
end)
This discussion is preserved as it was. New answers, comments, and votes are closed.
5 comments
Hard to tell what is wrong with only those two lines of code
What else would you need to know? I am not getting any error, and the TextLabel isnt changing even though the value is changing.
Yeah, believe it or not, we can't tell you what works or doesn't because only two lines of code is basically useless to us.
I am asking, what else do you need to know...?
Well, what else is in the script? Did you add 'wait()' if needed? Stuff like that.