Changing material in blueprint

Try casting to your player character not directly trying to change the mesh material from “get player character” node.