I made a map editor script and im making it duplicate for some reason I cant get the instantiate to work correctly. Any way hears the duplicating part.
public Transform Editing;
void OnGUI()
{
if(GUI.Button(new Rect(400, 0, 50, 50), "Dup"))
{
Instantiate(Editing, transform.position, transform.rotation) as Transform;
}
}