local PlayerThread = coroutine.wrap(function() roundStart.Value = true for i = roundLength, 0, -1 do wait(1) Status.Value = " Round ends in "..i.. " seconds " print(" Round ends in "..i.. " seconds ") end end) () local playersInRound = {} local function PlayersInRound()--PlayersInRoundEnd for _,player in ipairs(game.Players:GetPlayers()) do--End2 if player.Character == nil then continue end local Humanoid = player.Character.Humanoid if Humanoid.Health > 0 then--End3 Humanoid.Died:Connect(function() table.remove(playersInRound, player.Name) print("Player has been removed") end) table.insert(playersInRound, player.Name) end--End3 if #playersInRound == 0 then--End4 Status.Value = " No one won the round " print("No one won the round ") break end--End4 if #playersInRound == 1 then--End5 print("playersInRound 1 works") local success, message = pcall(function() local Winner = playersInRound[1] Status.Value = Winner.. " Has won the round! " print(Winner.."Has won the round!" ) wait(3) end) if not success then--End6 warn(" There is an error ") break end--End6 end--End5 playersInRound.Changed:Connect(function(PlayersInRound) end) end--End2 end--PlayersInRoundEnd PlayerThread() end--RoundEnd