Why is .Changed not working?

It still would work like that since .Changed is called on the whole NumberValue or whatever it is and not just the Name/Value itself.

The only other reason I can think of for why ā€œChangedā€ isnā€™t printing is the script not running. Can you check if itā€™s running?

No, it actually only fires on Value change.

For ā€œ-Valueā€ objects, this event behaves differently: it only fires when the Value property changes. See individual pages for IntValue , StringValue , etc for more information. To detect other changes in these objects, you must use GetPropertyChangedSignal instead.

How could you check if a scripts running?

Where is the script located in?

You can just put a print("working") at the start of the script and run it.

The script must be located in StarterGui, ReplicatedFirst, StarterPlayer / StarterCharacter / ReplicatedStorage (?)

Yeah I donā€™t think it is running.

1 Like

Oh, yea that is possible(idk about that since I never called Changed on the name for a -Value.)

The script must be located in StarterGui, ReplicatedFirst, StarterPlayer / StarterCharacter / ReplicatedStorage (?)

Localscripts donā€™t run anywhere else.

Oh thats useful to know! The code is running now, just need to fix some errors!

3 Likes

Please mark whoever solution helped you as ā€˜Solutionā€™ to help others that have the same problem.

1 Like