Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
-1

Whats wrong with my script?

Asked by
ned995 0
10 years ago

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

Answer this question