onStartLocalPlayer not being called

I am making a multiplayer game with netcode and due to a bug with the camera i coded it to instantiate a new camera when a player joins. however it's just not working. onStartLocalPlayer is just not being called when a player joins the game. i really need help with this

Hi @abhishudesilva , what multiplayer framework are you using? How are you instantiating the player?

unity netcode for gameobjects, i'm instantiating using the network manager