Here is the script I'm using, I'm not sure why it isn't working. Can anybody help?
PlayerCount = game.ReplicatedStorage.Players.Value
game.Players.PlayerAdded:connect(function()
PlayerCount = PlayerCount + 1
end)
game.Players.PlayerRemoving:connect(function()
PlayerCount = PlayerCount - 1
end)

1 comment
Thanks I used PlayerCount.Value = game.Players.NumPlayers and it worked :D Thank you!