Casting to player fails

The warning says PlayerCharacter1 does not inherit from Character. Therefore, it can’t be cast from Character to PlayerCharacter1. Try making it so PlayerCharacter1 inherits from the Character class. (The answer is actually already in the warning message you are getting in the first image)