I am trying to make it so that when this part is touched it will cycle through a team and change a value inside every player on that team. I am pretty sure using a in pairs loop would be the most appropriate however I am extremely unexperienced with those so I would really appreciate some help.
This is pretty much all I have so far
local playersA = AwayTeam:GetPlayers()
playersA[1].Possession.Value = false