Hey guys anyone able to help me make a script where once you get eliminated by a player, you join their team

anyone able to help me make a script where once you get eliminated by a player, you join their team

thanks