Please help me with this

I need to make a property (“Players”) that updates depending on how many players there are and sets that amount to be a target for the counter. So when (amount of players) is in a zone it hides a prop.

There’s a guide that shows you how to set the value of a counter to the number of players in a game: Detect the number of players in your game! You can set the counter to update a property - this property can be used in evaluations later on.

You’ll need to use blocks to compare the value of multiple properties, but you can use a block-compatible device (I used an item granter because of its low memory cost) to do those comparisons.

When players enter the zone, the value of the counter is incremented. When players exit the zone, the value is decremented. This value is then stored in the variable players_in.

Every time the value of ‘players_in’ is changed, a wire pulse block in the item granter is run:
If the number of players in the zone is equal to the number of total players, a message is sent that deactivates the barrier.


Thx so much. This is really important because its for my boss battle.

1 Like

Umm… it won;t work


Nvm I forgot to make total_players a property