ObjectValue.Changed not firing and I'm confused about it

Hello everyone,

So here’s what is happening:

Inside the StarterGui I got some scripts that read and write values to ObjectValues that are located at Workspace.

The scripts (local scripts) inside StarterGui not only read and write but also react to changes in these ObjectValues, so ObjectValue.Change:Connect does get triggered as expected once the value changes.

Now,
Inside my workspace I have a script that should also react from changes in these ObjectValues, but for some reason it doesn’t get triggered.

I strongly suspect it has to do with client <-> server architecture and rules around, although I’m not sure, so I would like to hear from developers more experienced than me if that’s the case and how to work around.

I think that’s it.

Thanks in advance.

The issue is that if a local script is changing it, it will only change it on the client, and not the server. So when you are trying to read it on a different machine (in this case, the server) it remains unchanged. If you need something from the client to be used on the server you will need to use remote events.

1 Like

I thought it was the case, thanks for your reply.