How would I make a script to announce MULTIPLE winners?
I've mostly figured out how to make a system to announce just one winner, but what about multiple. Background: I am making a minigames game, and different minigames have different types. I am going to explain two types here: Survival and OneSurvival. OneSurvival means that the last person left alive in the minigame will win, and their name will be announced. Survival means that everyone has to survive until the end, and if everyone dies before times up, it will be announced that there are no survivors. However, multiple people can survive in a Survival type minigame. Here is a code snippit:
02 | local map = workspace.CurrentMap:FindFirstChildWhichIsA( "Model" ) |
03 | local roundlength = map:FindFirstChild( "Time" ).Value |
06 | if map:FindFirstChild( "Type" ).Value = = "Survival" then |
07 | message.Value = "Time left: " ..roundlength |
10 | roundlength = roundlength - 1 |
11 | message.Value = "Time left: " ..roundlength |
12 | until roundlength = = 0 or #workspace.InGame:GetChildren() = = 0 |
13 | if #workspace.InGame:GetChildren() = = 0 then |
14 | message.Value = "No one has won :(" |
Here's some more context. "InGame" is a folder within the workspace that all players currently playing the minigame are in. I need a line in this script that will announce all the names of the survivors if there are multiple people alive when time is up. If you need more context, ask.