The way I have this script set up is on death another script triggers this script to activate immediately.
local Blue = game.Teams:WaitForChild("Blue Team")
local Red = game.Teams:WaitForChild("Red Team")
local BlueTeleport = game.Workspace:WaitForChild("BlueSpawn").Position
local RedTeleport = game.Workspace:WaitForChild("RedSpawn").Position
local Players = game.Players
Players.PlayerAdded:connect(function(Player)
Player.CharacterAdded:connect(function(Character)
local Torso = Character:WaitForChild("Torso")
if Player.Team == game.Teams:WaitForChild(Blue) then
Torso.CFrame = CFrame.new(BlueTeleport.X,BlueTeleport.Y+5,BlueTeleport.Z)
elseif Player.Team == game.Teams:WaitForChild(Red) then
Torso.CFrame = CFrame.new(RedTeleport.X,RedTeleport.Y+5,RedTeleport.Z)
end
end)
end)
