Whats wrong with my script?
Please make your question title relevant to your question content. It should be a one-sentence summary in question form.
function getTeamMembers(CGABrown)
local members = {}
for i,v in pairs(Game.Players:GetPlayers()) do
members[#members+1] = v.TeamColor == TeamColor and v or nil
end
return members
end
function teleportTeam(BrightBlue, Position)
for i,v in pairs(getTeamMembers(CGABrown)) do
repeat wait() until v.Character
v.Character:MoveTo(-1498.821, 12.499, -277.718)
end
end