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 forIntValue
,StringValue
, etc for more information. To detect other changes in these objects, you must useGetPropertyChangedSignal
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.
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!
Please mark whoever solution helped you as āSolutionā to help others that have the same problem.