How do i make it so that whenever one player is left the game then ends

ok so i am making a battle royale type game and i want to make it so that whenever one player is left and the last one standing the game ends

test bcoz i am testing this out

I think this should help but if not tell me: How do you make the game end when there is only 1 player left?