How to take a GameObject from A scene to B scene when the GO was instantiated?

I know use Application.LoadLevel(B); and DontDestroyOnLoad(the GameObject);

However the gameObject is made from script when connect to the server.So I can’t get the GameObject;

Just make sure you have a reference to the game object when you create it.

//C# or js, whatever you want it to be.
var myGO = Instantiate() as GameObject;
DontDestroyOnLoad(myGO);