How to create a system that decides how many players to eliminate

I’m trying to make a minigame similar to tail tag in Fall Guys, where players fight eachother with swords to try and steal a crown from eachother. All the players without a crown after a minute get eliminated.

The thing is I have no clue how to make a system that decides how many players get eliminated based on the quantity of players and how many rounds have passed so it doesn’t take too long.

I dont want a script to copy i just want some feedback and help on what i can do to make this happen

1 Like

I would try to make a system that grabs the amount of players, and depending on how much you want to eliminate(1/2, 1/4, 1/8, e.t.c). Divide the player count by that. And you have your elimination amount, if the number is a float or decimal, you can use math.ceil to round up or math.floor to round down.

But for the amount of rounds, I would just try to make it go forever until there’s a winner, I don’t think there’s draws in fall guys, but correct me if Im wrong.

Also this should be moved to #help-and-feedback:scripting-support before this gets taken down.

Thanks! Is there an easier way to like change the divisor depending on how many players there are, or is this only possible with if statements?

If statements are probably your only choice, but shouldn’t be that much, you can also try halving the denominator each round.

For example, if I divide by 1/2 the next round can be 1/4 and so on.

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