Errors in my game (Spam output and Team is a nil value)

Hello, I have 2 problems in my game. I did a test session with some testers of me and I caught 2 errors.

Error/Problem 1

I have several teams and all the testers were in one team. However, the script indicates that they are not in it.
Script:

Screenshot:

Error/Problem 2

My output is spammed by an error that I didn’t make the script of. It spammed my entire output, making it difficult for me to find errors.
Screenshot:

It would be very helpful if you knew and could help with these bugs.