Issues trying to update Score in my game.

I am trying to update the score from shooting an enemy in my gun script and sending it to my playerStats script, but it is only updating in the gun script.
Relevant code:
public class PlayerStats : MonoBehaviour
public float currScore;
void Start()
{
currentHealth = maxHealth;
currScore = 0;
}
public void AddScore(float amount)
{
currScore += amount;
}

public class Gun : PlayerStats
private float amount = 50;
Enemy enemy = hit.transform.GetComponent();
if (enemy != null)
{
enemy.TakeDamage(damage);
AddScore(amount);
}

first of all, this is brutal to read with no formatting so

also should explain what problem you are having so people do not have to guess at it, since what you got there is not code that would compile and also not a problem i would try and solve with inheritance like it looks like you are trying todo.