My Player can't move after respawning, help?

So basically i have this script that is supposed to spawn the player at the checkpoint after it collides with the enemy. Only problem is, after it spawns at the checkpoint position the player is unable to move. Any help is greatly appreciated.

using UnityEngine;
using System.Collections;

public class LevelManager : MonoBehaviour {

public bool playerIsDead;

public GameObject player;
public GameObject currentCheckpoint;

public new Vector2 checkpointPosition;

// Use this for initialization
void Start () {

    checkpointPosition = currentCheckpoint.transform.position;
    playerIsDead = false;
}

// Update is called once per frame
void Update ()
{
   
    if (PlayerControl.isDead == true)
        {
        playerIsDead = true;
        }   
    
    if(playerIsDead == true)
        {
        player.transform.position = checkpointPosition;
        playerIsDead = false;
    }   
}

}

Since you didn’t give us the code from PlayerControl script, we can’t help you that much.

I’m assuming that PlayerControl.isDead is never set to false after your player dies so it keeps being teleported to the checkpoint every frame. As long as your character is constantly being teleported to the checkpoint, you can’t move it.

One small thing:

public new Vector2 checkpointPosition;

should be

public Vector2 checkpointPosition;

public Vector2 checkpointPosition;