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

this script only works for the first value?

Asked by 9 years ago

this script only works for the first value, please help (it only works for blue.First,pos.First and it ignores the rest)

blue = workspace.Values.bluePositions
pos = script.Parent
positions = {{blue.First,pos.First},{blue.Second, pos.Second},{blue.Third,pos.Third},{blue.Left,pos.Left},
    {blue.Right,pos.Right}}
    for i,v in pairs (positions) do
        if v.Value ~= "None" then
            local play2 = game.Workspace:WaitForChild(v[1].Value)
            play2:MoveTo(v[2].Position)
        end
    end

Answer this question