Assets/Scripts/PlayerAttack.cs(4,14): error CS0101

Please HELP !

Assets/Scripts/PlayerAttack.cs(4,14): error CS0101: The namespace global::' already contains a definition for PlayerAttack’

Here is Script

using System.Collections;

public class PlayerAttack : MonoBehaviour {
	public GameObject target;
	public float attackTimer;
	public float coolDown;

	// Use this for initialization
	void Start () {
		attackTimer = 0;
		coolDown = 2.0f;
	
	}
	
	// Update is called once per frame
	void Update () {
		if(attackTimer > 0)
			attackTimer -= Time.deltaTime;
		
		if(attackTimer < 0)
			attackTimer = 0;
		
		if(Input.GetKeyUp(KeyCode.F)) {
			if(attackTimer == 0)
			Attack();
			attackTimer = coolDown;
	
	}
}
	
	private void Attack(){
	float distance = Vector3.Distance(target.transform.position, transform.position);
		
		Vector3 dir = (target.transform.position - transform.position).normalized;
		
		float direction = Vector3.Dot(dir, transform.forward);
		
		Debug.Log(direction);
		
		if(distance < 2.5f) {
			if(direction > 0) {
		EnemyHealth eh = (EnemyHealth)target.GetComponent("EnemyHealth");
		eh.addjustCurrentHealth(-10);
	}
		}
	}}

It means you already have a script with the same name, or another script with a class public class PlayerAttack
also, one thread wasnt enough?

Fixed already didnt saw that enemy attack have same class

So what to do again. can you please explain

Instead of reviving a 4 year old thread…you should create your own post with your error and question.