So I wan't to make a team based sword game where if all the players in the opposing team dies the other team will win, so I wan't to know how do I check if everyone on a team has already died once and declare the opposing team the victory.
I mean easy way is if someone dies from the team it will change his team to 'Neutral' or 'Lobby' something like that and then you check if it will find any children in the team, if no then everyone has died. To check it here is example script:
local children = game.Teams.RedTeam:GetChildren() -- change that if #children == 0 -- if there is no children then print("everyone has died this team") end