Why wont my follow scripts work?

Im trying to create an atmospheric maze game, and I want the monster ive created to follow me, so Ive been looking online for one. ive tried about 70 different scripts now, but none of them have worked. can you help me?

Attach this to monster,set player(you),and set speed. But unity answers isnt for asking scripts,but to help find out problem.

using UnityEngine;
using System.Collections;

public class FollowScript : MonoBehaviour {

    public Transform playerToFollow; // Set player you want to follow on the scene
    public float speed = 50f; //speed
    
    void Update()
    {
      if(playerToFollow !=null)
      {		
          transform.position = Vector3.MoveTowards(transform.position,player.transfrom.position,speed * Time.deltaTime);
      }
	  else
	  {
		Debug.Log("Player is not set");
	  }
    }
}