Hello, I’ve been working on a vote system and this is a Normal Script in ServerScriptService.
Script:
local rst = game:GetService("ReplicatedStorage")
local wrldstt = rst.WorldSttings
local AreVoting = wrldstt.Time.AreVoting
AreVoting.Changed:Connect(function()
print("Changed")
-- Code
end)
It seems like it just doesn’t detect if it was changed.
I’ve tried to change the script multiple times & I still don’t understand what’s wrong. Any help would be appreciated.
If you are changing the value directly from the client then the server won’t pick up the changes.
From a client you would have to fire a RemoteEvent to the server to make the change.
A ServerScript can be used to monitor the changed event if it’s the server that made the change.
If the change was made by the client without remote events then it wouldn’t be replicated to the server so the server wouldn’t catch any changes.