CollectionService not working

for _, v in pairs(CS:GetTagged("CrystalSpawner")) do
    print("a")
    v.isCrystalSpawned.Changed:Connect(function()
        print("A")
    end)
    
end

in this code, a get printed. however, when the bool value is changed(isCrystalSpawned), A didnt get printed, do i need to enable anything or do i need to do any extra things?

1 Like

It should have printed, where is your script? And also where are you changing the value? You could be changing it on the client, but it doesn’t detect since the script is on the server.

1 Like

its a script in serverscriptservice
and the value is the child of a tagged object

Like @Katrist asked, where are you changing the value? You’ll have to change the value through the server rather than the client if that’s what you’re doing.