I need to be able to send a GUI to all of the Players on a team. This is what I have so far.
players = game.Players:GetChildren()
for i=#players,1 do
if game.Players[i].TeamColor == game.Teams["My Team"].TeamColor then
gui = script.Parent.alarm_gui:clone()
gui.Parent = game.Players[i].PlayerGui
end
end
However it errors out here:
if game.Players[i].TeamColor == game.Teams["My Team"].TeamColor then
The Output says "1 is not a Valid member of Players"

1 comment
Oh. I see what you mean. Thank you!