To Instantiate an object at a specific position you can add in a second Transform.
This line:
BabyClone = Instantiate(Baby, transform.position, transform.rotation) as GameObject;
is saying, Instantiate this object at the position and rotation of the object that contains this script. You can add an additional Transform game object to you script that will be used solely for positioning/rotating these objects.
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class BayBay : MonoBehaviour {
public GameObject Baby;
public Transform babyOrigin;
GameObject BabyClone;
void Update()
{
if (script.yesbaby > 1)
{
Debug.Log("heres the baby");
BabyClone = Instantiate(Baby, babyOrigin.position, babyOrigin.rotation) as GameObject;
script.yesbaby = 1;
}
}
}
With this added in, it’ll instantiate an object based off the position/rotation of the “babyOrigin” object you assign. If you need further clarification let me know.