# Error using Photon

**URL:** https://discussions.unity.com/t/error-using-photon/830627
**Category:** Multiplayer & Networking
**Tags:** Scripting
**Created:** [February 27, 2021, 12:35pm UTC](https://discussions.unity.com/t/error-using-photon/830627 "2021-02-27T12:35:58Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Atomos2K](https://avatars.discourse-cdn.com/v4/letter/a/977dab/32.png) [@Atomos2K](https://discussions.unity.com/u/Atomos2K)
#### Post date: [February 27, 2021, 12:35pm UTC](https://discussions.unity.com/t/error-using-photon/830627/1 "2021-02-27T12:35:58Z")

</div>

I keep getting these errors :

 ![6883724--804311--upload_2021-2-27_12-35-3.png](https://europe1.discourse-cdn.com/unity/original/3X/2/0/20bd16f037957f1c4fbf18ab35ae813f934df7fa.png)

```csharp
using Photon.Pun;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class PhotonNet : MonoBehaviourPunCallbacks
{
    // Start is called before the first frame update
    void Start()
    {
        PhotonNetwork.ConnectUsingSettings();
    }

    public override void OnConnectedToMaster()
    {
        Debug.Log("We are now connected to the " + PhotonNetwork.CloudRegion + " server!");
    }

    // Update is called once per frame
    void Update()
    {
      
    }
}

```

This is the code.  
Can some please help

---

<div class="post-metadata">

### Author: ![Terraya](https://dub1.discourse-cdn.com/unity/user_avatar/discussions.unity.com/terraya/32/576962_2.png) [@Terraya](https://discussions.unity.com/u/Terraya)
#### Post date: [February 27, 2021, 1:43pm UTC](https://discussions.unity.com/t/error-using-photon/830627/2 "2021-02-27T13:43:42Z")

</div>

as you can see, he cannot find the dedicated scripts and imports, do you have them in your Project?

---

<div class="post-metadata">

### Author: ![Atomos2K](https://avatars.discourse-cdn.com/v4/letter/a/977dab/32.png) [@Atomos2K](https://discussions.unity.com/u/Atomos2K)
#### Post date: [February 27, 2021, 2:26pm UTC](https://discussions.unity.com/t/error-using-photon/830627/3 "2021-02-27T14:26:26Z")

</div>

> [@Terraya](#):
>
> as you can see, he cannot find the dedicated scripts and imports, do you have them in your Project?

yh i imported ‘photon pun2’ but i still get this error
