Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

[SOLVED]What would be the best way to detect when a team is at EX Number?

Asked by
BashGuy10 384 Moderation Voter
5 years ago
Edited 5 years ago

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)

0
Please follow https://scriptinghelpers.org/help/how-post-good-questions-answers and provide us with your code attempt. User#5423 17 — 5y
0
Oh sorry, lemme grab my code and i'll edit the post. BashGuy10 384 — 5y
0
Edited with my original code! BashGuy10 384 — 5y
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. User#5423 17 — 5y

Answer this question