End game Player

I am making a game where when you Are eliminated you go to a cage,but when everyone it elminated the game ends,but how do I do that when the number of player varies.Also I wanted to make it to where when you Defeat the boss,the people in the cage comeback until they get elliminated again again and are teleported to the game.

I think you can do that with a zone but i could be wrong

Okay here we go

To know how many players are in the game:

Lifecycle set to “game start” → relay set to all players → increment counter and have the counter update a property
If people can jo1n late, add:
Lifecycle set to “player joins late” → increment counter

To see how many people are in the cage:

Lifecycle set to “when player knocked out” → teleport to cage
Same lifecycle → different counter that keeps track of how many people are in the cage (make sure to connect to a different property)
In the property device connected to the amount in the cage:
When property value changes → trigger with block code below:



Let me know any questions you may have!

Step 1: Get the number of players.
Step 2: Teleport them to the cage when they’re knocked out.
Step 2.5: Increase a counter when they’re knocked out.
Step 3: If that counter reaches the total number of players, end the game.
Step 4: If the boss gets knocked out, reset that counter and teleport all players to the start.

1 Like

Sorry! I started typing before I saw @BoomBoy’s response and since I was looking at other topics I didn’t see his before I posted.

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