local team = game.Teams.Lobby
game.Players.PlayerAdded:connect(function(plr)
plr.CharacterAdded:connect(function(chr)
chr:WaitForChild("Humanoid").Died:connect(function()
print(plr.Name.." died!")
plr.TeamColor = team
end)
end)
end)
Trying to make a script in workspace where when you die you change from Team Players to Team Lobby.

1 comment
Forgot to add, just put this script in the workspace and it works perfectly.