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

Does this "checking people alive script" work?

Asked by
Yeevivor4 155
9 years ago
function checkSurvivorNumber()
    local count = 0
    local players = game.Players:GetChildren()
    for i = 1, #players do
     if players[i] ~= nil then
      if players[i].TeamColor == BrickColor.new("Bright blue") then
              count = count + 1
               --Add GUI ("HintText")
               print("Checking Survivors")

         end
     end
 end

     if count < 1 or count == nil then
         time.Value = 0 
         for i = 1,#players do
             if players[i].TeamColor == BrickColor.new("Bright red") then
                 game.Workspace.DebugOutput.Value = "Awarding Killer's points"
0
Is that the entire script? Gamenew09 180 — 9y
0
No Yeevivor4 155 — 9y
0
Line 15: Second statement. It should be count == 0 fahmisack123 385 — 9y

Answer this question