For example, I want my game to eliminate someone and then repeat until 3 or so people are left, and then they compete in a final round. I have tried numerous different ways, but they all just end up breaking the game. I am using the teams the players are set on in order to get the amount of players currently competing. Here is an example of how I've been trying to achieve this:
local team = game.Teams.TeamName:GetPlayers())
--Game gets to the point of checking number of players
while #team >= 3 do
--Execute this chunk of code and then repeat until its false
end
--Then the game continues
I'm extremely new to LUA, so it might be something very obvious that I'm not aware of.

1 comment
You have to get the character's Humanoid and check if they are dead first, Somereason I can't post answers so your on your own.