Hi, i am making a round based game. If everyone is dead the round ends. This also counts if all players leave the game but my intvalue of alive players wont change when a player leaves the game?
game.Players.PlayerRemoving:Connect(function(player)
local character = player.Character
if character.IsInRound.Value == true then
local aliveplayers = game.Workspace.Game.Scripts.AlivePlayers
aliveplayers.Value = aliveplayers.Value - 1
end
end)

2 comments
Are There Any Errors? And Also Check If The IsInRound Value Is In The Character
No errors seen. The value indeed is in the character.