How do games with round systems handle players leaving mid-match?

This is a pretty basic and broad question overall but i cant really wrap my mind around how one is supposed to do a round system without either spamming pcalls and task.spawns, or not using character logic at all
Any example of a round system that doesnt use those would also be massively appreciated

I mean, it really depends on the game.

If its like a csgo competitive type game, if a player leaves mid match, they have the option to rejoin until the match is over, if they are not in the game until the end, they get punished, usually by a ban.

In other games, like epic minigames, it doesn’t really matter if the player leaves, as its usually FFA(free for all), all that has to be done is clear the players data from the server.

While in games like MM2, if its not a main role, like innocent, it doesn’t matter, if its a role like murderer, the win gets automatically granted.

But in general, I would say clear up the data from the player, update any UI that may have irrelevant information. If its a team vs team game, reward the team with the left player more reward, if they win, or if they loose, award them a little rather than nothing. If its some other type of game, you should adjust the way its being handled, and punish the player that left, if you want to of course.

tl;dr really depends on the game/genre, clear player data from the server/game, then depends on the type of game.