This is kind of weird. Basically, I have this script that just updates a value to the current number of players in the game
game.Players.Changed:connect(function (NumPlayers)
System.CurrentPlayers.Value = game.Players.NumPlayers
end)
Now, whenever I do local testing (F5 on keyboard) it updates the value fine. BUT whenever I do local server emulation or whatever it is called (F7 on keyboard) the Value does NOT update properly. Now, if I change my code to this:
game.Players.PlayerAdded:connect(function (NumPlayers)
System.CurrentPlayers.Value = game.Players.NumPlayers
end)
It updates even during server emulation. HOWEVER, the second variation only updates the player count when someone joins the game, and not when someone leaves. Does anyone have any idea why .Changed is not working? And, even if it does work in a regular game with regular players, it not working in server emulation is a serious problem for me (for when I am debugging alone).

2 comments
It says that "PlayerRemoved" is not a valid member of "Players"
Do game.Players.PlayerRemoving