game.Players.PlayerAdded:connect(function(plr)
plr.Character.Humanoid.Died:connect(function(died)
if plr.TeamColor == BrickColor.new("New Yeller") then
wait(6)
died.Parent:MoveTo(game.Workspace.Custom1.Position)
elseif plr.TeamColor == BrickColor.new("Toothpaste") then
wait(6)
died.Parent:MoveTo(game.Workspace.SpecialSpawn2.Position)
elseif plr.TeamColor == BrickColor.new("Pink") then
wait(6)
died.Parent:MoveTo(game.Workspace.Custom3.Position)
else
print("The player that died isn't on any of the custom spawn teams, so they weren't teleported")
end
end)
end)
I have made this because I already used the 4 spawns ROBLOX gave us, which means if I duplicate it, and change its color, it won't teleport you to the spawn once you die. The problem with this script is that it won't teleport at all! The only part that works is the else part.
Help?

3 comments
Whats Custom1, Custom2, Custom3? Are they bricks?
They are SpawnLocations.
The died connect has no parameters.