Ending a game when everyone is knocked out

So, I’m making this dungeon-type game, and I want the game to end when everyone is knocked out (Not just one player left). I have looked through some of the guides, but they have been about one person left or one team left. Can anyone tell me how to do this?

Do the live player counter that ends on one, but instead of the less than/equal to sign, do a less than sign in the final blocks. (or equal to 0 whichever one you prefer and would be easier for you to understand when you debug :slight_smile:)

Edit: does it work?

1 Like

I think the game automatically ends when you switch everyone to a spectator.

2 Likes

I didn’t think so… because ive done that before and it didn’t end. i may be wrong though.

1 Like

Yes, it worked. Sorry it took so long, I had to figure out how to make a live player counter lol. Thank you!

1 Like

I also think it does…

Idk I’m having lunch rn I can check later

1 Like

This topic was automatically closed 3 hours after the last reply. New replies are no longer allowed.