So a line I was using was incorrect and I have no idea how to fix it at it's current state. The script is supposed to damage a player who touches the parent block and is not at a specific team. I moved the script itself to pastebin as it would not load correctly as I am typing this. https://pastebin.com/f1siCrvN Line 5 is the only issue that I cannot fix. I would appreciate any help I can get as I am completely stuck.
You could check the players team color or set a string value when the player touches the team spawn and check if the player has the tag.