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

Team teleport. Any help?

Asked by 8 years ago

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
0
Line 4 funyun 958 — 8y
0
At line 2 also CarterTheHippo 120 — 8y

Answer this question