I have a :GetChildren() set up to detect if some text is equal to the amount of children, I am using a server script in server script service, I don't know what I'm doing wrong, I get no errors.
game.StarterGui.Game.Frame.Night.PlayersReady.Changed:Connect(function()
local ign = game.ReplicatedStorage.InGameNames:GetChildren()
if game.StarterGui.Game.Frame.Night.PlayersReady.Text == #ign then
game.ReplicatedStorage.Values.DayNight.Value = true
end
end)

3 comments
You can't use StarterGui, you need to use PlayerGui as that one actually updates
game.PlayerGui didn't work, it says it isn
isn't a member of data model