Looking for a teleporter that can teleport a team to several different spawn locations. Having trouble with it. I got some help from someone but the script didnt seem to work, I edited it so If it could work but still didnt. I am looking to teleport Bright blue team (All players at once).

for i, v in pairs(game.Players:GetPlayers()) do 
if v.TeamColor == "Bright blue" then 
local bluespawns = game.Workspace:FindFirstChild("BlueSpawns"):GetChildren() 
v.Character:MoveTo(bluespawns[i].CFrame.new(464, 640.1, -31.8))
end
end

NVM I DID SOME EDITING AND FIXED IT MYSELF

for i, v in pairs(game.Players:GetPlayers()) do 
if v.TeamColor == BrickColor.Blue() then
local bluespawns = game.Workspace:FindFirstChild("BlueSpawns"):GetChildren() 
v.Character:MoveTo(bluespawns[i].Position) 
end
end

2 comments

0

Line 4

0

At line 2 also