Why aren't public variables showing up? [Solved]

I am trying to figure out why the public variables I put into Visual Studio won’t pop up in Unity. I save, then the script disappears. When I go to a different object and go back, the script is there but none of the variables. Can I get some help? Thanks!

using UnityEngine;
using UnityEngine.UI;
public class Scoreforplayerwhoisplaying : MonoBehaviour {

    public Transform player;
    public Text score;

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

Try removing the script and adding it back