I'm trying to create a Round based fighting game, i already have the basic map changer and stuff. But i need a way to make when the all players die except one, and that player gets their team changes to a Lobby team and announced winner(Don't worry about the announcing winner script, i got that one)

So, what would give me the best way to detect when a team is at 1 player?

(sorry for my English i speak french)

4 comments

0

Please follow https://scriptinghelpers.org/help/how-post-good-questions-answers and provide us with your code attempt.

0

Oh sorry, lemme grab my code and i'll edit the post.

0

Edited with my original code!

0

You can use the event https://developer.roblox.com/api-reference/event/Team/PlayerRemoved in Team to check that there is only one player. You can use the Died event of the humanoid to change the players team.