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

TextLabel text isn't changing even the value is changing?

script.Parent.TextLabel.Text = script.Parent.Parent.Parent.Parent.CurrencyToCollect.Value

CurrencyToCollect value is changing, but the textlabel text isn't

5 comments

0

Hard to tell what is wrong with only those two lines of code

0

What else would you need to know? I am not getting any error, and the TextLabel isnt changing even though the value is changing.

0

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.

0

I am asking, what else do you need to know...?

0

Well, what else is in the script? Did you add 'wait()' if needed? Stuff like that.

1 answer

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.