What does the error PlayerMovement.cs(3,14): error CS0101: The namespace `global::' already contains a definition for `PlayerMovement' mean?

I copied the movement script from unity training day 2014 internet tutorial.
When I insert the script into my game it gives me the Assets/_CompletedAssets/Scripts/Player/PlayerMovement.cs(3,14): error CS0101: The namespace global::' already contains a definition for PlayerMovement’
error.

I was just wondering how to fix this error.

the thing is that i haven’t actually defined it anywhere else i just copied the survival shooter tutorial movement script exactly word for word and i dont have any other scripts

I have encountered this when, in my C# scripts, the name (of the script) found between ‘public class’ and ‘MonoBehaviour’ is identical to that of another script.

For example, I have a script called “Movement.cs”. I created a new script called “NewMovement.cs” and, since I only had to edit part of Movement.cs to get the code I wanted for it, I copied the content of Movement.cs and pasted it into the new script. I then changed the content which I needed to change and saved the script. However, I didn’t change the part of the script:

public class Movement : MonoBehaviour {

into

public class NewMovement : MonoBehaviour {

Consequently, I got Error CS0101 as you did.

As you can see, the way to solve this is to make sure that the public class is not the same as any other script.