Do not destroy is not working ?

Hey guys have do not destroy on a game object, the do not destroy thing comes up in my hirackey yet when the next scene loads with “PhotonNetwork.loadscene”
the Object disappears and gets deleted on scene load When I need the scene to stay in play.
nothing else delete this GameObject.
'`using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class DoNotDestroy : MonoBehaviour {

void Awake() {
	DontDestroyOnLoad(transform.gameObject);
}

}`

It’s possible that this object’s parent was destroyed by some other scripts.
One way to find out is to add a break point in OnDestroy() and check the call stack to find what’s going on.

private void OnDestroy(){
  Debug.Log("Set break point here");
}