Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

.Changed:Connect will not work for me?

Asked by 4 years ago

I made a text label and a number value and basically what I am trying to do is make my text label's text = the number value's value, reason for I am making in game currency.. I made a script already but the .changed:connect will not work!

Value.Changed:Connect(function()
    textlabel.Text = Value.Value
    end)

This is a localscript placed in the startergui and the Value before the .Changed is referencing the number value itself not any of its properties.

0
If I remember correctly, this only looks to see if the name changes, and not if the Value itself changes zboi082007 270 — 4y
0
Oh really? Lemme check that out, i'll reply back if it worked out or not, Thanks! blox_develop 2 — 4y
0
Why don't you just update the label's text in the script when you update the number value? SteamG00B 1633 — 4y
0
"The Changed event fires whenever the IntValue.Value of the IntValue is changed. It will run with the new value being stored in the argument object, instead of a string representing the property being changed." ScuffedAI 435 — 4y

Answer this question